BAg-IDS: A Blockchain-Enabled Agentic AI Architecture for Trustworthy Intrusion Detection
BAg-IDS is a distributed, blockchain-enabled architecture that leverages autonomous agents and a calibrated ensemble to co-sign intrusion detection verdicts on a Hyperledger Fabric ledger, achieving near-perfect accuracy (99.98%) and trustworthy certification while incurring a structural consensus latency of approximately 2 seconds.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the digital world, security teams rely on automated systems to spot intruders trying to break into computer networks. These systems, known as intrusion detectors, have become incredibly skilled at spotting trouble, often using advanced software that learns from past attacks to recognize new ones. However, a significant problem remains: when these systems spot a threat, they issue a verdict that operators must simply trust. There is no independent witness to confirm the decision, and the digital record of what happened can be altered or deleted by a clever attacker. If the software makes a mistake, or if the computer running it is compromised, the result can be a harmful action taken against a harmless user, or a real attack going unnoticed. The core challenge is building a system that is not only accurate but also trustworthy, where the decision itself is verified by multiple independent parties before any action is taken, and where the record of that decision cannot be tampered with.
A team of researchers has built a new system called BAg-IDS to solve this problem. Instead of relying on a single computer to make the final call, they created a network of autonomous software agents that work together to detect, double-check, and certify every alert. Imagine a security guard who, before locking a door, must get a second opinion from two other independent guards, and then have their agreement written down in a permanent, unchangeable ledger that no one can erase. This is the essence of the new architecture. The system uses a special type of digital ledger, similar to a blockchain, to record every step of the decision-making process. This ensures that if a decision is made to block an attacker, it has been verified by a group of independent agents, and the proof of that agreement is stored in a way that makes it impossible to fake or change later.
The system is designed with a clever division of labor to keep it fast. Most of the time, it runs on a "reflex" path, where it scans network traffic in milliseconds using a team of three different detection models. These models work together to make a single, more reliable decision than any one of them could make alone. If the system is unsure about a piece of traffic, it pauses and asks for a second opinion, rather than guessing. Only when the system is confident that an attack is happening does it move to a slower, more careful stage. In this stage, the alert is sent to a group of independent "notary" agents. Each notary checks the alert on its own and casts a digital vote. The alert is only approved if a majority of the notaries agree. This entire voting process is recorded on the blockchain, creating a permanent, tamper-proof history of who agreed and when.
The researchers tested this system on real-world data sets containing millions of network flows. They found that the system was highly accurate. On one standard test set, the system correctly identified attacks 96.6% of the time across all decisions. More importantly, for the specific alerts that were certified by the group of notaries, the accuracy rose to 99.7%, with a false alarm rate of only 0.04%. This means that when the system says "block this," it is almost certainly right. The system also proved to be resilient against attacks designed to fool it. When the researchers simulated a scenario where one of the detection models was corrupted and started making mistakes, the system automatically reduced the influence of that faulty model. The overall accuracy dropped by only a tiny fraction, showing that the team-based approach protects the system even when one member is compromised.
Another key finding was how the system handles the time it takes to reach a decision. Because the blockchain voting process takes a few seconds, the researchers made sure this step only happens for the alerts that truly matter. The initial scanning happens instantly, but the final, certified decision takes about two seconds per vote. This delay is a structural part of the design, required to ensure that the agreement is genuine and cannot be rushed by a single bad actor. The system handles this by only applying this careful, slow process to the small fraction of traffic that triggers an alarm, while the rest of the traffic flows through at full speed. This balance allows the system to be both fast enough for real-time use and secure enough to be trusted.
The system also includes a human element. A security operator can be brought in to review the most serious alerts before they are acted upon. Crucially, even the human's actions are recorded on the blockchain. If an operator decides to approve a block or change a setting, that decision is signed and stored permanently. This creates a complete audit trail that shows not just what the computer decided, but also what the human decided, making the entire process transparent and accountable. The researchers demonstrated that this full stack of technology—from the fast initial detection to the slow, verified consensus and the human oversight—can run on standard computer hardware, proving that such a secure system is practical for real-world use.
In their tests, the system was also evaluated on a newer, independently generated data set from 2025, which had different characteristics than the older data it was originally trained on. The system adapted well, maintaining an accuracy of 99.98% on the certified alerts. This suggests that the approach is robust and can work with different types of network traffic without needing to be completely rebuilt. The researchers concluded that by combining machine learning with a decentralized voting system and human oversight, it is possible to create an intrusion detection system that is accurate, resistant to corruption, and fully auditable. This work moves beyond simply making detectors smarter; it builds a framework where the trustworthiness of the decision is as important as the decision itself.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.