Off-chain RPC endpoints (RPC, Remote Procedure Call: the network address through which an application communicates with a blockchain node) act as the gateway between your wallet and the network. Every time an application submits a transaction or queries a balance, it does so through an RPC endpoint. This is exactly why attackers go after this infrastructure: by taking it over, they gain the ability to intercept, substitute, or block your transactions, resulting in direct financial losses and service disruptions.
The severity of the threat is clear from high-profile incidents. The Ronin Network hack in 2022 happened because the bridge's validator nodes, which relied on RPC infrastructure, were compromised. The Multichain exploit in 2023 showed the same thing from a different angle: vulnerabilities in cross-chain bridges, often managed through RPC services, gave attackers an entry point.
To reach an RPC node, attackers typically go through social engineering, phishing, or network vulnerabilities. Once access is gained, they start monitoring the pool of pending transactions (the mempool), injecting their own malicious transactions into it, or censoring legitimate ones. This undermines both the integrity and the availability of blockchain services.
MECHANICS
First, the attacker identifies a vulnerable endpoint. Most often these are RPC nodes with weak authentication or ones exposed directly to the public internet, and ordinary network scanning tools are enough to find them. Once a target is identified, the attacker attempts to get in: either by exploiting a known vulnerability in the RPC server software, or by stealing credentials through phishing.
Then the dangerous part begins. By intercepting a user's transaction before it has been broadcast to the network, the attacker can rewrite its details: substitute the recipient address or the amount to redirect funds to their own wallet. If a direct theft is not possible, they simply drop or delay transactions, disrupting the service or opening a window for other exploits, such as MEV (Maximal Extractable Value, extracting value from the order of transactions).
There is also a more subtle vector. The attacker poisons the RPC cache or substitutes the data the endpoint returns to the application. The user sees a false blockchain state and, trusting it, interacts with a malicious smart contract. This is especially painful for applications that make important decisions relying on RPC data as a source of truth.
To make this concrete, here is a typical address-substitution attack broken down step by step:
- Reconnaissance: a scanner finds the service's RPC endpoint, exposed to the internet with no strong authentication.
- Intrusion: the attacker exploits a server vulnerability or uses credentials harvested through phishing.
- Interception: the user sends a transfer to address
0xABC..., but the transaction lands on the compromised node before being broadcast to the network. - Substitution: the recipient field
0xABC...is quietly replaced with0xATTACKER...; the amount stays the same so as not to raise suspicion. - Theft: the modified transaction goes out to the network, the funds reach the attacker, and the user believes they paid the intended address.
How to tell a legitimate endpoint from a compromised one: a genuine RPC returns the same data as an independent source (another provider or your own node), and the address and amount on your hardware wallet screen match what you entered in the application. If the application shows one address and the hardware wallet shows a different one on the confirmation screen, that is substitution: trust the device screen, not the interface.
RED FLAGS
Several signs point to a possible compromise of off-chain RPC infrastructure. It is alarming when transactions from your wallet or application start confirming with unusual delays or fail outright, and when unexpected transfer details appear on the hardware wallet screen at the moment of confirmation. Be suspicious if an application shows inconsistent or outdated blockchain data, or if you suddenly cannot connect to the network through your usual RPC provider.
A separate category of signals relates not to technical behavior but to attempts to extract access. These include suspicious emails or messages asking you to provide RPC credentials or node access, and alerts from security monitoring services about unusual RPC node activity.
PROTECTION
Start with access control. Every RPC endpoint should be protected by strong authentication and network segmentation, with strong unique passwords and multi-factor authentication enabled everywhere it is available. Regular RPC server software updates close known vulnerabilities and reduce the attack surface.
The source of RPC data also matters. For critical operations, rely on dedicated secure services from reputable providers with security guarantees and monitoring, and avoid public, unauthenticated endpoints. Those who need full control should consider running their own private RPC nodes behind a secured firewall.
Finally, verify transactions before they become irreversible. Transaction simulation and verification tools show exactly what a transaction and a smart contract interaction will do, before the user gives final approval, and thereby neutralize the risk from substituted RPC calls. Supplement this with regular security audits of the RPC infrastructure itself and the applications connected to it.
AFTERMATH
If an RPC incident has already occurred, act quickly. Immediately revoke all compromised credentials and isolate the affected RPC nodes from the network, then notify your RPC provider and internal security teams to activate incident response protocols.
At the same time, report the incident to specialist blockchain security firms such as Chainalysis or PeckShield, and consider filing a report with law enforcement. Preserve all logs and evidence: they will be needed for forensic analysis and for any potential fund recovery.