Free Magento 2 security against attacks, bots and backdoors

KostenlosFree
0,00 €

incl. 19% VAT

More insight with STM Shop Security Guard ProSecurity dashboard, one-click scans, payment page guard and more

Sicherheit zuerst – für alle.Jeder geschützte Shop macht den Onlinehandel ein Stück sicherer. Deshalb stellen wir den Grundschutz für Magento kostenlos bereit.Security first – for everyone.Every protected store makes e-commerce a little safer for all of us. That is why we provide core protection for Magento free of charge.

  • ✔ Free - Compatible with Magento 2.4.4 - 2.4.9, Hyvä and Luma
    All 71 versions incl. patches
    • Magento 2.4.92.4.9
    • Magento 2.4.82.4.8, 2.4.8-p1, 2.4.8-p2, 2.4.8-p3, 2.4.8-p4, 2.4.8-p5
    • Magento 2.4.72.4.7, 2.4.7-p1, 2.4.7-p2, 2.4.7-p3, 2.4.7-p4, 2.4.7-p5, 2.4.7-p6, 2.4.7-p7, 2.4.7-p8, 2.4.7-p9, 2.4.7-p10
    • Magento 2.4.62.4.6, 2.4.6-p1, 2.4.6-p2, 2.4.6-p3, 2.4.6-p4, 2.4.6-p5, 2.4.6-p6, 2.4.6-p7, 2.4.6-p8, 2.4.6-p9, 2.4.6-p10, 2.4.6-p11, 2.4.6-p12, 2.4.6-p13, 2.4.6-p14, 2.4.6-p15
    • Magento 2.4.52.4.5, 2.4.5-p1, 2.4.5-p2, 2.4.5-p3, 2.4.5-p4, 2.4.5-p5, 2.4.5-p6, 2.4.5-p7, 2.4.5-p8, 2.4.5-p9, 2.4.5-p10, 2.4.5-p11, 2.4.5-p12, 2.4.5-p13, 2.4.5-p14, 2.4.5-p15, 2.4.5-p16, 2.4.5-p17
    • Magento 2.4.42.4.4, 2.4.4-p1, 2.4.4-p2, 2.4.4-p3, 2.4.4-p4, 2.4.4-p5, 2.4.4-p6, 2.4.4-p7, 2.4.4-p8, 2.4.4-p9, 2.4.4-p10, 2.4.4-p11, 2.4.4-p12, 2.4.4-p13, 2.4.4-p14, 2.4.4-p15, 2.4.4-p16, 2.4.4-p17, 2.4.4-p18
  • ✔ MIT license, no license key, source code on GitHub
  • ✔ No support for the free version - contact us for customizations
  • ✔ Get more visibility with STM Shop Security Guard Pro Learn more
STM Shop Security Guard is the free security module for Magento 2. It intercepts attacks before Magento processes them, blocks attackers and bots automatically and reports backdoors with clear instructions on what to do.
  • Request filter against StyleSmuggler, PolyShell, TrojanOrder and CosmicSting
  • New attack patterns every hour as a signed list, no module update needed
  • Hourly bot scan with automatic blocking and DNS verification of Googlebots
  • Backdoor scan every 30 minutes, email only when something is found
  • Brute-force lockout on the admin login and card-testing throttle in the checkout
  • Daily check whether env.php, .git or backups are publicly accessible
  • Early warning by email when a critical vulnerability affects your store
  • Integrity check: reports every new or changed code file
  • PHP version check for PHP2Shell (October 2026)
MIT license, no license key. Get more visibility with STM Shop Security Guard Pro.
Compatible with: Magento 2.4.4 – 2.4.9 Hyvä Theme Luma-based themes PHP 8.1 – 8.5 ComposerDocs on GitHub

In short

STM Shop Security Guard is a free Magento 2 extension that intercepts attacks such as StyleSmuggler, PolyShell and TrojanOrder before Magento processes them. It automatically blocks attackers and nuisance bots every hour and scans for backdoors every 30 minutes. It pulls in new attack patterns every hour as a signed list from Storetown Media, so you are covered before the next module update. It also compares every code file against a stored baseline and reports anything new or changed. Since version 1.6, it blocks addresses that guess passwords at the admin login, slows down card testers in the checkout, checks daily whether files such as env.php or database backups are publicly accessible, and alerts you by email when a critical vulnerability affects your store. When it finds something, you get an email with the finding and clear instructions on what to do. MIT license, no license key.

