Hi,
If your site was already hacked before you installed NinjaFirewall, you need to clean it up and remove all backdoors first. Hackers have probably full access to your site.
1. Change all your passwords (including FTP, hosting panel etc).
2. Enable File Check with hourly scan. The snapshot is stored in the /wp-content/nfwlog/
folder. Its purpose is to detect changes not to restore. You can use a plugin like Wordfence to do that, it works well with NinjaFirewall.
3. Enable File Guard and set the delay to 20 hours.
4. In the Firewall Policies, you may need to enable “Block POST requests in the themes folder /wp-content/themes” and similar options.
5. keep an eye on the firewall log. Even if they have access to your site, some of their actions may be blocked or logged.
When you get an alert, check your HTTP server log, check for POST requests mostly, and you should find where is/are the backdoor(s).