July 13, 2017 By Douglas Bonderud 2 min read

In October 2016, multiple security firms discovered a new strain of e-commerce malware: Magecart. So named because it goes after large-scale platforms including Magento commerce, Powerfront CMS and OpenCart, the attack relied on malicious script injected into sites using a known compromise.

Almost a year later, Magecart remains a serious problem for companies that don’t regularly update their e-commerce software or track security alerts. According to Help Net Security, the malware is now getting physical by reshipping fraudulently bought goods to avoid suspicion and increase total profits.

Jumpin’ Java

Like many e-commerce exploits, Magecart starts with JavaScript. Once injected, new scripts let attackers hook into web forms and record all data entered by users. In addition, cybercriminals are able to insert extra fields into these web forms and gather additional data, which lets them authenticate user details and quickly monetize information.

As noted by the Enterprise Times, this isn’t messy, quick-hitter malware. Attackers use secure HTTPS connections to exfiltrate data and then host it on remote sites, which also encrypt via HTTPS. Since the primary target of Magecart is smaller businesses, this method provides the best chance of success: Most small or midsized businesses can’t afford the staff and technology to effectively crack HTTPS-protected transmissions.

Researchers also found that Magecart developers have been hard at work testing their malware, increasing its scope, developing new features, obfuscating attack methods and attempting to hide their actions behind commonplace technologies. Put simply, the fraudsters are committed to full-on e-commerce fraud.

Monetizing Malicious Script via Mules

If the malicious script stopped there — securely exfiltrating consumer credit data from small e-commerce sites that weren’t properly updated — it would be enough to keep the malware-makers in business through the foreseeable future. But according to Information Age, there’s another layer to this larcenous effort: The server behind the IP address currently used for Magecart-script injection also links to a reshipping company falsely billed as a freight and logistics provider. The fake site advertises on Russian job-seeker pages for U.S.-based agents who are eventually shipped physical goods. The agents then reship them to addresses in Eastern Europe.

It’s a good scam, since physical goods such as electronics can travel with relative ease between countries and continents, while high-value cash transfers or large-scale credit purchases raise red flags online. By leveraging stolen credit data to purchase innocuous physical goods, recruiting Americans as shipping mules and then selling off high-priced items for a profit, the Magecart-makers have effectively compromised the entire supply chain.

With chip-and-PIN now making headway in the U.S., malicious actors are turning to card-not-present (CNP) fraud online, prompting the rise of Java-based keyloggers to obtain credit data and continually compromise users. The addition of physical goods fraud and reshipping puts the onus on companies using e-commerce sites: Apply the latest updates and watch security warnings to prevent malicious actors crossing the digital/physical divide.

More from

SoaPy: Stealthy enumeration of Active Directory environments through ADWS

10 min read - Introduction Over time, both targeted and large-scale enumeration of Active Directory (AD) environments have become increasingly detected due to modern defensive solutions. During our internship at X-Force Red this past summer, we noticed FalconForce’s SOAPHound was becoming popular for enumerating Active Directory environments. This tool brought a new perspective to Active Directory enumeration by performing collection via Active Directory Web Services (ADWS) instead of directly through Lightweight Directory Access Protocol (LDAP) as other AD enumeration tools had in the past.…

Smoltalk: RCE in open source agents

26 min read - Big shoutout to Hugging Face and the smolagents team for their cooperation and quick turnaround for a fix! Introduction Recently, I have been working on a side project to automate some pentest reconnaissance with AI agents. Just after I started this project, Hugging Face announced the release of smolagents, a lightweight framework for building AI agents that implements the methodology described in the ReAct paper, emphasizing reasoning through iterative decision-making. Interestingly, smolagents enables agents to reason and act by generating…

4 ways to bring cybersecurity into your community

4 min read - It’s easy to focus on technology when talking about cybersecurity. However, the best prevention measures rely on the education of those who use technology. Organizations training their employees is the first step. But the industry needs to expand the concept of a culture of cybersecurity and take it from where it currently stands as an organizational responsibility to a global perspective.When every person who uses technology — for work, personal use and school — views cybersecurity as their responsibility, it…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today