HederaGuard AI Agent

AI agent that audits Hedera smart contracts for security, efficiency, and reliability.

HederaGuard AI Agent

Created At

ETHOnline 2025

Project Description

HederaGuard AI Agent is an AI-powered smart contract auditing platform built on the Hedera network. It autonomously analyzes and audits Solidity smart contracts deployed on the Hedera Testnet, identifying vulnerabilities, inefficiencies, and best-practice violations.

The platform leverages Google Gemini 2.0 Flash for real-time code intelligence and the Hedera Agent Kit for seamless blockchain interaction. Users can connect via wallets like MetaMask (Atomic Wallet UI) or HashPack, upload their contract code, and receive a detailed audit with categorized findings and severity levels.

Audit results can be exported as PDF reports or shared on X (Twitter) for transparency, encouraging a safer and more open Web3 ecosystem. A free trial option lets developers test audits without connecting their wallet, lowering entry barriers for students and startups.

By combining AI and decentralized infrastructure, HederaGuard empowers developers to deploy safer, more efficient dApps—strengthening trust and adoption across DeFi, tokenization, and broader Web3 use cases.

How it's Made

HederaGuard was built using a React + TypeScript frontend and a Node.js + Express.js backend. The auditing engine is powered by Google Gemini 2.0 Flash, which analyzes smart contract code for security flaws and optimization issues.

Live App Link: https://hederaguard-ai-agent.replit.app/

Demo video: https://youtu.be/FioZjjSrWlI

Github link: https://github.com/Prasannaverse13/HederaGuard-Ai-Agent

The project integrates the Hedera Agent Kit and the Hedera Eliza Plugin to interact with the Hedera Testnet for deploying and verifying smart contracts. Users can submit contracts via the frontend interface, which communicates with backend endpoints that trigger the Gemini-based audit logic.

Key files include:

scripts/deploy.js → Deploys contracts to Hedera Testnet

server/services/auditService.ts → Core AI audit engine

server/services/geminiService.ts → Gemini model integration

client/src/components/AuditForm.tsx → Contract submission UI

client/src/components/AuditResults.tsx → Visualizes findings

The app supports multi-wallet connectivity, PDF generation, and social sharing. It also features a “Try Without Wallet” mode powered by mock contract samples.

Using the Hedera Agent Kit made it easy to execute secure on-chain transactions and verify smart contracts with low fees and fast finality. The Gemini 2.0 Flash model enabled advanced AI reasoning for code analysis, while the plugin architecture ensured scalability for future integrations (e.g., consensus proofs or AI-to-AI audit collaboration).

In short, HederaGuard blends AI, blockchain, and developer security tools into an intelligent agent system designed for the next era of safe decentralized development.

background image mobile

Join the mailing list

Get the latest news and updates