Old Magecart web domains resurrected for fraudulent ad schemes

Card skimming is the modus operandi of Magecart but many of the new campaigns focus on malvertising instead.

Think smaller DDoS attacks aren't a real threat? Think again Distributed Denial of Service attacks are getting smaller -- but they're still getting more dangerous.

Domains once used in card-skimming attacks launched by threat actors under the Magecart umbrella are being repurposed for new ad fraud campaigns, researchers say. 

Magecart, once a term attributed to a single threat group, now encompasses multiple attackers using the same kinds of tactics to compromise online merchants and services which use payment portals. 

British Airways, Newegg, MyPillow, Ticketmaster, and Feedify are only some of the brand names now connected to successful, JavaScript-based card skimming campaigns. 

Countless US campus stores have also fallen victim to Magecart attacks, and in recent months, Magecart attackers have also used "spray and pray" tactics to compromise thousands of websites by focusing on vulnerable S3 buckets

E-commerce-based card-skimming attacks leverage website vulnerabilities and JavaScript code to harvest payment card details from customers. In Magecart's case, skimmers are present on a website for an average of two months before detection. 

As Magecart attacks are detected, the domains facilitating the transfer of stolen data and the domains used as repositories for malicious code are reported, sinkholed, and seized. 

See also: Ubisoft to send out cease & desist requests to DDoS-for-hire services

However, according to RiskIQ, these malicious domains are eventually released back into the pool of available domains -- and many are being snapped up for new attack varieties by fraudsters. 

On Thursday, cybersecurity researchers said that when the Magecart domains appear back online, "they retain their call-outs to malicious domains placed on breached websites by attackers, which means they also retain their value to threat actors."

In other words, domains previously connected to campaigns can be re-purchased to resurrect old attacks or for use in new schemes -- such as the generation of income through malvertising and ad fraud. 

Malvertising is the compromise of ad networks and space on legitimate domains to deploy malware or redirect victims to malicious websites. The term can also be used to describe fraudulent ways to make money from ad networks, such as the infection of systems to force users to watch ads or to unwittingly provide traffic to advert pages, thereby generating illicit income for fraudsters. 

RiskIQ says that some old Magecart domains are being used for these purposes. 

In one case tracked by the team, in 2017, a Magecart threat actor registered a domain to serve malicious JavaScript to infected websites. The domain was sinkholed in 2018, and once expired by the registrar, four weeks later a "shady" advertiser purchased the domain. 

CNET: Keep Firefox from leaking your data across the nternet

Once in the fraudster's control, the exact call once used to grab skimmer code was now set to work for use in monetization. Instead of reloading the path with information-stealing malicious code, the new owners injected an advertisement page instead. 

"The new owners of the domain are also serving that JavaScript file path, which they wouldn't be doing unless they knew what its purpose was and how they could use it for their own monetization," RiskIQ says. 

Counters along these paths have also been spotted, which suggests the owners of the old Magecart domain have done this more than once and want to measure the size of their fraudulent ad audience. 

TechRepublic: 1Password releases security tool designed for businesses

The so-called advertising secondary market for old Magecart domains might not be facilitating the fresh deployment of malware at present to revitalize old card-skimming campaigns, but the use of previous Magecart domains for ad space due to the traffic coming back to them is still fraudulent. 

"While ads themselves aren't malicious, they are exploiting the vulnerabilities in websites while the site owners don't benefit," the researchers say. "Moreover, in the future, threat actors may also engage in other schemes and threat activity far more malicious than advertising."

RiskIQ says that it is not possible to keep a website "clean forever," but with Magecart attacks becoming such a prevalent threat over the past few years, "dutiful vigilance and maintenance" is the only way to prevent follow-up schemes prompted by the secondary market for old malicious domains. 

Previous and related coverage


Have a tip? Get in touch securely via WhatsApp | Signal at +447713 025 499, or over at Keybase: charlie0