Frontend demo: a test request that Shop Security Guard blocks · Test of the downloaded attack patterns · Backend demo (Stores › Configuration › STM › STM Shop Security Guard) · Source code on GitHub

STM Shop Security Guard: all protection features in 3:40 minutes, shown in a real Magento backend. Pro from 1:46. With subtitles.


Why Magento stores need extra protection in 2026

In September 2026, StyleSmuggler (APSB26-146) was exploited as an unpatched vulnerability against Magento and Adobe Commerce stores across Europe. PolyShell has been dropping web shells through the REST API for months, and in October PHP2Shell added two critical vulnerabilities in PHP itself. Patches often arrive days after the first attacks. During that window, a store needs its own defense, and that defense has to know about new attacks before anyone installs a module update.

STM Shop Security Guard bundles the layers of protection we deployed on attacked client stores during those weeks into one small module.

What is STM Shop Security Guard?

STM Shop Security Guard is a hardening module for Magento 2. It works in three places: in front of Magento as a request filter, in the background as a bot scan and backdoor scan via cron, and with you as a clear alert with recommended actions. It does not modify the Magento core and has no frontend code.

Request filter before Magento: attacks and bots are blocked before Magento processes the request

Request filter in front of Magento: attacks and bots are blocked before Magento processes the request

Key features

Request filter in front of Magento

Blocks StyleSmuggler, template directives (TrojanOrder), PHP code in parameters, CosmicSting XXE, PolyShell uploads and file uploads in customer addresses.

New attack patterns every hour

When a new wave of attacks appears, we publish the pattern as a signed list. Your store fetches it every hour and starts filtering right away, without a module update. A list without a valid signature is never used, and every pattern is tested against normal requests first so that no customers get blocked.

Automatic bot scan

Analyzes a sample of traffic every hour. Attackers, bots above a threshold and fake Googlebots (verified via DNS) are added to the configuration with an expiration date.

Backdoor scan every 30 minutes

Looks for PHP files and disguised images in upload directories, unknown files in pub/ and all its subfolders, attack code in error reports and logs, disguised processes, crontab entries, skimmer code, and new admin accounts and API integrations.

Lockout against password guessing

After 10 failed admin logins within 15 minutes, the address is blocked until the next day. Addresses from which admins have logged in during the last 30 days, and addresses you have allowlisted, are never blocked.

Publicly accessible files

Checks your store from the outside once a day to see whether app/etc/env.php, the .git directory, database backups, Magento logs, phpinfo, Adminer or phpMyAdmin are publicly accessible. Files like these expose passwords and customer data without any attack at all.

Early warning by email

When a critical vulnerability becomes known, we publish an alert with the conditions under which a store is affected: Magento version, PHP version, packages or modules. Your store checks them itself and sends an email, but only if it is actually affected.

Card testing throttle

Card testers run stolen card numbers through the checkout. The throttle counts payment attempts per IP address and hour; above the limit (8), the address is logged or, if you choose, rejected. After installation it only observes, so you can first see whom it would block.

What to do

Every finding comes with specific instructions, in the email, in the admin inbox and at the top of the configuration. Identical findings are reported at most once a day, so nothing gets lost.

Upload block against PolyShell

Blocks file uploads in product options through all three channels, including the REST API. It is only enabled during installation if your catalog does not use file options.

System check

Checks the PHP version against PHP2Shell, risky PHP settings and whether the StyleSmuggler hotfix is in effect, and blocks PHP execution in pub/media and pub/static.

How does Shop Security Guard detect modified code?

On the first scan, Shop Security Guard creates a baseline: a checksum (SHA-256) for every code file in vendor, app, lib, pub, setup and bin. From then on, every scan reports which files have been added, which have changed and which are missing. This way, a backdoor in a library under vendor is caught even if it looks harmless.

To keep an existing infection from being stored as “clean,” Shop Security Guard first checks all code for typical webshell tricks: encoded eval, hidden includes, jump chains with random names. The baseline checksum is stored in the database, and a baseline that has been tampered with afterwards is reported as critical.

Integrity check on the command line: changed code files and webshell tricks, then a new reference state (example with test files)

Integrity check on the command line: modified code files and webshell tricks, followed by a new baseline (example with test files)

