Skip to content

ISFCR-ECTF/shift

Repository files navigation

SHIFT (Secure Hardware Interface for File Transfer)

Welcome to the SHIFT repository! This project implements an advanced, cryptographically verifiable append-only filesystem and Host Security Module (HSM) designed specifically for the ECTF 2026 competition.

Project Structure

The project is divided into several key directories:

  • firmware/: Contains the core C codebase for the MSPM0L2228 microcontroller. This is where the primary HSM logic, cryptographic handlers, and flash driver reside.
    • firmware/README.md: Start here for an architectural overview of how the firmware operates, handles UART communications, and secures data in flash.
  • firmware/utils/: Contains the Python tooling required to derive and provision device-specific cryptographic identities (derive_secrets.py).
    • firmware/utils/README.md: Read this to understand how the asymmetric shared-secret derivation handles user permissions securely at build-time.
  • firmware/external/: Submodules containing third-party cryptographic primitives (ascon, micro-ecc).

Documentation & API Reference

We have heavily documented the internal C source code and Python utilities using a concise, Linux-kernel documentation style to explain the how and why behind the critical hardware security mechanisms.

Generating the Doxygen Website

To view the complete API reference, function call graphs, and structural definitions, you can generate the local HTML documentation site:

  1. Ensure you have Doxygen installed on your machine.

  2. From the root of the repository, run:

    doxygen Doxyfile
    
  3. Open docs/html/index.html in your preferred web browser.

Exporting documentation to PDF

The Doxyfile is also configured to support high-quality PDF generation. If you have a LaTeX distribution (like texlive) installed:

  1. Run doxygen Doxyfile as shown above.

  2. Navigate to the newly created latex directory:

    cd docs/latex
  3. Build the PDF:

    make
  4. Open the generated refman.pdf document.

Authors

  1. Sumedh Girish
  2. Aditya Naskar
  3. Shriniketh Kana

About

Firmware for ECTF 2026 Embedded CTF called SHIFT aka Secure Hardware Interface for File Transfer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors