-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: Add support for threat models #17203
Commits on Aug 19, 2024
-
Python: Setup support for threat-models
Naming in other languages: - `SourceNode` (for QL only modeling) - `ThreatModelFlowSource` (for active sources from QL or data-extensions) However, since we use `LocalSourceNode` in Python, and `SourceNode` in JS (for local source nodes), it seems a bit confusing to follow the same naming convention as other languages, and instead I came up with new names.
Configuration menu - View commit details
-
Copy full SHA for 5ec8e5d - Browse repository at this point
Copy the full SHA 5ec8e5dView commit details -
ThreatModels: Expose
knownThreatModel
Without, it's impossible to write test showing what threat-models are active by default... unless I provide a hardcoded list in the test itself, which is not any fun.
Configuration menu - View commit details
-
Copy full SHA for 766dcc4 - Browse repository at this point
Copy the full SHA 766dcc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 617ab27 - Browse repository at this point
Copy the full SHA 617ab27View commit details -
Python: Remove 'response' from default threat-models
I didn't want to put the configuration file in `semmle/python/frameworks/**/*.model.yml`, so created `ext/` as in other languages
Configuration menu - View commit details
-
Copy full SHA for 8f7dec0 - Browse repository at this point
Copy the full SHA 8f7dec0View commit details
Commits on Sep 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 528f08f - Browse repository at this point
Copy the full SHA 528f08fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9239d7 - Browse repository at this point
Copy the full SHA b9239d7View commit details -
Python: Fixup threat-models for
os.environ.get()
Since using `.DictionaryElementAny` doesn't actually do a store on the source, (so we can later follow any dict read-steps). I added the ensure_tainted steps to highlight that the result of the WHOLE expression ends up "tainted", and that we don't just mark `os.environ` as the source without further flow.
Configuration menu - View commit details
-
Copy full SHA for 56c85ff - Browse repository at this point
Copy the full SHA 56c85ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for e1801f3 - Browse repository at this point
Copy the full SHA e1801f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66f389a - Browse repository at this point
Copy the full SHA 66f389aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d245db5 - Browse repository at this point
Copy the full SHA d245db5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7483075 - Browse repository at this point
Copy the full SHA 7483075View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d8cd05 - Browse repository at this point
Copy the full SHA 8d8cd05View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0b24d6 - Browse repository at this point
Copy the full SHA a0b24d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ccb5b1 - Browse repository at this point
Copy the full SHA 0ccb5b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d3793e - Browse repository at this point
Copy the full SHA 7d3793eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 333367c - Browse repository at this point
Copy the full SHA 333367cView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbebf7b - Browse repository at this point
Copy the full SHA cbebf7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ff7b65 - Browse repository at this point
Copy the full SHA 5ff7b65View commit details -
Configuration menu - View commit details
-
Copy full SHA for e35c2b2 - Browse repository at this point
Copy the full SHA e35c2b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e11bfc2 - Browse repository at this point
Copy the full SHA e11bfc2View commit details
Commits on Sep 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4a21a85 - Browse repository at this point
Copy the full SHA 4a21a85View commit details -
Python: Minor simplification of
ActiveThreatModelSource
Co-authored-by: Taus <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 535db98 - Browse repository at this point
Copy the full SHA 535db98View commit details
Commits on Sep 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 431a1af - Browse repository at this point
Copy the full SHA 431a1afView commit details