AI engine for smart contract audit
Top 94.3% on sourcepulse
This project provides an AI-powered engine for smart contract vulnerability mining, targeting security auditors and developers. It leverages large language models (LLMs) with task-driven and prompt-engineering approaches to identify vulnerabilities without requiring pre-trained knowledge bases or fine-tuning, aiming to reduce manual audit effort and improve bug bounty discovery.
How It Works
The engine utilizes a task-driven and prompt-driven methodology, focusing on sophisticated prompt design to guide LLMs in vulnerability analysis. It strategically employs "deception" and hallucination as mechanisms to uncover potential security flaws. The system supports multiple LLM providers and models, with configurable scan modes and iteration counts to optimize results and cost.
Quick Start & Requirements
src/dataset/agent-v1-c4
.datasets.json
and .env
file with database credentials, API keys, model selections (e.g., gpt-4-turbo
, claude-3-5-sonnet
), and scan modes (e.g., COMMON_PROJECT_FINE_GRAINED
).Highlighted Details
COMMON_PROJECT_FINE_GRAINED
for detailed analysis.Maintenance & Community
finite-monkey-engine
in August 2024.Licensing & Compatibility
Limitations & Caveats
The engine excels at logic vulnerability mining but is weaker in detecting control flow vulnerabilities. The current false positive rate ranges from 30-65%, depending on project size. While GPT-4 Turbo is recommended for best results, Claude 3.5 Sonnet offers a balance of performance and cost.
5 days ago
Inactive