Shop Security Guard recognizes updates by the new package version and reports them as updates, not as attacks. After a deployment, you accept the new state with bin/magento shopguard:integrity --accept or with one click in Shop Security Guard Pro. On our demo store with around 47,000 code files, the first baseline takes 3 to 6 seconds, and each subsequent comparison takes under 1 second. The signatures detected 16 of 19 real backdoors from attacks on our demo store; Shop Security Guard reports the remaining three based on their location. Across around 48,700 files, there were no false positives (October 2026).

Backdoor scan every 30 minutes: the result in one sentence and what to do for every finding (example with test files)

Backdoor scan every 30 minutes: the result in one sentence and what to do for each finding (example with test files)

Everything at a glanceThe security dashboard in the admin, one-click backdoor scan, payment page guard and PCI DSS evidence come with STM Shop Security Guard Pro.
View Pro version

Which attacks does STM Shop Security Guard block?

Attack What Shop Security Guard does
StyleSmuggler (APSB26-146) blocks the request, finds attack code in var/report and logs, checks the Adobe hotfix
PolyShell (APSB25-94) blocks file uploads in product options, reports PHP files in upload directories
SessionReaper, CosmicSting blocks address uploads and XML entities, reports session files in pub/media
TrojanOrder blocks template directives in customer input
PHP2Shell (CVE-2026-109618, -109619) reports a vulnerable PHP version and the setting that protects you until you update
Webshells and backdoors reports PHP files in pub/ and all subfolders, PHP code in video or image files, modified code files and typical webshell tricks
Password guessing at the admin login blocks the address until the next day after 10 failed attempts within 15 minutes
Card testing in the checkout counts payment attempts per address and hour, and can reject addresses above the limit
Exposed files reports when env.php, .git, backups, logs or admin tools are publicly accessible
Bots and scrapers blocks SEO and AI training crawlers, fake Googlebots and IPs sending too many requests; can also protect filter pages
Attacks blocked: StyleSmuggler, PolyShell, SessionReaper, CosmicSting, TrojanOrder, PHP2Shell and scrapers

Attacks blocked: StyleSmuggler, PolyShell, SessionReaper, CosmicSting, TrojanOrder, PHP2Shell and scrapers

What STM Shop Security Guard can't do

PHP2Shell strikes while PHP is reading the request, before any Magento extension runs. Only a PHP update protects against it. Pages served from Varnish or a CDN never reach PHP and are not filtered. The card testing throttle counts per address; it cannot fully stop botnets with constantly changing addresses, so a captcha in the checkout is also advisable, which Magento provides with reCAPTCHA. Shop Security Guard complements security patches and a web application firewall but does not replace them.

More visibility with STM Shop Security Guard Pro

The free version provides full protection and reports findings and critical early warnings by email. STM Shop Security Guard Pro adds a dashboard in the admin: one-click backdoor and bot scans, every task explained in plain language with text you can pass on to your hosting provider or agency, attackers from the last 90 days taken from the server logs with one-click blocking, a comparison of every Composer package against its original, and known vulnerabilities with the update command. Pro guards the cart and checkout against card skimmers, shows early warnings of all levels with steps in the dashboard, and raises an alert within one minute when a new PHP file, a new admin account or a login from an unknown network appears. It also lets you apply code changes with one click, mark reviewed findings as harmless with a reason, and gives you an overview of all admin and API access, plus a forensics package, a monthly report, alerts to Slack or Teams, and 12 months of updates and support.

Technical details and system requirements

Magento Open Source and Adobe Commerce 2.4.4 to 2.4.9, tested with 2.4.8-p5
PHP 8.1 to 8.5
Themes Hyvä and Luma, no frontend code
Composer package storetown-media/module-shop-guard (Packagist)
Source code github.com/storetown-media/stm-magento-2-shop-guard
Magento module Storetown_ShopGuard
Configuration System › Security › Shop Security Guard or Stores › Configuration › STM › STM Shop Security Guard
Command line bin/magento shopguard:scan, bin/magento shopguard:bots, bin/magento shopguard:integrity, bin/magento shopguard:rules, bin/magento shopguard:cardtests
Outbound connections hourly download of signed attack patterns and warnings from storetown-media.de (can be disabled); no data about your shop is sent. To check for exposed files, the shop requests its own address once a day.
License MIT, free, no license key

Installation

