The ultimate, most advanced, security, DeFi, assembly, web3 auditor course ever created.
Solidity
1,968
112 commits
updated Jul 8, 2026
Level up your career as a smart contract auditor writing secure and optimized smart contracts.
Welcome to the repository for the Ultimate Smart Contract Auditing, Assembly, Security, and DeFi Course by Cyfrin Updraft and The Red Guild!
[IMPORTANT!] Course Link: https://updraft.cyfrin.io/courses/security
This repository houses the written content of our courses, organized to facilitate easy access and contribution from our community. Please refer to this for an in-depth explanation of the content:
Note: If you're familiar with Patrick's previous courses, we have renamed "Lessons" to "Sections"
Head over to the Cyfrin Updraft website to get the best learning experience!
Link to course: https://updraft.cyfrin.io/courses/security
β οΈ All code associated with this course is for demo purposes only. They have been audited, but we do not recommend them for production use and should be used at your own risk.
Join Cyfrin Updraft for the best learning experience!
An intermediate understanding of solidity. You don't need to be a pro, but you should be familiar with:
Here are some resources to get you up to speed with the prerequisites:
IF YOU DECIDE TO MINT THE REAL NFT:
Do not skip this section!
Rebuild trust in the ecosystem.
Wild West image to the outsiders
And finally, by embarking on this journey, you are now a "Security Researcher", not an "Auditor". The key word is "Researcher", so we will go over strategies for continued learning so you can stay on top of your game.
π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―
π― Exercise: Write yourself a message about why you want this
π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―
(back to top) β¬οΈ
forge initπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈ
πΈ Exercise:
πΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈ
(back to top) β¬οΈ
πππππππππππππππππππππππ
π Exercise: Sign up for one security/web3 newsletter!
πππππππππππππππππππππππ
(back to top) β¬οΈ
π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’Important Note: We are now going to do audits. Please note, that we will not find all the bugs in each codebase. Each codebase was designed to show you a specific set of bugs, and give you a good understanding of what an audit "feels" like.
π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’
π» Security Review CodeV1: https://sepolia.etherscan.io/address/0x2ecf6ad327776bf966893c96efb24c9747f6694b
π» Security Review CodeV2: https://github.com/Cyfrin/3-passwordstore-audit
π» Security Review CodeV3: https://github.com/Cyfrin/3-passwordstore-audit/tree/onboarded
π» Security Review Final: https://github.com/Cyfrin/3-passwordstore-audit/tree/audit-data
Feel free to look ahead and try to find the bugs on the codebase yourself, or get familiar with the protocol first.
Remember the phases!
π½π½π½π½π½π½π½π½π½π½
πΌπΌπΌπΌπΌπΌπΌπΌπΌπΌ
For this demo, we are ignoring the last 2 phases
cloconlyowner
### [S-#] Title (ROOT CAUSE + IMPACT)
**Description:**
**Impact:**
**Proof of Concept:**
**Recommended Mitigation:**
π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯
π₯ Exercises:
π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯
(back to top) β¬οΈ
β β β β β β β β β β β β β β β β β β β β β β β β β
This is the BEST security review for new auditors, 100% be sure to pay attention to this section.
β β β β β β β β β β β β β β β β β β β β β β β β β
This is the go-to best starter audit/security review. There are a lot of bugs in here, some obvious, some not.
π» Security Review Code: https://github.com/Cyfrin/4-puppy-raffle-audit
Concepts you'll learn: Static analysis, Reentrancy, Weak RNG, Arithmetic issues, How to write a professional looking report.
π§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βπ
π§βπ Exercises:
π§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βπ
(back to top) β¬οΈ
π» Security Review Code: https://github.com/Cyfrin/5-t-swap-audit
Concepts you'll learn: Stateful fuzzing, Fuzzing, Invariants, FREI-PI/CEII, Advanced DeFi, AMMs, Uniswap, Curve.fi, Constant product formula
ππππππππππππππππ
STOP!
Don't look at the contracts for this one!
We are going to show you how you can use advanced tools to find even more bugs just by properly understanding invariants and writing more effective test suites.
ππππππππππππππππ
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
π° Exercises:
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
ππππππππππππππππππππππππππ
Congratulations!!
If you've made it this far in the course and you understand what's going on, you have the skills to start getting paid as a security researcher, doing competitive audits, bug bounties, or even get hired!
But if you want to become one of the best in the world and really secure web3, keep going...
ππππππππππππππππππππππππππ
(back to top) β¬οΈ
π» Security Review Code: https://github.com/Cyfrin/6-thunder-loan-audit
We are starting to get more advanced with DeFi and smart contract issues. Buckle up, we are getting hotter.
π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦
π¦ Exercises:
π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦
(back to top) β¬οΈ
π» Security Review Code: https://github.com/Cyfrin/7-boss-bridge-audit
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
π° Exercises:
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
(back to top) β¬οΈ
selectWinner to call a refundThis security review is optional. It's a LOT of code! But if you choose to do it, you'll get a better idea of what a larger codebase feels like. Being comfortable coming up to a codebase and saying "I'll eventually understand this codebase, but right now I don't" is important!
π» Security Review Code: https://github.com/Cyfrin/8-vault-guardians-audit
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ Exercises:
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
(back to top) β¬οΈ
ππππππππππππππππππππππππππ
Congratulations!!
If you've made it this far in the course and you understand what's going on, you have the skills to become one of the top security researchers in web3! Either as a solo auditor, freelancer, competitive auditor, or even get hired by a top firm!
However... if you want to be on the cutting edge and be able to understand every nook in web3, you've got a little more to go...
ππππππππππππππππππππππππππ
The next sections (originally just called "part 2") have been moved to their own courses!
We highly recommend taking these two courses (linked above) so you can have a thorough grasp of all things EVM.
(back to top) β¬οΈ
ππππππππππππ Completed The Course! ππππππππππππ
If you've made it this far... wow.
The Cyfrin team runs CodeHawks, Cyfrin Updraft, and private security reviews. They are an advisor to the Peeranha project, and run various blockchain nodes like Chainlink & Ethereum. Additionally, they are responsible for the creation of the Aderyn and Solodit tools.
Big thanks to our sponsors/donors!!
Thanks to everyone who is taking, participating in, and working on this course. These courses are passion project data dumps for everyone in the web3 ecosystem.
Let's level up so we can keep web3 safer, and thank you again for taking this course!
(back to top) β¬οΈ
1,045 followers Β· starred Dec 2025
66 followers Β· starred Feb 2024
394 followers Β· starred Mar 2025
44 followers Β· starred Nov 2023
The ultimate, most advanced, security, DeFi, assembly, web3 auditor course ever created.
Solidity
1,968
112 commits
updated Jul 8, 2026
Level up your career as a smart contract auditor writing secure and optimized smart contracts.
Welcome to the repository for the Ultimate Smart Contract Auditing, Assembly, Security, and DeFi Course by Cyfrin Updraft and The Red Guild!
[IMPORTANT!] Course Link: https://updraft.cyfrin.io/courses/security
This repository houses the written content of our courses, organized to facilitate easy access and contribution from our community. Please refer to this for an in-depth explanation of the content:
Note: If you're familiar with Patrick's previous courses, we have renamed "Lessons" to "Sections"
Head over to the Cyfrin Updraft website to get the best learning experience!
Link to course: https://updraft.cyfrin.io/courses/security
β οΈ All code associated with this course is for demo purposes only. They have been audited, but we do not recommend them for production use and should be used at your own risk.
Join Cyfrin Updraft for the best learning experience!
An intermediate understanding of solidity. You don't need to be a pro, but you should be familiar with:
Here are some resources to get you up to speed with the prerequisites:
IF YOU DECIDE TO MINT THE REAL NFT:
Do not skip this section!
Rebuild trust in the ecosystem.
Wild West image to the outsiders
And finally, by embarking on this journey, you are now a "Security Researcher", not an "Auditor". The key word is "Researcher", so we will go over strategies for continued learning so you can stay on top of your game.
π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―
π― Exercise: Write yourself a message about why you want this
π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―π―
(back to top) β¬οΈ
forge initπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈ
πΈ Exercise:
πΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈπΈ
(back to top) β¬οΈ
πππππππππππππππππππππππ
π Exercise: Sign up for one security/web3 newsletter!
πππππππππππππππππππππππ
(back to top) β¬οΈ
π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’Important Note: We are now going to do audits. Please note, that we will not find all the bugs in each codebase. Each codebase was designed to show you a specific set of bugs, and give you a good understanding of what an audit "feels" like.
π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’π’
π» Security Review CodeV1: https://sepolia.etherscan.io/address/0x2ecf6ad327776bf966893c96efb24c9747f6694b
π» Security Review CodeV2: https://github.com/Cyfrin/3-passwordstore-audit
π» Security Review CodeV3: https://github.com/Cyfrin/3-passwordstore-audit/tree/onboarded
π» Security Review Final: https://github.com/Cyfrin/3-passwordstore-audit/tree/audit-data
Feel free to look ahead and try to find the bugs on the codebase yourself, or get familiar with the protocol first.
Remember the phases!
π½π½π½π½π½π½π½π½π½π½
πΌπΌπΌπΌπΌπΌπΌπΌπΌπΌ
For this demo, we are ignoring the last 2 phases
cloconlyowner
### [S-#] Title (ROOT CAUSE + IMPACT)
**Description:**
**Impact:**
**Proof of Concept:**
**Recommended Mitigation:**
π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯
π₯ Exercises:
π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯π₯
(back to top) β¬οΈ
β β β β β β β β β β β β β β β β β β β β β β β β β
This is the BEST security review for new auditors, 100% be sure to pay attention to this section.
β β β β β β β β β β β β β β β β β β β β β β β β β
This is the go-to best starter audit/security review. There are a lot of bugs in here, some obvious, some not.
π» Security Review Code: https://github.com/Cyfrin/4-puppy-raffle-audit
Concepts you'll learn: Static analysis, Reentrancy, Weak RNG, Arithmetic issues, How to write a professional looking report.
π§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βπ
π§βπ Exercises:
π§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βππ§βπ
(back to top) β¬οΈ
π» Security Review Code: https://github.com/Cyfrin/5-t-swap-audit
Concepts you'll learn: Stateful fuzzing, Fuzzing, Invariants, FREI-PI/CEII, Advanced DeFi, AMMs, Uniswap, Curve.fi, Constant product formula
ππππππππππππππππ
STOP!
Don't look at the contracts for this one!
We are going to show you how you can use advanced tools to find even more bugs just by properly understanding invariants and writing more effective test suites.
ππππππππππππππππ
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
π° Exercises:
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
ππππππππππππππππππππππππππ
Congratulations!!
If you've made it this far in the course and you understand what's going on, you have the skills to start getting paid as a security researcher, doing competitive audits, bug bounties, or even get hired!
But if you want to become one of the best in the world and really secure web3, keep going...
ππππππππππππππππππππππππππ
(back to top) β¬οΈ
π» Security Review Code: https://github.com/Cyfrin/6-thunder-loan-audit
We are starting to get more advanced with DeFi and smart contract issues. Buckle up, we are getting hotter.
π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦
π¦ Exercises:
π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦π¦
(back to top) β¬οΈ
π» Security Review Code: https://github.com/Cyfrin/7-boss-bridge-audit
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
π° Exercises:
π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°π°
(back to top) β¬οΈ
selectWinner to call a refundThis security review is optional. It's a LOT of code! But if you choose to do it, you'll get a better idea of what a larger codebase feels like. Being comfortable coming up to a codebase and saying "I'll eventually understand this codebase, but right now I don't" is important!
π» Security Review Code: https://github.com/Cyfrin/8-vault-guardians-audit
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ Exercises:
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦ π¦
(back to top) β¬οΈ
ππππππππππππππππππππππππππ
Congratulations!!
If you've made it this far in the course and you understand what's going on, you have the skills to become one of the top security researchers in web3! Either as a solo auditor, freelancer, competitive auditor, or even get hired by a top firm!
However... if you want to be on the cutting edge and be able to understand every nook in web3, you've got a little more to go...
ππππππππππππππππππππππππππ
The next sections (originally just called "part 2") have been moved to their own courses!
We highly recommend taking these two courses (linked above) so you can have a thorough grasp of all things EVM.
(back to top) β¬οΈ
ππππππππππππ Completed The Course! ππππππππππππ
If you've made it this far... wow.
The Cyfrin team runs CodeHawks, Cyfrin Updraft, and private security reviews. They are an advisor to the Peeranha project, and run various blockchain nodes like Chainlink & Ethereum. Additionally, they are responsible for the creation of the Aderyn and Solodit tools.
Big thanks to our sponsors/donors!!
Thanks to everyone who is taking, participating in, and working on this course. These courses are passion project data dumps for everyone in the web3 ecosystem.
Let's level up so we can keep web3 safer, and thank you again for taking this course!
(back to top) β¬οΈ
1,045 followers Β· starred Dec 2025
66 followers Β· starred Feb 2024
394 followers Β· starred Mar 2025
44 followers Β· starred Nov 2023