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
- Russia Blames US Intelligence for iOS Zero-Click Attacks
- Cisco Acquiring Armorblox for Predictive and Generative AI Technology
- Moxa Patches MXsecurity Vulnerabilities That Could Be Exploited in OT Attacks
- Organizations Warned of Salesforce ‘Ghost Sites’ Exposing Sensitive Information
- Organizations Warned of Backdoor Feature in Hundreds of Gigabyte Motherboards
- Barracuda Zero-Day Exploited to Deliver Malware for Months Before Discovery
- Industrial Giant ABB Confirms Ransomware Attack, Data Theft
- Zyxel Firewalls Hacked by Mirai Botnet
Latest News
- Google Temporarily Offering $180,000 for Full Chain Chrome Exploit
- Russia Blames US Intelligence for iOS Zero-Click Attacks
- Toyota Discloses New Data Breach Involving Vehicle, Customer Information
- Cisco Acquiring Armorblox for Predictive and Generative AI Technology
- Moxa Patches MXsecurity Vulnerabilities That Could Be Exploited in OT Attacks
- Amazon Settles Ring Customer Spying Complaint
- Organizations Warned of Salesforce ‘Ghost Sites’ Exposing Sensitive Information
- Adobe Inviting Researchers to Private Bug Bounty Program
