When I first started off with XF, the actions of a "technician" I'd hired, led to a very serious situation whereby the "tech" had masqueraded as me and proactively antagonized a friend of mine who subsequently became extremely upset at me.
This resulted with my friend mistakenly believing I'd betrayed him and so he decided to reciprocate by making it incredibly difficult for me to maintain my forum.
๐
Basically he (being an experienced developer) began seeking out any weaknesses in my forum & thus XF's defenses with which to exploit.
Barely a day later my forum was almost completely crippled.
XF Client Support engaged their DDoS countermeasures and managed to resolve this after two days, however the following day my forum was again crippled. XF DDoS countermeasures once more dealt with it within a couple of days...yet again by the following day my forum was crippled and this time XF's third attempt at DDoS countermeasures proved entirely ineffective. From this point on my forum became totally unusable and ultimately discarded after two months of unsuccessfully trying to solve whatever my friend was doing to cripple it.
XF never provided me with any answers nor insights for how this was possible and my friend (subsequent to him becoming aware of the "tech" having masqueraded as me) has since only been willing to casually joke about how easy he claims it was for him to cripple my XF forum.
The point I'm getting to here, is that since the revelation of the "techs" shenanigans, our friendship has been reconciled and my friend has subsequently occasionally "hacked" my forums to find and bring to attention any previously unknown security weaknesses, which he then advises on how to correct.
I certainly can't speak to how secure Flarum may or may not be, but if you have any friends like mine who know how to "hack" websites...๐ perhaps it might be worthwhile considering requesting their assistance for preemptively seeking out any "chinks" in your websites "armour".