Skip to content

feat(lab2): Threagile threat model + secure variant + auth flow#932

Open
eraegar wants to merge 4 commits into
inno-devops-labs:mainfrom
eraegar:feature/lab2
Open

feat(lab2): Threagile threat model + secure variant + auth flow#932
eraegar wants to merge 4 commits into
inno-devops-labs:mainfrom
eraegar:feature/lab2

Conversation

@eraegar

@eraegar eraegar commented Jun 9, 2026

Copy link
Copy Markdown

Goal

Add the Lab 2 Threagile baseline analysis, a hardened secure-variant model, and a focused auth-flow threat model for the bonus task.

Changes

  • Added submissions/lab2.md with the baseline risk table, top-5 risks, STRIDE mapping, trust-boundary observation, secure-variant comparison, and bonus auth-flow analysis
  • Added labs/lab2/threagile-model-secure.yaml as the hardened Threagile model variant
  • Added labs/lab2/threagile-model-auth.yaml as a focused authentication-flow threat model written from scratch

Testing

Commands used:

docker run --rm \
  -v "$(pwd)/labs/lab2":/app/work \
  threagile/threagile:0.9.1 \
  -model /app/work/threagile-model.yaml \
  -output /app/work/output

jq '[.[] | .severity] | group_by(.) | map({severity: .[0], count: length})' \
  labs/lab2/output/risks.json

jq '[.[] | {severity, category, title, technical_asset: .most_relevant_technical_asset}] |
    sort_by(.severity) | .[:5]' \
  labs/lab2/output/risks.json

docker run --rm \
  -v "$(pwd)/labs/lab2":/app/work \
  threagile/threagile:0.9.1 \
  -model /app/work/threagile-model-secure.yaml \
  -output /app/work/output-secure

docker run --rm \
  -v "$(pwd)/labs/lab2":/app/work \
  threagile/threagile:0.9.1 \
  -model /app/work/threagile-model-auth.yaml \
  -output /app/work/output-auth

Observed results:

  • Baseline model generated Threagile outputs including risks.json, data-flow-diagram.png, and data-asset-diagram.png
  • Baseline risk counts were 4 elevated, 14 medium, and 5 low for a total of 23
  • Secure variant reduced the total risk count from 23 to 20
  • Auth-flow model generated a focused risk set with 3 high, 4 elevated, 21 medium, and 1 low risks
  • The focused auth model surfaced auth-specific findings such as missing-authentication-second-factor, missing-identity-propagation, and unguarded-access-from-internet

Artifacts & Screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant