r/WordpressPlugins • • Sep 16 '26

Premium [PREMIUM] We built a WordPress security plugin focused on preventing infections, not just detecting malware

Hey everyone,

We recently launched Must-Have Security, and I wanted to share what we’ve been building.

There are already plenty of WordPress security plugins, so our goal wasn’t simply to build another malware scanner with another database of signatures and firewall rules.

We focused heavily on what happens before malware actually manages to infect the site.

Most security solutions are fundamentally reactive. A new threat appears, someone discovers it, a signature or rule is created, and then sites can start blocking it. That approach works, but there’s always a window where a new or modified attack isn’t known yet.

Must-Have Security takes a different approach. Instead of relying entirely on recognizing malware, it also controls what code is actually allowed to do on the site. If something tries to create or modify an executable file without authorization, the operation itself can be blocked — even if we’ve never seen that particular malware before.

Some of the main features:

  • Executable file-write protection
  • Protection that can run before WordPress itself loads
  • Temporary and scoped permissions for legitimate file writes
  • Separate trusted administrator system
  • Protection against malware recreating itself after removal
  • Suspicious request detection
  • Blocked file-write inspection and logging
  • Multiple protection layers for different hosting environments

One thing that was particularly important to us was protection against previously unknown malware. If an exploit manages to execute code through a vulnerable plugin and then tries to create or modify a PHP file, we don’t necessarily need to know its name, hash or signature first. We can block the dangerous operation itself.

This also changes how self-healing malware can be handled. Removing a malicious file isn’t very useful if the malware can simply recreate it a second later. By controlling whether that executable file can be written in the first place, the malware can’t simply restore itself using the same mechanism.

Of course, WordPress legitimately needs to write executable files during things like plugin and theme installs or updates. Instead of simply making everything read-only, Must-Have Security can grant temporary, tightly scoped permissions for legitimate operations.

We’re actively developing and testing the plugin, so I’d genuinely be interested in feedback from other WordPress developers and people managing sites:

What legitimate file-writing edge cases should we test against?

Plugins generating PHP files, unusual caching systems, custom deployment workflows, strange shared hosting environments, anything. We’re especially interested in cases that could break a protection model like this.

If you'd rather see how it works before trying it, we also made a full walkthrough:

🎥 YouTube: https://youtu.be/A5RZ1xim5pA

Plugin: https://musthaveplugins.com/security/

Happy to answer technical questions about how the protection works as well.

4 Upvotes

5 comments sorted by

1

u/jedidave Sep 16 '26

So how is the protection better than something running outside of WordPress?

1

u/Such_Adhesiveness764 Sep 16 '26

Outside WordPress - Cloudflare is a typical example - you can put a strong WAF in front of the site. What can a WAF stop? SQL injection, for example, is relatively easy to detect in many cases. The same is true for most XSS attempts. Not 100% of them, of course, but a good WAF will catch a lot of these attacks.

The big advantage of Must-Have Security is that it can control file writes and execution, which is something you can only really do on the server itself. In fact, Must-Have Security already runs before WordPress, rather than inside WordPress, and it can stop certain types of attacks that are extremely difficult for a WAF to detect reliably.

For example, there was a vulnerability in a caching plugin where an authorization check was missing, allowing basically any authenticated user - even a customer or subscriber - to modify certain options. One of those options contained a list of exceptions that the plugin wrote into advanced-cache.php as a string, without properly sanitizing the content.

This meant that on a WooCommerce store, for example, you could start a checkout to obtain a low-privileged user account, then submit a specially crafted option value containing something like "; to terminate the string and inject arbitrary PHP code. From there, you could get RCE on the site in about a minute.

A firewall won't necessarily recognize something like this by default. Once the vulnerability becomes public, WAF providers can of course create a specific rule for it, and from that point on they have a good chance of blocking exploitation attempts. But until that specific rule exists, the vulnerability could potentially be used to infect tens or even hundreds of thousands of sites. And once malware is already inside the server, especially newer self-healing malware, removing it can be difficult, and at that point the external WAF obviously has a very limited role.

Must-Have Security approaches this from the other direction. It controls who is allowed to write files, where they can write them, and when.

So if someone tries to exploit the vulnerability above, another unknown 0-day, or even manages to obtain an administrator account, they still don't automatically get permission to write executable files. That means they can't simply drop a persistent backdoor onto the server, and more importantly, malware can't just recreate itself after being removed.

We also restrict direct execution of PHP files where it shouldn't be allowed. So if there's a backdoor hidden inside a nulled or compromised plugin, or an infection tries to spread from another site on the same shared hosting account, that gives us another layer where the attack can be stopped.

On top of that, the plugin also includes a more traditional WAF and a malware scanner. Suspicious files can be passed to AI for deeper analysis, which helps identify more complicated or multi-stage backdoors as well.

So I don't really see it as "WAF vs Must-Have Security." A WAF is still useful and we use one too. The difference is that we're adding another layer much closer to the filesystem and PHP execution itself, where we can enforce what code is actually allowed to do even when we don't yet know what the specific attack looks like.

2

u/TopSydeWP Sep 17 '26

Awesome to see this in plugin form. We have something similar baked into our hosting platform that utilizes machine learning and malware removal / detection automation for all of our customers (included in hosting). It gets better the more it’s tested and as our customers base grows.

1

u/coryamarsh Sep 23 '26

Nice clone mate. Tell me, who did you rip this off of?