vulnpilot 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +200 -2
- package/dist/cli.js +6241 -0
- package/package.json +61 -4
- package/schema/report-v1.schema.json +251 -0
package/package.json
CHANGED
|
@@ -1,6 +1,63 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vulnpilot",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Find known and actively exploited (CISA KEV) vulnerabilities in your dependencies and screen EU Cyber Resilience Act applicability. Not legal advice.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/quaviabusiness-stack/vulnpilot.git"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"bin": {
|
|
12
|
+
"vulnpilot": "dist/cli.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/cli.js",
|
|
16
|
+
"schema/report-v1.schema.json",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE"
|
|
19
|
+
],
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=26"
|
|
22
|
+
},
|
|
23
|
+
"packageManager": "pnpm@12.16.1",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsup",
|
|
29
|
+
"dev": "tsup --watch",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"lint": "eslint . && prettier --check .",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"format": "prettier --write .",
|
|
34
|
+
"prepack": "pnpm build",
|
|
35
|
+
"prepublishOnly": "pnpm lint && pnpm typecheck && pnpm test && pnpm build"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@clack/prompts": "^1.8.1",
|
|
39
|
+
"commander": "^15.0.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@eslint/js": "^10.0.0",
|
|
43
|
+
"@types/node": "^26.6.6",
|
|
44
|
+
"ajv": "^8.20.0",
|
|
45
|
+
"eslint": "^10.14.0",
|
|
46
|
+
"prettier": "^3.9.10",
|
|
47
|
+
"tsup": "^9.0.0",
|
|
48
|
+
"typescript": "~5.9.3",
|
|
49
|
+
"typescript-eslint": "^8.72.1",
|
|
50
|
+
"vitest": "^5.1.0"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"cyber-resilience-act",
|
|
54
|
+
"cra",
|
|
55
|
+
"vulnerability",
|
|
56
|
+
"osv",
|
|
57
|
+
"kev",
|
|
58
|
+
"epss",
|
|
59
|
+
"sbom",
|
|
60
|
+
"cyclonedx",
|
|
61
|
+
"security"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/quaviabusiness-stack/vulnpilot/blob/main/schema/report-v1.schema.json",
|
|
4
|
+
"title": "Vulnpilot report v1",
|
|
5
|
+
"description": "Output of `vulnpilot --json`. Minor/patch schema versions only add optional fields; a breaking change bumps the major version.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"tool",
|
|
11
|
+
"generatedAt",
|
|
12
|
+
"durationMs",
|
|
13
|
+
"mock",
|
|
14
|
+
"input",
|
|
15
|
+
"cra",
|
|
16
|
+
"summary",
|
|
17
|
+
"sources",
|
|
18
|
+
"issues"
|
|
19
|
+
],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schemaVersion": { "type": "string", "pattern": "^1\\.\\d+\\.\\d+$" },
|
|
22
|
+
"tool": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": ["name", "version"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"name": { "const": "vulnpilot" },
|
|
28
|
+
"version": { "type": "string" }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
32
|
+
"durationMs": { "type": "integer", "minimum": 0 },
|
|
33
|
+
"mock": { "type": "boolean" },
|
|
34
|
+
"input": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["format", "file", "dependencies", "skipped"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"format": {
|
|
40
|
+
"enum": [
|
|
41
|
+
"package-lock",
|
|
42
|
+
"pnpm-lock",
|
|
43
|
+
"yarn-v1",
|
|
44
|
+
"yarn-berry",
|
|
45
|
+
"cyclonedx"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"file": { "type": "string" },
|
|
49
|
+
"dependencies": { "type": "integer", "minimum": 0 },
|
|
50
|
+
"skipped": { "type": "integer", "minimum": 0 }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"cra": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": [
|
|
57
|
+
"verdict",
|
|
58
|
+
"rule",
|
|
59
|
+
"reason",
|
|
60
|
+
"answers",
|
|
61
|
+
"keyDates",
|
|
62
|
+
"disclaimer"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"verdict": {
|
|
66
|
+
"enum": ["likely_applies", "likely_out_of_scope", "unclear"]
|
|
67
|
+
},
|
|
68
|
+
"rule": { "type": "string" },
|
|
69
|
+
"reason": { "type": "string" },
|
|
70
|
+
"answers": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"required": ["id", "question", "answer"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"id": { "enum": ["euDistribution", "commercial", "productType"] },
|
|
78
|
+
"question": { "type": "string" },
|
|
79
|
+
"answer": {
|
|
80
|
+
"enum": [
|
|
81
|
+
"yes",
|
|
82
|
+
"no",
|
|
83
|
+
"unknown",
|
|
84
|
+
"app",
|
|
85
|
+
"library",
|
|
86
|
+
"firmware",
|
|
87
|
+
"saas",
|
|
88
|
+
"saas-with-client"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"keyDates": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"required": ["date", "obligation", "inForce"],
|
|
100
|
+
"properties": {
|
|
101
|
+
"date": { "type": "string", "format": "date" },
|
|
102
|
+
"obligation": { "type": "string" },
|
|
103
|
+
"inForce": { "type": "boolean" }
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"disclaimer": { "type": "string", "pattern": "[Nn]ot legal advice" }
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"summary": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": [
|
|
114
|
+
"dependencies",
|
|
115
|
+
"vulnerablePackages",
|
|
116
|
+
"issues",
|
|
117
|
+
"criticalOrHigh",
|
|
118
|
+
"activelyExploited",
|
|
119
|
+
"uncheckedDependencies"
|
|
120
|
+
],
|
|
121
|
+
"properties": {
|
|
122
|
+
"dependencies": { "type": "integer", "minimum": 0 },
|
|
123
|
+
"vulnerablePackages": { "type": "integer", "minimum": 0 },
|
|
124
|
+
"issues": { "type": "integer", "minimum": 0 },
|
|
125
|
+
"criticalOrHigh": { "type": "integer", "minimum": 0 },
|
|
126
|
+
"activelyExploited": { "type": "integer", "minimum": 0 },
|
|
127
|
+
"uncheckedDependencies": { "type": "integer", "minimum": 0 }
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"sources": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"items": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"required": ["name", "status"],
|
|
136
|
+
"properties": {
|
|
137
|
+
"name": { "enum": ["osv", "cisa-kev", "first-epss"] },
|
|
138
|
+
"status": { "enum": ["ok", "partial", "unavailable"] },
|
|
139
|
+
"message": { "type": "string" }
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"issues": {
|
|
144
|
+
"description": "Sorted: actively exploited (KEV) first, then EPSS, then CVSS.",
|
|
145
|
+
"type": "array",
|
|
146
|
+
"items": { "$ref": "#/definitions/issue" }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"definitions": {
|
|
150
|
+
"issue": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": [
|
|
154
|
+
"package",
|
|
155
|
+
"id",
|
|
156
|
+
"aliases",
|
|
157
|
+
"cves",
|
|
158
|
+
"summary",
|
|
159
|
+
"severity",
|
|
160
|
+
"fixedVersions",
|
|
161
|
+
"recommendedFix",
|
|
162
|
+
"kev",
|
|
163
|
+
"epss",
|
|
164
|
+
"references",
|
|
165
|
+
"detailsAvailable"
|
|
166
|
+
],
|
|
167
|
+
"properties": {
|
|
168
|
+
"package": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"required": ["ecosystem", "name", "version"],
|
|
172
|
+
"properties": {
|
|
173
|
+
"ecosystem": { "type": "string" },
|
|
174
|
+
"name": { "type": "string" },
|
|
175
|
+
"version": { "type": "string" },
|
|
176
|
+
"purl": { "type": "string" }
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"id": { "type": "string" },
|
|
180
|
+
"aliases": { "type": "array", "items": { "type": "string" } },
|
|
181
|
+
"cves": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": { "type": "string", "pattern": "^CVE-\\d{4}-\\d{4,}$" }
|
|
184
|
+
},
|
|
185
|
+
"summary": { "type": "string" },
|
|
186
|
+
"severity": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"required": ["level", "score", "vector"],
|
|
190
|
+
"properties": {
|
|
191
|
+
"level": {
|
|
192
|
+
"enum": ["critical", "high", "medium", "low", "unknown"]
|
|
193
|
+
},
|
|
194
|
+
"score": {
|
|
195
|
+
"type": ["number", "null"],
|
|
196
|
+
"minimum": 0,
|
|
197
|
+
"maximum": 10
|
|
198
|
+
},
|
|
199
|
+
"vector": { "type": ["string", "null"] }
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"fixedVersions": { "type": "array", "items": { "type": "string" } },
|
|
203
|
+
"recommendedFix": { "type": ["string", "null"] },
|
|
204
|
+
"kev": {
|
|
205
|
+
"oneOf": [
|
|
206
|
+
{ "type": "null" },
|
|
207
|
+
{
|
|
208
|
+
"type": "object",
|
|
209
|
+
"additionalProperties": false,
|
|
210
|
+
"required": [
|
|
211
|
+
"cve",
|
|
212
|
+
"dateAdded",
|
|
213
|
+
"dueDate",
|
|
214
|
+
"knownRansomwareCampaignUse",
|
|
215
|
+
"name"
|
|
216
|
+
],
|
|
217
|
+
"properties": {
|
|
218
|
+
"cve": { "type": "string" },
|
|
219
|
+
"dateAdded": { "type": "string" },
|
|
220
|
+
"dueDate": { "type": "string" },
|
|
221
|
+
"knownRansomwareCampaignUse": { "type": "boolean" },
|
|
222
|
+
"name": { "type": "string" }
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"epss": {
|
|
228
|
+
"oneOf": [
|
|
229
|
+
{ "type": "null" },
|
|
230
|
+
{
|
|
231
|
+
"type": "object",
|
|
232
|
+
"additionalProperties": false,
|
|
233
|
+
"required": ["cve", "score", "percentile", "date"],
|
|
234
|
+
"properties": {
|
|
235
|
+
"cve": { "type": "string" },
|
|
236
|
+
"score": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
237
|
+
"percentile": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
238
|
+
"date": { "type": "string" }
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"references": {
|
|
244
|
+
"type": "array",
|
|
245
|
+
"items": { "type": "string" }
|
|
246
|
+
},
|
|
247
|
+
"detailsAvailable": { "type": "boolean" }
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|