I have to hype myself up too. Hi. Blockchain security is on fire. But no worries. We're here to help you prioritize security anti-patterns by using the familiar and friendly OWASP top 10 or three depending on how much time we have. And for those of you who think that there is no value proposition to blockchain security, the industry is a two trillion dollar market. It has peaked. So you know when the scammers come out, it's got to be good. So a little bit about us. Actually, you start. I'm Kenoshka Da Silva. I am a cybersecurity consultant at a big four accounting firm. I am also a web three ethical hacker. Yes. I'm Amy. I'm a security engineer. And that gives me the great habit of saying security when I'm working on machine. Learning projects. And besides that, Kenoshka and I are both in Percent 27 Hack Miami, our local DEF CON group. Thanks so much for coming. So let's talk about some blockchain security components and basics. So we have the blockchain network. Blockchain systems are typically managed through a peer-to-peer system or network, which is used as a publicly distributed ledger. So essentially, there are public records. And then we have transactions. Transactions are represented within each block of data for the transaction essentially. And the wallet, it does stores, it allows a way to store your cryptocurrencies as a whole by ways of selling, swapping, buying and storing your crypto overall. And then also the website itself, there is the server. Which uses... a public key encryption typically asymmetric encryption and smart contracts are code that are used to be executed for transaction as a whole so how does the blockchain works so instead of the trans uh traditional bob and alice we have our gender neutral bread and alfalfa so bread wants to send money to alfalfa and bread initiates a transaction bread transaction it gets written within the blockchain essentially within each different block we have metadata of the transaction stored within each block and then each block it gets broadcasted to verification on the network which can be weighted medo ways of miners or stakers, they can help secure and verify the transaction on the blockchain. Once it goes through the verification and confirmation process, it is approved and Alfalfa receives their funds and it gets appended to the ledger. And now that we have some blockchain basics out of the way, I want to tell you about how we came up with a prioritization system. And actually, really, this is a story that, spoiler, the end game is that there aren't a lot of publicly available resources to quantify and qualify risk for blockchain. So we begin our adventure in the Rekt database, which is based on Rekt News. I don't know if you're familiar with this, but it is basically all the tea on DeFi in the dark web. So if you want to know about the latest crypto hacks, rug pulls and so on, this is the spot. This database is not comprehensive, but because obviously it's not just been 60 billion dollars that have been lost in funds through the years, so much more, but the Rekt database does take in audits from folks. That they vet for due diligence. So I thought, okay, this is a plausible way to begin, right? You'll see that the database gives you, yes, the project, yes, the chain, yes, the amount of money lost, but can we look at that type of issue column? What do you see? Exploit, exploit, exploit, exploit. Does that look specific enough to you? Like what is an exploit? It could be anything, right? So how do we narrow down so that we can map these exploits to the OWASP top 10, right? For say like incidence rates as we're used to, right? With like data-driven information. We decided to go another route and to combine approaches at that point. The immunify vulnerability severity classification system is something that immunify a bug bounty site. Okay. It uses to qualify risk or really like criticality, excuse me. And there's five ratings and conveniently, some of these happen to be exactly the same verbiage as in the OWASP top 10, like cryptographic flaws, cryptographic failures, so on. The audit for blockchain specific exploits and such. But they all have the same verbiage. They also work on like traditional web 2.0, yeah. So obviously, there's still limitations. But what we decided to do was focus on those things that had the highest bounties. Wormhole here, if you are into money, maybe you can go look at that critical five. And that's how we based our top 10, three, whatever. So yeah. This is the current OWASP top 10 for 2021. Spoiler, it's not going to be the same for blockchain. And with that, I will leave it to Kanashka, who knows way more than I do. I am just an emotional support human. Thank you, Amy. So now that we have talked about all the risk qualification and quantification and our prioritization. Yeah. Aligned with the OWASP top 10 principle. Let's go into how we have prioritized these lists. We're going to go through the top three lists due to time constraint. So our first top on our top three lists would be cryptographic failure. So cryptographic failure, what is cryptographic failure? So it is cryptographic. Failure is a risk exposure. Of sensitive data as a whole. So it exists in the cryptocurrency space when you create a wallet, essentially. So when you create a wallet, we have asymmetric encryption, which involves the public key and the private key encryption. So we have the address. And then we have the private, which is the seed phrase as a whole. Why did we choose cryptographic failure? There is currently a $10 million bounty, which currently exists on immunify, which Amy have discussed. And we have decided to name the top three cryptographic failure as a whole, which the first one in our prioritization is the kickback to 56 cryptographic failure, which is essentially a hash and algorithm for addressing memory. Within the storage, essentially. Next up on the list, we have prioritized multi signature architecture failure. That exists, which this vulnerability exists essentially when you go to sign a transaction as a whole. And the application has to go through multi different layer of confirmation and approval to approve all the transactions. A PARTICULAR TRANSACTION AND THEN NEXT UP WE HAVE ON THE LIST IS EXPOSED UNENCRYPTED PRIVATE KEY WHICH THIS MEANS A COMPANY HAS UNENCRYPTED DATA AT REST THAT EXISTS WITHIN A PARTICULAR DATABASE AS A WHOLE. AND NOW THAT WE HAVE DISCUSSED THE FAILURES, LET'S TALK ABOUT SOME SOLUTIONS. IT'S REALLY BAD OUT THERE, OKAY? I HAVE MORE QUESTIONS AND CALLS TO ACTION THAN SOLUTIONS. I'M NOT GOING TO LIE TO YOU. SO FOR EXAMPLE, MULTI-SIG LIKE FAILURES, RIGHT? SO WHAT IF SOMEBODY DIES? COOL, WE CAN USE SOME WEB 2.0 SOLUTIONS, RIGHT? LIKE WHAT CSP HAS BEEN DOING FOR A FAIRLY LONG TIME, REDUNDANCY AND SO ON IN SEVERAL REGIONS. WE CAN ALSO LOOK AT INTERPLANETARY FILE SYSTEM. FOR EXAMPLE, FOR REGIONS, WE CAN LOOK AT INTERPLANETARY FILE SYSTEM. SO WE CAN SEE THIS DECENTRALIZED MEANS OF STORING DATA. RIGHT? THAT CONCURRENTLY GETS RELEASED. SO THAT YOU DON'T SACRIFICE AVAILABILITY FOR SPEED AND DECENTRALIZATION. HOWEVER, WHEN WE START LOOKING AT THINGS LIKE IMPLEMENTING IAM AS A SOLUTION FOR, OH, MY GOODNESS. FOR OUR UNENCRYPTED PRIVATE KEYS. well then it gets a little strange right because defy right decentralization how do we implement that like how do we implement an IAM scheme that's going to be decentralized I don't know and so this is a charge for security engineers if you will in terms of lifecycle management right I think solutions that are centralized have done a pretty good job of taking security out of the hands of developers that's nice they want to breathe but to decentralize that is also a challenge I think rotation generation and so on so just some thoughts anybody think of anything please help so to add a little bit more on what Amy have discussed for the uh cryptographic failure let's say for instance um a normal user would create their seed phrase so how would you protect your seed phrase essentially do we write it down on a paper and store it away in a safe or do we resort back to a centralized aspect of things such as AWS as Amy has mentioned identity access management roles where we can you know transfer ownership in case of emergency or in case anything happens in addition key rotation as well how do we uh ensure that you know our key doesn't stay the same we can rotate it in such a way uh where its creation and destruction of the server key to ensure certain aspect of security within a decentralized world so let's move on to broken access control we all know uh our browser extension for holding uh for holding our cryptocurrencies which are browser-based cryptocurrency wallet such as the Phantom uh metamask wallet uh one of the popular ones um what if a user you know essentially signs and transaction that is insecure um how would a user be able to essentially read the contract itself any ideas so there are multiple different projects there's uh another aspect of things where projects that pose as trusted Brands such as uh projects like word ape uh invisible friends meta you see you know an ad on any particular platform which is mimicking that trusted brand and you go to donate or support uh your favorite brand without reading or signing a particular contract which exists mostly in nfts as well so let's move on to broken access control as it relates to insecure function contract calls so this also allows you to write arbitrary code against a particular contract using platforms such as a remix where essentially a user can execute arbitrary code to allow bad actors to claim ownership of the particular digital asset itself so let's go into some of the solutions um all right I'm going to be repeating myself a lot um so an interesting project that just came out um or it is about to come out I think by someone in check marks incidentally for verifying libraries um is uh probably the solution that we need in this space it's uh basically an extension that amasses a bunch of data on the credibility of a project and then gives it a nice little check mark sort of like a I think web of trust um but yeah no such solution exists at this time that aggregates credible data on whether or not a project you are working on is valid and basically you're on your own and that is as a consumer that is a security engineer let's say um and that's not a great state of things um editing a smart smart contract before signing it yeah that's great like how are we uh how do we like find automated solutions well a problem in this space is that there are there might be like a sas or a desk product right but it doesn't exist across all chains and protocols so for example we started developing something for the stacks uh protocol because it didn't exist a sas tool um still working on it but we'll get it out there um and then in terms sorry in terms of policy and implementation yeah that's something that you can do right now say like individually but how can we scale that like how do you work it out for a large Enterprise for example um I don't know more questions for you so now that we have discussed uh our last topic broken access control solution let's jump right into security misconfiguration um so DeFi application they allow us to again borrow money borrow loan against our cryptocurrency trade there's insurance industry that exists within the space uh p2p peer-to-peer lending and more so security misconfiguration within a particular smart contract application can drastically affect the end-user's user as a whole which one topic that we have highlighted is a flash loan attack so a flash loan attack exists when a borrower uh they intended to put up money to borrow against their cryptocurrency but they haven't provided the collateral um so what is some of the solutions what are some of the solutions for that it's still pretty grim um right uh so I actually think that one of the best things we can do um for these types of attacks is some of the manual work right um just code review right um there as I said before don't want to repeat myself but yeah auditing tools don't exist across every chain don't exist across every protocol so um Sol and um I think that's pretty much it for me um some things that we want to point out if you want to learn a little bit more about blockchain security um these uh resources uh we oh there's a misspelling there but securium is an excellent um DeFi uh security conference and it's not just about smart contracts it's uh it goes on to blockchain and so on um if you're interested in learning with them they have a boot camp that will to show you about bug bounty hunting and honestly even the immunify site is excellent because they'll tell you okay if you've never done any auditing here are some tools here's a list of things that you should know some basic terminology for unfortunately we are putting some things down that are closed source for tooling that we suggest that you look into anomaly detection for example we have ford up but there aren't enough open source projects and that really is important for moving forward the your secure like everyone's ability to inform their security posture in smaller organizations and oh on the web 2.0 that is also underlying web 3.0 technologies side seraphic is a really interesting product that's looking at memory management at the javascript engine level to block malicious transactions like sort of scrambling what content gets posted and then obviously the rec database but we already talked about that if you want to just start learning about smart contract security i'm sure you've heard of capture the ether crypto zombies really fun game and ether not yeah those are my those are my picks and then bring forward but yeah um there's yeah i guess you can put your your final notes and i will put in mind just yes yeah so we do one let me go back here so i i do want to add that forta which is the anomaly detection product which is open to a solution there are not very much innovation as far as tooling to ensure the security of uh blockchain as a whole forza does that sound like a lot to you so yeah that's a really cool thought as well don't you agree with me that the platform is there but i think that's Not exist across all chains. Primarily it exists within Ethereum networks. I do want to add Sephoric product which is a browser-based protection tool. It exists also at the memory level as a whole. Okay. So i just want to say that it's So important for folks to develop products not just Because of access to say like smaller organizations and Their security posture to improving that but also because Women and people of color are going to be left behind. We have to learn how to be i mean to use these products, Right? We have to learn to be international policy experts. We have to learn how to be suddenly security engineers or Security architects. We also have to learn how to be Fiduciaries. How? right? and i'm not saying that Blockchain is exploitable. It's not. The value proposition is exclusively within the finance world. There are other and novel use cases for identification. But like can we just make it a little easier for some of us? I think that is while i'm not bullish on any of these technologies, Kanashka clearly is. I think it's so important to Put in the time to solve these very big problems that are coming whether you Want them or not. Because there's a lot of cash coming in. And a community backing it. Final thoughts? Well, i would like to wrap up with our last quote of the day. Blockchain application security, it does lack specific security Guidance and resources. The blockchain may be secure as a Whole, but the applications that lives on the blockchain, it may not be. Thank you so much. We open the floor up to questions. And can i tell you in advance, if we don't know the answer, we'll Definitely get back to you, and you can certainly write us on twitter And such. We'll put up our handles again. Thank you so much. I think we have a question over here. And i'm probably just going to point to Kanashka. Thank you for a very interesting talk. You talked about smart contracts and code review. Are there any tools in the industry to validate or to at Least to help people understand the smart contracts that they are Signing on? yeah. So this is the list that i was talking about earlier with Immunify. If you are interested in looking At that, it's immunify.com. Learn. They're not the only bug-bound team. You have to shop in town. But this is a really good resource. You have, as i said, you have sas tools, das tools, all of these Like traditional tools, but they don't exist for every chain. Do i have a recommendation on smart contract auditing tools? No. But this is theirs. Any other questions? Yeah. I have another question i think i see. Thanks. Do you see anything on the metaverse coming up? Can you get a little closer to the mic like i am? I basically have to, like, eat it. Oh, yeah. So do you have any security concerns you want to highlight On the metaverse? Oh, insecurities in the metaverse. Oh, that's totally Kanashka's, like, world, not mine. . So align with the oas top ten principles. There are many different security vulnerabilities that may exist as a whole. I would love to, you know, get back to you, reach out to me via twitter or e-mail. And i would be glad to give you extensive lists. I feel that there's, like, a lot of financial crime in that space. So i don't know if that's your. Yeah. Thank you. Next. Thanks. So with the l2s that are coming out, what do you guys. So with the l2 block, yeah, change coming out, how are you guys feeling about that? Like, what are the security concerns that you're, like, identifying there? Let me see if i heard your question correctly. You said with the layer 2 changeover in ethereum, right? What was the second half of the question? Sorry. The layer 2 chains. Oh, chains. Yeah. Yeah. Security concerns there with, i guess, sending that data back, all the other things that, like, come with that. So, like, sorry i work in this space and i just can't, like, think right now. It's been a long weekend. It's really hard for me, too. I can't listen to 3,000 things. But go ahead. Try again. Yeah. So with the layer 2s and how they write back, like, arbitrum, polygon, where they're sending the data back from the layer 2 chain back to, like, ethereum. Do you guys see any, like, security things that you can think of, like, you can identify or, like, looked into? So some security concerns that i overall have, you're referring to layer 2 solutions such as possibly, like, polygon network as a whole. So some security vulnerabilities i think exist are the EVM at the EVM layer. Ethereum virtual machine, where the network bridge gap as a whole when you're swapping to a different particular network. I feel that there is a lot of vulnerabilities exist within that particular layer. Yeah. Thank you. A bit of less of a question, more of a comment. And... Especially about, you mentioned auditing as being an important part of making sure that blockchain applications can be more secure. I work for one of the largest auditing firms, especially in the Solana ecosystem. And my observation has been that there's just a severe shortage of talent in that space. It's by far probably one of the most profitable things you could do in security. Just because the bug bounty is, like, 10 million, you don't get that, like, for hacking into I don't know, a browser or something. So I definitely encourage people to look into it. We've had to turn down, since the beginning of the year, like, probably 50 requests from blockchain protocols that wanted to get an audit and just we couldn't schedule it in because, like, there's not enough talent there that we could even hire. And yeah, I also would encourage anybody who's building blockchain protocols to come up with, like, sensible bug bounties. Because if there's... Like, we've seen $300 million and more at stake that can be lost in any single hack, then it kind of makes sense to have a bug bounty system in place where, especially loss-of-funds bugs, just it needs to make sense to stay on the good side rather than, like, using the exploit. So those are my thoughts. Yeah. You know, that's a really curious comment because I have a buddy that said, well, what's the point of me securing this and finding this bug when I don't even know what to do? And, like, yeah, they're going to pay me this much, but I could make so much more tenfold. Another comment that I got from a bug bounty hunter was, well, you know, I'm backed up for, like, a year. I have so much work. So that's true. Thanks so much for your comment. I'm definitely going to get back in touch with you. Yes. And if there are no further questions, I really appreciate you all coming down. Yes, definitely. Thank you for coming. Thank you. Thank you. All right. Let's put our hands together.