Skip to content
Draft
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
1 change: 1 addition & 0 deletions docs/codeql/reusables/threat-model-description.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Note that subcategories can be turned included or excluded separately, so you ca

The less commonly used categories are:

- ``ai`` which represents output generated by large language models (LLMs). This threat model is opt-in and does not include any built-in source models.
- ``android`` which represents reads from external files in Android (``android-external-storage-dir``) and parameter of an entry-point method declared in a ``ContentProvider`` class (``contentprovider``). Currently only used by Java/Kotlin.
- ``database-access-result`` which represents a database access. Currently only used by JavaScript.
- ``file-write`` which represents opening a file in write mode. Currently only used in C#.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| ai |
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extensions:
- addsTo:
pack: codeql/threat-models
extensible: threatModelConfiguration
data:
- ["ai", true, 0]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
private import codeql.threatmodels.ThreatModels

where
knownThreatModel("ai") and
currentThreatModel("ai")
select "ai"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: feature
---
* Added the opt-in `ai` threat model for LLM-generated data. No built-in source models are included.
3 changes: 3 additions & 0 deletions shared/threat-models/ext/threat-model-grouping.model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ extensions:
- ["file", "local"]
- ["windows-registry", "local"]

# AI threat models
- ["ai", "all"]

# Android threat models
- ["android-external-storage-dir", "android"]
- ["contentprovider", "android"]
Expand Down
Loading