Resources

People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!

Hardening Firedancer- 2229

Jump CryptoPosted 1 Month Ago
  • Firedancer is a Solana validator designed with security in mind. Although it uses C and assembly, the validator is structured into separate, individually sandboxed components called tiles. Each one has its own address space and runs on a single CPU core. The sandboxing limits the syscalls with seccomp filters, including file system access, filesystem mounting/access, namespace isolation, and capability removal.
  • The system is well designed to limit the impact of RCE on external interfaces. For the p2p gossip protocol, the tile can't just read the private key off of the box, for instance. The design makes it effectively immune to RCE bugs in the p2p protocol. There are still risks within the VM, though.
  • They recently ran a contest on Immunefi. They wanted to share some of the contest's trends. Based on vulnerability severity, they unlocked different prize pools. For a critical bug, they unlocked $1M, but only $500K for a high-severity bug. They reserved 10% of the pool for the top 3 submitters and charged a $100 submission fee to prevent spam.
  • The contest ran for 30 days with 809 total reports. From a contest they ran two years ago, that was a 20x increase in volume for a contest that was two weeks shorter. The competition was heavily skewed, with the top submitters finding most of the valid bugs. To me, this says that the ability to wield a good AI sword is just as important as having the credits to spend.
  • The average report was 1,064 words, compared with 406 in 2025. The increase in word count strongly suggests there are simply more AI-generated reports. Nearly half of all valid submissions were duplicates. In a contest, I thought this would be higher, so that's super interesting to me.
  • The contest contained 127 confirmed exploitable issues, with a high maximum. Many other insights were reported, such as an out-of-bounds access with no impact, but still interesting nonetheless. I would guess they found many more than 5 highs from this, which is pretty rad! It seems like the team got a lot of value from this.
  • They mention a few interesting reports, including one that violates the transaction scheduling invariant. The invariant is that two transactions that reuse accounts cannot run in parallel, while other transactions can. The system gives each tx a score based on the likelihood of collusion to execute it sooner when possible. An integer overflow in the masking of this score could make a tx execute out of order. This would execute txs out of order, but it's not precise enough to cause real harm.
  • Another bug was in the repair tile, which tracks a tree of elements. At times, it's important to update the parent of a given block, removing a child node from the tree. However, the tile doesn't clear the sibling pointers from the node's children. Iterating over these pointers led to an infinite loop in the tile. Again, this exploit was inconsistent across nodes so it was rated as a medium.
  • They had some interesting takeaways at the end:
    • Every report was either completely AI-generated or found via manual review with AI assistance. This led to a lot of duplicate submissions as well.
    • Agents are great at finding differences between the two validators. This makes sense because there's a clear reference implementation that can be compared against.
    • Most of the false positives were a failure to understand the implicit invariants of the system.
    • Document invariants aggresively: This helps agents perform best and absorb the codebase fast.
    • For running the competition, they say to charge submission fees to get rid of spam, enforce a word limit on the reports, and stay ahead of the queue as much as possible. Good advice!