forked from microsoft/azure-pipelines-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
service-schema-manual.json
202 lines (202 loc) · 5.53 KB
/
service-schema-manual.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/g4rcez/nuclei-vscode/blob/main/service-schema.json",
"$comment": "v1.195.0",
"title": "Pipeline schema",
"description": "A pipeline definition",
"oneOf": [
{
"$ref": "#/definitions/template"
},
{
"type": "string",
"pattern": "^$"
}
],
"definitions": {
"string": {
"type": "string"
},
"sequence": {
"type": "array",
"items": {
"$ref": "#/definitions/any"
}
},
"mapping": {
"type": "object",
"additionalProperties": true
},
"any": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/any"
}
},
{
"type": "object",
"additionalProperties": true
}
]
},
"template": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"description": "Unique ID for template.",
"$ref": "#/definitions/id"
},
"info": {
"description": "Template metadata information.",
"$ref": "#/definitions/info"
},
"requests": {
"description": "Template metadata information.",
"$ref": "#/definitions/requests"
}
},
"additionalProperties": false,
"required": ["id", "info"]
}
]
},
"id": {
"type": "string"
},
"requests": {
"type": "array",
"items": [
{
"required": ["path", "method"],
"properties": {
"path": {
"description": "The path for HTTP requests. It supports variables.",
"$ref": "#/definitions/arrayString",
"type": "array"
},
"id": {
"description": "ID for this request.",
"$ref": "#/definitions/id"
},
"body": {
"description": "Request body.",
"type": "string"
},
"payloads": {
"$ref": "#/definitions/dict",
"description": "The payloads for the current request."
},
"headers": {
"$ref": "#/definitions/dict",
"description": "HTTP headers to send with this request."
},
"race_count": {
"type": "number",
"description": "The number of times to send a request in Race Condition Attack."
},
"max-redirects": {
"type": "number",
"description": "The maximum number of redirects that should be followed."
},
"pipeline": {
"type": "boolean",
"description": "Pipeline defines if the attack should be performed with HTTP 1.1 Pipelining."
},
"method": {
"description": "HTTP method used for this request.",
"enum": [
"CONNECT",
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"PATCH",
"POST",
"PURGE",
"PUT",
"TRACE"
]
}
}
}
]
},
"info": {
"type": "object",
"required": ["name", "author", "description"],
"properties": {
"name": {
"type": "string",
"description": "Good short summary that identifies what the template does."
},
"author": {
"type": "string",
"description": "Authors of the template. Multiple values can also be specified separated by comas 'foo,bar'"
},
"tags": {
"type": "string",
"description": "Any tags for the template. Multiple values can also be specified separated by comas 'foo,bar'"
},
"description": {
"type": "string",
"description": "Description of the template. You can go in-depth here on what the template actually does."
},
"reference": {
"type": "array",
"$ref": "#/definitions/arrayString",
"description": "Relevant links to the template, 'https://foo.io'"
},
"metadata": {
"$ref": "#/definitions/dict",
"description": "Metadata of the template."
},
"remediation": {
"type": "string",
"description": "How to mitigate the problem find by this template."
},
"severity": {
"type": "string",
"description": "Severity of the test in this template.",
"enum": ["medium", "high", "critical", "limit", "info", "low"]
},
"classification": {
"type": "object",
"properties": {
"cve-id": {
"type": "string",
"description": "CVE ID for the template."
},
"cvss-metrics": {
"type": "string",
"description": "CVSS Metrics for the template."
},
"cwe-id": {
"description": "CWE ID for the template.",
"type": "string"
},
"cvss-score": {
"type": "number"
}
}
}
}
},
"arrayString": {
"type": "array",
"items": {
"type": "string"
}
},
"dict": {
"type": "object",
"additionalProperties": true
}
}
}