5/5
_Follow along with this video._ --- ### Security & Auditing Introduction Welcome back! This is our final lesson in this course and we're ending on a thrilling note - diving into the world of **smart contract security and auditing**. Remember, this is _just a teaser_ and won't cover everything about security, nonetheless, we'll ensure you're armed with the fundamentals to keep your protocol secure and that you know where to ask for help when you need it and it's time to deploy. Let's start with some scary statistics to demonstrate the motivations behind improving Web3 security. In 2022, according to data from Chainalysis there were $3.8 Billion work of hacks in crypto, $3.1 Billion from DeFi specifically. To put this into perspective, according to DeFi Llama, as of recording, there's $47.5 Billion TVL in all of DeFi. This means a staggering 6.5% of all the money in DeFi was hacked/stolen. That's insane. Imagine a bank telling you there was a 6% chance that everything you deposit will be gone next year. There's a popular website, [**rekt.news**](https://rekt.news/) which tracks crypto hacks and even has a leaderboard ranking the largest hacks of all time. What's so shocking (or not shocking) is how many of these hacked protocols went unaudited. This is unacceptable! Security needs to be an active part of any developers deployment plan and this includes a thorough review of their code. > ❗ **PROTIP** > Spending $2M on Security > $200M Hack ### Wrap Up With all this said, any developer serious about launching a protocol needs to be serious about security and this includes likely getting an audit. In the next lesson we're going to discuss what a smart contract audit is, and how developers can prepare for an audit when they're getting ready to deploy. See you there!
A critical primer to Introduction to Smart Contract Security and Auditing - Understand the severe financial impact of smart contract hacks, highlighting 2022's $3.1B DeFi losses and the risks of unaudited code. Recognize the business imperative for security audits as a crucial step before mainnet deployment.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Advanced smart contract development
How to develop a stablecoin
How to develop a DeFi protocol
How to develop a DAO
Advanced smart contracts testing
Fuzz testing
Manual verification
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Web3 engineer, educator, and Cyfrin co-founder. Patrick's smart contract development and security courses have helped hundreds of thousands of engineers kickstarting their careers into web3.
Guest lecturers:
Last updated on June 6, 2025
Duration: 36min
Duration: 3h 06min
Duration: 5h 02min
Duration: 6h 02min
Duration: 2h 47min
Duration: 1h 23min
Duration: 4h 28min
Duration: 1h 19min
Duration: 1h 10min
Course Overview
About the course
Advanced smart contract development
How to develop a stablecoin
How to develop a DeFi protocol
How to develop a DAO
Advanced smart contracts testing
Fuzz testing
Manual verification
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Security researcher
$49,999 - $120,000 (avg. salary)
Web3 engineer, educator, and Cyfrin co-founder. Patrick's smart contract development and security courses have helped hundreds of thousands of engineers kickstarting their careers into web3.
Guest lecturers:
Last updated on June 6, 2025