π‘οΈ HookGuard 0.9.1 β risk scanning for Uniswap v4 hooks, four ways #3
chaosxcode
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
π‘οΈ HookGuard 0.9.1 β risk scanning for Uniswap v4 hooks, four ways
TL;DR β
pip install hookguardΒ· drop one line into CI Β· comment a repo name Β· or scan code right in your browser. Every result ships an itemized receipt: severity, rule, line, and the exact weights behind the risk score. Nothing hidden, ever.π What the data says (measured, not marketed)
Full methodology, firing rates, five published corrections, and what the numbers do not claim: docs/precision.md
π Four ways to run it
1 Β· CI β one line in your workflow
Line annotations on every PR, one summary comment.
fail-on: HIGHdefault β heuristics advise, they don't gate.2 Β· CLI β scan anything right now
pip install hookguard hookguard scan https://github.com/owner/v4-hooks --html report.html hookguard scan ./contracts --local # offline mode3 Β· Browser β zero install, zero upload
Paste Solidity or drop
.solfiles β instant findings + score.π Code never leaves your tab β the engine runs entirely client-side.
π scan.html
4 Β· Comment bot β free public scans
Comment
/hookguard-scan owner/repoon the pinned scan-request thread and the bot replies with a full scored report.π§Ύ The receipt philosophy
Every score ships its factors:
Weights live in public (src/score.py), confidence tiers travel with every band, absence of evidence never inflates certainty, and author confirmations subtract. Machine-readable records follow the HookScore spec draft.
πΊοΈ Where this goes
The pipeline is automated end-to-end: full-history discovery β census β source & bytecode analysis β cross-chain attribution β author outreach (public ledger) β status feed β weekly drift watcher. The roadmap adds EAS attestations, multi-chain censuses, and the underwriting layer that "Hook Safety as a Service" needs underneath it.
ROADMAP Β· Live dashboard Β· Advisory ledger
Builders shipping v4 hooks: scan your project, tell us what you find β false-positive reports are the single most valuable contribution here (five shipped fixes so far came from exactly that). If HookGuard catches something real in your code, that's a story we'd love to document with you.
All reactions