-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'repo_sync_2024_08_19' into public_main
- Loading branch information
Showing
30 changed files
with
4,884 additions
and
1,718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
fn_qradar_enhanced_data/data/pb_create_artifact_from_assets_info_pb.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!-- | ||
DO NOT MANUALLY EDIT THIS FILE | ||
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen | ||
Generated with resilient-sdk v51.0.2.2.1096 | ||
--> | ||
|
||
# Playbook - Create Artifact from Assets info (PB) | ||
|
||
### API Name | ||
`create_artifact_from_assets_info_pb` | ||
|
||
### Status | ||
`enabled` | ||
|
||
### Activation Type | ||
`Manual` | ||
|
||
### Activation Conditions | ||
`-` | ||
|
||
### Activation Form Elements | ||
| Input Field Label | API Name | Element Type | Tooltip | Requirement | | ||
| ----------------- | -------- | ------------ | ------- | ----------- | | ||
| Select to create artifact from asset info | `select_to_create_artifact_from_asset_info` | multiselect | - | Optional | | ||
|
||
### Object Type | ||
`qr_assets` | ||
|
||
### Description | ||
Create artifact from Assets info for the selected row | ||
|
||
|
||
--- | ||
|
||
## Local script - Create Artifact from Assets info PB | ||
|
||
### Description | ||
|
||
|
||
### Script Type | ||
`Local script` | ||
|
||
### Object Type | ||
`qr_assets` | ||
|
||
### Script Content | ||
```python | ||
# We create artifacts according to how they can be mapped to | ||
# SOAR default artifacts. If user has custom artifacts, and wants | ||
# to map them as well, please modify the following mapping dict. | ||
|
||
type_mapping = { "IP Address": "IP Address", "Name": "String" } | ||
|
||
for artifact_type in playbook.inputs.select_to_create_artifact_from_asset_info: | ||
if artifact_type in type_mapping: | ||
incident.addArtifact(type_mapping.get(artifact_type), | ||
row.ip_address.get("content") if artifact_type == "IP Address" else row.asset_name.get("content"), | ||
f"QRadar Offense {artifact_type}" | ||
) | ||
``` | ||
|
||
--- | ||
|
64 changes: 64 additions & 0 deletions
64
fn_qradar_enhanced_data/data/pb_create_artifact_from_destination_ip_info_pb.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!-- | ||
DO NOT MANUALLY EDIT THIS FILE | ||
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen | ||
Generated with resilient-sdk v51.0.2.2.1096 | ||
--> | ||
|
||
# Playbook - Create artifact from Destination IP info (PB) | ||
|
||
### API Name | ||
`create_artifact_from_destination_ip_info_pb` | ||
|
||
### Status | ||
`enabled` | ||
|
||
### Activation Type | ||
`Manual` | ||
|
||
### Activation Conditions | ||
`-` | ||
|
||
### Activation Form Elements | ||
| Input Field Label | API Name | Element Type | Tooltip | Requirement | | ||
| ----------------- | -------- | ------------ | ------- | ----------- | | ||
| Select to create artifact from destination info | `select_to_create_artifact_from_destination_info` | multiselect | - | Optional | | ||
|
||
### Object Type | ||
`qr_top_destination_ips` | ||
|
||
### Description | ||
Create artifact from Destination IP info for the selected row | ||
|
||
|
||
--- | ||
|
||
## Local script - Create Artifact from Destination IP info PB | ||
|
||
### Description | ||
|
||
|
||
### Script Type | ||
`Local script` | ||
|
||
### Object Type | ||
`qr_top_destination_ips` | ||
|
||
### Script Content | ||
```python | ||
# We create artifacts for those observables according to how they can be mapped to | ||
# SOAR default artifacts. If user has custom artifacts, and wants | ||
# to map them as well, please modify the following mapping dict. | ||
import re | ||
|
||
type_mapping = { "Destination IP": "IP Address", } | ||
|
||
for artifact_type in playbook.inputs.select_to_create_artifact_from_destination_info: | ||
if artifact_type in type_mapping: | ||
incident.addArtifact(type_mapping.get(artifact_type), | ||
re.sub("<[^<>]+>", "", row.destination_ip.get("content")), | ||
f"QRadar Offense {artifact_type}" | ||
) | ||
``` | ||
|
||
--- | ||
|
66 changes: 66 additions & 0 deletions
66
fn_qradar_enhanced_data/data/pb_create_artifact_from_events_info_pb.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!-- | ||
DO NOT MANUALLY EDIT THIS FILE | ||
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen | ||
Generated with resilient-sdk v51.0.2.2.1096 | ||
--> | ||
|
||
# Playbook - Create Artifact from Events info (PB) | ||
|
||
### API Name | ||
`create_artifact_from_events_info_pb` | ||
|
||
### Status | ||
`enabled` | ||
|
||
### Activation Type | ||
`Manual` | ||
|
||
### Activation Conditions | ||
`-` | ||
|
||
### Activation Form Elements | ||
| Input Field Label | API Name | Element Type | Tooltip | Requirement | | ||
| ----------------- | -------- | ------------ | ------- | ----------- | | ||
| Select to create artifact from events info | `select_to_create_artifact_from_events_info` | multiselect | - | Always | | ||
|
||
### Object Type | ||
`qr_offense_top_events` | ||
|
||
### Description | ||
Create artifact from the Events info of the selected row | ||
|
||
|
||
--- | ||
|
||
## Local script - Create Artifact from Events info PB | ||
|
||
### Description | ||
|
||
|
||
### Script Type | ||
`Local script` | ||
|
||
### Object Type | ||
`qr_offense_top_events` | ||
|
||
### Script Content | ||
```python | ||
# We create artifacts for those observables according to how they can be mapped to | ||
# SOAR default artifacts. If user has custom artifacts, and wants | ||
# to map them as well, please modify the following mapping dict. | ||
import re | ||
|
||
type_mapping = { "Source IP": "IP Address", "Destination IP": "IP Address", "Username": "User Account" } | ||
|
||
for artifact_type in playbook.inputs.select_to_create_artifact_from_events_info: | ||
if artifact_type in type_mapping: | ||
if artifact_type in ["Source IP", "Destination IP"]: | ||
value = re.sub("<[^<>]+>", "", row.source_ip.get("content") if artifact_type == "Source IP" else row.destination_ip.get("content")) | ||
else: | ||
value = row.username | ||
|
||
incident.addArtifact(type_mapping.get(artifact_type), value, f"QRadar Offense {artifact_type}") | ||
``` | ||
|
||
--- | ||
|
64 changes: 64 additions & 0 deletions
64
fn_qradar_enhanced_data/data/pb_create_artifact_from_source_ip_info_pb.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!-- | ||
DO NOT MANUALLY EDIT THIS FILE | ||
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen | ||
Generated with resilient-sdk v51.0.2.2.1096 | ||
--> | ||
|
||
# Playbook - Create artifact from Source IP info (PB) | ||
|
||
### API Name | ||
`create_artifact_from_source_ip_info_pb` | ||
|
||
### Status | ||
`enabled` | ||
|
||
### Activation Type | ||
`Manual` | ||
|
||
### Activation Conditions | ||
`-` | ||
|
||
### Activation Form Elements | ||
| Input Field Label | API Name | Element Type | Tooltip | Requirement | | ||
| ----------------- | -------- | ------------ | ------- | ----------- | | ||
| Select to create artifact from source info | `select_to_create_artifact_from_source_info` | multiselect | - | Optional | | ||
|
||
### Object Type | ||
`qr_top_source_ips` | ||
|
||
### Description | ||
Create artifact from Source IP info for the selected row | ||
|
||
|
||
--- | ||
|
||
## Local script - Create Artifact from Source IP info PB | ||
|
||
### Description | ||
|
||
|
||
### Script Type | ||
`Local script` | ||
|
||
### Object Type | ||
`qr_top_source_ips` | ||
|
||
### Script Content | ||
```python | ||
# We create artifacts for those observables according to how they can be mapped to | ||
# SOAR default artifacts. If user has custom artifacts, and wants | ||
# to map them as well, please modify the following mapping dict. | ||
import re | ||
|
||
type_mapping = { "Source IP": "IP Address", "MAC": "MAC Address", } | ||
|
||
for artifact_type in playbook.inputs.select_to_create_artifact_from_source_info: | ||
if artifact_type in type_mapping: | ||
incident.addArtifact(type_mapping.get(artifact_type), | ||
row.mac if artifact_type == "MAC" else re.sub("<[^<>]+>", "", row.source_ip.get("content")), | ||
f"QRadar Offense {artifact_type}" | ||
) | ||
``` | ||
|
||
--- | ||
|
69 changes: 69 additions & 0 deletions
69
fn_qradar_enhanced_data/data/pb_create_artifacts_from_flows_info_pb.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<!-- | ||
DO NOT MANUALLY EDIT THIS FILE | ||
THIS FILE IS AUTOMATICALLY GENERATED WITH resilient-sdk codegen | ||
Generated with resilient-sdk v51.0.2.2.1096 | ||
--> | ||
|
||
# Playbook - Create Artifacts from Flows Info (PB) | ||
|
||
### API Name | ||
`create_artifacts_from_flows_info_pb` | ||
|
||
### Status | ||
`enabled` | ||
|
||
### Activation Type | ||
`Manual` | ||
|
||
### Activation Conditions | ||
`-` | ||
|
||
### Activation Form Elements | ||
| Input Field Label | API Name | Element Type | Tooltip | Requirement | | ||
| ----------------- | -------- | ------------ | ------- | ----------- | | ||
| Select to create artifact from flows info | `select_to_create_artifact_from_flows_info` | multiselect | - | Always | | ||
|
||
### Object Type | ||
`qr_flows` | ||
|
||
### Description | ||
Create artifact from the Flows info of the selected row | ||
|
||
|
||
--- | ||
|
||
## Local script - Create Artifact from Flows info PB | ||
|
||
### Description | ||
|
||
|
||
### Script Type | ||
`Local script` | ||
|
||
### Object Type | ||
`qr_flows` | ||
|
||
### Script Content | ||
```python | ||
# We create artifacts for those observables according to how they can be mapped to | ||
# SOAR default artifacts. If user has custom artifacts, and wants | ||
# to map them as well, please modify the following mapping dict. | ||
import re | ||
|
||
type_mapping = { | ||
"Source IP": "IP Address", | ||
"Destination IP": "IP Address", | ||
"Source Port": "Port", | ||
"Destination Port": "Port" | ||
} | ||
|
||
for artifact_type in playbook.inputs.select_to_create_artifact_from_flows_info: | ||
if artifact_type in type_mapping: | ||
incident.addArtifact(type_mapping.get(artifact_type), | ||
re.sub("<[^<>]+>", "", row.source_ip.get("content") if artifact_type in ["Source IP", "Source Port"] else row.destination_ip.get("content")), | ||
f"QRadar Offense {artifact_type}" | ||
) | ||
``` | ||
|
||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.