-
Notifications
You must be signed in to change notification settings - Fork 162
Correlation Rules
| Operation ID | Description | ||||
|---|---|---|---|---|---|
|
Get rules aggregates as specified via json in the request body. | ||||
|
Find all rules matching the query and filter. | ||||
|
Find all rules matching the query and filter. | ||||
|
Retrieve latest rule versions by rule IDs | ||||
|
Export rule versions | ||||
|
Import rule versions | ||||
|
Publish existing rule version | ||||
|
Delete versions by IDs | ||||
|
Retrieve rules by IDs. | ||||
|
Create a correlation rule. | ||||
|
Delete rules by IDs. | ||||
|
Update a correlation rule. | ||||
|
Retrieve rule versions by IDs | ||||
|
Find all rule IDs matching the query and filter. | ||||
|
Find all rule version IDs matching the query and filter. | ||||
|
Search rule template IDs matching the filter. | ||||
|
Create rule from template. | ||||
|
Retrieve rule templates by IDs. | ||||
WARNING
client_idandclient_secretare keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.
Get rules aggregates as specified via json in the request body.
aggregate_rule_versions
| Method | Route |
|---|---|
/correlation-rules/aggregates/rule-versions/v1 |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload provided as a dictionary. | ||
| filter | query | string | FQL query specifying the filter parameters. | ||
| ids | query | string or list of strings | Correlation rule IDs. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.aggregate_rule_versions(filter="string", ids=id_list)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.aggregates_rule_versions_post_v1(filter="string", ids=id_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = { }
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("aggregates_rule_versions_post_v1", body=body_payload, filter="string", ids=id_list)
print(response)Back to Table of Contents
Find all rules matching the query and filter.
get_rules_combined
| Method | Route |
|---|---|
/correlation-rules/combined/rules/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| filter | query | string | FQL query specifying the filter parameters. Available filters:
last_updated_on
|
||
| q | query | string | Match query criteria, which includes all the filter string fields. | ||
| sort | query | string | Rule property to sort on. | ||
| offset | query | integer | Starting index of overall result set from which to return IDs. | ||
| limit | query | integer | Number of IDs to return. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_rules_combined(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.combined_rules_get_v1(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("combined_rules_get_v1",
filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)Back to Table of Contents
Find all rules matching the query and filter.
get_rules_combined_v2
| Method | Route |
|---|---|
/correlation-rules/combined/rules/v2 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| filter | query | string | FQL query specifying the filter parameters. Available filters:
last_updated_on
|
||
| q | query | string | Match query criteria, which includes all the filter string fields. | ||
| sort | query | string | Rule property to sort on. | ||
| offset | query | integer | Starting index of overall result set from which to return IDs. | ||
| limit | query | integer | Number of IDs to return. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_rules_combined_v2(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.combined_rules_get_v2(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("combined_rules_get_v2",
filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)Back to Table of Contents
Retrieve latest rule versions by rule IDs.
get_latest_rule_versions
| Method | Route |
|---|---|
/correlation-rules/entities/latest-rules/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. | ||
| rule_ids | query | string or list of strings | The rule IDs to retrieve. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
rule_id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_latest_rule_versions(rule_ids=rule_id_list)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
rule_id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.entities_latest_rules_get_v1(rule_ids=rule_id_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
rule_id_list = ['ID1', 'ID2', 'ID3']
response = falcon.command("entities_latest_rules_get_v1", rule_ids=rule_id_list)
print(response)Back to Table of Contents
Export rule versions.
export_rule
| Method | Route |
|---|---|
/correlation-rules/entities/rule-versions/export/v1 |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload provided as a dictionary. | ||
| filter | body | string | Filter to use for export. | ||
| get_latest | body | boolean | Flag indicating if the latest rule version should be exported. | ||
| report_format | body | string | Format to use for rule export. | ||
| search | body | dictionary | Rule search to perform. Overrides filter and sort keywords. |
||
| sort | body | string | Sort to use for rule export. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.export_rule(filter="string",
get_latest=boolean,
report_format="string",
sort="string"
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.entities_rule_versions_export_post_v1(filter="string",
get_latest=boolean,
report_format="string",
sort="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"get_latest": boolean,
"report_format": "string",
"search": {
"filter": "string",
"sort": "string"
}
}
response = falcon.command("entities_rule_versions_export_post_v1", body=body_payload)
print(response)Back to Table of Contents
Import rule versions.
import_rule
| Method | Route |
|---|---|
/correlation-rules/entities/rule-versions/import/v1 |
- Consumes: multipart/form-data
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Rule to be imported. Not required if using the rule keyword. |
||
| rule | body | dictionary | Rule to be imported (Service Class only). |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
rule_json = {
"description": "test_string",
"name": "test_string",
"search": {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
},
}
response = falcon.import_rule(rule=rule_json)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
rule_json = {
"description": "test_string",
"name": "test_string",
"search": {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
},
}
response = falcon.entities_rule_versions_import_post_v1(rule=rule_json)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"description": "test_string",
"name": "test_string",
"search": {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
},
}
response = falcon.command("entities_rule_versions_import_post_v1", body=body_payload)
print(response)Back to Table of Contents
Publish existing rule version.
publish_rule_version
| Method | Route |
|---|---|
/correlation-rules/entities/rule-versions/publish/v1 |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload provided as a dictionary. | ||
| id | body | string | Correlation rule version ID to publish. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.publish_rule_version(id="string")
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.entities_rule_versions_publish_patch_v1(id="string")
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"id": "string"
}
response = falcon.command("entities_rule_versions_publish_patch_v1", body=body_payload)
print(response)Back to Table of Contents
Delete versions by IDs.
delete_rule_versions
| Method | Route |
|---|---|
/correlation-rules/entities/rule-versions/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| ids | query | string or list of strings | The rule version IDs to be deleted. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_rule_versions(ids=id_list)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.entities_rule_versions_delete_v1(ids=id_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("entities_rule_versions_delete_v1", ids=id_list)
print(response)Back to Table of Contents
Retrieve rules by IDs.
get_rules
| Method | Route |
|---|---|
/correlation-rules/entities/rules/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| ids | query | string or list of strings | The rule IDs to be retrieved. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_rules(ids=id_list)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.entities_rules_get_v1(ids=id_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("entities_rules_get_v1", ids=id_list)
print(response)Back to Table of Contents
Retrieve rule versions by IDs
get_rules_v2
| Method | Route |
|---|---|
/correlation-rules/entities/rules/v2 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| ids | query | string or list of strings | The rule IDs to be retrieved. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_rules_v2(ids=id_list)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.entities_rules_get_v2(ids=id_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("entities_rules_get_v2", ids=id_list)
print(response)Back to Table of Contents
Create a correlation rule.
create_rule
| Method | Route |
|---|---|
/correlation-rules/entities/rules/v1 |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload provided as a dictionary. | ||
| comment | body | string | Correlation rule comment. | ||
| customer_id | body | string | CID for the tenant. | ||
| description | body | string | Correlation rule description. | ||
| name | body | string | Correlation rule name. | ||
| notifications | body | list of dictionaries | List of notifications to implement. | ||
| operation | body | dictionary | Operation to perform. | ||
| search | body | dictionary | Search to perform. | ||
| severity | body | integer | Correlation severity. | ||
| status | body | string | Correlation rule status. | ||
| tactic | body | string | Identified tactic. | ||
| technique | body | string | Identified technique. | ||
| trigger_on_create | body | boolean | Flag indicating if the rule triggers on creation. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
notifications_list = [
{
"config": {
"cid": "string",
"config_id": "string",
"plugin_id": "string",
"recipients": [
"string"
],
"severity": "string"
},
"options": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"type": "string"
}
]
operation_dictionary = {
"schedule": {
"definition": "string"
},
"start_on": "string",
"stop_on": "string"
}
search_dictionary = {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
}
response = falcon.create_rule(comment="string",
customer_id="string",
description="string",
name="string",
notifications=notifications_list,
operation=operation_dictionary,
search=search_dictionary,
severity=integer,
status="string",
tactic="string",
technique="string",
trigger_on_create=boolean
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
notifications_list = [
{
"config": {
"cid": "string",
"config_id": "string",
"plugin_id": "string",
"recipients": [
"string"
],
"severity": "string"
},
"options": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"type": "string"
}
]
operation_dictionary = {
"schedule": {
"definition": "string"
},
"start_on": "string",
"stop_on": "string"
}
search_dictionary = {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
}
response = falcon.entities_rules_post_v1(comment="string",
customer_id="string",
description="string",
name="string",
notifications=notifications_list,
operation=operation_dictionary,
search=search_dictionary,
severity=integer,
status="string",
tactic="string",
technique="string",
trigger_on_create=boolean
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = {
"comment": "string",
"customer_id": "string",
"description": "string",
"name": "string",
"notifications": [
{
"config": {
"cid": "string",
"config_id": "string",
"plugin_id": "string",
"recipients": [
"string"
],
"severity": "string"
},
"options": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"type": "string"
}
],
"operation": {
"schedule": {
"definition": "string"
},
"start_on": "string",
"stop_on": "string"
},
"search": {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
},
"severity": integer,
"status": "string",
"tactic": "string",
"technique": "string",
"trigger_on_create": boolean
}
response = falcon.command("entities_rules_post_v1", body=body_payload)
print(response)Back to Table of Contents
Delete rules by IDs.
delete_rules
| Method | Route |
|---|---|
/correlation-rules/entities/rules/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| ids | query | string or list of strings | The rule IDs to be deleted. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.delete_rules(ids=id_list)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.entities_rules_delete_v1(ids=id_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("entities_rules_delete_v1", ids=id_list)
print(response)Back to Table of Contents
Update a correlation rule.
update_rule
| Method | Route |
|---|---|
/correlation-rules/entities/rules/v1 |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload provided as a dictionary. | ||
| comment | body | string | Correlation rule comment. | ||
| customer_id | body | string | CID for the tenant. | ||
| description | body | string | Correlation rule description. | ||
| id | body | string | Correlation rule ID to update. | ||
| name | body | string | Correlation rule name. | ||
| notifications | body | list of dictionaries | List of notifications to implement. | ||
| operation | body | dictionary | Operation to perform. | ||
| search | body | dictionary | Search to perform. | ||
| severity | body | integer | Correlation severity. | ||
| status | body | string | Correlation rule status. | ||
| tactic | body | string | Identified tactic. | ||
| technique | body | string | Identified technique. | ||
| trigger_on_create | body | boolean | Flag indicating if the rule triggers on creation. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
notifications_list = [
{
"config": {
"cid": "string",
"config_id": "string",
"plugin_id": "string",
"recipients": [
"string"
],
"severity": "string"
},
"options": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"type": "string"
}
]
operation_dictionary = {
"schedule": {
"definition": "string"
},
"start_on": "string",
"stop_on": "string"
}
search_dictionary = {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
}
response = falcon.update_rule(comment="string",
customer_id="string",
description="string",
id="string",
name="string",
notifications=notifications_list,
operation=operation_dictionary,
search=search_dictionary,
severity=integer,
status="string",
tactic="string",
technique="string",
trigger_on_create=boolean
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
notifications_list = [
{
"config": {
"cid": "string",
"config_id": "string",
"plugin_id": "string",
"recipients": [
"string"
],
"severity": "string"
},
"options": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"type": "string"
}
]
operation_dictionary = {
"schedule": {
"definition": "string"
},
"start_on": "string",
"stop_on": "string"
}
search_dictionary = {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
}
response = falcon.entities_rules_patch_v1(comment="string",
customer_id="string",
description="string",
id="string",
name="string",
notifications=notifications_list,
operation=operation_dictionary,
search=search_dictionary,
severity=integer,
status="string",
tactic="string",
technique="string",
trigger_on_create=boolean
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = [{
"comment": "string",
"customer_id": "string",
"description": "string",
"id": "string",
"name": "string",
"notifications": [
{
"config": {
"cid": "string",
"config_id": "string",
"plugin_id": "string",
"recipients": [
"string"
],
"severity": "string"
},
"options": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"type": "string"
}
],
"operation": {
"schedule": {
"definition": "string"
},
"start_on": "string",
"stop_on": "string"
},
"search": {
"filter": "string",
"lookback": "string",
"outcome": "string",
"trigger_mode": "string"
},
"severity": integer,
"status": "string",
"tactic": "string",
"technique": "string",
"trigger_on_create": boolean
}]
response = falcon.command("entities_rules_patch_v1", body=body_payload)
print(response)Back to Table of Contents
Find all rule IDs matching the query and filter.
query_rules
| Method | Route |
|---|---|
/correlation-rules/queries/rules/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| filter | query | string | FQL query specifying the filter parameters. Available filters:
last_updated_on
|
||
| q | query | string | Match query criteria, which includes all the filter string fields. | ||
| sort | query | string | Rule property to sort on. | ||
| offset | query | integer | Starting index of overall result set from which to return IDs. | ||
| limit | query | integer | Number of IDs to return. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_rules(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.queries_rules_get_v1(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("queries_rules_get_v1",
filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)Back to Table of Contents
Find all rule version IDs matching the query and filter.
query_rules_v2
| Method | Route |
|---|---|
/correlation-rules/queries/rules/v2 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| filter | query | string | FQL query specifying the filter parameters. Available filters:
last_updated_on
|
||
| q | query | string | Match query criteria, which includes all the filter string fields. | ||
| sort | query | string | Rule property to sort on. | ||
| offset | query | integer | Starting index of overall result set from which to return IDs. | ||
| limit | query | integer | Number of IDs to return. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.query_rules_v2(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.queries_rules_get_v2(filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("queries_rules_get_v2",
filter="string",
q="string",
sort="string",
offset=integer,
limit=integer
)
print(response)Back to Table of Contents
Search rule template IDs matching the filter.
query_templates
| Method | Route |
|---|---|
/correlation-rules/queries/templates/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| filter | query | string | FQL query specifying the filter parameters. Available filters:
|
||
| sort | query | string | Rule property to sort on. | ||
| offset | query | integer | Starting index of overall result set from which to return IDs. | ||
| limit | query | integer | Number of IDs to return. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_rule_template_ids(filter="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.queries_templates_get_v1Mixin0(filter="string",
sort="string",
offset=integer,
limit=integer
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("queries_templates_get_v1Mixin0",
filter="string",
sort="string",
offset=integer,
limit=integer
)
print(response)Back to Table of Contents
Create rule from template.
create_rule_from_template
| Method | Route |
|---|---|
/correlation-rules/entities/templates/rules/v1 |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | dictionary | Full body payload provided as a dictionary. | ||
| customer_id | body | string | CID for the tenant. | ||
| templates | body | list of dictionaries | List of template rule definitions to create. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
templates_list = [
{
"comment": "object",
"description": "object",
"guardrail_notifications": "object",
"mitre_attack": "object",
"name": "object",
"notifications": "object",
"operation": "object",
"search": "object",
"severity": "object",
"status": "object",
"template_id": "object",
"trigger_on_create": "object"
}
]
response = falcon.create_rule_from_template(customer_id="string",
templates=templates_list
)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
templates_list = [
{
"comment": "object",
"description": "object",
"guardrail_notifications": "object",
"mitre_attack": "object",
"name": "object",
"notifications": "object",
"operation": "object",
"search": "object",
"severity": "object",
"status": "object",
"template_id": "object",
"trigger_on_create": "object"
}
]
response = falcon.entities_templates_rules_post_v1(customer_id="string",
templates=templates_list
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
body_payload = [
{
"customer_id": "string",
"templates": [
{
"comment": "object",
"description": "object",
"guardrail_notifications": "object",
"mitre_attack": "object",
"name": "object",
"notifications": "object",
"operation": "object",
"search": "object",
"severity": "object",
"status": "object",
"template_id": "object",
"trigger_on_create": "object"
}
]
}
]
response = falcon.command("entities_templates_rules_post_v1", body=body_payload)
print(response)Back to Table of Contents
Retrieve rule templates by IDs.
get_rule_templates_by_id
| Method | Route |
|---|---|
/correlation-rules/entities/templates/v1 |
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| ids | query | string or list of strings | The template IDs to retrieve. | ||
| parameters | query | dictionary | Full query parameters payload as a dictionary, not required when using other keywords. |
from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.get_rule_templates_by_id(ids=id_list)
print(response)from falconpy import CorrelationRules
# Do not hardcode API credentials!
falcon = CorrelationRules(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.entities_templates_get_v1Mixin0(ids=id_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
id_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.command("entities_templates_get_v1Mixin0", ids=id_list)
print(response)Back to Table of Contents

- Home
- Discussions Board
- Glossary of Terms
- Installation, Upgrades and Removal
- Samples Collection
- Using FalconPy
- API Operations
-
Service Collections
- Admission Control Policies
- Alerts
- API Integrations
- ASPM
- CAO Hunting
- Case Management
- Certificate Based Exclusions
- Cloud AWS Registration
- Cloud Azure Registration
- Cloud GCP Registration
- Cloud OCI Registration
- Cloud Policies
- Cloud Connect AWS (deprecated)
- Cloud Security Assets
- Cloud Security
- Cloud Security Compliance
- Cloud Security Detections
- Cloud Snapshots
- Configuration Assessment
- Configuration Assessment Evaluation Logic
- Container Alerts
- Container Detections
- Container Image Compliance
- Container Images
- Container Packages
- Container Vulnerabilities
- Content Update Policies
- Correlation Rules
- Correlation Rules Admin
- CSPM Registration
- Custom IOAs
- Custom Storage
- D4C Registration (deprecated)
- Data Protection Configuration
- DataScanner (deprecated)
- Delivery Settings
- Deployments
- Detects (deprecated)
- Device Content
- Device Control Policies
- Discover
- Downloads
- Drift Indicators
- Event Streams
- Exposure Management
- FaaS Execution
- Falcon Complete Dashboard
- Falcon Container
- Falcon Intelligence Sandbox
- FDR
- FileVantage
- Firewall Management
- Firewall Policies
- Foundry LogScale
- Host Group
- Host Migration
- Hosts
- Identity Protection
- Image Assessment Policies
- Incidents
- Installation Tokens
- Intel
- Intelligence Feeds
- Intelligence Indicator Graph
- IOA Exclusions
- IOC
- IOCs (deprecated)
- IT Automation
- Kubernetes Container Compliance
- Kubernetes Protection
- MalQuery
- Message Center
- ML Exclusions
- Mobile Enrollment
- MSSP (Flight Control)
- NGSIEM
- OAuth2
- ODS (On Demand Scan)
- Prevention Policy
- Quarantine
- Quick Scan
- Quick Scan Pro
- Real Time Response
- Real Time Response Admin
- Real Time Response Audit
- Recon
- Report Executions
- Response Policies
- Sample Uploads
- SaaS Security
- Scheduled Reports
- Sensor Download
- Sensor Update Policy
- Sensor Usage
- Sensor Visibility Exclusions
- Serverless Exports
- Serverless Vulnerabilities
- Spotlight Evaluation Logic
- Spotlight Vulnerabilities
- Spotlight Vulnerability Metadata
- Tailored Intelligence
- ThreatGraph
- Unidentified Containers
- User Management
- Workflows
- Zero Trust Assessment
- Documentation Support
-
CrowdStrike SDKs
- Crimson Falcon - Ruby
- FalconPy - Python 3
- FalconJS - Javascript
- goFalcon - Go
- PSFalcon - Powershell
- Rusty Falcon - Rust
