Repository navigation
Add a standalone autonomous auditor (no Slither/Aderyn required) - #1
Merged
Merged
Conversation
Ship self autonomous / self agent / self train (v2.4.0) as a project-wide reasoner that stays off the default offline scan path. Bundle a retrieval brain of attack playbooks, math models, business-logic invariants, and dependency advisories, then enrich it with public post-mortems and expert tactics (Euler, KyberSwap, Prisma, Penpie, Cetus, Immunefi 2025, ToB, Pashov, Spearbit, Sherlock/C4) without minting catalog detectors. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Run SELF v2.4.0 on the exact pre-audit 2024-05-bakerfi snapshot and compare High/Med findings to the published C4 report. Hits are first- depositor inflation, zero-slippage swaps, and flash-loan callback hygiene; protocol-specific harvest/oracle-decimal bugs are misses. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Blind replays of BakerFi plus nine Code4rena snapshots showed the reasoner was not hallucinating: it ORed facts across the repo, treated comments and interfaces as implementation, and never asked what a caller-supplied argument binds. Teach per-function facts for domain separators, oracle decimals, Permit2 tokens, whitelist burns, and unmarked bad debt; stop firing on settings() getters, __gap, hardhat *, and sqrtPriceLimitX96. 117 tests green; RULE_VERSION stays 2.3.0. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
The 10 C4 replays never put the sponsor README in front of the reasoner (no_docs + .sol-only copies, and DocReader had no contest-brief parser). Walk up to the contest root, parse known issues / trusted roles / scope, skip accepted playbooks and OOS files, and keep those facts in the briefing. 121 tests; RULE_VERSION stays 2.3.0. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Default scans stay offline. The reasoner now inventories README https links, audits/*.pdf, and prior-audit markdown and keeps them in the briefing. self autonomous --online fetches those links with SSRF guards and queries OSV.dev for pinned npm/PyPI/crates versions. Language reasoner tests cover Vyper, Huff, Move, and Rust. 136 tests; RULE_VERSION stays 2.3.0. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Walk extracted function bodies for arbitrary transferFrom/ETH send, msg.value-in-loop, locked ether, encodePacked collisions, unused low-level returns, mapping-delete, and balance equality. Facts and playbooks only — no catalog detectors, RULE_VERSION stays 2.3.0. Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
sharthak18
restored the
arena/01a0350c-self-smart-contract-auditing-t
branch
September 1, 2026 18:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SELF becomes a project-wide autonomous auditor (
self autonomous/self agent/self train) that can stand on its own. Defaultself TARGETstays offline and unchanged. Catalog stays at 161 detectors;RULE_VERSIONstays 2.3.0.settings()getters,__gap, hardhat*, andsqrtPriceLimitX96.httpslinks,audits/*.pdf, and prior-audit markdown.--online(opt-in) fetches those URLs with SSRF guards and queries OSV.dev for pinned npm/PyPI/crates versions.transferFrom/ ETH send,msg.valuein a loop, locked ether,abi.encodePackedcollisions, unused low-level returns, mapping-delete, and balance==. Negative cases (transferFrom(msg.sender), withdraw-to-sender,require(ok),receive+withdraw, static packed types) do not fire. Users do not need to run Slither or Aderyn for these classes.Test plan
python -m unittest discover -s tests -q— 151 OKRULE_VERSION2.3.0self_tool.autonomoustests/test_deep_scan.py--onlineSSRF/OSV coverage intests/test_online_docs.py/tests/test_autonomous.py