Skip to content

The CCS Interview

CertiK's Leibowitz: code was altered after audit in PAID Network incident

Aaron Leibowitz, product manager at CertiK, spoke with Ashton Addison in March 2021 about the firm's audit, monitoring and reimbursement products. They also covered the PAID Network incident, how retail investors can avoid rug pulls, and CertiK's push into Binance Smart Chain projects.

Interview by Ashton Addison Recorded March 2021 5 min read

Key takeaways

  • CertiK provides smart contract audits, penetration testing, manual code reviews, and offers CertiK Shield insurance protection and Skynet on-chain monitoring tools.
  • Audits are snapshots in time and cannot guarantee perfect security; code can be modified after audit completion before deployment.
  • CertiK Shield allows retail and institutional investors to purchase reimbursement protection independently, separate from project-level security measures.
  • Projects should contact auditors well in advance rather than days before launch to allow adequate time for thorough security reviews.
  • Retail investors should verify projects have been audited by reputable firms and conduct independent research before investing in DeFi startups.

What CertiK does and how to engage it

Ashton Addison: What is CertiK, and what solutions do you provide?▶ 00:18

Aaron Leibowitz: We're best known as a blockchain security firm, known for audits. We've audited a bunch of top projects and have recently been pretty deep in DeFi, especially the BSC ecosystem. Beyond auditing, manual code review and penetration testing, we have an insurance alternative called CertiK Shield, which is reimbursement protection for digital assets. We open those up with the projects themselves and offer them to their communities. We also have our Skynet tool chain, an on-chain smart contract security monitor. It monitors after code has been deployed, which is a big pain point for audits. Audits are a snapshot in time; they're not constant and ongoing once code is deployed. Skynet monitors contracts in the wild, interacting with other smart contracts and known vulnerabilities.

Ashton: I'm starting a DeFi project. How does CertiK help?▶ 01:52

Aaron: Auditing has become pretty much an industry standard over the last few years. That's a big shift we pride ourselves on being part of. Audits used to be above and beyond; now they're the standard for being listed on exchanges. CertiK provides auditing, penetration testing and manual code review for blockchain startups. One big tip: if you're working on a project, reach out ahead of time, not a day or two before you go live. It's a really big help.

Audits are a snapshot in time; they're not constant and ongoing once code is deployed.

Protection beyond the audit

Ashton: Aave and Kava are secured by CertiK. What does that mean, and can investors benefit too?▶ 02:36

Aaron: Those are two awesome projects with huge teams committed to security. Kava has an active certificate with us, which is the reimbursement protection I mentioned. If you hold Kava tokens, you can come to CertiK and purchase protection in the event of a hack or theft. Some on-chain activity is covered, and you can submit a claim and potentially get reimbursed for your loss. Retail investors, institutional investors and project owners can all use the CertiK Shield ecosystem. We've been trying to get more investors to understand that they have options to protect themselves beyond trusting just the project itself. It's a relatively newer product for us. Aave has also been audited by us, and they use the Skynet tool chain to monitor their smart contracts while they're in use.

Ashton: Does a project with billions of dollars at stake get the same level of security as a startup with a few hundred thousand in liquidity?▶ 04:50

Aaron: Any project that comes to us and gets audited, uses our tool chain or uses Shield goes through the same process, regardless of who you are. We're committed to security with all of the projects we work with. There's no differentiated treatment.

Ashton: Hacks still happen, most recently at PAID Network. What happens when a project is breached, and how does CertiK help?▶ 05:10

Aaron: Those are good examples of different types of exploits. PAID Network wasn't a smart contract failure. It looks like private key mismanagement: the keys to the minting contract seem to have been handed to, or accessed by, a third party. It's unclear exactly how, and not all the information is available at this time, though we've put out a short post-mortem. As for how we help, auditing is an important first step, but it's by no means a perfect solution. Talk to any top auditor and they'll tell you they can do a really strong audit and pen test and still not guarantee perfection. Code can be changed before deployment, which seems to be the case here. When we compared the deployed code with what we had audited, something had been injected after the audit that wasn't there during it. An audit is a snapshot in time, so it's pretty much impossible for an auditor to mitigate that. That's one reason we have on-chain monitoring and post-attack reimbursement protection. We realize audits aren't a perfect solution, and we're trying to get to end-to-end security for everyone in DeFi.

Rug pulls and the audit "blue check"

Ashton: Many retail investors still back unaudited projects and get caught by scams and rug pulls. What's your advice?▶ 07:55

Aaron: It comes down to doing your own research, but what that entails differs from person to person. Look at whether the project has been audited, and whether it was audited by a reputable firm. Some companies print audit certificates more than they actually audit the code, maybe using an automated tool to review it. That's not the same as being audited by a reputable firm. For key storage and token management, hardware wallets are the standard recommended protocol. Avoiding rug pulls is difficult, and there's a reason they've been a successful type of scam. Projects can do a fair launch and get audited, but if they hold the keys to some contracts, they can do whatever they like. It really comes down to looking at the reputation of founders and dev teams.

Ashton: What obstacles do you expect as auditing moves toward mainstream adoption?▶ 14:06

Aaron: Retail investors take CertiK or another top firm's involvement as a blue check mark to go ahead and invest. They do that even when we're just onboarding a project and haven't reviewed the code yet. We're wary that scam projects could use that to make investors more comfortable. So we're doing more internal research on teams before we start audits. We want to be comfortable putting our seal of approval not just on the code but on the people behind it.

Projects can do a fair launch and get audited, but if they hold the keys to some contracts, they can do whatever they like.

Binance Smart Chain and the 2021 outlook

Ashton: Which partnerships are you focused on right now?▶ 10:59

Aaron: We've had some great partnerships over the last few months, and BSC is where we've been focused recently. We've been diving into the BSC community, trying to secure as many of these projects as we can. There are tons of new ones popping up every day, so it's been very busy. It was a nice partnership with the Binance Smart Chain team, letting us get behind and secure as many of the projects building there as possible.

Ashton: Do you expect to work with even more Binance Smart Chain and DeFi projects through the rest of the year?▶ 11:47

Aaron: I believe so. It feels like we've been in this bull run for a while now. I personally foresee the bull market continuing, and if history is any indication, that means tons of new projects and lots of innovation and investment in the space. Assuming that's the case, we'll be looking to work with as many of those new projects as we can.

This interview has been edited for length and clarity. Recorded March 2021.

Aaron Leibowitz
Aaron LeibowitzAaron Leibowitz is a Product Manager at CertiK, a blockchain security firm specializing in smart contract auditing services. He works on helping DeFi and blockchain projects audit their smart contracts and applications. Full profile →
Share this interviewXLinkedIn
▶ Watching the interview