-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/docs/80 add example playbooks to example folder (#83)
- Loading branch information
1 parent
382a3e7
commit 72c48aa
Showing
4 changed files
with
200 additions
and
35 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
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,77 @@ | ||
{ | ||
"type": "playbook", | ||
"spec_version": "cacao-2.0", | ||
"id": "playbook--300270f9-0e64-42c8-93cc-0927edbe3ae7", | ||
"name": "Example ssh", | ||
"description": "This playbook is to demonstrate the http functionality", | ||
"playbook_types": [ | ||
"notification" | ||
], | ||
"created_by": "identity--96abab60-238a-44ff-8962-5806aa60cbce", | ||
"created": "2023-11-20T15:56:00.123456Z", | ||
"modified": "2023-11-20T15:56:00.123456Z", | ||
"valid_from": "2023-11-20T15:56:00.123456Z", | ||
"valid_until": "2123-11-20T15:56:00.123456Z", | ||
"priority": 1, | ||
"severity": 1, | ||
"impact": 1, | ||
"labels": [ | ||
"soarca", | ||
"http-api", | ||
"get" | ||
], | ||
"agent_definitions": { | ||
"soarca--00020001-1000-1000-a000-000100010001": { | ||
"type": "soarca", | ||
"name": "soarca-http-api" | ||
} | ||
}, | ||
"target_definitions": { | ||
"http-api--1c3900b4-f86b-430d-b415-12312b9e31f4": { | ||
"type": "http-api", | ||
"name": "httpbin", | ||
"address": { | ||
"dname": [ | ||
"httpbin.org" | ||
] | ||
} | ||
} | ||
}, | ||
"external_references": [ | ||
{ | ||
"name": "TNO COSSAS", | ||
"description": "TNO COSSAS", | ||
"source": "TNO COSSAS", | ||
"url": "https://cossas-project.org" | ||
} | ||
], | ||
"workflow_start": "start--9e7d62b2-88ac-4656-94e1-dbd4413ba008", | ||
"workflow_exception": "end--a6f0b81e-affb-4bca-b4f6-a2d5af908958", | ||
"workflow": { | ||
"start--9e7d62b2-88ac-4656-94e1-dbd4413ba008": { | ||
"type": "start", | ||
"name": "Start example flow http-api", | ||
"on_completion": "action--eb9372d4-d524-49fc-bf24-be26ea084779" | ||
}, | ||
"action--eb9372d4-d524-49fc-bf24-be26ea084779": { | ||
"type": "action", | ||
"name": "get", | ||
"description": "Get request with ", | ||
"on_completion": "end--a6f0b81e-affb-4bca-b4f6-a2d5af908958", | ||
"commands": [ | ||
{ | ||
"type": "http-api", | ||
"command": "GET get HTTP1.1" | ||
} | ||
], | ||
"targets": [ | ||
"http-api--1c3900b4-f86b-430d-b415-12312b9e31f4" | ||
], | ||
"agent": "soarca--00020001-1000-1000-a000-000100010001" | ||
}, | ||
"end--a6f0b81e-affb-4bca-b4f6-a2d5af908958": { | ||
"type": "end", | ||
"name": "End Flow" | ||
} | ||
} | ||
} |
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,78 @@ | ||
{ | ||
"type": "playbook", | ||
"spec_version": "cacao-2.0", | ||
"id": "playbook--300270f9-0e64-42c8-93cc-0927edbe3ae7", | ||
"name": "Example ssh", | ||
"description": "This playbook is to demonstrate the openc2 functionality", | ||
"playbook_types": [ | ||
"notification" | ||
], | ||
"created_by": "identity--96abab60-238a-44ff-8962-5806aa60cbce", | ||
"created": "2023-11-20T15:56:00.123456Z", | ||
"modified": "2023-11-20T15:56:00.123456Z", | ||
"valid_from": "2023-11-20T15:56:00.123456Z", | ||
"valid_until": "2123-11-20T15:56:00.123456Z", | ||
"priority": 1, | ||
"severity": 1, | ||
"impact": 1, | ||
"labels": [ | ||
"soarca", | ||
"openc2", | ||
"post" | ||
], | ||
"agent_definitions": { | ||
"soarca--00020001-1000-1000-a000-000100010001": { | ||
"type": "soarca", | ||
"name": "soarca-openc2-http" | ||
} | ||
}, | ||
"target_definitions": { | ||
"http-api--1c3900b4-f86b-430d-b415-12312b9e31f4": { | ||
"type": "http-api", | ||
"name": "httpbin", | ||
"address": { | ||
"dname": [ | ||
"httpbin.org" | ||
] | ||
} | ||
} | ||
}, | ||
"external_references": [ | ||
{ | ||
"name": "TNO COSSAS", | ||
"description": "TNO COSSAS", | ||
"source": "TNO COSSAS", | ||
"url": "https://cossas-project.org" | ||
} | ||
], | ||
"workflow_start": "start--9e7d62b2-88ac-4656-94e1-dbd4413ba008", | ||
"workflow_exception": "end--a6f0b81e-affb-4bca-b4f6-a2d5af908958", | ||
"workflow": { | ||
"start--9e7d62b2-88ac-4656-94e1-dbd4413ba008": { | ||
"type": "start", | ||
"name": "Start example flow openc2 http", | ||
"on_completion": "action--eb9372d4-d524-49fc-bf24-be26ea084779" | ||
}, | ||
"action--eb9372d4-d524-49fc-bf24-be26ea084779": { | ||
"type": "action", | ||
"name": "openc2", | ||
"description": "Get request with ", | ||
"on_completion": "end--a6f0b81e-affb-4bca-b4f6-a2d5af908958", | ||
"commands": [ | ||
{ | ||
"type": "openc2", | ||
"command": "POST post HTTP1.1", | ||
"content_b64": "ewogICJoZWFkZXJzIjogewogICAgInJlcXVlc3RfaWQiOiAiZDFhYzA0ODktZWQ1MS00MzQ1LTkxNzUtZjMwNzhmMzBhZmU1IiwKICAgICJjcmVhdGVkIjogMTU0NTI1NzcwMDAwMCwKICAgICJmcm9tIjogIm9jMnByb2R1Y2VyLmNvbXBhbnkubmV0IiwKICAgICJ0byI6IFsKICAgICAgIm9jMmNvbnN1bWVyLmNvbXBhbnkubmV0IgogICAgXQogIH0sCiAgImJvZHkiOiB7CiAgICAib3BlbmMyIjogewogICAgICAicmVxdWVzdCI6IHsKICAgICAgICAiYWN0aW9uIjogImRlbnkiLAogICAgICAgICJ0YXJnZXQiOiB7CiAgICAgICAgICAiaXB2NF9jb25uZWN0aW9uIjogewogICAgICAgICAgICAicHJvdG9jb2wiOiAidGNwIiwKICAgICAgICAgICAgInNyY19hZGRyIjogIjEuMi4zLjQiLAogICAgICAgICAgICAic3JjX3BvcnQiOiAxMDk5NiwKICAgICAgICAgICAgImRzdF9hZGRyIjogIjE5OC4yLjMuNCIsCiAgICAgICAgICAgICJkc3RfcG9ydCI6IDgwCiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAiYXJncyI6IHsKICAgICAgICAgICJzdGFydF90aW1lIjogMTUzNDc3NTQ2MDAwMCwKICAgICAgICAgICJkdXJhdGlvbiI6IDUwMCwKICAgICAgICAgICJyZXNwb25zZV9yZXF1ZXN0ZWQiOiAiYWNrIiwKICAgICAgICAgICJzbHBmIjogewogICAgICAgICAgICAiZHJvcF9wcm9jZXNzIjogIm5vbmUiCiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAicHJvZmlsZSI6ICJzbHBmIgogICAgICB9CiAgICB9CiAgfQp9" | ||
} | ||
], | ||
"targets": [ | ||
"http-api--1c3900b4-f86b-430d-b415-12312b9e31f4" | ||
], | ||
"agent": "soarca--00020001-1000-1000-a000-000100010001" | ||
}, | ||
"end--a6f0b81e-affb-4bca-b4f6-a2d5af908958": { | ||
"type": "end", | ||
"name": "End Flow" | ||
} | ||
} | ||
} |
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