eCTF Insecure Example
This repository holds the insecure example design for an eCTF Hardware Security Module. The rules for the 2026 eCTF can be found here: https://rules.ectf.mitre.org/. Your team should NOT fork this repo. Instead clone it and push to a new private repo.
Layout
firmware/- Source code to build the firmwareMakefile- This makefile is invoked by the eCTF tools when creating an HSM.Dockerfile- Describes the build environment used by eCTF build tools.secrets_to_c_header.py- Python file to convert from global secrets to firmware-parsable header fileinc/- Directory with c header filessrc/- Directory with c source fileswolfssl/- Location to place wolfssl library for included Crypto Examplefirmware.ld- Defines memory layout of built firmware
ectf26_design/- Pip-installable module for generating secretssrc/- Secrets gen source codegen_secrets.py- Generates shared secrets
pyproject.toml- File that tells pip how to install this module
Makefile- Helper script to simplify repetitive build steps
Description
Languages
C
85.4%
Python
7.5%
Makefile
4.9%
Dockerfile
2%
Shell
0.2%