@critiq/cli 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@critiq/cli",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "description": "Critiq CLI for deterministic codebase checks, rule validation, and fixture-driven rule tests.",
6
6
  "license": "Apache-2.0",
@@ -51,6 +51,60 @@
51
51
  "file",
52
52
  "project"
53
53
  ]
54
+ },
55
+ "aliases": {
56
+ "type": "array",
57
+ "items": {
58
+ "$ref": "#/properties/metadata/properties/id"
59
+ }
60
+ },
61
+ "references": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "object",
65
+ "properties": {
66
+ "kind": {
67
+ "type": "string",
68
+ "enum": [
69
+ "internal",
70
+ "url",
71
+ "cwe",
72
+ "cve",
73
+ "owasp",
74
+ "advisory"
75
+ ]
76
+ },
77
+ "id": {
78
+ "$ref": "#/properties/metadata/properties/id"
79
+ },
80
+ "title": {
81
+ "$ref": "#/properties/metadata/properties/id"
82
+ },
83
+ "url": {
84
+ "$ref": "#/properties/metadata/properties/id"
85
+ }
86
+ },
87
+ "required": [
88
+ "kind"
89
+ ],
90
+ "additionalProperties": false
91
+ }
92
+ },
93
+ "detection": {
94
+ "type": "object",
95
+ "properties": {
96
+ "kind": {
97
+ "type": "string",
98
+ "enum": [
99
+ "pattern",
100
+ "vulnerability"
101
+ ]
102
+ }
103
+ },
104
+ "required": [
105
+ "kind"
106
+ ],
107
+ "additionalProperties": false
54
108
  }
55
109
  },
56
110
  "required": [
@@ -60,6 +114,316 @@
60
114
  ],
61
115
  "additionalProperties": false
62
116
  },
