Skip to content

Commit

Permalink
Merge pull request #26 from splunk-soar-connectors/next
Browse files Browse the repository at this point in the history
  • Loading branch information
ishans-crest authored Sep 24, 2024
2 parents d747c83 + a64debe commit 5d8f3ae
Show file tree
Hide file tree
Showing 13 changed files with 573 additions and 480 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v1.16
rev: v1.19
hooks:
- id: org-hook
- id: package-app-dependencies
- repo: https://github.com/Yelp/detect-secrets
rev: v1.4.0
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--no-verify', '--exclude-files', '^phantom.json$']
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Phantom

Publisher: Splunk
Connector Version: 3.6.3
Connector Version: 3.7.0
Product Vendor: Phantom
Product Name: Phantom
Product Version Supported (regex): ".\*"
Expand Down Expand Up @@ -286,7 +286,7 @@ Find artifacts containing a CEF value
Type: **investigate**
Read only: **True**

If the <b>limit_search</b> parameter is set to true, then the action will search the required artifact in the provided <b>container_ids</b> only. Otherwise, the <b>container_ids</b> parameter will be ignored.<br><br>If any non-integer value is provided in the <b>container_ids</b> parameter, then all the non-integer values will be removed and the parameter will be updated accordingly. If the value of the <b>container_ids</b> parameter is <b>current</b>, then it will be replaced by the current container's id(from which the action is being run) and the status will be reflected accordingly.<br><br>If the <b>exact_match</b> parameter is set to false, then the action will return all those artifacts for which the <b>values</b> parameter is a substring of any one of its cef values. Otherwise it will return those artifacts for which any one of its cef value matches exactly with the <b>values</b> parameter.<br><br>For the <b>values</b> of type integer, float or string, it is suggested to set the <b>exact_match</b> parameter to false.
If the <b>limit_search</b> parameter is set to true, then the action will search the required artifact in the provided <b>container_ids</b> only. Otherwise, the <b>container_ids</b> parameter will be ignored.<br><br>If any non-integer value is provided in the <b>container_ids</b> parameter, then all the non-integer values will be removed and the parameter will be updated accordingly. If the value of the <b>container_ids</b> parameter is <b>current</b>, then it will be replaced by the current container's id(from which the action is being run) and the status will be reflected accordingly.<br><br>If the <b>exact_match</b> parameter is set to false, then the action will return all those artifacts for which the <b>values</b> parameter is a substring of any one of its cef values. Otherwise it will return those artifacts for which any one of its cef value matches exactly with the <b>values</b> parameter.<br><br>For the <b>values</b> of type integer, float or string, it is suggested to set the <b>exact_match</b> parameter to false.<br><br>By default, 10 artifacts are returned. If you would like to return more or less than 10 artifacts, update the <b>max_results</b> parameter.

#### Action Parameters
PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
Expand All @@ -296,6 +296,7 @@ PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
**exact_match** | optional | Exact match (default: true) | boolean |
**limit_search** | optional | Limit search to specified containers (default: false) | boolean |
**container_ids** | optional | List of space or comma separated container ids. the word "current" will be replaced by the current container id | string |
**max_results** | optional | Maximum number of artifacts to return | numeric |

#### Action Output
DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES
Expand All @@ -316,7 +317,8 @@ action_result.summary.artifacts_found | numeric | | 1
action_result.summary.server | string | | https://10.1.1.10
action_result.message | string | | Artifacts found: 1, Server: https://10.1.1.10
summary.total_objects | numeric | | 1
summary.total_objects_successful | numeric | | 1
summary.total_objects_successful | numeric | | 1
action_result.parameter.max_results | numeric | | 2

