Alternate threat model implementation

This commit is contained in:
Dave Bartolomeo
2023-10-24 13:12:37 -04:00
parent 76a9b71231
commit 5fd56ce866
3 changed files with 34 additions and 12 deletions

View File

@@ -47,10 +47,6 @@ abstract class SourceNode extends DataFlow::Node {
*/
class ThreatModelFlowSource extends DataFlow::Node {
ThreatModelFlowSource() {
// Expansive threat model.
currentThreatModel("all") and
(this instanceof SourceNode or sourceNode(this, _))
or
exists(string kind |
// Specific threat model.
currentThreatModel(kind) and