← Back to home

Aegis

Multi-agent AI pipeline that audits & fixes smart contracts. The proof is on Hedera.

Problem Statement

-> What is Aegis? Aegis is a next-generation security platform for Web3, designed to make smart contract development safer, more transparent, and financially accountable. At its heart, Aegis is a powerful, AI-driven audit and remediation service that automates the entire security lifecycle of a smart contract. It finds vulnerabilities, proves their exploitability, and even provides developers with AI-generated solutions to fix them.What makes Aegis truly unique is its integrated, on-chain prediction market. This feature transforms the abstract concept of "security risk" into a tangible, tradable financial instrument. For every contract submitted for analysis, Aegis creates a market where the community can bet on the outcome: "Is this contract vulnerable or secure?" This creates a powerful, financially-incentivized ecosystem around the core audit service.-> What is the App Intended to Do? The primary purpose of Aegis is to provide developers with a comprehensive, fast and actionable security analysis, while simultaneously leveraging the power of the community to price and hedge against risk.It is intended to:Automate and Accelerate Security Audits: To drastically reduce the time and cost associated with traditional security audits by using a sophisticated, multi-agent AI pipeline that runs in minutes, not weeks.Provide Actionable Solutions: To go beyond just finding problems. By using generative AI, Aegis provides developers with ready-to-implement code fixes, empowering them to secure their contracts immediately.Create a Transparent & Immutable Audit Trail: To use the Hedera Consensus Service (HCS) to create a permanent, on-chain record of every step of the analysis. This "proof of audit" ensures complete transparency and accountability.Harness Community Intelligence: To use the integrated prediction market to create a real-time, decentralized "risk barometer" for smart contracts, rewarding security researchers and knowledgeable users for their expertise.-> What Are Its Advantages? Aegis creates a symbiotic ecosystem where the goals of developers, security researchers and the wider community are aligned.For Developers & Project Teams:A Complete Security Partner: Aegis is more than just a scanner; it's a full-cycle security assistant. It finds vulnerabilities (Agent 1), proves they are real threats (Agent 2) and then helps you fix them (Agent 3).Instant, Data-Driven Feedback: The prediction market provides immediate insight into how the community perceives the security of your code. A market skewed towards "vulnerable" is a powerful signal to prioritize fixes.For Security Researchers & Savvy Users:Monetize Security Expertise: The prediction market allows skilled individuals to profit directly from their ability to identify secure or vulnerable code, creating a new revenue stream for security talent.Interactive Learning: By participating in the markets and reviewing the on-chain audit logs, users can gain a deeper, practical understanding of smart contract vulnerabilities and secure coding practices.For the Broader Web3 Ecosystem:A New Standard in Transparency: Aegis pushes the entire industry towards a higher standard of security. The public, on-chain nature of the audit logs makes it impossible to hide or ignore critical vulnerabilities.A Decentralized "Security Score": Over time, the data generated by the Aegis prediction markets can serve as a decentralized, market-driven "credit score" for smart contracts, providing a valuable signal for other protocols, CEXs, and investors.Aegis is a powerful AI security platform at its core. The prediction market is the revolutionary layer on top that drives community engagement, creates financial incentives for security research and brings a new level of transparency and accountability to the entire Web3 ecosystem.

Solution

Aegis is architected as a full-stack dApp that integrates a Node.js backend, a Python AI pipeline, and a React frontend to deliver a comprehensive security analysis platform on the Hedera network.--> On-Chain Foundation (Hedera EVM):Our on-chain logic is a Solidity smart contract developed with Hardhat and deployed to the Hedera EVM. All contracts are verified on HashScan.To enable the prediction market, we use Hedera system contracts to programmatically mint native HTS tokens from within the EVM, which is significantly more gas-efficient than deploying new ERC-20s for each market.--> Multi-Agent AI Pipeline (Python & Node.js):Built using the principles of the Hedera Agent Kit, the project's intelligence is driven by a multi-agent AI pipeline, orchestrated by a Node.js/Express backend that calls a sequence of specialized Python agents.Agent 1 (Static Analysis): This agent acts as the first-pass scanner. It invokes Slither as a subprocess to perform a rapid static analysis of the smart contract code, identifying surface-level vulnerabilities and common anti-patterns.Agent 2 (Symbolic Analysis & AI Scoring): This is the core analysis engine. It takes the contract and the report from Agent 1, then:-Runs Mythril to perform a deep, symbolic execution of the bytecode. -Aggregates the findings from both Slither and Mythril. -Feeds the combined vulnerability data into a fine-tuned CodeBERT model to generate a predictive "exploitability score" for each issue.Agent 3 (Remediation): This agent receives the final, scored vulnerability report and uses the Google Gemini API to generate a patched, more secure version of the original source code.Partner Technology Pyth Network: To provide a stable and user-friendly betting experience, our frontend fetches a signed price update for the HBAR/USD pair from the Pyth Network's Hermes service. This signed payload is passed directly into our smart contract's placeBet function, allowing it to trustlessly value all wagers in real-time USD terms.

Hackathon

ETHGlobal New Delhi

2025

Contributors