-
Notifications
You must be signed in to change notification settings - Fork 22
/
threatest.schema.json
95 lines (95 loc) · 2.58 KB
/
threatest.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/datadog/threatest/threatest.schema.json",
"title": "Threatest Test Suite",
"description": "Schema for a Threatest test suite",
"type": "object",
"required": [
"scenarios"
],
"properties": {
"scenarios": {
"description": "The display name of the vulnerability",
"type": "array",
"items": {
"type": "object",
"description": "The list of scenarios",
"required": [
"name",
"detonate",
"expectations"
],
"properties": {
"name": {
"type": "string",
"description": "Description of the scenario"
},
"detonate": {
"type": "object",
"description": "How to detonate the attack",
"oneOf": [
{
"required": [
"localDetonator"
]
},
{
"required": [
"remoteDetonator"
]
},
{
"required": [
"stratusRedTeamDetonator"
]
},
{
"required": [
"awsCliDetonator"
]
}
],
"properties": {
"localDetonator": {
"$ref": "localDetonator.schema.json"
},
"remoteDetonator": {
"$ref": "remoteDetonator.schema.json"
},
"stratusRedTeamDetonator": {
"$ref": "stratusRedTeamDetonator.schema.json"
},
"awsCliDetonator": {
"$ref": "awsCliDetonator.schema.json"
}
}
},
"expectations": {
"type": "array",
"items": {
"type": "object",
"description": "Expectations",
"oneOf": [
{
"required": [
"datadogSecuritySignal"
]
}
],
"properties": {
"datadogSecuritySignal": {
"$ref": "datadogSecuritySignal.schema.json"
},
"timeout": {
"type": "string",
"default": "5m",
"description": "The maximal time to wait for the assertion, written as a Go duration (e.g. 5m)"
}
}
}
}
}
}
}
}
}