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.
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.”
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
https://ravenstonekeep[.]top/3N/afcbites/plugin.processor.module.jsNote: 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.
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.
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
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 | 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.
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:
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.
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:
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.