This repository contains the code for our project 7 for the Cybersecurity course.
The cli.py file is the original file provided by our prof.
The fixed version of the application will be found in a new version of this file with a fix version 1.0.1 of the package cra_demo_app.
Prior to running the application, make sure to install the required dependencies (uv is required, you can install it easily as described [here]((uv is required, you can install it using pip install uv))):
uv venv
uv syncThen run the application using:
uv run cra_demo_appYou can run the application using Docker exposing the CLI via webpage using the following command:
docker compose up -dThe sbom.json file contains all dependencies of this project and was generated using:
cyclonedx-py environment > sbom.jsonThe folder dtrack contains a docker-compose.yml file to run a local instance of Dependency-Track for analyzing the SBOM.
It also contains another SBOM file, which is unrelated to our application, but was used to demonstrate the vulnerability-analysis feature of Dependency-Track.
The test folder contains e2e-tests to verify the security of the (fixed) application.
To run the tests, use:
uv run pytest test/ -v