A public RPC endpoint (Remote Procedure Call) serves as the gateway through which wallets and applications communicate with a blockchain network: querying chain data and submitting transactions. That convenience has a flip side. Most public RPCs are operated by third parties, and you are essentially trusting an unknown intermediary with all your outgoing traffic.
That is exactly why attackers target this infrastructure. By compromising a public RPC, an attacker can intercept, alter, or block your transactions, and the result is direct financial losses. Several high-profile incidents have already demonstrated how vulnerable the link between the user and the network can be.
Take two examples. The 2022 Ronin Network hack relied on compromising validator nodes, which play a role close to that of critical RPC infrastructure. The 2023 Multichain exploit leveraged vulnerabilities in cross-chain bridges, which often depend on RPC for inter-network communication. Both cases show that RPC security has a direct bearing on the security of the entire ecosystem.
MECHANICS
The attacker first gains control of a public RPC endpoint: either by breaking into an existing one or by running their own malicious node. That node positions itself as a man-in-the-middle between the user's wallet and the real network. When you submit a transaction, the compromised RPC intercepts it before it reaches the blockchain.
From there the attacker has a choice. They can silently drop the transaction, in which case it simply never confirms, or they can alter its parameters, for example replacing the recipient address or changing the amount in a token swap. What makes this especially insidious is that the process looks entirely normal to you: you sign before the manipulation happens, and your wallet shows exactly what you intended to do.
All that remains is to lure traffic to the malicious node. The most common approach is to run a seemingly legitimate, fast, and "reliable" public RPC service that attracts users. People looking for a faster connection connect to it themselves and, without knowing it, hand their transactions over to the manipulator.
RISK INDICATORS
You should grow suspicious when the behavior of an RPC endpoint or its provider diverges from what you would expect of an honest service. The following signs are red flags:
- Transaction confirmation times are unusually slow or erratic for no apparent reason.
- Transactions through this RPC frequently fail or get stuck in a pending state even though the network is healthy.
- The provider's performance or availability changes abruptly without any notice.
- The endpoint shows up in suspicious or unwanted network-connection requests.
- The provider offers no clear documentation about their infrastructure and security practices.
- The service is offered by an unknown organization that has not been audited.
PROTECTION
The basic principle is simple: connect to RPCs from trusted and vetted blockchain infrastructure providers. Many projects offer dedicated RPC services that undergo security audits and provide higher uptime guarantees. If the stakes are high, the best option is to run your own RPC node: it gives you maximum control and eliminates the intermediary category entirely.
At the same time, keep an eye on the transactions themselves. Monitoring tools can catch anomalies in parameters and confirmation times and alert you before losses occur. And one separate habit that saves people more often than anything else: always verify transaction details on your hardware wallet's screen before confirming, making sure the address and amount match your intention.
If you operate your own RPC infrastructure, apply standard hardening practices: rate limiting and IP whitelisting. Regularly audit connections and update the software to close known vulnerabilities. Finally, make sure your team understands the risks of public RPCs and establish clear rules for using them.
How to spot a malicious RPC in practice: imagine you are swapping 1 ETH for USDC through a DeFi app connected to a free "fast" RPC from a random list. In your wallet you see your address and expect roughly 1,500 USDC. Check three things on your hardware wallet's screen: the contract address you are interacting with, the recipient address for the tokens, and the amount. If the recipient shown on the device does not match your address, or if the amount is lower, that is a substitution: do not sign, and disconnect from the endpoint. A healthy RPC changes none of these fields and simply relays your transaction to the network reliably.
AFTER THE INCIDENT
If you suspect RPC compromise, act fast. Immediately disconnect all systems and applications from the affected endpoint, revoke all API keys and access credentials associated with the compromised service, and notify your security team and stakeholders to trigger the incident response protocol.
Next, report the incident to the network's security team or community channels. If there were financial losses, consider reporting to law enforcement agencies that specialize in cybercrime. Document everything you do: the timeline of events and any anomalies you noticed. This documentation will be useful both for the investigation and for recovery.
In the final step, bring in specialists. Blockchain security firms such as Chainalysis conduct forensic analysis and help trace asset movement. Explore recovery options through community support or legal channels as well, though recovering funds in such cases can be difficult. Most importantly, draw the lesson: strengthen your approach to RPC security and implement tighter monitoring.