Inspiration

Smart contract audits are slow, expensive, and often based on reading code rather than proving an exploit. AuditCrew asks a stricter question: a finding exists only when an unprivileged actor can break an invariant and extract value — demonstrated by an executed Foundry proof-of-concept, not by reading code. No PoC, no finding.

What it does

AuditCrew is a Kiro-powered multi-agent smart contract audit crew. It stitches four seemingly incompatible things into one audit: static analysis, Foundry proof-of-concept exploits, live on-chain verification, and a ranked report — each done by its own Kiro agent, orchestrated by one script:

  • scout — reads every contract, maps money flows, and lists candidates with file:line and the invariant broken. It kills non-findings with one line of evidence.
  • exploiter — authors a Foundry PoC per candidate and runs forge test until it is green or the candidate is killed.
  • verifier — checks every green PoC against live chain state using read-only calls only.
  • reporter — assembles the ranked report. A finding enters only with a green PoC and a VERIFIED live check.

One command runs the whole crew:

./crew/run-audit.sh [contracts-dir]

What the crew found

The demo target in contracts/src/ is an ETH vault built for this project: Vault.sol (an ETH vault whose share price comes from an oracle) and PriceOracle.sol. Two High/Critical bugs are seeded in it, documented in the source so judges can verify the crew actually finds them.

Crew run 1 (2026-11-21) — 2 Critical findings, both proven:

  • F-1 — Reentrancy in Vault.withdraw() (PocC1Reentrancy::test_reentrancyDrainsVault): 1 ETH in, vault drained to 0, 10 ETH profit.
  • F-2 — Unrestricted PriceOracle.setPrice() (PocC2OracleManip::test_oracleManipDrainsVault): 1 wei in, ~1 ETH out per iteration, repeatable to full drain.

Plus 4 killed candidates (rounding dust, checked call, no admin paths, flash-loan as a separate class) and 7/7 live-state precondition checks VERIFIED. Full report: AUDIT-REPORT.md in the repo. The crew authored its own PoCs from the scout's candidates — the author's reference PoCs are kept separately in demo/ground-truth/ for comparison and are not run by the crew.

How we built it

Built with Kiro, Foundry, and Solidity. The agents live in .kiro/agents/, the methodology in .kiro/steering/, the pipeline in .kiro/workflows/audit.md, and the orchestrator in crew/run-audit.sh.

The crew runs on Kiro CLI built-in tools (read_file, fs_write, execute_bash). Custom agents declare their tools in the frontmatter of .kiro/agents/*.md — without that list, headless sessions start with no tools at all. MCP servers (filesystem + a small shell server) were evaluated during development and turned out to be unnecessary once the frontmatter tools were declared, so they are not part of the repo. --effort is intentionally not passed: on this CLI version it forces a model-list fetch that fails with ModelRegistryUnavailableError. Verification runs against deployed contracts in Foundry's in-process EVM (read-only calls, no transactions) — the same reads cast call would make against a local Anvil node.

Credit discipline is built into the workflow: one headless kiro-cli chat --agent <name> run per step, short prompts, and the previous step's output file as context — never the whole repo.

Challenges we ran into

Getting headless Kiro CLI sessions to start with tools, keeping each agent's context small enough to stay disciplined, and designing a gate strict enough that a plausible-looking candidate cannot become a finding without a green PoC and a verified live check.

Accomplishments that we're proud of

Both seeded Critical bugs were found and proven end to end, with green Foundry PoCs and 7/7 live-state checks verified — and four false candidates were killed with evidence instead of becoming noise in the report.

What's next for AuditCrew

Run the crew against more contract patterns, add more agent specialisations, and tighten the report with severity-ranked remediation guidance.

Try it

git clone --recursive https://github.com/Harisminol/audit-crew.git
cd audit-crew
forge build --root contracts
./crew/run-audit.sh

Built during the Kiroween 2026 submission period (Oct 30 – Dec 4, 2026). The audit methodology adapts the author's own bug-bounty playbooks; the crew code, agents, vault, and PoCs in this repo are new work written for this hackathon. License: MIT.

Built With

Share this project:

Updates

Submission history