CosmicSting is not one victim, which is what makes it worth a page. CVE-2024-34102 was published on 11 June 2024 and raised to critical severity on 8 July. Over the following months, security firm Sansec reported that seven distinct criminal groups used it to break into 4,275 Adobe Commerce and Magento stores.
Sansec put that at around 5% of the entire platform estate, and named stores including Ray-Ban, National Geographic, Cisco and Segway among those found carrying malware. None of those companies confirmed the findings publicly, so treat them as Sansec's reporting rather than as established fact.
The attack stole the store's secret encryption key. Applying the patch closed the hole that let the key be taken — but it did not change the key, and a key already in an attacker's hands still worked afterwards.
Adobe published guidance on rotating keys manually. Many merchants never did it. The result is a large number of businesses that did the responsible thing, applied a critical patch promptly, believed themselves fixed, and were injected with a skimmer regardless.
None of that is an argument against patching, and it should not be read as one — patch, always, and quickly. It is an argument that server-side vulnerability management is not the same discipline as client-side security. Once the key was gone, the compromise stopped being visible on the server at all. The only place it remained visible was the browser: a script on the checkout page that had not been there before, sending data somewhere new.
With a valid key the attackers minted API tokens and modified the checkout through CMS blocks — content managed inside the application, not files on disk.
That detail defeats a whole category of defence. File-integrity monitoring across the webroot compares files against what they should be, and every file was exactly as it should be. A code review finds nothing, because the malicious content was never in the code. One group tracked by Sansec, which they named Polyovki, infected more than 650 stores by embedding a script from a host they controlled — so on the page it looked like one more external dependency among many.
What all of it has in common is that it is plainly visible in the browser. A page that loads a script it has never loaded before, or sends checkout data to a host it has never used, is describable regardless of how the change was made or where it was stored. That is what Script Watch and Data Watch are watching.
The two requirements map onto this campaign almost line by line. 6.4.3 asks you to know and authorise every script on a payment page — an injected CMS block creates a script nobody authorised. 11.6.1 asks for a mechanism that detects unauthorised modification of the payment page as the customer's browser receives it — which is the only vantage point from which this attack was ever visible.
If you are working through those requirements, our PCI DSS Compliance page maps our features onto them, and the PCI DSS guide covers the requirements in full.
You don't need a mature Content Security Policy to benefit from our tooling. To use Script Watch or Data Watch, you can start auditing the JavaScript running on your pages, and the destinations receiving data from them, with a single line of code or config.
Once that is deployed we establish a baseline for your site, and then alert you to anything that changes. The most damaging feature of a Magecart attack is rarely its sophistication — it is how long it runs before anybody notices. Reach out to sales@report-uri.com if you would like a demo or a trial with no commitment.
One header. No code. Your script inventory starts populating from the first visitor.
30-day free trial · One header · No code · Cancel anytime
Script Watch will monitor all JavaScript dependencies across your entire site and immediately notify you of any changes. A new JavaScript dependency could be the start of a Magecart attack.
Because Script Watch leverages the browser native Content Security Policy, there is no code or agent to deploy and running in the browser means we analyse your site in real-time as your users are browsing. We don't have the same limitations as external scanning services such as authentication or pay walls, geo-sensitive content or an attacker potentially serving safe content to the crawler.
Data Watch will monitor all of the locations that your webpages are sending data to. If your website starts sending data to a new location, it could be the start of a Magecart attack.
With Script Watch and Data Watch combined, you can monitor for clear indicators that your site has been compromised. Attackers will always want to inject their hostile JavaScript, and they'll always want to exfiltrate their stolen data.
We often find that creating a CSP is the first difficult step that organisations face. Having a complete list of all resource dependencies across your entire site like images, scripts or styles, from both 1st-party and 3rd-party locations, is tough to achieve.
The CSP Wizard was created to solve this problem, and in seven days or less, it can give you a complete list of all resources used across your entire site.
With the list of all resources you use on your site, and our easy-to-use tool, creating a viable Content Security Policy is easier than ever with just a few clicks.
All Content Security Policies will need to be tweaked at some point. New resources may be added to the site or old resources removed, and the policy needs to be updated to reflect those changes and kept up to date.
You can import your existing policy into the CSP Builder and use our fully featured tool to make any changes that you require right there in the UI. When you're done, hit Generate, and the CSP Builder will provide you with your new, updated policy.
Script Watch and Data Watch will allow you to rapidly detect and respond to a Magecart attack and combined, that capability puts you ahead of the field. If you want to take it a step further, Content Security Policy can mitigate a Magecart attack and stop it from even happening.
Deploying an effective Content Security Policy can be difficult, but our CSP Reporting allows you to gather feedback and safely test a policy before deployment. Once deployed, an effective Content Security Policy will block a Magecart attack and stop the hostile JavaScript from even running.
We subscribe to various feeds of Threat Intelligence data, along with managing our own internally generated feeds, to keep apprised of the latest threats that exist online.
Using this Threat Intelligence Data, we can better analyse the sources of JavaScript on your website and detect malicious activity sooner.