Researchers have been monitoring a campaign in which cybercriminals compromised many ecommerce websites in an effort to steal payment card and other sensitive information provided by their customers.
The campaign, dubbed “Magecart” by cloud-based security solutions provider RiskIQ, dates back to at least March 2016 and is still active today.
Some of the attacks aimed at Magento sites were detailed in June by Sucuri, but RiskIQ determined that the attackers have been targeting other platforms as well, including Powerfront CMS and OpenCart. As for the targeted payment processing services, the list includes Braintree and VeriSign.
RiskIQ has identified more than 100 online shops from around the world hacked as part of the Magecart campaign, including ones belonging to well-known book publishers, fashion companies, and sporting equipment manufacturers. The cybercrooks even attacked the gift shop of a UK-based cancer research organization.
JavaScript code injected by the hackers into these websites captures information entered by users into purchase forms by acting as a man-in-the-middle (MitM) between the victim and the checkout page. In some cases, the malware adds bogus form fields to the page in an effort to trick victims into handing over even more information. The harvested data is exfiltrated over HTTPS to a server controlled by the attacker.
By loading the keylogger from an external source instead of injecting it directly into the compromised website, attackers can easily update the malware without the need to re-infect the site.
According to RiskIQ, the campaign peaked in June, when the cybercriminals started using an Eastern European bulletproof hosting company to store the domains that serve the malware. In the most recent attacks, experts noticed additional obfuscated script injections.
RiskIQ’s report on the Magecart campaign includes the domains used by the attacker to serve the formgrabber code, the attacker’s IP addresses, URLs injected into websites, affected sites, and advice on how merchants and administrators can prevent such incidents.
Related: Attackers Disguise Malware as Magento Patch
Related: Thousands of Magento Sites Abused for Malware Distribution
Related: Magento Flaw Exploited in the Wild Within 24 Hours After Disclosure

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- UK Car Retailer Arnold Clark Hit by Ransomware
- EV Charging Management System Vulnerabilities Allow Disruption, Energy Theft
- Unpatched Econolite Traffic Controller Vulnerabilities Allow Remote Hacking
- Google Fi Data Breach Reportedly Led to SIM Swapping
- Microsoft’s Verified Publisher Status Abused in Email Theft Campaign
- British Retailer JD Sports Discloses Data Breach Affecting 10 Million Customers
- Meta Awards $27,000 Bounty for 2FA Bypass Vulnerability
- Industry Reactions to Hive Ransomware Takedown: Feedback Friday
Latest News
- Google Shells Out $600,000 for OSS-Fuzz Project Integrations
- F5 BIG-IP Vulnerability Can Lead to DoS, Code Execution
- Flaw in Cisco Industrial Appliances Allows Malicious Code to Persist Across Reboots
- UK Car Retailer Arnold Clark Hit by Ransomware
- Dealing With the Carcinization of Security
- HeadCrab Botnet Ensnares 1,200 Redis Servers for Cryptomining
- Cyber Insights 2023 | Supply Chain Security
- Cyber Insights 2023 | Regulations
