Open
Conversation
a934b97 to
aa10bbf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request β Lab 2: Threat Modeling with Threagile
Goal
Complete Lab 2 threat modeling exercise using Threagile to model OWASP Juice Shop deployment, generate baseline and secure variant threat models, and perform comprehensive risk analysis comparing the two configurations.
Changes
threagile-model.yamlthreagile-model.secure.yamlwith HTTPS and encryption improvementslabs/lab2/baseline/:labs/lab2/secure/:labs/submission2.mdwith:Testing
Baseline Model Generation
docker run --rm -v "/home/alex/courses/DevSecOps-Intro":/app/work:Z threagile/threagile \ -model /app/work/labs/lab2/threagile-model.yaml \ -output /app/work/labs/lab2/baseline \ -generate-risks-excel=false -generate-tags-excel=falseResult: β Successfully generated all required outputs (PDF, diagrams, JSON exports)
Secure Variant Generation
docker run --rm -v "/home/alex/courses/DevSecOps-Intro":/app/work:Z threagile/threagile \ -model /app/work/labs/lab2/threagile-model.secure.yaml \ -output /app/work/labs/lab2/secure \ -generate-risks-excel=false -generate-tags-excel=falseResult: β Successfully generated all required outputs with reduced risk count
Risk Comparison Analysis
Result: β Generated risk category delta table showing:
Model Changes Verification
Secure Model Changes:
protocol: httpβprotocol: httpsprotocol: httpβprotocol: httpsencryption: noneβencryption: transparentArtifacts & Screenshots
Generated Artifacts
Baseline Model Outputs (
labs/lab2/baseline/)report.pdf(1.3 MB) β Complete threat model report with diagramsdata-flow-diagram.png(232 KB) β Visual representation of data flowsdata-asset-diagram.png(112 KB) β Data asset relationships diagramrisks.json(15.8 KB) β 23 identified risks in JSON formatstats.json(536 B) β Risk statistics summarytechnical-assets.json(5.7 KB) β Technical asset definitionsSecure Variant Outputs (
labs/lab2/secure/)report.pdf(1.3 MB) β Secure variant threat model reportdata-flow-diagram.png(233 KB) β Updated data flow diagram with HTTPSdata-asset-diagram.png(113 KB) β Updated data asset diagramrisks.json(13.6 KB) β 20 identified risks (3 fewer than baseline)stats.json(536 B) β Updated risk statisticstechnical-assets.json(5.7 KB) β Technical asset definitionsRisk Analysis Results
Top 5 Risks (Baseline Model)
Risk Category Comparison
Key Findings:
Security Improvements Demonstrated
Encryption in Transit:
Encryption at Rest:
Overall Security Posture:
Checklist
labs/submission2.mdcreated)Summary
This PR completes Lab 2 requirements by:
The analysis demonstrates that implementing encryption controls (HTTPS for communication and transparent encryption for storage) directly addresses the highest-priority risks identified in the threat model, reducing total risks by 13% and elevated risks by 50%.