composer require storetown-media/module-shop-guard
bin/magento setup:upgrade

Then go to Stores › Configuration › STM › STM Shop Security Guard, check the client IP and enter a recipient address for alerts. Without Composer: extract the ZIP to app/code/Storetown/ShopGuard/ and run the same commands.

STM Shop Security Guard FAQ

Is STM Shop Security Guard really free?

Yes, under the MIT license, with no license key and no time limit. You can find the source code on GitHub.

Does Shop Security Guard slow down my shop?

No, not measurably. On our demo shop, the response time was 253 ms with the filter and 262 ms without it (median of 25 requests, October 2026). The scans run in the background via cron.

How quickly does Shop Security Guard protect against new attacks?

Within one hour of our release. New patterns arrive as a signed list from storetown-media.de, not as a module update. Only the file is downloaded; nothing is sent from your shop, and storetown-media.de only sees your server's IP address. New patterns often run in observation mode first and only count hits before they start blocking. To check whether the list is active, run bin/magento shopguard:rules or request ?shopguard-feed-test, which responds with status 403.

What do I need to do after an update or deployment?

After a deployment, Shop Security Guard reports the changed files. It recognizes package updates by their new version and flags them only as a warning. Review the list and accept the new state with bin/magento shopguard:integrity --accept. From then on, Shop Security Guard compares against this state.

Can Shop Security Guard block real customers by mistake?

Search engines, AI search services, price comparison sites and payment providers are exempt. IP addresses that admins have logged in from and your own allowlisted addresses are never blocked. Every automatic block is listed in the configuration with an expiry date and can be lifted. After installation, the card testing brake only observes; bin/magento shopguard:cardtests shows which addresses exceeded the limit. Only switch to rejecting once no real customers appear there.

Can I lock myself out of the admin?

Hardly. The login lockout never blocks addresses you have logged in from in the last 30 days or addresses listed under “Never block these IPs”. If it does hit you, for example from a new network, delete the entry under “Automatically blocked IPs” from a different network. Otherwise, the block expires on its own the day after tomorrow.

What do I do if Shop Security Guard finds a backdoor?

The email names the file and the next step. Don't delete anything right away: move the file into an archive outside the web root and use the access log to find out how it got onto the server. If needed, we can help with the cleanup.

Does Shop Security Guard work behind Varnish, Cloudflare or a proxy?

Yes. In the configuration, you choose which header provides the real client IP. Shop Security Guard never blocks proxy or server addresses, so that all visitors aren't accidentally blocked; the admin shows which IP the shop is currently detecting.

Need help with an attack?

If your shop is already affected or you need support with patching and hardening: Magento agency Storetown Media or directly via the contact form.

Developed by Jan-Hendrik Kummert, Storetown Media, Tornesch. Last updated: October 2026.

Send to friends/colleagues:
See all Pro featuresFrom decoy accounts to emergency mode: STM Shop Security Guard Pro builds on this module.
View Pro version

Supported Magento versions

STM Shop Security Guard runs on Magento Open Source (Community), Adobe Commerce (Enterprise) and Adobe Commerce Cloud from 2.4.4 to 2.4.9, including security patches – 71 versions in total.

  • Magento 2.4.9Base version2.4.9
  • Magento 2.4.85 patches2.4.82.4.8-p12.4.8-p22.4.8-p32.4.8-p42.4.8-p5
  • Magento 2.4.710 patches2.4.72.4.7-p12.4.7-p22.4.7-p32.4.7-p42.4.7-p52.4.7-p62.4.7-p72.4.7-p82.4.7-p92.4.7-p10
  • Magento 2.4.615 patches2.4.62.4.6-p12.4.6-p22.4.6-p32.4.6-p42.4.6-p52.4.6-p62.4.6-p72.4.6-p82.4.6-p92.4.6-p102.4.6-p112.4.6-p122.4.6-p132.4.6-p142.4.6-p15
  • Magento 2.4.517 patches2.4.52.4.5-p12.4.5-p22.4.5-p32.4.5-p42.4.5-p52.4.5-p62.4.5-p72.4.5-p82.4.5-p92.4.5-p102.4.5-p112.4.5-p122.4.5-p132.4.5-p142.4.5-p152.4.5-p162.4.5-p17
  • Magento 2.4.418 patches2.4.42.4.4-p12.4.4-p22.4.4-p32.4.4-p42.4.4-p52.4.4-p62.4.4-p72.4.4-p82.4.4-p92.4.4-p102.4.4-p112.4.4-p122.4.4-p132.4.4-p142.4.4-p152.4.4-p162.4.4-p172.4.4-p18

