CodeQL library for Go
codeql/go-all 2.1.3 (changelog, source)
Search

Module ThreatModels

INTERNAL use only. This is an experimental API subject to change without notice.

This module provides extensible predicates for configuring which kinds of MaD models are applicable to generic queries.

Import path

import codeql.threatmodels.ThreatModels

Predicates

currentThreatModel

Holds if the source model kind kind is relevant for generic queries under the current threat model configuration.

knownThreatModel

Holds if the specified threat model kind is mentioned in either the configuration or grouping table.

threatModelConfiguration

Holds configuration entries to specify which threat models are enabled.