Skip to content

Commit

Permalink
Merge pull request #10 from splunk-soar-connectors/next
Browse files Browse the repository at this point in the history
Merging next to main for release 2.2.1
  • Loading branch information
ishans-crest authored Jan 29, 2024
2 parents 149a85e + 3558ca5 commit 0af3218
Show file tree
Hide file tree
Showing 36 changed files with 505 additions and 527 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/generate-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Generate Readme Doc
on:
workflow_dispatch:
push:
paths:
- '*.json'
- 'readme.html'
- 'manual_readme_content.md'
tags-ignore:
- '**'
branches-ignore:
- next
- main
jobs:
generate-doc:
runs-on: ubuntu-latest
steps:
- uses: 'phantomcyber/dev-cicd-tools/github-actions/generate-doc@main'
with:
GITHUB_TOKEN: ${{ secrets.SOAR_APPS_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/review-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Review Release
concurrency:
group: app-release
cancel-in-progress: true
permissions:
contents: read
id-token: write
statuses: write
on:
workflow_dispatch:
inputs:
task_token:
description: 'StepFunction task token'
required: true

jobs:
review:
uses: 'phantomcyber/dev-cicd-tools/.github/workflows/review-release.yml@main'
with:
task_token: ${{ inputs.task_token }}
secrets:
resume_release_role_arn: ${{ secrets.RESUME_RELEASE_ROLE_ARN }}
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.12
rev: v1.16
hooks:
- id: org-hook
- id: package-app-dependencies
- repo: https://github.com/Yelp/detect-secrets
rev: v1.2.0
rev: v1.4.0
hooks:
- id: detect-secrets
args: ['--no-verify', '--exclude-files', '^misp.json$']
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2017-2022 Splunk Inc.
Copyright (c) 2017-2024 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
7 changes: 1 addition & 6 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Splunk SOAR MISP
Copyright (c) 2017-2022 Splunk Inc.
Copyright (c) 2017-2024 Splunk Inc.

Third-party Software Attributions:

Expand Down Expand Up @@ -33,8 +33,3 @@ Copyright 2013-2014 Alexandre Dulaunoy
Copyright 2013-2014 CIRCL
Copyright 2013-2014 Rapha
Copyright 2014 Koen Van Impe

Library: requests
Version: 2.25.0
License: Apache 2.0
Kenneth Reitz
588 changes: 294 additions & 294 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: __init__.py
#
# Copyright (c) 2017-2022 Splunk Inc.
# Copyright (c) 2017-2024 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
5 changes: 0 additions & 5 deletions exclude_files.txt

This file was deleted.

93 changes: 93 additions & 0 deletions manual_readme_content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
[comment]: # "File: README.md"
[comment]: # "Copyright (c) 2017-2024 Splunk Inc."
[comment]: # ""
[comment]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[comment]: # "you may not use this file except in compliance with the License."
[comment]: # "You may obtain a copy of the License at"
[comment]: # ""
[comment]: # " http://www.apache.org/licenses/LICENSE-2.0"
[comment]: # ""
[comment]: # "Unless required by applicable law or agreed to in writing, software distributed under"
[comment]: # "the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,"
[comment]: # "either express or implied. See the License for the specific language governing permissions"
[comment]: # "and limitations under the License."
[comment]: # ""
## pymisp-2.4.138

This app uses the pymisp module, which is licensed under an open source license. A simplified 2-BSD
License, Copyright (c) 2017 Raphaël Vinot.

## jsonschema-3.2.0

This app uses the jsonschema module, which is licensed under the MIT License, Copyright (c) 2013
Julian Berman.

## Deprecated-1.2.12

This app uses the Deprecated module, which is licensed under the MIT License, Copyright (c) 2017
Laurent LAPORTE.

## cachetools-4.2.2

This app uses the cachetools module, which is licensed under the MIT License, Copyright (c)
2014-2021 Thomas Kemmer.

Misp will return integers which correspond to various values. Here is the complete list:

For **distribution** :

- 0: Your Org Only
- 1: This Community Only
- 2: Connected Communities
- 3: All Communities
- 4: Sharing Group
- 5: Inherit


For **threat level id** :

- 1: High
- 2: Medium
- 3: Low
- 4: Undefined


For **analysis** :

- 0: Initial
- 1: Ongoing
- 2: Completed


**Note:**

- There is no validation provided in case of an incorrect value in the 'json' action parameter of
the **'create event'** and **'update event'** actions. Hence, the action will pass even if an
incorrect attribute value is passed in the 'json' action parameter and no attributes will be
added.

- The value of the attribute passed in the 'json' action parameter of **'create event'** and
**'update event'** will be treated as a list if a list is specified. If a string is specified
then a list will be created by splitting the string by comma (,). For example:

- json: {"email_body": \["body 1", "body 2"\], "ip-dst": "8.8.8.8, 12.4.6.34"}

The value of the 'email_body' will be considered a list and the value of the 'ip-dst' will be
converted to a list having two elements(\["8.8.8.8", "12.4.6.34"\]).

- In the **'run query'** action, tags containing a comma (,) in its value can be passed through
the 'other' action parameter. For example:

- other: {"tags": \["tag1, tag11", "tag_2"\]}

"tag1, tag11" will be considered a single tag.

## Port Information

The app uses HTTP/HTTPS protocol for communicating with the Misp Server. Below are the default ports
used by Splunk SOAR.

| Service Name | Transport Protocol | Port |
|--------------|--------------------|------|
| http | tcp | 80 |
| https | tcp | 443 |
60 changes: 14 additions & 46 deletions misp.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"publisher": "Splunk",
"package_name": "phantom_misp",
"type": "threat intel",
"license": "Copyright (c) 2017-2022 Splunk Inc.",
"license": "Copyright (c) 2017-2024 Splunk Inc.",
"main_module": "misp_connector.py",
"app_version": "2.2.0",
"app_version": "2.2.1",
"utctime_updated": "2022-02-03T21:33:46.000000Z",
"product_vendor": "MISP",
"product_name": "MISP",
Expand All @@ -28,7 +28,7 @@
},
{
"module": "attrs",
"input_file": "wheels/shared/attrs-21.4.0-py2.py3-none-any.whl"
"input_file": "wheels/py3/attrs-22.2.0-py3-none-any.whl"
},
{
"module": "beautifulsoup4",
Expand All @@ -39,16 +39,8 @@
"input_file": "wheels/py3/cachetools-4.2.2-py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
"module": "charset_normalizer",
"input_file": "wheels/py3/charset_normalizer-2.0.12-py3-none-any.whl"
},
{
"module": "importlib_metadata",
Expand All @@ -70,10 +62,6 @@
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "setuptools",
"input_file": "wheels/py3/setuptools-59.6.0-py3-none-any.whl"
Expand All @@ -84,19 +72,15 @@
},
{
"module": "soupsieve",
"input_file": "wheels/py3/soupsieve-2.3.2-py3-none-any.whl"
"input_file": "wheels/py3/soupsieve-2.3.2.post1-py3-none-any.whl"
},
{
"module": "typing_extensions",
"input_file": "wheels/py3/typing_extensions-4.1.1-py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.9-py2.py3-none-any.whl"
},
{
"module": "wrapt",
"input_file": "wheels/py36/wrapt-1.14.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"input_file": "wheels/py36/wrapt-1.16.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
},
{
"module": "zipp",
Expand Down Expand Up @@ -2390,7 +2374,7 @@
},
{
"module": "attrs",
"input_file": "wheels/shared/attrs-21.4.0-py2.py3-none-any.whl"
"input_file": "wheels/py3/attrs-23.1.0-py3-none-any.whl"
},
{
"module": "beautifulsoup4",
Expand All @@ -2401,16 +2385,8 @@
"input_file": "wheels/py3/cachetools-4.2.2-py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/shared/certifi-2021.10.8-py2.py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
"module": "charset_normalizer",
"input_file": "wheels/py39/charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
},
{
"module": "jsonschema",
Expand All @@ -2422,35 +2398,27 @@
},
{
"module": "pyrsistent",
"input_file": "wheels/py39/pyrsistent-0.18.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"input_file": "wheels/py39/pyrsistent-0.20.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "setuptools",
"input_file": "wheels/py3/setuptools-62.1.0-py3-none-any.whl"
"input_file": "wheels/py3/setuptools-69.0.2-py3-none-any.whl"
},
{
"module": "six",
"input_file": "wheels/shared/six-1.16.0-py2.py3-none-any.whl"
},
{
"module": "soupsieve",
"input_file": "wheels/py3/soupsieve-2.3.2-py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.9-py2.py3-none-any.whl"
"input_file": "wheels/py3/soupsieve-2.5-py3-none-any.whl"
},
{
"module": "wrapt",
"input_file": "wheels/py39/wrapt-1.14.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"input_file": "wheels/py39/wrapt-1.16.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
}
]
}
Expand Down
Loading

0 comments on commit 0af3218

Please sign in to comment.