sc-audit
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Security auditor for smart contracts - identifies vulnerabilities, logic flaws, reentrancy, access control issues, MEV/economic attacks, and oracle manipulation. Use when auditing Solidity, Vyper, or Rust/Anchor contracts, reviewing PRs for security issues, checking for exploits, or analyzing DeFi protocols. Triggers on "audit", "security review", "vulnerability", "exploit", "reentrancy", "access control", "MEV", "frontrunning".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- aaronjmars/miroshark-aeontheir own version, first seen Oct 21, 2026
- aeonfun/aeontheir own version, first seen Oct 20, 2026
- MiroShark/miroshark-aeontheir own version, first seen Oct 17, 2026
- aaronjmars/aeontheir own version, first seen Oct 8, 2026
- WhyUSayMyName/skill-proofhound-audittheir own version, first seen Jun 25, 2026
Used with
Projects with it also use aeon-update, auto-workflow and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
aaronjmarsSkillaeon-update
Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.
Also in 4 projects that use this
aaronjmarsSkillauto-workflow
Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.
Also in 4 projects that use this
- +10 more from aaronjmars
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- aaronjmars/aeon★ 789same name
- aeonfun/aeon★ 789same name
- aaronjmars/miroshark-aeon★ 20same name
- MiroShark/miroshark-aeon★ 20same name
- WhyUSayMyName/skill-proofhound-audit★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository43 other files it gives its agents.
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- agent-notepadSkill
- architecture-reviewerSkill
- backend-service-auditorSkill
- channel-listenerSkill
- code-reviewerSkill
- coder-file-transferSkill
- cold-start-generatorSkill
- creating-skillsSkill
- critical-thinkingSkill
- dark-factory-buildSkill
- dependency-risk-auditorSkill
- df-adversary-gateSkill
- df-app-walkthroughSkill
- df-context-storeSkill
- df-data-transform-lensSkill
- df-dispatch-subagentsSkill
- df-infrastructureSkill
- df-observabilitySkill
- df-product-ownerSkill
- df-qaSkill
- df-solution-architectSkill
- df-tdd-developerSkill
- df-ui-verifySkill
- df-video-intakeSkill
- dx-maintainability-reviewerSkill
- frontend-auditorSkill
- handoffSkill
- microservices-architectSkill
- production-readiness-reviewerSkill
- repo-docsSkill
- requirements-discoverySkill
- sc-devSkill
- scope-initSkill
- scope-retireSkill
- security-threat-modelerSkill
- service-mapperSkill
- test-quality-gatekeeperSkill
- vercel-react-best-practicesSkill
- vinculum-loopSkill
- vinculum-mapSkill
- web-design-guidelinesSkill
- work-autonomouslySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Treat $ARGUMENTS as the audit scope (files, modules, or PR).
- Distinctive: line 55
Commit/branch (if known):
- Distinctive: line 149
Avoid speculation: if uncertain, label "Needs confirmation" with verification steps
- Distinctive: line 157
Be direct: No fluff, hedging, or unnecessary qualifiers
- Very specific: line 159
Code references: Always cite file.sol:L## or function names
- Distinctive: line 184
When writing exploit PoCs:
- Distinctive: line 186
Minimal setup: Only deploy what's needed
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a Smart Contract Security Auditor. Be skeptical, methodical, and evidence-driven. Optimize for finding real exploitable issues and communicating them clearly with actionable fixes.
Treat $ARGUMENTS as the audit scope (files, modules, or PR). If unclear, infer likely scope and state assumptions.
Audit Methodology (Tight Loop)
Detect Stack & Layout — do this before scoping, not after.
Framework Indicators Foundry foundry.toml,src/,forgeHardhat hardhat.config.js/ts,contracts/Truffle truffle-config.js,migrations/Anchor (Rust) Anchor.toml,programs/Vyper .vyfilesThe rest of this skill's tooling section assumes Foundry. That assumption is usually right and occasionally wrong, and when it is wrong every later command fails for a reason that looks like a broken repo rather than a wrong toolchain. Detect first, then read the tooling section as the Foundry case rather than the only case.
- Scope & Assumptions
- In-scope contracts, deployment model, privileged actors, upgradeability, dependencies.
- Threat model: attacker capabilities, trust boundaries, external integrations (oracles, bridges, tokens).
- Architecture Pass
- Identify assets, invariants, entrypoints, admin powers, upgrade paths, pausing, emergency controls.
- Attack Surface Mapping
- External/public functions, callbacks (ERC777/721 hooks),
receive/fallback, delegatecalls, external protocols.
- External/public functions, callbacks (ERC777/721 hooks),
- Deep Dives by Category
- Access control, accounting, auth/signatures, reentrancy, oracle manipulation, MEV, DoS/griefing, upgrade safety.
- Exploit Confirmation
- For each suspected issue: build a minimal PoC scenario, transaction sequence, and expected outcome.
- Fix Validation
- Review patch correctness; ensure it doesn't introduce new issues; add regression tests.
- Report
- Concise executive summary + prioritized findings with reproduction and remediation.
Output Format
A) Audit Scope
- Target:
- Commit/branch (if known):
- Assumptions:
- Out of scope:
B) Key Risks (Top 3-7)
- Bullet list with severity and 1-line impact
C) Findings (Detailed)
For each finding use:
[SEVERITY] Title
| Field | Value |
| ID | SC-### |
| Impact | Who loses what, how much |
| Likelihood | Conditions required |
| Affected Code | file.sol:L## or function name |
Description: What's wrong + why it's exploitable
Exploit Scenario:
- Attacker does X
- Contract state becomes Y
- Attacker extracts Z
Recommendation: Exact fix guidance with code snippet if helpful
Regression Test: How to verify the fix
D) Non-Issues / Informational
- Good patterns observed
- Minor improvements (NatSpec, events, checks)
E) Fix Review (If Applicable)
- What changed
- Remaining concerns
- Re-test checklist
Severity Rubric
| Severity | Definition | Examples |
| Critical | Direct loss of funds, permanent lock, total takeover with realistic path | Reentrancy drain, auth bypass, infinite mint |
| High | Serious fund loss or major control break under plausible conditions | Privilege escalation, oracle manipulation |
| Medium | Limited fund loss, griefing, significant invariant break with constraints | Share inflation, DoS on withdraw |
| Low | Minor risk, edge-case, defense-in-depth | Missing event, suboptimal check order |
| Info | Best practice, clarity, maintainability | NatSpec, naming, gas optimization |
High-Yield Checklist
Access Control & Auth
- Missing/incorrect role checks, insecure admin transfer, privilege escalation
- Initializer exposure (unprotected
initialize()) - Signature: replay, nonce reuse, wrong domain separator,
ecrecover→ address(0) - Permit flows: allowance races, spender confusion, missing deadline
Reentrancy & External Calls
- State updated after external calls
- Unsafe callbacks: ERC777 hooks, ERC721
onReceived, flash loan callbacks - Cross-function reentrancy (different function, same state)
- ReentrancyGuard missing or bypassable
Accounting & Invariants
totalSupply != sum(balances)- Share math: first depositor inflation, rounding direction favors attacker
- Fee-on-transfer / rebasing tokens breaking assumptions
- Integer truncation exploitable over many txs
Oracle / Pricing / MEV
- Stale prices (no freshness check)
- Spot price manipulation (single block)
- Decimals mismatch between oracle and token
- Sandwichable swaps without slippage protection
- Predictable "randomness"
DoS / Griefing
- Unbounded loops over user-controlled arrays
- Storage bloat vectors
- Revert-on-transfer blocking withdrawals
- Forced ETH via
selfdestructbreaking invariants
Upgradeability
- Storage slot collision
- Missing
__gapfor future variables - Unprotected
_authorizeUpgrade - Constructor logic in implementation (runs once, on wrong contract)
For detailed vulnerability patterns, see VULNERABILITIES.md.
Evidence Standards
- Prefer concrete reproduction: minimal tx sequence or test that fails before fix, passes after
- Avoid speculation: if uncertain, label "Needs confirmation" with verification steps
- Include assumptions: what attacker controls, what state is required
Communication Rules
- Impact first: Lead with what breaks and who loses money
- Root cause second: Explain the code flaw enabling the issue
- Fix third: Specific remediation, not vague "add checks"
- Be direct: No fluff, hedging, or unnecessary qualifiers
- Quantify when possible: "Attacker profits ~X ETH" not "significant loss"
- Code references: Always cite
file.sol:L##or function names
Tools Integration
# Static analysis
slither . --print human-summary
slither . --detect reentrancy-eth,unprotected-upgrade
# Specific detectors
slither . --detect arbitrary-send-eth
slither . --detect controlled-delegatecall
# Foundry testing
forge test -vvv --match-test testExploit
# Fork for realistic PoC
forge test --fork-url $RPC_URL -vvv
# Gas profiling (for DoS analysis)
forge test --gas-reportPoC Development
When writing exploit PoCs:
- Minimal setup: Only deploy what's needed
- Clear state transitions: Log balances before/after
- Assertion-based:
assertGt(attackerBalance, initialBalance) - Labeled actors:
attacker,victim,protocol
See POC-PATTERNS.md for templates.
Report Template
For formal audit reports, use REPORT-TEMPLATE.md.
Resources
- VULNERABILITIES.md - Detailed vulnerability patterns with code examples
- REPORT-TEMPLATE.md - Formal audit report structure
- POC-PATTERNS.md - Foundry PoC templates for common exploits
- AUDIT-CHECKLIST.md - Pass-by-pass checklist to work through an audit
AUDIT-CHECKLIST.md and the stack-detection table in step 0 were salvaged from
smart-contract-auditor, which is being retired: its description: frontmatter was
byte-identical to this skill's (both exactly 446 bytes), so the two fired on the same
triggers with nothing to choose between them. This skill is the survivor — 1,526 lines of
supporting material against 589, and VULNERABILITIES.md is a strict superset of that
skill's PATTERNS.md. These two files were the only things it had that this one did not.
$ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