117
+ "vulnerability": {
118
+ "type": "object",
119
+ "properties": {
120
+ "classification": {
121
+ "$ref": "#/properties/metadata/properties/id"
122
+ },
123
+ "issueKind": {
124
+ "type": "string",
125
+ "enum": [
126
+ "cve",
127
+ "malicious",
128
+ "advisory"
129
+ ]
130
+ },
131
+ "labels": {
132
+ "type": "array",
133
+ "items": {
134
+ "type": "string",
135
+ "enum": [
136
+ "new",
137
+ "malicious",
138
+ "kev"
139
+ ]
140
+ }
141
+ },
142
+ "overview": {
143
+ "$ref": "#/properties/metadata/properties/id"
144
+ },
145
+ "ids": {
146
+ "type": "object",
147
+ "properties": {
148
+ "cve": {
149
+ "type": "array",
150
+ "items": {
151
+ "$ref": "#/properties/metadata/properties/id"
152
+ }
153
+ },
154
+ "cwe": {
155
+ "type": "array",
156
+ "items": {
157
+ "$ref": "#/properties/metadata/properties/id"
158
+ }
159
+ },
160
+ "advisory": {
161
+ "type": "array",
162
+ "items": {
163
+ "$ref": "#/properties/metadata/properties/id"
164
+ }
165
+ },
166
+ "external": {
167
+ "type": "array",
168
+ "items": {
169
+ "type": "object",
170
+ "properties": {
171
+ "source": {
172
+ "$ref": "#/properties/metadata/properties/id"
173
+ },
174
+ "id": {
175
+ "$ref": "#/properties/metadata/properties/id"
176
+ }
177
+ },
178
+ "required": [
179
+ "source",
180
+ "id"
181
+ ],
182
+ "additionalProperties": false
183
+ }
184
+ }
185
+ },
186
+ "additionalProperties": false
187
+ },
188
+ "package": {
189
+ "type": "object",
190
+ "properties": {
191
+ "ecosystem": {
192
+ "type": "string",
193
+ "enum": [
194
+ "npm",
195
+ "pypi",
196
+ "maven",
197
+ "go",
198
+ "cargo",
199
+ "nuget",
200
+ "cocoapods",
201
+ "gem",
202
+ "composer"
203
+ ]
204
+ },
205
+ "namespace": {
206
+ "$ref": "#/properties/metadata/properties/id"
207
+ },
208
+ "name": {
209
+ "$ref": "#/properties/metadata/properties/id"
210
+ },
211
+ "description": {
212
+ "$ref": "#/properties/metadata/properties/id"
213
+ },
214
+ "affectedVersions": {
215
+ "type": "array",
216
+ "items": {
217
+ "anyOf": [
218
+ {
219
+ "type": "object",
220
+ "properties": {
221
+ "kind": {
222
+ "type": "string",
223
+ "const": "exact"
224
+ },
225
+ "version": {
226
+ "$ref": "#/properties/metadata/properties/id"
227
+ }
228
+ },
229
+ "required": [
230
+ "kind",
231
+ "version"
232
+ ],
233
+ "additionalProperties": false
234
+ },
235
+ {
236
+ "type": "object",
237
+ "properties": {
238
+ "kind": {
239
+ "type": "string",
240
+ "const": "range"
241
+ },
242
+ "expression": {
243
+ "$ref": "#/properties/metadata/properties/id"
244
+ }
245
+ },
246
+ "required": [
247
+ "kind",
248
+ "expression"
249
+ ],
250
+ "additionalProperties": false
251
+ },
252
+ {
253
+ "type": "object",
254
+ "properties": {
255
+ "kind": {
256
+ "type": "string",
257
+ "const": "all"
258
+ }
259
+ },
260
+ "required": [
261
+ "kind"
262
+ ],
263
+ "additionalProperties": false
264
+ }
265
+ ]
266
+ },
267
+ "minItems": 1
268
+ }
269
+ },
270
+ "required": [
271
+ "ecosystem",
272
+ "name",
273
+ "affectedVersions"
274
+ ],
275
+ "additionalProperties": false
276
+ },
277
+ "timeline": {
278
+ "type": "object",
279
+ "properties": {
280
+ "disclosed": {
281
+ "$ref": "#/properties/metadata/properties/id"
282
+ },
283
+ "published": {
284
+ "$ref": "#/properties/metadata/properties/id"
285
+ }
286
+ },
287
+ "additionalProperties": false
288
+ },
289
+ "severity": {
290
+ "type": "object",
291
+ "properties": {
292
+ "cvss": {
293
+ "type": "array",
294
+ "items": {
295
+ "type": "object",
296
+ "properties": {
297
+ "version": {
298
+ "$ref": "#/properties/metadata/properties/id"
299
+ },
300
+ "score": {
301
+ "type": "number"
302
+ },
303
+ "vector": {
304
+ "$ref": "#/properties/metadata/properties/id"
305
+ }
306
+ },
307
+ "required": [
308
+ "version",
309
+ "score",
310
+ "vector"
311
+ ],
312
+ "additionalProperties": false
313
+ }
314
+ }
315
+ },
316
+ "additionalProperties": false
317
+ },
318
+ "threat": {
319
+ "type": "object",
320
+ "properties": {
321
+ "epss": {
322
+ "type": "object",
323
+ "properties": {
324
+ "score": {
325
+ "type": "number"
326
+ },
327
+ "percentile": {
328
+ "type": "number"
329
+ }
330
+ },
331
+ "required": [
332
+ "score"
333
+ ],
334
+ "additionalProperties": false
335
+ }
336
+ },
337
+ "additionalProperties": false
338
+ },
339
+ "exploit": {
340
+ "type": "object",
341
+ "properties": {
342
+ "maturity": {
343
+ "type": "string",
344
+ "enum": [
345
+ "none",
346
+ "poc",
347
+ "functional",
348
+ "in-the-wild",
349
+ "attacked"
350
+ ]
351
+ }
352
+ },
353
+ "required": [
354
+ "maturity"
355
+ ],
356
+ "additionalProperties": false
357
+ },
358
+ "credit": {
359
+ "type": "array",
360
+ "items": {
361
+ "$ref": "#/properties/metadata/properties/id"
362
+ }
363
+ },
364
+ "workaround": {
365
+ "$ref": "#/properties/metadata/properties/id"
366
+ },
367
+ "fix": {
368
+ "type": "object",
369
+ "properties": {
370
+ "kind": {
371
+ "type": "string",
372
+ "enum": [
373
+ "upgrade",
374
+ "remove",
375
+ "pin",
376
+ "mitigate",
377
+ "none"
378
+ ]
379
+ },
380
+ "available": {
381
+ "type": "boolean"
382
+ },
383
+ "summary": {
384
+ "$ref": "#/properties/metadata/properties/id"
385
+ },
386
+ "versions": {
387
+ "type": "array",
388
+ "items": {
389
+ "$ref": "#/properties/metadata/properties/id"
390
+ }
391
+ }
392
+ },
393
+ "required": [
394
+ "kind",
395
+ "available",
396
+ "summary"
397
+ ],
398
+ "additionalProperties": false
399
+ },
400
+ "incident": {
401
+ "type": "object",
402
+ "properties": {
403
+ "notice": {
404
+ "$ref": "#/properties/metadata/properties/id"
405
+ },
406
+ "behavior": {
407
+ "$ref": "#/properties/metadata/properties/id"
408
+ },
409
+ "trackingUrl": {
410
+ "$ref": "#/properties/metadata/properties/id"
411
+ },
412
+ "ongoing": {
413
+ "type": "boolean"
414
+ }
415
+ },
416
+ "additionalProperties": false
417
+ }
418
+ },
419
+ "required": [
420
+ "classification",
421
+ "issueKind",
422
+ "package",
423
+ "fix"
424
+ ],
425
+ "additionalProperties": false
426
+ },
63
427
  "scope": {
64
428
  "type": "object",
65
429
  "properties": {
@@ -78,6 +442,7 @@
78
442
  "php",
79
443
  "ruby",
80
444
  "rust",
445
+ "dockerfile",
81
446
  "all"
82
447
  ]
83
448
  }