Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions shared/threat-models/ext/supported-threat-models.model.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extensions": [
{
"addsTo": {
"pack": "codeql/threat-models",
"extensible": "threatModelConfiguration"
},
"data": [
["default", true, -2147483648] // The "default" threat model is included by default
]
}
]
}
6 changes: 0 additions & 6 deletions shared/threat-models/ext/supported-threat-models.model.yml

This file was deleted.

41 changes: 41 additions & 0 deletions shared/threat-models/ext/threat-model-grouping.model.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"extensions": [
{
"addsTo": {
"pack": "codeql/threat-models",
"extensible": "threatModelGrouping"
},
"data": [
// Default threat model
["remote", "default"],

// Remote threat models
["request", "remote"],
["response", "remote"],

// Local threat models
["database", "local"],
["commandargs", "local"],
["environment", "local"],
["stdin", "local"],
["file", "local"],
["windows-registry", "local"],

// Android threat models
["android-external-storage-dir", "android"],
["contentprovider", "android"],

// Threat models that are not grouped with any other threat models.
// (Note that all threat models are a child of "all" implicitly, and we
// make it explicit here just to make sure all threat models are listed.)
["database-access-result", "all"],
["file-write", "all"],
["reverse-dns", "all"],
["view-component-input", "all"],

// AI threat models
["ai", "all"]
]
}
]
}
34 changes: 0 additions & 34 deletions shared/threat-models/ext/threat-model-grouping.model.yml

This file was deleted.

1 change: 1 addition & 0 deletions shared/threat-models/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ library: true
groups: shared
dataExtensions:
- ext/*.model.yml
- ext/*.model.json
warnOnImplicitThis: true
20 changes: 20 additions & 0 deletions shared/util/ext/default-alert-filter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extensions": [
{
"addsTo": {
"pack": "codeql/util",
"extensible": "restrictAlertsTo"
},
// Empty predicate means no restrictions on alert locations
"data": []
},
{
"addsTo": {
"pack": "codeql/util",
"extensible": "restrictAlertsToExactLocation"
},
// Empty predicate means no restrictions on alert locations
"data": []
}
]
}
13 changes: 0 additions & 13 deletions shared/util/ext/default-alert-filter.yml

This file was deleted.

1 change: 1 addition & 0 deletions shared/util/qlpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ library: true
dependencies: null
dataExtensions:
- ext/*.yml
- ext/*.json
warnOnImplicitThis: true
Loading