I have been interested in leveraging the power of AI in conjunction with blockchain technology, as this may be an overlooked area of technology with the rise of AI. After researching to discover significant gaps/issues within the Blockchain, I landed on the idea of enhancing smart contract security systems in a more accessible way, as most current smart contract auditing solutions are costly, static, and seemingly behind in this new age of AI. Understanding that proper contract security is crucial to the operations and safety of the Blockchain sparked the interest in developing a multi-agent AI-powered security platform (using Google's ADK and A2A protocol).

This multi-agent security system continuously monitors and audits smart contracts using open-source tools, predictive analysis, and AI-driven reparations. Built with Google’s Agent Development Kit (ADK) and the A2A protocol, it runs a network of autonomous agents that divide tasks: monitoring contracts in real time, detecting vulnerabilities, simulating economic attacks, and suggesting fixes. Through a simple web interface demo, users are meant to upload contracts and instantly see security insights, making blockchain protection automated, collaborative, and cost-effective.

This Smart Contract Security Agent System is a Node.js app with an Express.js backend and a simple web interface, powered by five collaborative agents—Monitor, Audit, DevOps, Remediation, and Predictive—that communicate through the A2A protocol. Together, they provide continuous monitoring, vulnerability detection, predictive risk analysis, and automated fixes. The platform features real-time dashboards with Chart.js visualizations, pattern-based code inspection, and secure contract generation using OpenZeppelin libraries like ReentrancyGuard, AccessControl, and Pausable.

I ran into module system conflicts (ESM vs CommonJS), API mismatches causing 404s, and unreliable vulnerability detection which required much debugging. Building a responsive UI with smooth frontend-backend data flow, while syncing five agents via A2A for real-time updates, required multiple iterations and lots of time.

I’m proud that this demo is fully functioning and effectively demonstrates the core idea. While not yet production-grade and error-proof, it establishes a strong foundation for a critical security service. Despite some remaining bugs, the successful coordination of the multi-agent system, especially at an early stage, marks a significant step toward building a scalable and impactful solution.

Throughout this process, I learned more than ever before in my experience, how to not only leverage AI tools to bring an idea to life, but also to learn from them and expand my skillset. Being unfamiliar with actually building multi-agent systems, this project gave me great exposure and insight into how to build them and the inner workings of such processes.

As this project was built within strict time constraints, there are many features that the demo does not showcase in their entire functionality and service. I would love to scale this project into a full-fledged software that accurately assesses contract vulnerabilities and consistently performs better in its remediations (currently there are inconsistencies). I hope to implement stronger and more effective APIs from security firms, as this project is free and open-source. The UI is something that will be dramatically changed as I continue to develop this project.

Share this project:

Updates