builtin:threat-detection.detection-rules)Rules that detect threats by running DQL queries and generating security findings.
| Schema ID | Schema groups | Scope |
|---|---|---|
builtin:threat-detection.detection-rules |
| environment |
| GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:threat-detection.detection-rules |
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:threat-detection.detection-rules |
| GET | Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:threat-detection.detection-rules |
To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.
| Property | Type | Description | Required |
|---|---|---|---|
Rule IDruleId | text | Used to identify the rule. | Required |
Statusstatus | enum | Whether the detection rule is active and will be executed. The element has these enums
| Required |
Titletitle | text | The title of the detection rule. | Required |
Descriptiondescription | text | The description of the detection rule. | Required |
Detection querydql | text | The DQL query used to detect threats. | Required |
Time frame (ms)timeFrameMillis | integer | The time window in milliseconds over which the detection query is evaluated. | Required |
Run frequency (ms)runFrequencyMillis | integer | How often the detection query is executed, in milliseconds. | Required |
Shift run by (ms)shiftRunByMillis | integer | Offset applied to the scheduled run time, in milliseconds. | Required |
Scheduling modescheduleMode | enum | Controls whether the system will automatically start execution or whether to start at a specific timestamp The element has these enums
| Required |
Scheduling reference timestampscheduleReferenceTimestamp | zoned_date_time | Reference timestamp for scheduling detection rule execution. Only used when scheduling mode is 'Manual'. | Optional |
Actor IDactorId | text | UUID of the user or service user on whose behalf detection queries are executed. | Required |
Actor typeactorType | enum | Whether the actor is a service user or a real user. The element has these enums
| Required |
Tagstags | Tag[] | Labels used to categorize and filter detection rules. | Required |
Finding titlefindingTitle | text | The title of the security finding generated when the detection rule triggers. | Required |
Finding descriptionfindingDescription | text | A description of the security finding generated when the detection rule triggers. | Required |
Finding severityfindingEventSeverity | enum | The severity level of the finding generated by this detection rule. The element has these enums
| Required |
Finding severity overridefindingEventSeverityOverride | text | Optional expression to dynamically override the finding severity. | Optional |
Finding remediationfindingEventRemediation | text | Remediation guidance to include in the security finding. | Optional |
Include executed detection queryfindingEventIncludeExecutedQuery | boolean | Whether to attach the executed detection query to the generated finding. | Required |
MITRE ATT&CK IDs (deprecated)findingEventMitreIds | MitreId[] | Deprecated — use MITRE ATT&CK technique IDs. | Required |
MITRE ATT&CK technique IDsfindingEventMitreTechniqueIds | MitreTechniqueId[] | MITRE ATT&CK technique identifiers associated with this detection rule. | Required |
MITRE ATT&CK tactic IDsfindingEventMitreTacticIds | MitreTacticId[] | MITRE ATT&CK tactic identifiers associated with this detection rule. | Required |
Finding event propertiesfindingEventProperties | FindingEventProperty[] | Additional key-value properties to attach to the generated security finding event. | Required |
Alert groupsfindingEventAlertGroups | AlertGroup[] | Alert groups associated with this detection rule. | Required |
Aggregation sourceaggregationSource | AggregationSource[] | Optional source identifier used for result aggregation. | Required |
Template IDtemplateId | text | Identifier of the template this rule was created from, if any. | Optional |
Tag object| Property | Type | Description | Required |
|---|---|---|---|
Tagvalue | text | - | Required |
MitreId object| Property | Type | Description | Required |
|---|---|---|---|
MITRE IDvalue | text | - | Required |
MitreTechniqueId object| Property | Type | Description | Required |
|---|---|---|---|
MITRE technique IDvalue | text | - | Required |
MitreTacticId object| Property | Type | Description | Required |
|---|---|---|---|
MITRE tactic IDvalue | text | - | Required |
FindingEventProperty object| Property | Type | Description | Required |
|---|---|---|---|
Keykey | text | - | Required |
Valuevalue | text | - | Required |
AlertGroup object| Property | Type | Description | Required |
|---|---|---|---|
Alert groupvalue | text | - | Required |
AggregationSource object| Property | Type | Description | Required |
|---|---|---|---|
Aggregation sourcevalue | text | - | Required |