I spoke to a Solana project (Cyfrin does Solana work now!) about their codebase, and we asked them why they kept a piece of their codebase out of scope for an audit.
Their answer: “We plan to keep it closed sourced so the security needs are less.”
1. Without a security review, you’re just delaying the hackers to break down your project and find holes. Relying on obscurity should never be your entire security plan!
2. It seems this is a trend across Solana projects. This needs to change!
Also closed sourced contracts have issues regardless, but that’s for another day…
Hot takes that I think shouldn’t be hot, and should be “the default”
1. The contest platform is ultimately responsible for the payout. It is the contest platform that promises payout, so if a platform doesn’t pay out, no matter the drama, it is the platform’s fault.
2. The auditors are the workers, and should be treated with the same respect as you would someone on your team. Changing goal posts in the middle of a review, allowing your team to be taken advantage of by allowing clients to dismiss submissions for any reason, or even giving the opportunity for a client to ruin the integrity of a contest (sharing results that could be leaked before contest ends, allowing the protocol to fix the bug and then close the issue because “oh it’s fixed now”) isn’t acceptable. Team > Client. With this, you end up giving the client better output because the team actually cares.
Changing the rules of a competition that pays out money could even be considered illegal in some cases.
3. Exclusivity deals on bounty platforms are the antithesis of security. Imagine finding a live crit and not being able to report it because you have an exclusivity deal.
4. Despite all this, bug bounties and competitive audits are still the best way to get into the industry. Don’t let this be the excuse you give to platforms to treat you like dirt, but also keep in mind, many of them are trying their best. Unless they violate one of the statements I made above, in which case they may not be.
The Bybit ($1.4B) hack has been on my mind since it happened, trying to think of ways to solve it.
I've been hammering away at making tooling to help people verify their transactions, and I feel like a couple of small tweaks to the wallet interfaces could make a big difference in making sure complex transactions are what you expect them to be.
So, I made this forum post to make a potential new ERC to discuss a few tweaks that might make life easier.