Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
cb2be75
Recreated app via Splunk Add-on Builder
CTIBurn0ut May 19, 2025
4950431
Changed 'opencti_token' to 'opencti_api_key' in configuration
CTIBurn0ut Jun 17, 2025
132e665
Merged 'local' folder with 'default' folder in TA
CTIBurn0ut Jun 20, 2025
0b9bc1b
Updated the `input_module_opencti_stream.py` to
CTIBurn0ut Jun 30, 2025
02efd1a
Added logging to input_module_opencti_stream.py
CTIBurn0ut Jun 30, 2025
3e40d8a
Updated logging for opencti stream input module
CTIBurn0ut Jul 1, 2025
d65eaad
refactor(logging): standardize format and enrich state logs
CTIBurn0ut Jul 1, 2025
abdd2ff
Added packaged app
CTIBurn0ut Jul 1, 2025
257dc40
Updated Documentation and images
CTIBurn0ut Jul 2, 2025
ebbcb1b
chore(config): add legacy opencti_indicators input
CTIBurn0ut Jul 16, 2025
b20eba5
Added Package app
CTIBurn0ut Jul 16, 2025
c5b1423
Added legacy compatibility for OpenCTI indicators
CTIBurn0ut Jul 22, 2025
4f5082c
Added back alert action fields for obs extraction
CTIBurn0ut Jul 24, 2025
8210d4b
reintroduce prevous 'opencti_indicators' input
romain-filigran Jul 28, 2025
c1a793f
Generated Package
CTIBurn0ut Jul 28, 2025
eb3cdc7
remove 'input_type' from 'input_module_opencti_indicators.py'
romain-filigran Jul 28, 2025
1d68939
Merge branch 'dev-2.0' of github-filigran:OpenCTI-Platform/splunk-add…
romain-filigran Jul 28, 2025
dda3400
remove 'input_type' from 'input_module_opencti_indicators.py'
romain-filigran Jul 28, 2025
c0471f3
change file rights to 600 (This file has execute permissions for owners)
romain-filigran Jul 28, 2025
426df18
add github actions
romain-filigran Jul 28, 2025
96be44e
https://github.com/OpenCTI-Platform/splunk-add-on/issues/34
romain-filigran Aug 4, 2025
af5d742
update README
romain-filigran Aug 4, 2025
5b4f408
Added search to populate opencti_lookup
CTIBurn0ut Aug 4, 2025
ed2c65a
Changed default lookup to opencti_lookup
CTIBurn0ut Aug 4, 2025
a1155d4
File Cleanup
CTIBurn0ut Aug 12, 2025
8a60040
Updated globalConfig back to single service
CTIBurn0ut Aug 14, 2025
87e5fee
Update inputs and restmap configurations
CTIBurn0ut Aug 14, 2025
da5c558
Removed pycti from requirements.txt
CTIBurn0ut Aug 14, 2025
196e3e4
Added python cleanup script
CTIBurn0ut Aug 14, 2025
6c9bd0f
Updated excluded binaries
CTIBurn0ut Aug 14, 2025
58985b3
file deps
CTIBurn0ut Aug 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .appinspect_api.expect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
check_simplexml_standards_version:
comment: expected
check_app_icon_2x_dimensions:
comment: expected
check_app_icon_2x_is_png:
comment: expected
check_app_icon_dimensions:
comment: expected
check_app_icon_is_png:
comment: expected
check_ignored_parameters_v2_command:
comment: expected
check_basic_readme:
comment: expected
check_for_binary_files_without_source_code:
comment: expected
check_for_compiled_python:
comment: expected
Binary file modified .github/img/config_input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/img/saved_searches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/img/search_macro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: build-test-release

on: push

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create subfolder
run: mkdir my-package

- name: Install UCC
run: |
pip install splunk-add-on-ucc-framework
pip install splunk-packaging-toolkit

- name: Build an app using UCC
run: ucc-gen build --source TA-opencti-add-on

- name: Create tmp folder
run: mkdir app-dir

- name: Create package
run: ucc-gen package --path output/TA-opencti-add-on -o app-dir/

- name: Upload package
uses: actions/upload-artifact@v4
with:
name: my-package
path: app-dir/

run-appinspect-api:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
with:
name: my-package
path: app-dir/
- name: appinspect-api
uses: splunk/[email protected]
with:
username: ${{ secrets.SPL_COM_USER }}
password: ${{ secrets.SPL_COM_PASSWORD }}
app_path: app-dir/
- uses: actions/upload-artifact@v4
if: always()
with:
name: appinspect-api-html-report
path: AppInspect_response.html
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ __pycache__/
local.meta

# Splunk local folder
local
local
.DS_Store
.gitignore
173 changes: 105 additions & 68 deletions README.md

Large diffs are not rendered by default.

