Quick Start Tutorial¶
This tutorial will guide you through building and running your first EMBSEC lab in under 5 minutes.
Prerequisites¶
Ensure you've completed the installation process.
Step 1: Clone the Repository¶
Step 2: Initial Setup¶
Run the one-time setup command:
This will:
- Check all dependencies
- Configure for both hardware and QEMU
- Create necessary build directories
Step 3: Build for QEMU¶
This builds all labs for the QEMU emulator.
Step 4: Run Your First Lab¶
You should see:
Step 5: Interact with the Lab¶
-
Try entering a normal name:
-
Exit QEMU with
Ctrl-AthenX
Understanding What Happened¶
You just:
- Built the EMBSEC SDK and labs
- Launched a lab in QEMU ARM emulator
- Ran embedded code with a buffer overflow vulnerability
Common Commands¶
Running Labs¶
# Run any lab
make qemu-<lab-name>
# Examples:
make qemu-01-buffer-overflow
make qemu-02-format-string
Testing¶
Building¶
Troubleshooting¶
QEMU Won't Start¶
- Ensure QEMU is installed:
qemu-system-arm --version - Check the build succeeded:
ls build-qemu/labs/
Build Fails¶
- Run
make cleanthenmake setupagain - Check ARM toolchain:
arm-none-eabi-gcc --version
Can't Exit QEMU¶
- Press
Ctrl-AthenX(notCtrl-C)
Next Steps¶
- Understand Your First Lab - Deep dive into buffer overflows
- Explore More Labs - Try other security challenges
- Learn the SDK - Understand available functions