ContractSkim: A Blockchain-Based Magecart Skimmer Campaign and CPP Analysis

When payment card details are entered on an e-commerce site, the browser makes dozens of requests on the user’s behalf: to the payment infrastructure, to analytics, to font providers. If one of those requests goes to a smart contract on a blockchain test network (the Ethereum Sepolia testnet), you should assume something is wrong. A legitimate store rarely has a reason to talk to a blockchain test network, so this behavior is a strong warning signal on its own.

The page you see is a real store; the products, the cart and the checkout form all work. But the moment the form is filled in, the card data is read by a piece of JavaScript silently injected into the page (a web skimmer), and where that data should be sent is learned from a smart contract. The contract returns the attacker’s currently active collection address. Even if the domain is blocked, the address held in the contract is updated and the campaign stays alive.

This article examines a Magecart-style payment card fraud (web skimming) operation detected during a scanning campaign conducted between November 26 and November 30, 2026. The scan universe, consisting of 6,749 items, was compiled based on the results of an initial, comprehensive behavioral scan (covering 2,447 stores). Every candidate was examined passively its checkout flow rendered in a real browser, with no data entered into the form and no payment attempted and the 508 confirmed stores are the ones whose live eth_call behavior we observed directly. The operation has been named ContractSkim: a self-renewing web-skimmer campaign fed by a smart contract.

Key Findings

  • One large operation. Of the 508 skimmer-carrying stores we confirmed live within a universe of 6,749 indicators, 504 belong to a single campaign: ContractSkim.
  • Smart-contract dead-drop. Instead of embedding the exfiltration address in the page, the skimmer reads it from an Ethereum Sepolia testnet smart contract, which renders block lists ineffective.
  • Rotation-resistant. Loader domains (0xrpc[.]io, xzx1[.]com) and RPC providers change constantly; the only thing that stays fixed is the behavior.
  • Per-victim DGA. For each store, a dedicated .top collection domain is derived by an algorithm that strings together fantasy words.
  • A behavioral signature. “E-commerce store + checkout page + Ethereum testnet RPC call” is a strong behavioral indicator for the campaign; because every candidate is verified with a live eth_call, no false positives were observed in the confirmed set. The indicator is unaffected by domain and RPC rotation.
  • The long tail. Beyond ContractSkim, more than 11 scattered classic Magecart families using their own burner infrastructure were also detected.

What Is ContractSkim?

ContractSkim is classified as a web-skimming (Magecart-type) campaign targeting e-commerce checkout pages. What sets it apart from classic Magecart is the way its infrastructure is managed: the collection (exfiltration) address is stored in a blockchain smart contract and read from there on every call.

In a traditional web skimmer, the stolen data is sent to a fixed domain; once that domain is identified and blocked, the campaign is dead. ContractSkim removes this weakness: the collection address has been decoupled from the code and moved to a central, instantly updatable place a smart contract. By changing a single value in the contract, the operator can redirect the skimmer across thousands of stores to a new address.

That is where the name comes from: Contract (smart contract) + Skim (scraping card data). The campaign is an active, scaled-up instance of the technique security researchers call “skimming on the blockchain.”

Mechanism: A Hidden Address on Testnet

At the heart of ContractSkim is a simple but effective method: where the stolen data should be sent is read by the skimmer from an Ethereum Sepolia testnet smart contract.

The chain works like this: a loader script is injected into the compromised store’s page. Using the ethers.js library, the loader connects to the Sepolia network through an RPC provider and makes a read-only eth_call to a predetermined contract address. The contract returns the currently active collection (exfil) domain. Once that address is obtained, the card fields on the checkout page start being monitored, and when the form is submitted the stolen data is sent to that address.

The real strength of the design is this: the exfil address is no longer embedded in the code. When a collection domain is identified and blocked, the operator simply updates the value in the contract and all stores are redirected to a new address; no store needs to be touched again. Using the testnet is also a deliberate choice: operations can be carried out without spending real ETH. Reading the address through eth_call requires no fee, and updating the contract requires a gas fee paid only in test ETH, which has no monetary value. In addition, setup is easy, and testnet traffic which carries no “real money” is ignored by most security tooling..

