crowdstrike.falcon.correlation_rule_info module – Get information about NG-SIEM correlation rules
Note
This module is part of the crowdstrike.falcon collection (version 4.11.2).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install crowdstrike.falcon.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: crowdstrike.falcon.correlation_rule_info.
New in crowdstrike.falcon 4.12.0
Synopsis
Returns detailed information for one or more NG-SIEM correlation rules.
Some of the details returned include rule name, description, severity, status, tactic, technique, search criteria, and creation and modification timestamps.
Can retrieve specific rules by ID or search for rules using FQL filters.
Optionally includes the latest published version info for each rule.
Requirements
The below requirements are needed on the host that executes this module.
Correlation Rules [READ] API scope
CrowdStrike FalconPy >= 1.5.0
crowdstrike-falconpy >= 1.3.0
python >= 3.6
Parameters
Parameter |
Comments |
|---|---|
The registered result of the crowdstrike.falcon.auth module, or a dictionary containing the access_token and cloud keys. If provided, the client_id, client_secret, member_cid, and cloud options are ignored. Useful when needing to make multiple API calls to avoid rate limiting issues. |
|
The OAuth2 access token to use for authentication. |
|
The CrowdStrike cloud region to use. This can differ from the module’s cloud argument due to autodiscovery. |
|
The CrowdStrike API client ID to use. See the Falcon documentation for more information about API clients. The |
|
The CrowdStrike API secret that corresponds to the client ID. See the Falcon documentation for more information about API clients. The |
|
The CrowdStrike cloud region to use. All clouds are automatically discovered if not specified, except for the The Choices:
|
|
Extended headers that are prepended to the default headers dictionary. |
|
FQL (Falcon Query Language) filter expression to limit results. Supported fields: Examples: Cannot be used together with rule_ids. |
|
Whether to include the latest published version information for each rule. When enabled, adds a This requires an additional API call per batch of rules. Choices:
|
|
Maximum number of correlation rules to return. Must be between 1 and 500. Default: |
|
The CrowdStrike member CID for MSSP authentication. See the Falcon documentation for more information about API clients. The |
|
Starting index for pagination. Use with limit to paginate through large result sets. Default: |
|
A list of correlation rule IDs to get information about. If not provided, rules will be returned based on filter and pagination settings. Cannot be used together with filter. |
|
Property to sort results by. Prefix with Examples: |
|
Custom User-Agent string to use for requests to the API. The user agent string is prepended to the default user agent string ( See RFC 7231 for more information. The |
Examples
- name: Get all correlation rules
crowdstrike.falcon.correlation_rule_info:
- name: Get specific correlation rules by ID
crowdstrike.falcon.correlation_rule_info:
rule_ids:
- "12345678901234567890abcdef123456"
- "abcdef123456789012345678901234"
- name: Search rules by name pattern
crowdstrike.falcon.correlation_rule_info:
filter: "name:'*brute*'"
limit: 50
- name: Filter rules by status
crowdstrike.falcon.correlation_rule_info:
filter: "status:'enabled'"
sort: "-last_updated_on"
- name: Get rules with latest version info
crowdstrike.falcon.correlation_rule_info:
filter: "status:'enabled'"
include_latest_version: true
- name: Paginate through all correlation rules
crowdstrike.falcon.correlation_rule_info:
limit: 100
offset: "{{ page * 100 }}"
loop: "{{ range(0, total_rules // 100 + 1) | list }}"
loop_control:
loop_var: page
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
A list of correlation rules that match the search criteria. Returned: success |
|
The timestamp when the rule was created. Returned: success Sample: |
|
The customer ID that owns the rule. Returned: success Sample: |
|
The description of the correlation rule. Returned: success Sample: |
|
The unique identifier of the correlation rule. Returned: success Sample: |
|
The timestamp when the rule was last updated. Returned: success Sample: |
|
Latest published version info for the rule (only when include_latest_version=true). Returned: when include_latest_version=true |
|
The name of the correlation rule. Returned: success Sample: |
|
The notification settings for the rule. Returned: success |
|
The operation configuration for the rule. Returned: success |
|
The search criteria/query for the rule. Returned: success |
|
The severity level of the rule. Returned: success Sample: |
|
The current status of the rule (e.g., enabled, disabled). Returned: success Sample: |
|
The MITRE ATT&CK tactic associated with the rule. Returned: success Sample: |
|
The MITRE ATT&CK technique associated with the rule. Returned: success Sample: |
|
Metadata about the query results. Returned: success |
|
Pagination information. Returned: success |
|
The limit used for this query. Returned: success Sample: |
|
The starting index used for this query. Returned: success Sample: |
|
Total number of correlation rules matching the query. Returned: success Sample: |
|
Time taken to execute the query in seconds. Returned: success Sample: |