https://github.com/anubhav11156/pharaonik
Smart Contract Security Auditing Exercises for Cairo
https://github.com/anubhav11156/pharaonik
cairo-lang security-audit smat-contracts starknet
Last synced: 4 months ago
JSON representation
Smart Contract Security Auditing Exercises for Cairo
- Host: GitHub
- URL: https://github.com/anubhav11156/pharaonik
- Owner: anubhav11156
- License: mit
- Created: 2024-03-07T07:54:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-13T19:35:39.000Z (over 1 year ago)
- Last Synced: 2024-04-14T16:25:33.095Z (about 1 year ago)
- Topics: cairo-lang, security-audit, smat-contracts, starknet
- Language: Cairo
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pharaonik

Set of exercises designed to help you develop, learn, and refine your skills in security audits of Cairo smart contracts. The problems are inspired by real-world smart contract exploits and insights gleaned from security audit reports. By working through these exercises, you'll gain proficiency in identifying and mitigating vulnerabilities in Cairo contracts.
The exercises can be of three difficulty levels: Easy, Medium, and Hard. Each problem is also associated with relevant tags to guide you. These tags might indicate the specific vulnerability the exercise focuses on (e.g., reentrancy, access control, etc), the required skills (e.g., arithmetic overflows, gas optimization, etc). To ensure effective learning, each exercise follows a comprehensive format, providing background information/context, clearly defined objective, and instructions.
## Install and Build
### Dependencies
 
- [Install Scarb](https://docs.swmansion.com/scarb/download.html)
- [Install Starknet-foundry](https://github.com/foundry-rs/starknet-foundry)
### Installation
1. Clone the repository
```bash
git clone [email protected]:anubhav11156/Pharaonik.git
```
2. Update the dependencies
```bash
scarb update
```
3. Build the modules
```bash
scarb build
```
## Excercises
- [Excercise0](https://github.com/anubhav11156/Pharaonik/tree/main/src/excercises/excercise0)
- [Excercise1](https://github.com/anubhav11156/Pharaonik/tree/main/src/excercises/excercise1)## Getting Help
- Go through the Starknet [Cairo Book](https://book.cairo-lang.org/)
- Check the [Staknet Foundry Book](https://foundry-rs.github.io/starknet-foundry/)
- Join the [Starknet Discord](https://discord.com/invite/qypnmzkhbc)
- Need more help? [Contact me](https://twitter.com/subsix_)
## Disclaimer
- The Cairo code, practices, and patterns provided in this repository are for educational purposes only. They are not intended for use in production environments.
- This repo is under constant upgrade, more excersises are being added!