The diagram below shows the flow from click to data theft.

ContractSkim kill-chain

Anatomy of the Loader JavaScript

The code in this section was captured live from ContractSkim victims (afcbites.com and abastmedica.es, November 2026). The loader is served to each store from a separate path, from a DGA .top domain:
https://ravenstonekeep[.]top/3N/afcbites/plugin.processor.module.js
Note: the path contains the victim’s name (/afcbites/). When we fetch the same name directly, the server returns 404; the module is only served to a live browser session. The script’s first job is to find the address it was served from; the variable name is __gwScriptBase (gw = gateway):
(function(){
    if(!window.__gwScriptBase){
        window.__gwScriptBase = (function(){
            var s = document.currentScript;
            if(s && s.src && s.src.indexOf('blob:') === -1){
                return s.src.substring(0, s.src.lastIndexOf('/') + 1);
            }
            // ... fallback: parse the URL from the error stack
        })();
    }
})();
The real trick is that the skimmer disguises its blockchain machinery as a legitimate analytics tool. In the package injected into abastmedica.es, the RPC connection is set up with names that imitate Google Tag Manager:
// the names "tagManager" and "gtmProvider" are chosen to
// resemble Google Tag Manager

const gtmProvider = new
    tagManager.providers.JsonRpcProvider(rpcEndpoints[i]);

await gtmProvider; // ... read the exfil address from the testnet contract ...
Two details here are the campaign’s signature. First, rpcEndpoints[i] iterates over a list: if one RPC provider is blocked, it moves to the next. Second, JsonRpcProvider is an object that should never appear on a checkout page; dressing it up as tagManager / gtmProvider is precisely meant to make it hard to tell apart from legitimate analytics. None of this requires defeating obfuscation. The behavior seen at the network layer a checkout page talking to an Ethereum testnet RPC stays the same no matter how heavily the script is obscured. Our detection engine catches exactly this behavior.

Exfiltration: Fantasy-Word Domains

In ContractSkim, the stolen cards are sent to a separate .top domain generated for each store. These domains are not chosen by hand; they are produced by an algorithm (a DGA, Domain Generation Algorithm) that concatenates two or three English words. Some of the detected examples: ashenravenfort[.]top,

Nightstalkerwatch[.]top,

frozennebularhy[.]top, 

voidravenstorm[.]top, 

ironphantomcore[.]top.

This fantasy-word pattern is the operator’s way of producing cheap, plentiful domains; for the defender it is a strong signature. A word like “ashenravenfort” has no legitimate use; an e-commerce checkout page talking to such a domain is, on its own, enough of an alarm.

The data flow itself is classic: the loader attaches event listeners to the card number, expiry date and CVV fields; the moment the user presses “Pay,” the field values are collected and sent to the DGA domain in an encoded POST request.

CPP Detection: Catching the Behavior

The Common Point of Purchase (CPP) is the merchant where the cards are actually stolen the shared point of compromise behind a cluster of fraudulent cards. Catching ContractSkim means targeting the behavior that does not change at that point, not the indicators that do. The campaign constantly changes its loader domains, its RPC providers and its exfil domains. The only thing that stays fixed is an e-commerce checkout page talking to an Ethereum testnet.

That is the distinguishing behavior: e-commerce store + checkout page + Ethereum Sepolia testnet RPC call. This combination is a strong behavioral indicator for the campaign; a legitimate store rarely has a reason to talk to a blockchain testnet (for example, a crypto-payment plugin left in test/staging mode). We therefore do not treat the signal as conclusive on its own: every candidate is verified in the third layer with a live eth_call, and ambiguous cases that exhibit the behavior but cannot be confirmed are kept in a separate “web3?” bucket. Thanks to this verification layer, the confirmed set is free of false positives, and that result is independent of domain and RPC rotation.

The detection pipeline has three layers. The first is passive correlation over existing scan databases: starting from a known indicator, we pivot to victim stores and from there to the shared loaded infrastructure, discovering new indicators. The second is applying the behavioral signature. The third is rendering each suspect store’s checkout flow in a real browser and observing the live eth_call for ourselves. The entire process is passive: no data is entered into the form and no payment is attempted.

