You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+87-3Lines changed: 87 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,95 @@ Each detonation is assigned a UUID. This UUID is reflected in the detonation and
34
34
35
35
The way this is done depends on the detonator; for instance, Stratus Red Team and the AWS Detonator inject it in the user-agent; the SSH detonator uses a parent process containing the UUID.
36
36
37
-
## Sample usage
37
+
## Usage
38
38
39
-
See [examples](./examples) for complete usage example.
39
+
### Through the CLI
40
40
41
-
### Testing Datadog Cloud SIEM signals triggered by Stratus Red Team
41
+
Threatest comes with a CLI that you can use to run test scenarios described as YAML, following a specific [schema](./schemas/threatest.schema.json). You can configure this schema in your editor to benefit from in-IDE linting and autocompletion (see [documentation for VSCode](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml#associating-a-schema-to-a-glob-pattern-via-yaml.schemas) using the [YAML](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml) extension).
42
+
43
+
Sample usage:
44
+
45
+
```bash
46
+
$ threatest lint scenarios.threatest.yaml
47
+
All 6 scenarios are syntaxically valid
48
+
49
+
# Local detonation
50
+
$ threatest run local-scenarios.threatest.yaml
51
+
52
+
# Remote detonation over SSH
53
+
$ threatest run scenarios.threatest.yaml --ssh-host test-box --ssh-username vagrant
54
+
55
+
# Alternatively, specify SSH parameters from environment variables
"errorMessage": "At least one scenario failed:\n\nchange user password returned: change user password: 1 assertions did not pass\n =\u003e Did not find Datadog security signal 'bar'\n",
0 commit comments