W3SA - Aptos Codebase Benchmark
Overview
This repository contains the code for the W3SA Benchmark for Aptos. This benchmark targets Move-based smart contracts deployed on the Aptos blockchain. The benchmark includes audited projects and CTF challenges, providing a comprehensive collection of real-world code examples with known vulnerabilities.
Project Statistics
aptos_audits
The benchmark contains 10 projects with a total of 99 files. Each project has been audited, with vulnerabilities categorized by severity level:
| Project | Total Files | Critical(Audit) | High(Audit) | Medium(Audit) | Low(Audit) | Informational(Audit) |
|---|---|---|---|---|---|---|
| aries | 14 | 1 | 0 | 4 | 0 | 1 |
| bapt_swap | 2 | 1 | 15 | 3 | 17 | 5 |
| emojicoin | 9 | 0 | 1 | 0 | 0 | 1 |
| layerzero | 19 | 0 | 1 | 0 | 0 | 4 |
| move_did | 8 | 1 | 0 | 0 | 3 | 0 |
| mover | 2 | 0 | 0 | 1 | 3 | 7 |
| pontem_liquidswap | 8 | 1 | 1 | 0 | 0 | 3 |
| transit_finance | 1 | 0 | 0 | 6 | 1 | 0 |
| trufin | 3 | 0 | 0 | 0 | 3 | 2 |
| wormhole | 33 | 0 | 0 | 0 | 0 | 6 |
| Total | 99 | 4 | 18 | 14 | 27 | 29 |
aptos_ctf_1
Data collected from AptosCodeCollision CTF.
| Challenges | Vulnerability Type | |
|---|---|---|
| 1 | swap | Unrestricted mint, signer-capability leak |
| 2 | rigged_poker | Unrestricted AI hand regeneration |
| 3 | super_mario_16 | Unprotected public function |
| 4 | super_mario_32 | Unprotected public function |
| 5 | super_mario_64 | Resource group transfer vulnerability |
| 7 | zkb | Information Disclosure |
| 8 | simple_swap | Unlimited token minting |
| 9 | groth16 | Unrestricted access |
| 10 | flash_loan | Insufficient validation |
aptos_ctf_2
Collection of CTF data from ctf_movement_2022.
| Challenges | Vulnerability Type | |
|---|---|---|
| 1 | hello_move | Arithmetic Overflow |
| 2 | move_lock_v2 | Predictable Pseudorandom number generation |
| 3 | simple_swap | Account Drain, Fee bypass |
| 4 | swap_empty | Reserve Ratio Manipulation |
CTF Challenges
In addition to the audited projects, this benchmark includes Capture The Flag (CTF) challenges specifically designed to test and improve security skills in the Aptos/Move ecosystem.
Project Structure
βββ aptos_audits/
β βββ ground_truth/
β βββ repositories/
βββ aptos_ctf_1/
β βββ ground_truth/
β βββ challenges/
βββ aptos_ctf_2/
β βββ ground_truth/
β βββ challenges/
βββvulnerability_categories/
Key Components
- ground_truth/: Contains JSON files with detailed vulnerability information for each project, including severity, affected functions, and code snippets
- repositories/: Contains the original source code for each audited project
- challenges/: Contains Move smart contracts with intentional vulnerabilities for CTF exercises
Contact Us
For or questions, suggestions, or to learn more about Almanax.ai, reach out to us at https://www.almanax.ai/contact
- Downloads last month
- -