The diagram below summarizes this detection pipeline.

Detection pipeline

Secondary Families: The Long Tail

ContractSkim is the single dominant operation, but it is not the only one. Alongside the scan of 6,749 indicators and additional discovery pivots, more than 11 classic Magecart families using their own separate infrastructure were detected. These families use no smart contract; the stolen data is sent directly to a “burner” (single-use) domain.

In each family, the victims cluster around a different collection infrastructure: allyouwant[.]online, jcloudcdn[.]com, siteverification[.]online, cloudservice[.]tw, magento-analytics[.]com, and so on. Each of these clusters is treated as a separate operation and is usually limited to a handful of victims.

These findings reveal the two layers of the modern web-skimming ecosystem: one large, technically advanced campaign (ContractSkim) and, around it, a fragmented, scattered long tail of classic Magecart.

Indicator List (IOC)

Indicator

Type

Note

0xrpc[.]io

Loader / RPC

Dual-use; a skimmer indicator only together with e-commerce + testnet + .top

xzx1[.]com

Loader

ContractSkim’s second loader

ashenravenfort[.]top

Exfil (DGA)

Fantasy-word collection domain

nightstalkerwatch[.]top

Exfil (DGA)

Same DGA family

voidravenstorm[.]top

Exfil (DGA)

Discovered during the full scan

rpc.sepolia.ethpandaops[.]io

Sepolia RPC

Dead-drop provider (dual-use)

allyouwant[.]online

Burner (secondary family)

Classic Magecart cluster

Behavioral rule (more durable than any single IOC): an Ethereum testnet RPC call made from the checkout page of an e-commerce store is a strong behavioral indicator of a skimmer; it is not conclusive evidence on its own and should be confirmed through further analysis.

How ThreatMon Helps

What catches ContractSkim is not a product feature but a way of working: payment-fraud intelligence. ThreatMon monitors the point where cards are stolen (the merchant skimmer, i.e. the CPP) directly and through behavior; it delivers its findings to the card-issuing institution before the card is abused.

The 508 victims and the ContractSkim campaign in this article were surfaced by exactly this payment-fraud intelligence work:

  • Reading the theft point from behavior. We tracked not the stores’ indicators but the behavior of checkout pages talking to a blockchain testnet; even as the loader and exfil domains changed, the signature stayed fixed.
  • Passive, first-party confirmation. Suspect checkout flows were rendered in a real browser and the live eth_call was observed directly; without entering any data into the form, checkout-only skimmers that static scanning misses were caught.
  • Self-feeding correlation. Every collection infrastructure became a new research seed; sibling stores sharing the same infrastructure and new indicators were mapped.
  • Early warning via CPP. When the confirmed theft points are matched against stolen cards, institutions can be warned before the card is used.

 

In short, ContractSkim is tracked not with a block list but with continuous intelligence work that recognizes the point where payment fraud is stolen by its behavior.

Defense and Conclusion

ContractSkim clearly demonstrates why domain-based defense falls short. A block list can only stop known indicators; and an indicator is aged out instantly by the operator changing a single value in the contract. Detection must therefore rest on the behavior that does not change, not on fixed indicators.

Recommendations for institutions:

  • Behavioral monitoring. Across the monitored store portfolio, watch whether checkout pages talk to a blockchain testnet RPC. This single signal holds regardless of loader and RPC rotation.
  • First-party scanning. Static home-page scanning misses skimmers that trigger only at checkout; the checkout flow must therefore be rendered in a real browser to capture the live eth_call behavior.
  • Correlation. Every detected collection infrastructure should be used as a new seed; sibling stores sharing the same infrastructure are then surfaced quickly.

 

ContractSkim is a live example of how attackers use the blockchain to manage their infrastructure centrally and instantly. The defensive answer must be just as resilient: catch the behavior, not the indicator.

Table of Contents
advanced divider

More posts

This image is about multiple Nginx vulnerabilities.
This image is about multiple Microsoft IIS vulnerabilities.
This image is about SMTP open mail relay vulnerability.
advanced divider

Share this article

Found it interesting? Don’t hesitate to share it to wow your friends or colleagues

advanced divider

Subscribe to our blog newsletter to follow the latest posts