r/ethdev • • 7d ago

Question I built this tool to help auditors understand unfamiliar smart contracts much faster.

https://youtu.be/auw6tXRmeiU?is=R6Gby5sLDUMM6mBV

Hey everyone,

I used to spend a lot of time during audits trying to understand unfamiliar contracts, what each function actually does, how everything connects, and what assumptions the protocol relies on.

It was taking me longer than I wanted, so I started building this tool for myself to make that process easier. It’s called Autsec, and it helps me get a clearer picture of a contract before I go deeper into the audit.

It’s still early, but it has already been helpful for me and saved me time. I recorded a short demo and would genuinely like to hear what you think.

4 Upvotes

12 comments sorted by

3

u/secrypta 7d ago

Nice, this is a real pain point, so good that you're building for it. Agree with pauldelucia too. One thought: the "what does each function do" part is something a coding agent already handles pretty well, so that alone might not feel like much over a terminal agent. Where it could really shine is the layer above that, the stuff that actually eats my time before an audit: what the protocol is quietly assuming, and who it trusts. Things like which roles can move funds or change settings, what has to stay true for the math to add up, and what breaks if an external call reenters or a price feed lies. That rarely lives in one place, it's spread across modifiers and require checks, and a plain summary tends to lose it. If Autsec can pull out those trust boundaries and the assumptions the contract leans on, and show where they aren't actually enforced on-chain, that's the part that would save an auditor serious time. Keen to see where you take it.

1

u/jamesallen18181 5d ago

That’s really interesting man. Do you have an example of a public smart contract project where understanding these assumptions and trust boundaries took you a significant amount of time? I’d love to take a look at it.

2

u/Tritan-Devillalba47 7d ago

Reading through new smart contract code always a slow process.

1

u/jamesallen18181 7d ago

Big problem for me as well. Have you tried any tool to help you with that? Can you tell me more about your experience doing it with or without any tool?

2

u/pauldelucia 7d ago

Seems like a good start to something that could become very useful. I would keep leaning in on making good visualizations of how the contract works. That's probably the most important thing this could be used for. Otherwise a coding agent in a terminal would work just as well.

1

u/jamesallen18181 5d ago

Thanks man. Have you used any visualization tools during your audits before? If so, what did you find useful and what was missing?

2

u/pauldelucia 5d ago

I don't use them but I know some people like them

1

u/jamesallen18181 4d ago

And have you already used any other tool to help you in your audits?

1

u/ledgertech_lottie_br 4d ago

Static analysis is fine for low-hanging fruit, but it misses the runtime state dependencies entirely. I’ve spent nights debugging reentrancy issues that only popped up when specific storage slots were hit at precise block heights. Visualizations help with the high-level architecture, but they don’t catch the logic flaws in conditional branches. If you want to actually find bugs, you need to simulate the execution paths under different market conditions, not just map the graph.

I usually run my own python scripts to generate call traces for edge cases before I even look at the UI. It’s tedious but necessary since automated tools tend to flag false positives on standard ERC-20 implementations that aren’t actually vulnerable.