Binary file added TA-opencti-add-on-2.0.0.tar.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion TA-opencti-add-on/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ This is an add-on powered by the Splunk Add-on Builder.

bin/ta_opencti_add_on/aob_py3/yaml/_yaml.cpython-37m-x86_64-linux-gnu.so: This binary file is provided along with Splunk's Add-on Builder module.
bin/ta_opencti_add_on/aob_py3/markupsafe/_speedups.cpython-37m-x86_64-linux-gnu.so: this file does not require any source code
bin/ta_opencti_add_on/aob_py3/simplejson/_speedups.cp37-win_amd64.pyd: this file does not require any source code
bin/ta_opencti_add_on/aob_py3/simplejson/_speedups.cpython-312-x86_64-linux-gnu.so: this file does not require any source code
bin/ta_opencti_add_on/aob_py3/charset_normalizer/md__mypyc.cpython-312-x86_64-linux-gnu.so: this file does not require any source code
bin/ta_opencti_add_on/aob_py3/charset_normalizer/md.cpython-312-x86_64-linux-gnu.so: this file does not require any source code
23 changes: 11 additions & 12 deletions TA-opencti-add-on/README/alert_actions.conf.spec
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@


[opencti_create_incident]
python.version = python3
param.name = <string> Name. It's a required parameter. It's default value is $name$.
param.description = <string> Description. It's default value is $description$.
param.name = <string> Name.
param.description = <string> Description.
param.type = <string> Type.
param.severity = <list> Severity. It's default value is medium.
param.severity = <string> Severity.
param.labels = <string> Labels.
param.tlp = <list> TLP. It's default value is tlp_amber.
param.observables_extraction = <list> Observables extraction. It's default value is disable.
param.tlp = <string> TLP. It's default value is tlp_amber.
param.observables_extraction = <list> Observable Extraction. It's default value is disable.

[opencti_create_incident_response]
python.version = python3
param.name = <string> Name. It's a required parameter. It's default value is $name$.
param.description = <string> Description. It's default value is $description$.
param.severity = <list> Severity. It's default value is medium.
param.priority = <list> Priority. It's default value is p2.
param.name = <string> Name.
param.description = <string> Description.
param.severity = <string> Severity.
param.priority = <string> Priority.
param.type = <string> Type.
param.case_template = <string> Case Template.
param.labels = <string> Labels.
param.tlp = <list> TLP. It's default value is tlp_amber.
param.observables_extraction = <list> Observables extraction. It's default value is disable.
param.tlp = <string> TLP. It's default value is tlp_amber.
param.observables_extraction = <list> Observable Extraction. It's default value is disable.

11 changes: 9 additions & 2 deletions TA-opencti-add-on/README/inputs.conf.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[opencti_indicators://<name>]
stream_id =
import_from =
import_from = <integer>
interval = <integer>
stream_id = <uuid>
disabled = <boolean>

[opencti_stream://<name>]
stream_id = OpenCTI Stream Id to consume
import_from = The number of days to go back for the initial data collection. The start date is calculated on the basis of the current UTC time.
input_type = Choose where to store the data. • KV Store keeps structured data for lookups. • Index saves events for searching and alerting.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ loglevel =

[additional_parameters]
opencti_url =
opencti_api_key =
opencti_api_key =
1 change: 1 addition & 0 deletions TA-opencti-add-on/TA-opencti-add-on.aob_meta

Large diffs are not rendered by default.

35 changes: 22 additions & 13 deletions TA-opencti-add-on/app.manifest
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"schemaVersion": "2.0.0",
"info": {
"title": "OpenCTI Add-on for Splunk",
"title": "OpenCTI Add-on",
"id": {
"group": null,
"name": "TA-opencti-add-on",
"version": "1.1.5"
"version": "2.0.0"
},
"author": [
{
Expand All @@ -15,7 +15,7 @@
}
],
"releaseDate": null,
"description": "Add-on for OpenCTI",
"description": "Splunk Add-on for OpenCTI",
"classification": {
"intendedAudience": null,
"categories": [],
Expand All @@ -34,18 +34,27 @@
},
"releaseNotes": {
"name": null,
"text": "./README.txt",
"text": null,
"uri": null
}
},
"dependencies": null,
"tasks": null,
"inputGroups": null,
"incompatibleApps": null,
"platformRequirements": null,
"dependencies": {
},
"tasks": [],
"inputGroups": {
},
"incompatibleApps": {
},
"platformRequirements": {
"splunk": {
"Enterprise": "*"
}
},
"supportedDeployments": [
"_standalone",
"_distributed"
"*"
],
"targetWorkloads": null
}
"targetWorkloads": [
"_search_heads",
"_forwarders"
]
}
Binary file removed TA-opencti-add-on/appserver/static/alert_icon.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added TA-opencti-add-on/appserver/static/alerticon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading