rust_contract_audit
Audit Rust smart contracts for security vulnerabilities with automated framework detection. Analyzes source code or GitHub URLs and returns a severity-graded report with root cause analysis and fixes.
Instructions
Rust smart contract security audit powered by CottonmouthAI (Claude Opus). Auto-detects the framework (CosmWasm, Anchor/Solana, Stellar/Soroban, NEAR) and applies targeted checks: unsafe arithmetic, missing account validation, signer privilege escalation, PDA seed collisions, CPI reentrancy, storage layout bugs, and integer truncation. Returns a severity-graded report (Critical/High/Medium/Low) with root cause analysis and recommended fixes. Provide raw Rust source code or a GitHub URL. Cost: $2.00 via x402.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rust_contract_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| github_url | No | ||
| contract_name | No | Contract |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||