## action: 'add listitem'
Add value to a custom list
Expand Down
35 changes: 16 additions & 19 deletions phantom.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"publisher": "Splunk",
"type": "information",
"main_module": "phantom_connector.py",
"app_version": "3.6.3",
"app_version": "3.7.0",
"latest_tested_versions": [
"Splunk Phantom PlatformAPI v5.3.1",
"SOAR On-prem v5.3.1.84890",
Expand Down Expand Up @@ -569,7 +569,7 @@
{
"action": "find artifacts",
"description": "Find artifacts containing a CEF value",
"verbose": "If the <b>limit_search</b> parameter is set to true, then the action will search the required artifact in the provided <b>container_ids</b> only. Otherwise, the <b>container_ids</b> parameter will be ignored.<br><br>If any non-integer value is provided in the <b>container_ids</b> parameter, then all the non-integer values will be removed and the parameter will be updated accordingly. If the value of the <b>container_ids</b> parameter is <b>current</b>, then it will be replaced by the current container's id(from which the action is being run) and the status will be reflected accordingly.<br><br>If the <b>exact_match</b> parameter is set to false, then the action will return all those artifacts for which the <b>values</b> parameter is a substring of any one of its cef values. Otherwise it will return those artifacts for which any one of its cef value matches exactly with the <b>values</b> parameter.<br><br>For the <b>values</b> of type integer, float or string, it is suggested to set the <b>exact_match</b> parameter to false.",
"verbose": "If the <b>limit_search</b> parameter is set to true, then the action will search the required artifact in the provided <b>container_ids</b> only. Otherwise, the <b>container_ids</b> parameter will be ignored.<br><br>If any non-integer value is provided in the <b>container_ids</b> parameter, then all the non-integer values will be removed and the parameter will be updated accordingly. If the value of the <b>container_ids</b> parameter is <b>current</b>, then it will be replaced by the current container's id(from which the action is being run) and the status will be reflected accordingly.<br><br>If the <b>exact_match</b> parameter is set to false, then the action will return all those artifacts for which the <b>values</b> parameter is a substring of any one of its cef values. Otherwise it will return those artifacts for which any one of its cef value matches exactly with the <b>values</b> parameter.<br><br>For the <b>values</b> of type integer, float or string, it is suggested to set the <b>exact_match</b> parameter to false.<br><br>By default, 10 artifacts are returned. If you would like to return more or less than 10 artifacts, update the <b>max_results</b> parameter.",
"type": "investigate",
"identifier": "find_artifacts",
"read_only": true,
Expand Down Expand Up @@ -606,6 +606,12 @@
"data_type": "string",
"order": 4,
"default": "current"
},
"max_results": {
"description": "Maximum number of artifacts to return",
"data_type": "numeric",
"order": 5,
"default": 10
}
},
"render": {
Expand Down Expand Up @@ -742,6 +748,13 @@
"example_values": [
1
]
},
{
"data_path": "action_result.parameter.max_results",
"data_type": "numeric",
"example_values": [
2
]
}
],
"versions": "EQ(*)"
Expand Down Expand Up @@ -2476,34 +2489,18 @@
],
"pip_dependencies": {
"wheel": [
{
"module": "beautifulsoup4",
"input_file": "wheels/py3/beautifulsoup4-4.9.1-py3-none-any.whl"
},
{
"module": "python_magic",
"input_file": "wheels/shared/python_magic-0.4.18-py2.py3-none-any.whl"
},
{
"module": "soupsieve",
"input_file": "wheels/py3/soupsieve-2.3.2.post1-py3-none-any.whl"
}
]
},
"pip39_dependencies": {
"wheel": [
{
"module": "beautifulsoup4",
"input_file": "wheels/py3/beautifulsoup4-4.9.1-py3-none-any.whl"
},
{
"module": "python_magic",
"input_file": "wheels/shared/python_magic-0.4.18-py2.py3-none-any.whl"
},
{
"module": "soupsieve",
"input_file": "wheels/py3/soupsieve-2.5-py3-none-any.whl"
}
]
}
}
}
Loading

0 comments on commit 5d8f3ae

Please sign in to comment.