Key takeaways
- Forta Network operates as a decentralized security monitoring system using community-run bots to detect suspicious and malicious activity across DeFi protocols in real-time.
- DeFi exploits occur frequently due to unproven protocols holding customer funds, insecure web2 components, and lack of real-time monitoring beyond initial audits and bug bounties.
- Forta monitors seven major EVM chains including Ethereum, Binance Chain, Polygon, Arbitrum, Optimism, and Fantom to provide actionable threat intelligence to protocols and users.
- Most DeFi projects historically relied only on pre-launch audits and bug bounties, neglecting real-time monitoring and post-detection response protocols as critical security components.
- The industry needs better frameworks for responding to detected threats beyond initial detection, as few protocols currently have comprehensive incident response plans in place.
A public security camera for Web3
Ashton Addison: At a high level, what is Forta Network?▶ 00:45
Andrew Beal: Web3 security is one of the bigger challenges and opportunities in the space right now. Forta is basically a giant public security camera and alarm system for Web3, for DeFi and for NFTs, which are the two primary asset classes right now.
Ashton: What do you mean by a security camera and alarm system for Web3?▶ 01:32
Andrew: Everything in these ecosystems happens on chain. The protocols, the assets and the trades are all on chain. That's different from centralized exchange operators like Coinbase and FTX, where most of the trading happens off chain. The Forta Network collectively watches all of that, looking for suspicious, malicious and anomalous activity and emitting alerts about it. The unique thing is that the Forta Foundation team, which I work for, doesn't dictate what is being watched. Protocol teams, individual developers and security teams run bots, which you can think of as little virtual security cameras running on the network. Protocol teams publish bots that watch their own contracts and transaction activity. Other people publish bots that monitor activity at other protocols they're interested in. Collectively, that creates a giant shared security camera and alarm system that everybody in the ecosystem can benefit from.
Threat detection is getting better, but threat prevention is where the industry needs to make a lot of investment.
Why Web3 security falls short
Ashton: What is the mission behind Forta, and why is it needed?▶ 03:28
Andrew: The mission is to protect Web3 and make it a safe place for both retail and institutional participants. It was born out of circumstances we're unfortunately still in the middle of: very frequent and very large exploits of DeFi protocols. There are several reasons for that. First, a lot of protocols are fairly unproven and untested, yet they're responsible for holding a lot of customer funds, even after going through an audit. Second, all of these Web3-native projects have Web2 components. They have front ends, applications and APIs, and they often use Amazon Web Services, Cloudflare and other traditional web services. They have access controls and sometimes private key management requirements. Those are all attack vectors for a hacker, and a lot of the hacks in Web3 happen because these Web2 components aren't secured properly. Third, certainly a year ago, most DeFi projects' security plan was to get one or more audits before launch, then put a bug bounty in place once the protocol was live. That was often it. Two other big pieces of the security stack were being ignored: real-time monitoring, and reacting quickly once something is detected. Both are very immature. Too often, a team finds out about a threat because someone in the community reports it on Twitter or Telegram.
Ashton: What value are users getting from the Forta Network?▶ 07:58
Andrew: The network collectively watches everything on chain. Today we monitor the seven largest EVM chains, including Ethereum, Polygon, Optimism and Fantom. We watch in real time for threats, anomalies and suspicious activity, then alert those teams and communities so they can do something about it. So the value is real-time intelligence for a protocol team, a hedge fund, an exchange, or anyone with contracts on chain or exposure to those contracts or assets. They can then take action based on it. That action can be defensive, or it can be offensive, as you mentioned. But our immediate goal, and what we're really focused on, is the security side.
Spotting exploits as they happen
Ashton: October was a record month for DeFi hacks, with almost $800 million lost. Did Forta help identify any of them?▶ 09:06
Andrew: I won't go into any of the hacks specifically, but yes, aspects of certain exploits were detected by Forta. We have bots that are protocol-specific, watching Maker DAO, Lido, Compound, Aave and others. We also have bots looking for generic threat activity, based on patterns we've seen in previous exploits. For example, a lot of exploits start with a withdrawal out of Tornado Cash, because the hacker has obfuscated the source of the funds they'll use to pay for gas fees and other things. That's the first red flag. The next step is often to deploy a new smart contract on chain with those funds, which becomes the attacker contract the exploit is executed from. When we see those two activities in that order, that's the first clue that an attack is being set up. We're pretty good now at identifying the attacker. The real value is identifying who the victim is or is going to be, and our community is working on that. But for those alerts to help, the team being exploited needs to be receiving them, and they need to be able to respond in seconds. Most teams can't. They don't have someone watching for alerts 24/7, and often their only mechanism is to pause the protocol. Initiating that pause usually requires a multi-sig: you have to organize everyone, get them up to speed and have them all sign transactions. That's not fast enough to prevent an exploit. So threat detection is getting better, but threat prevention is where the industry needs to make a lot of investment. A bank won't hand you a million dollars in cash for a check and let you walk out. It holds back some of the money until the check clears. DeFi protocols don't do that today. As long as your transaction is technically valid, it will be processed, and risk isn't taken into account. Screening for risky transactions, whether at the L1 level when blocks are built or at the protocol level, is worth spending a lot more time on.
Fractional reserves are the death knell for any exchange.
FTX and the limits of on-chain monitoring
Ashton: With FTX reportedly insolvent, could this kind of technology have made centralized exchanges safer?▶ 15:55
Andrew: A lot of the issues we're dealing with this week, in response to FTX and Alameda, are the result of poor risk management inside those companies. They didn't follow what I consider a day-one rule: always maintain a one-to-one reserve with your customer deposits. Fractional reserves are the death knell for any exchange, and exchanges in crypto history have imploded as a result. I would have thought we were past that, but clearly not. There also wasn't much sophistication around financial reporting and audit. I just saw a tweet from SBF saying he was very unaware of the state of their books and liquidity. For a company that size, that shows a complete breakdown in internal financial reporting. Forta wouldn't have been able to address those internal processes and controls. Where Forta could potentially have helped is if there were on-chain signals about how funds or trading activity were moving between those two entities. But someone would have had to think of that, build bots to monitor for those specific things, and make the alerts public.
This interview has been edited for length and clarity. Recorded November 2022.
