feat(lab2): Threagile threat model + secure variant + auth flow#960
Open
semyonnadutkin wants to merge 1 commit into
Open
feat(lab2): Threagile threat model + secure variant + auth flow#960semyonnadutkin wants to merge 1 commit into
semyonnadutkin wants to merge 1 commit into
Conversation
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.
Goal
Learn Threagile threat modeling, harden the security of an existing model, implement a feature-level threat model.
Changes
submissions/lab2.md,labs/lab2/threagile-secure-model.yaml,labs/lab2/threagile-auth-model.yamlTesting
The changes were verified by reviewing the generated reports (
risks.jsonfiles).Commands executed:
Observed output:
[ { "severity": "high", "category": "sql-nosql-injection", "title": "<b>SQL/NoSQL Injection</b> risk at <b>Auth API</b> against database <b>User DB</b> via <b>Credential Lookup</b>", "technical_asset": "auth-api" }, { "severity": "elevated", "category": "cross-site-scripting", "title": "<b>Cross-Site Scripting (XSS)</b> risk at <b>Token Signer</b>", "technical_asset": "token-signer" }, { "severity": "elevated", "category": "cross-site-scripting", "title": "<b>Cross-Site Scripting (XSS)</b> risk at <b>Auth API</b>", "technical_asset": "auth-api" }, { "severity": "elevated", "category": "cross-site-scripting", "title": "<b>Cross-Site Scripting (XSS)</b> risk at <b>Admin Endpoint</b>", "technical_asset": "admin-endpoint" }, { "severity": "elevated", "category": "unguarded-access-from-internet", "title": "<b>Unprotected access from the internet</b> to <b>Auth API</b> via <b>Browser</b> through <b>Login and Registration</b>", "technical_asset": "auth-api" } ]Artifacts & Screenshots
Artifacts
submissions/lab2.mdlabs/lab2/threagile-secure-model.yamllabs/lab2/threagile-auth-model.yamlDiagrams
Hardened Model
Diagram 1: Data flow in the hardened Threagile threat model
Authentication Model
Diagram 2: Data asset in the Threagile authentication threat model
Diagram 3: Data flow in the Threagile authentication threat model
Checklist
feat(labN): <topic>style)submissions/labN.mdexists