Skip to content

If target is not in step playbook is accepted and no warning is given #351

@MaartendeKruijf

Description

@MaartendeKruijf

Describe the bug
If target is not in step playbook is accepted and no warning is given

To Reproduce provide details logs and steps
this is a problematic step (note the missing target):

"action--4e57c94a-aab6-4fd9-a84b-bb016c6109ba": {
      "type": "action",
      "id": "action--4e57c94a-aab6-4fd9-a84b-bb016c6109ba",
      "name": "Update case with severity of grid node",
      "on_completion": "end--f23fbb94-88ab-4476-88a4-c4cfb47aa07f",
      "commands": [
        {
          "type": "http-api",
          "command": "POST /thehive/api/v1/case/__soarca_case_id__:value/comment HTTP/1.1",
          "content": "{ \"message\":  \"medium or low grid impact severity\" }",
          "headers": {
            "Authorization": "Bearer f2eAPRxxq8Wej7OodikGkmyeottz0xGy"
          }
        }
      ],
      "agent": "soarca--3552da68-53d7-4e8c-8cc0-277d5ba2212a"
    }

Expected behavior
SOARCA should log an error

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Environment information
docker, all

Additional context
n.a.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions