Share
Network, Ecosystem & Community
The AI Science Behind Forta Firewall
April 9, 2025
•
Forta Firewall is the only system that blocks malicious transactions before they happen—but what makes it truly unique?
At its core is a proprietary AI model specifically designed for blockchain security. Unlike simple rule-based defenses, Forta’s AI has been trained on real-world attacks, continuously adapts to new threats, and operates in a private environment, making it nearly impossible for attackers to reverse-engineer. Its ability to generalize from past attacks while keeping its logic hidden is what makes Forta an unmatched security layer for Web3.

An AI That Learns from Every Transaction
Most AI models you hear about (like ChatGPT) are built for things like text or images, but Forta’s AI is designed specifically for blockchain security.
Here’s how it works:
- The model has been trained on real blockchain transactions from the past ~3 years, including all documented attacks as well as a selection of non-attacks like normal trades, swaps, and transfers, ensuring a dataset large and diverse enough for effective training.
- It uses supervised learning, meaning it learns from labeled data (e.g., “this is a good transaction”, “this is a hack”).
This means that as cybercriminals continuously develop new tactics, Forta’s AI stays ahead of the curve by learning, adapting, and generalizing to detect even attacks it hasn’t seen before—making it increasingly difficult for bad actors to succeed.
How Forta’s AI Gets Smarter Over Time
Most security tools follow static rules; they flag specific patterns but don’t adapt.
Forta’s AI is different because it:
- ✅ Constantly retrains itself with new data from real transactions.
- ✅ Detects and corrects false positives (so it doesn’t block legitimate users).
- ✅ Uses MLOps (Machine Learning Operations) to keep improving every single day.
Every time Forta’s AI makes a decision, it continuously improves, refining its accuracy and strengthening its capabilities
A Custom AI Model Built for Crypto Security
Forta didn’t just use an off-the-shelf AI model.
Instead, it built a custom neural network based on Graph Neural Networks (GNNs). While this variant of neural network was created for molecular drug design, and social network analysis, our team has adapted it to run on representations on transactions. This enables analyzing transactions as individual datapoints, being able to identify attacks without the need for external data, thus accelerating the inference process.
Why is this important?
Other ML approaches are limited to looking at summaries of the transactions. While this has a lot of predictive power, they may miss nuances happening inside the transaction. Forta's AI model analyzes everything happening inside the transaction, without any loss of information, and is able to find small patterns present in attacks
Some quick facts about how the model is trained:
- 🖥️ Trained on GPUs.
- ⚡ Processes transactions with ultra-low latency, ensuring real-time threat prevention.
- 🔄 Constantly retrained to stay ahead of attackers and to not stop legitimate transactions
This means Forta’s AI isn’t just reacting to past attacks; it’s evolving in real time.
AISec for a Safer Crypto Ecosystem
Blockchain attacks are getting more advanced, but so is AI.
Forta Firewall represents the next evolution of crypto security; one where malicious transactions are stopped before they happen, not just detected after the fact.
And the best part? Forta’s AI keeps learning, improving, and adapting; so crypto security gets stronger every day.
Forta Firewall is live, protecting Rollups from real threats.
If you want your rollup or protocol to be protected by Forta Firewall, please contact the Foundation here.
Subscribe to Forta’s News
Stay updated on the latest Forta news and announcements.