Echidna.
Battle hardened, our go-to fuzzer, helped us secure many protocols.
qf.giveth.io/project/echidna…
1
5
185
🛡️ $69 Million TVL Saved
Our very own @gbrigandi reported a critical vulnerability, saving $69,000,000 in TVL for @Polkadot.
We’re proud to strengthen the ecosystem through responsible disclosure and proactive security research.
Blog post coming soon!
PS: Found with fuzzing
Polkadot public disclosure and postmortem forum.polkadot.network/t/pos…
10
1,314
Built the tools. Found the bugs.
We’re excited to welcome Gianluca Brigandi (@gbrigandi) to Perimeter as Tooling Specialist.
• Author of Traverse, Tameshi, and ThalIR
• Multiple confirmed bounties
fuzzlib v1.1.0 released – now with broader compatibility and new utilities for Solidity fuzzing
What's new:
- clampArr: Efficient array clamping
- scaleDec: Decimal scaling helper
- errAllow: Full support for pre-Cancun chains
- Updated cheatcodes to allow latest functionalities
Repo & changelog: github.com/perimetersec/fuzz…
4
143
We’re excited to welcome Josselin to Perimeter as Lead Fuzzing Specialist!
Ex-Engineering Director of the blockchain team at Trail of Bits. Author of Slither.
🧵 highlighting some of his achievements
Excited to share that over the past 6+ months, we've helped secure critical infrastructure for @berachain using invariant fuzzing.
Big credit to @berachain for their industry-leading commitment to security. Looking forward to continuing our partnership in securing Berachain 🫡
We are excited to announce the 1.0 release of Fuzzlib, an unopinionated library designed for both stateful and stateless fuzz testing
Fuzzlib continues to be the backbone enabling us to secure $5,000,000,000+ in TVL
Why, features, additions: 🧵
A look inside of our methodology and how we maximize ROI for clients!
Replying to @gakonst
Writing good invariants is difficult and usually comes with experience. It’s not just about the theoretical correctness of an invariant, but also the feasibility of implementing it and verifying it efficiently.
Some invariants look great on paper but turn out to be prohibitively complex or expensive to verify in practice, which makes them "bad invariants" in the real world.
That being said, here are a few ways of learning how to write better invariants:
- Repository of public fuzzing suites github.com/perimetersec/publ…
- Reading public reports that include invariants
- Exploring public invariant repositories for examples and inspiration
Currently the biggest difficulties of checking the quality of invariants are shrinking failures, which can take hours or even overnight and still not produce clean reproductions, and deep bugs that only surface after long runs, even on enterprise hardware. (Typically applies to large/complex codebases)
To address these issues, we use manual shrinking and corpus manipulation to accelerate debugging when necessary. We’ve also adopted a dedicated execution phase in our process, which typically saves our clients around 30% in overall cost.
Another aspect that often gets overlooked is the cost-benefit tradeoff of implementing a given invariant. If time and resources were unlimited, then every valid invariant would be worth implementing. But in reality, prioritization is key. Knowing which invariants are worth building is its own skill that comes with deep experience, and optimizing for that is where a lot of the value lies.
Therefore, maximizing the time spent implementing invariants is extremely important as well. The way we do this is by doing the following:
- Integrate fuzzlib to clean up + speed up the debugging/testing invariant process github.com/perimetersec/fuzz…
- Use an extensible standardized framework that we use for all defensive fuzzing engagements, to save time at the start and get straight to the good stuff
- We’ve developed internal tools and methods that significantly shorten the time needed to implement robust harnesses
Happy to answer any questions you may have! 🙂
5
518
The fuzzing report and suite from our recent engagement with @OriginProtocol is now published!
In under a week, we built a solid offensive fuzzing suite that validated 31 invariants over 4.5+ billion runs.
Always a delight working with the @OriginProtocol team 🫡
Links ⬇️
Link to the report here: github.com/perimetersec/reso…
2
7
483
Meet our CTO & Lead Fuzzing Specialist in this fun feature by @offbeatblog_eth!
6
319
At Perimeter, we build the most robust invariant suites to uphold the highest security standards for protocols.
See the full code for this example here: github.com/perimetersec/zkev…
One of the great things about Arachne scaffolding is that it enforces clear invariant definitions. It also makes it easy to see exactly when the fuzzer calls them.
You can check out an example of this in the @Immutable fuzzing suite I made last year
github.com/perimetersec/arac…
If you are interested in an invariant suite built by the world's foremost experts, visit this link: tally.so/r/wkAgar
3
109
Arachne is an advanced scaffolding library we use for all our defensive fuzzing engagements. It ensures that every client receives a highly maintainable fuzzing suite, providing lasting value after each engagement.
One of the biggest challenges in fuzzing today is the slow and tedious setup process.
My best advice? Use scaffolding. It keeps your code organized, provides a familiar structure to reduce mental overhead, and speeds up repository setup.
Until now, I’ve always referenced older fuzzing suites for my scaffolding, but I finally made mine public. It’s built for mid-to-large scale fuzzing suites.
Would love to hear everyone's thoughts about it!
github.com/perimetersec/arac…
We’ve compiled a comprehensive list of EVM fuzzing resources.
Useful for everyone interested in fuzzing, from beginners to lead fuzzing specialists. Updated regularly 🫡
Just launched a repo for all EVM fuzzing resources!
I've seen the discussion about the lack of fuzzing resources, so I compiled everything I know in one place. Hoping to make this the go-to place for both new and experienced users.
I'm sure I missed some great ones. Reply with suggestions, and I'll add them in the next update.
github.com/perimetersec/evm-…
7
228
Our lead fuzzing specialist, @0xScourgedev, explains why we chose runs as the key metric to quantify fuzzing coverage.
Thank you @alpharush for the excellent question! Let me provide a deep dive into our methodology for how we chose this metric.
We explored many different metrics to measure how thoroughly an invariant is tested in the past. The reason why we chose runs as the metric that we want to use is because:
1. It's easy to benchmark
2. It's replicable, meaning if someone ran the same amount of runs as us, the status of the invariants should be the same.
3. It's consistent across machines
4. It's provable to a degree
We ruled out CPU time because it's inconsistent across machines. For example, 1 CPU hour on a high-speed processor can outperform 3 CPU hours on a slower one. While it’s possible to specify hardware usage, that approach is clunky for reports and hard to visualize for clients, especially when using a mix of different hardware.
We also considered coverage (e.g., unique instructions or sequences in corpus), but it has limitations. Coverage doesn’t indicate how many runs occurred without new coverage. If a fuzzer hits 10k unique instructions, how confident can we be that additional unique instructions are not found?
The number of runs due to the replicability factor can show how confident someone can be that no new coverage will be found with the fuzzing suite.
That said, the runs metric isn't perfect.
- It doesn't show how many times each invariant is actually executed. Hard-to-reach invariants may not be thoroughly tested even with many runs.
- The metric can be inflated by things like reverted transactions.
Ideally, we'd use executions-per-line as a metric. This feature is implemented in Medusa: github.com/crytic/medusa/pul…
However it has performance issues currently in Echidna: github.com/crytic/echidna/pu…
Once those are resolved and the feature is stable, we'll make the switch! Happy to answer any other questions regarding our methodology 🫡
5
320
Meet our CEO & Lead Fuzzing Specialist in this fun feature by @offbeatblog_eth!
3
301
We just published our security report from our recent engagement with @Immutable.
Their excellent codebase made it straightforward to build a comprehensive invariant fuzzing suite. In total, 66 invariants were tested for 1.41B+ runs. Great collaboration and solid results!
.@Immutable recently engaged @perimeter_sec to create fuzzing harnesses and test our L1 bridge contracts. We were really impressed with the team's professionalism and high quality report 🙏 @0xScourgedev @rappie It's available in our repo -> github.com/immutable/zkevm-b…
Is getting into fuzzing daunting? This might be for you
After a conversation with @devtooligan, we learned that while the benefits of having a fuzzing suite are clear, getting started can often be daunting for protocols. There is often uncertainty surrounding cost, timelines, and many technical challenges.
At Perimeter, we strive to make fuzzing accessible for every protocol. Devtooligan gave us a great idea on how to achieve this: The Perimeter Essentials package.
It's a heavily discounted, one-week engagement where we will collaborate with protocols to create a fuzzing suite for the most mission-critical parts of the code. This provides a solid, highly extensible foundation that meets long-term security needs and effectively prevents exploits.
Check out the full details of Perimeter Essentials here: github.com/perimetersec/reso…
4
348
Our mission is to secure protocols through providing the absolute best fuzzing services in the world.
cantina.xyz/guilds/perimeter
Find us on @SpearbitDAO's @cantinaxyz guilds homepage and book us easily through Cantina to benefit from the combined credibility and excellence of both Perimeter and Cantina.






