Versions according to Adobe's release overview, May 2026. We add new patches to the list once they are released.

Questions about purchase, license and support

What is STM Shop Security Guard and what is it used for?

STM Shop Security Guard is a professional digital product in the “Magento Extensions” category, developed and sold by Storetown Media from Hamburg. STM Shop Security Guard is the free security module for Magento 2. It intercepts attacks before Magento processes them, blocks attackers and bots automatically, and reports backdoors with clear instructions on what to do. The product is aimed at developers, agencies and shop owners looking for a reliable, professionally maintained solution.

Is STM Shop Security Guard free? Are there any hidden costs?

Yes, STM Shop Security Guard is completely free. There are no license fees, subscription costs or hidden charges. You can download the product freely, use it in your own projects and benefit from regular updates. The download is available immediately after you place your free order in the Storetown Media Shop.

How do I download and install STM Shop Security Guard?

You can download STM Shop Security Guard immediately after completing your purchase. You automatically receive a confirmation email with a direct download link. The file is also permanently available in your customer account under “My Downloads”. You'll find the installation guide in the “Installation” tab on this page. If you have questions about setup, our technical support team is happy to help – in German, directly from Hamburg.

What technical support and updates are included with STM Shop Security Guard?

Every purchase of STM Shop Security Guard includes 12 months of professional technical support in German as well as all product updates. Specifically, the purchase price includes the following: Free - Compatible with Magento 2.4.4 - 2.4.9, Hyvä and Luma; MIT license, no license key, source code on GitHub; No support for the free version - for customizations, please contact us; More insight with STM Shop Security Guard Pro. Our development team, with over 14 years of e-commerce experience, is available to you by email. After the first year, you can renew your support period at a 30 % discount. Regular security and compatibility updates keep STM Shop Security Guard reliable and up to date.

Is there a free demo or trial version of STM Shop Security Guard?

Yes, Storetown Media offers a free live demo of STM Shop Security Guard that you can try right away without registering. The frontend demo shows the full functionality from the perspective of your customers and visitors – including all UI elements, animations and responsive behavior on different devices. The backend demo gives you access to the admin panel, so you can explore all settings, configuration options and the dashboard in detail. You'll find the demo links on this page, directly below the product gallery.

Which versions and systems is STM Shop Security Guard compatible with?

STM Shop Security Guard supports the following environments: Free - Compatible with Magento 2.4.4 - 2.4.9, Hyvä and Luma. Our development team thoroughly tests every update for compatibility with the latest stable versions before release. If you have questions about compatibility with your specific server configuration or theme setup, we're happy to advise you in advance – just contact our support team before you buy.

Which payment methods does Storetown Media accept? Is payment secure?

In the Storetown Media shop, you can pay with PayPal, credit card, Apple Pay, Google Pay, Amazon Pay, Klarna, bank transfer in advance or on invoice, among other options. The payment methods available in your country are shown at checkout. All transactions are protected by SSL encryption. Sensitive payment data is not stored on our servers and is processed exclusively by PCI DSS-certified payment service providers.

Who is behind STM Shop Security Guard? Who is Storetown Media?

STM Shop Security Guard is developed and sold by Storetown Media, a specialized e-commerce service provider based in Hamburg (Tornesch). The company has more than 14 years of experience developing professional shop solutions based on Magento, Adobe Commerce and WooCommerce. All products are designed, programmed and maintained in-house by experienced, certified developers – no third-party software. You can find more information at storetown-media.de.

What other Magento extensions does Storetown Media offer?

STM Shop Security Guard is part of the “Magento Extensions” category in the Storetown Media Shop, which includes a total of 12 professional products. All products in this category are maintained by the same development team and are designed to work together. Explore our full portfolio of e-commerce solutions that make your online store more powerful, more secure and more profitable.

Can I use STM Shop Security Guard in multiple projects or stores?

The standard license for STM Shop Security Guard covers use in a single project or production environment. For use across multiple stores or client projects, we offer agency licenses and volume discounts. Contact our sales team for a custom quote. Development and staging environments are included free of charge with every license.