omniqa 0.6.1 → 0.7.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.
Files changed (90) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/cli.js +6 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/doctor.d.ts.map +1 -1
  5. package/dist/commands/doctor.js +48 -2
  6. package/dist/commands/doctor.js.map +1 -1
  7. package/dist/commands/init.d.ts +13 -0
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +141 -23
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/install.d.ts.map +1 -1
  12. package/dist/commands/install.js +20 -3
  13. package/dist/commands/install.js.map +1 -1
  14. package/dist/commands/knowledge.d.ts +23 -0
  15. package/dist/commands/knowledge.d.ts.map +1 -1
  16. package/dist/commands/knowledge.js +215 -39
  17. package/dist/commands/knowledge.js.map +1 -1
  18. package/dist/commands/plan-add.d.ts.map +1 -1
  19. package/dist/commands/plan-add.js +23 -1
  20. package/dist/commands/plan-add.js.map +1 -1
  21. package/dist/commands/plan.d.ts.map +1 -1
  22. package/dist/commands/plan.js +7 -4
  23. package/dist/commands/plan.js.map +1 -1
  24. package/dist/commands/security.d.ts +7 -0
  25. package/dist/commands/security.d.ts.map +1 -0
  26. package/dist/commands/security.js +69 -0
  27. package/dist/commands/security.js.map +1 -0
  28. package/dist/commands/status.d.ts.map +1 -1
  29. package/dist/commands/status.js +2 -2
  30. package/dist/commands/status.js.map +1 -1
  31. package/dist/commands/test.d.ts +5 -0
  32. package/dist/commands/test.d.ts.map +1 -1
  33. package/dist/commands/test.js +9 -2
  34. package/dist/commands/test.js.map +1 -1
  35. package/dist/commands/write.d.ts.map +1 -1
  36. package/dist/commands/write.js +26 -5
  37. package/dist/commands/write.js.map +1 -1
  38. package/dist/coverage-page.d.ts.map +1 -1
  39. package/dist/coverage-page.js +2 -2
  40. package/dist/coverage-page.js.map +1 -1
  41. package/dist/devices.d.ts +4 -2
  42. package/dist/devices.d.ts.map +1 -1
  43. package/dist/devices.js +3 -3
  44. package/dist/devices.js.map +1 -1
  45. package/dist/mcp/tools.js +1 -1
  46. package/dist/mcp/tools.js.map +1 -1
  47. package/dist/planner.d.ts.map +1 -1
  48. package/dist/planner.js +13 -9
  49. package/dist/planner.js.map +1 -1
  50. package/dist/runner.d.ts +1 -1
  51. package/dist/runner.d.ts.map +1 -1
  52. package/dist/runner.js +64 -56
  53. package/dist/runner.js.map +1 -1
  54. package/dist/security-checks.d.ts +146 -0
  55. package/dist/security-checks.d.ts.map +1 -0
  56. package/dist/security-checks.js +661 -0
  57. package/dist/security-checks.js.map +1 -0
  58. package/dist/security-gates.d.ts +28 -0
  59. package/dist/security-gates.d.ts.map +1 -0
  60. package/dist/security-gates.js +40 -0
  61. package/dist/security-gates.js.map +1 -0
  62. package/dist/security-report.d.ts +24 -0
  63. package/dist/security-report.d.ts.map +1 -0
  64. package/dist/security-report.js +49 -0
  65. package/dist/security-report.js.map +1 -0
  66. package/dist/security-request.d.ts +109 -0
  67. package/dist/security-request.d.ts.map +1 -0
  68. package/dist/security-request.js +254 -0
  69. package/dist/security-request.js.map +1 -0
  70. package/dist/security-sources.d.ts +55 -0
  71. package/dist/security-sources.d.ts.map +1 -0
  72. package/dist/security-sources.js +75 -0
  73. package/dist/security-sources.js.map +1 -0
  74. package/dist/security.d.ts +63 -0
  75. package/dist/security.d.ts.map +1 -0
  76. package/dist/security.js +624 -0
  77. package/dist/security.js.map +1 -0
  78. package/dist/sync.d.ts +12 -1
  79. package/dist/sync.d.ts.map +1 -1
  80. package/dist/sync.js +11 -3
  81. package/dist/sync.js.map +1 -1
  82. package/dist/test.d.ts +78 -0
  83. package/dist/test.d.ts.map +1 -1
  84. package/dist/test.js +330 -19
  85. package/dist/test.js.map +1 -1
  86. package/dist/writer.d.ts +5 -1
  87. package/dist/writer.d.ts.map +1 -1
  88. package/dist/writer.js +15 -12
  89. package/dist/writer.js.map +1 -1
  90. package/package.json +7 -7
@@ -0,0 +1,254 @@
1
+ import { requestRoute } from "@omniqa/web";
2
+ /** The separator is whichever of CRLFCRLF and LFLF comes first, as in Interceptor's own parser. */
3
+ export function parseRequest(raw) {
4
+ const crlf = raw.indexOf("\r\n\r\n");
5
+ const lf = raw.indexOf("\n\n");
6
+ const [head, body] = crlf !== -1 && (lf === -1 || crlf < lf) ? [raw.slice(0, crlf), raw.slice(crlf + 4)] : lf !== -1 ? [raw.slice(0, lf), raw.slice(lf + 2)] : [raw, ""];
7
+ const [line = "", ...rest] = head.replaceAll("\r\n", "\n").split("\n");
8
+ const [method = "", target = "", version = "HTTP/1.1"] = line.trim().split(/\s+/);
9
+ const headers = rest.flatMap((header) => {
10
+ const at = header.indexOf(":");
11
+ return at <= 0 ? [] : [[header.slice(0, at).trim(), header.slice(at + 1).trim()]];
12
+ });
13
+ return { method, target, version, headers, body };
14
+ }
15
+ export const renderRequest = (r) => `${[`${r.method} ${r.target} ${r.version}`, ...r.headers.map(([name, value]) => `${name}: ${value}`)].join("\n")}\n\n${r.body}`;
16
+ /** The values of a header, whatever its case. */
17
+ export const headerValues = (r, name) => r.headers.filter(([header]) => header.toLowerCase() === name.toLowerCase()).map(([, value]) => value);
18
+ /** The cookies a request carries, as name and value. */
19
+ export function cookiesOf(r) {
20
+ return headerValues(r, "cookie").flatMap((line) => line.split(";")).flatMap((pair) => {
21
+ const at = pair.indexOf("=");
22
+ const name = (at < 0 ? pair : pair.slice(0, at)).trim();
23
+ return name === "" ? [] : [[name, at < 0 ? "" : pair.slice(at + 1).trim()]];
24
+ });
25
+ }
26
+ /** `r` without the headers named, whatever their case. */
27
+ export const withoutHeaders = (r, names) => ({ ...r, headers: r.headers.filter(([header]) => !names.some((name) => name.toLowerCase() === header.toLowerCase())) });
28
+ /** `r` with that header's value: in the header's place when the request has it, at the end when it does not. */
29
+ export function withHeader(r, name, value) {
30
+ const at = r.headers.findIndex(([header]) => header.toLowerCase() === name.toLowerCase());
31
+ return { ...r, headers: at < 0 ? [...r.headers, [name, value]] : r.headers.map((header, i) => (i === at ? [header[0], value] : header)) };
32
+ }
33
+ /** `r` carrying these cookies and no other; none at all drops the Cookie header. */
34
+ export function withCookies(r, cookies) {
35
+ const line = cookies.map(([name, value]) => `${name}=${value}`).join("; ");
36
+ const bare = withoutHeaders(r, ["cookie"]);
37
+ if (line === "")
38
+ return bare;
39
+ const at = r.headers.findIndex(([header]) => header.toLowerCase() === "cookie");
40
+ return at < 0 ? { ...bare, headers: [...bare.headers, ["Cookie", line]] } : { ...bare, headers: [...r.headers.slice(0, at).filter(([header]) => header.toLowerCase() !== "cookie"), [r.headers[at][0], line], ...r.headers.slice(at + 1).filter(([header]) => header.toLowerCase() !== "cookie")] };
41
+ }
42
+ /**
43
+ * Each parameter of a request: the query's, and the top-level fields of a form-encoded or a JSON body.
44
+ * ponytail: a multipart body's fields and anything nested are not parameters; add them when a check needs to reach one.
45
+ */
46
+ export function parametersOf(r) {
47
+ const query = [...(URL.parse(r.target, "http://request")?.searchParams ?? [])].map(([name, value]) => ({ name, value, in: "query" }));
48
+ const type = (headerValues(r, "content-type")[0] ?? "").toLowerCase();
49
+ if (type.includes("application/x-www-form-urlencoded"))
50
+ return [...query, ...[...new URLSearchParams(r.body)].map(([name, value]) => ({ name, value, in: "form" }))];
51
+ if (!type.includes("json"))
52
+ return query;
53
+ let parsed;
54
+ try {
55
+ parsed = JSON.parse(r.body);
56
+ }
57
+ catch {
58
+ return query;
59
+ }
60
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
61
+ return query;
62
+ return [...query, ...Object.entries(parsed).map(([name, value]) => ({ name, value: typeof value === "string" ? value : JSON.stringify(value), in: "json" }))];
63
+ }
64
+ /** `r` with that parameter holding `value`, where it is (the query, the form, the JSON body); `undefined` takes it out. */
65
+ export function withParameter(r, p, value) {
66
+ if (p.in === "query") {
67
+ const url = new URL(r.target, "http://request");
68
+ if (value === undefined)
69
+ url.searchParams.delete(p.name);
70
+ else
71
+ url.searchParams.set(p.name, value);
72
+ return { ...r, target: /^https?:\/\//i.test(r.target) ? url.href : `${url.pathname}${url.search}` };
73
+ }
74
+ if (p.in === "form") {
75
+ const form = new URLSearchParams(r.body);
76
+ if (value === undefined)
77
+ form.delete(p.name);
78
+ else
79
+ form.set(p.name, value);
80
+ return { ...r, body: form.toString() };
81
+ }
82
+ const body = JSON.parse(r.body);
83
+ if (value === undefined)
84
+ delete body[p.name];
85
+ else
86
+ body[p.name] = value;
87
+ return { ...r, body: JSON.stringify(body) };
88
+ }
89
+ /** What a product calls its anti-forgery token, in a header or a field: the names the common frameworks give it. ponytail: a list; a product's own name for it is not known, and its `csrf` check then says the forged request was taken, for a human to judge. */
90
+ export const ANTI_FORGERY = /csrf|xsrf|authenticity|^_token$|requestverificationtoken|wpnonce|^_?nonce$/i;
91
+ /** A JSON Web Token by its shape: three base64url parts, the first a JSON object that names its algorithm. */
92
+ export function isJwt(value) {
93
+ const m = /^([\w-]+)\.[\w-]+\.[\w-]*$/.exec(value.trim());
94
+ if (m === null)
95
+ return false;
96
+ try {
97
+ const header = JSON.parse(Buffer.from(m[1], "base64url").toString("utf8"));
98
+ return typeof header === "object" && header !== null && "alg" in header;
99
+ }
100
+ catch {
101
+ return false;
102
+ }
103
+ }
104
+ /** The JSON Web Token a request carries, in its Authorization header or else a cookie, with a way to send the request with another in its place (`undefined`: with none). */
105
+ export function jwtOf(r) {
106
+ const authorization = r.headers.find(([header, value]) => header.toLowerCase() === "authorization" && isJwt(value.split(/\s+/).at(-1) ?? ""));
107
+ if (authorization !== undefined) {
108
+ const [name, value] = authorization;
109
+ const token = value.split(/\s+/).at(-1);
110
+ return { token, put: (other) => (other === undefined ? withoutHeaders(r, [name]) : withHeader(r, name, `${value.slice(0, value.length - token.length)}${other}`)) };
111
+ }
112
+ const cookies = cookiesOf(r);
113
+ const cookie = cookies.find(([, value]) => isJwt(value));
114
+ return cookie === undefined ? undefined : { token: cookie[1], put: (other) => withCookies(r, cookies.flatMap(([name, value]) => (name !== cookie[0] ? [[name, value]] : other === undefined ? [] : [[name, other]]))) };
115
+ }
116
+ const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
117
+ const LONG_HEX = /^[0-9a-f]{12,}$/i;
118
+ /** A value that names one thing of someone's: a uuid or a long hex id whatever it is called, a number only in a parameter called an id (a page, a count and a price are numbers too). */
119
+ const identifies = (p) => UUID.test(p.value) || LONG_HEX.test(p.value) || (/^\d+$/.test(p.value) && /id$/i.test(p.name));
120
+ const isUrl = (value) => /^https?:\/\/\S+$/i.test(value) || /^\/[^\s/]\S*$/.test(value);
121
+ const isFileName = (value) => /^[\w][\w .-]*\.[a-z0-9]{1,5}$/i.test(value) && !/^\d+\.\d+$/.test(value) && !isJwt(value);
122
+ /** What a name looks like: letters, digits and the few signs a field's or a cookie's name uses, forty characters at most. */
123
+ const NAME = /^[A-Za-z_.][\w.\-[\]]{0,39}$/;
124
+ /** A parameter or a cookie that is called like a value (a map keyed by ids or emails, a cookie named after its user) is named by its shape, as a route is. */
125
+ export const nameOf = (name) => (/^\d+$/.test(name) ? "{n}" : LONG_HEX.test(name) || UUID.test(name) ? "{id}" : NAME.test(name) ? name : "{value}");
126
+ /** The parts of a query or a form body that are a value with no name (`/search?blue+shoes`, a JSON text sent as a form): what such a part holds is nobody's name. */
127
+ const unnamed = (encoded) => encoded.split("&").filter((part) => part !== "" && !part.includes("=")).map((part) => [...new URLSearchParams(part).keys()][0] ?? "");
128
+ /** The parts of a request's query, and of its body when that is a form, that are a value with no name: not parameters, and their text is no name to say. */
129
+ export function namelessOf(r) {
130
+ const form = (headerValues(r, "content-type")[0] ?? "").toLowerCase().includes("x-www-form-urlencoded");
131
+ return new Set([...unnamed(r.target.split("?")[1] ?? ""), ...(form ? unnamed(r.body) : [])]);
132
+ }
133
+ /** `passwords` are the values that make a request the sign-in: the walking account's password. */
134
+ export function requestFacts(raw, passwords = []) {
135
+ const r = parseRequest(raw);
136
+ const route = requestRoute(URL.parse(r.target, "http://request")?.pathname ?? "/");
137
+ const parameters = parametersOf(r);
138
+ const cookies = cookiesOf(r);
139
+ const authorization = headerValues(r, "authorization");
140
+ const antiForgery = r.headers.find(([name]) => ANTI_FORGERY.test(name))?.[0] ?? parameters.find((p) => p.in !== "query" && ANTI_FORGERY.test(p.name))?.name;
141
+ // An Authorization value is its scheme and its token; a cookie's value may be a token too. One in a parameter is not counted: the token check changes a token where a session rides.
142
+ const tokens = [...authorization.map((value) => value.split(/\s+/).at(-1) ?? ""), ...cookies.map(([, value]) => value)];
143
+ const carries = [
144
+ ...(parameters.some((p) => p.in !== "query" && passwords.includes(p.value)) ? ["credentials"] : []),
145
+ ...(route.includes("{") || parameters.some(identifies) ? ["an identifier"] : []),
146
+ ...(tokens.some(isJwt) ? ["a JWT"] : []),
147
+ ...(parameters.some((p) => isUrl(p.value)) ? ["a url"] : []),
148
+ ...(parameters.some((p) => isFileName(p.value)) ? ["a file name"] : []),
149
+ ];
150
+ const values = namelessOf(r);
151
+ return { method: r.method.toUpperCase(), route, parameters: [...new Set(parameters.map((p) => (values.has(p.name) ? "{value}" : nameOf(p.name))))], cookies: [...new Set(cookies.map(([name]) => nameOf(name)))], authorization: authorization.length > 0, ...(antiForgery === undefined ? {} : { antiForgery: nameOf(antiForgery) }), carries };
152
+ }
153
+ /** The cookies an answer sets, each with the flags it is set with; a cookie that is being deleted (no value, no age, a past end) sets nothing. */
154
+ export function setCookies(headers) {
155
+ return headers.filter(([name]) => name.toLowerCase() === "set-cookie").flatMap(([, line]) => {
156
+ const [pair = "", ...attributes] = line.split(";").map((part) => part.trim());
157
+ const at = pair.indexOf("=");
158
+ const attribute = (name) => attributes.find((a) => a.toLowerCase() === name || a.toLowerCase().startsWith(`${name}=`));
159
+ // Max-Age decides where both are given, as a browser reads them.
160
+ const [maxAge, expires] = [attribute("max-age")?.slice("max-age=".length), attribute("expires")?.slice("expires=".length)];
161
+ if (at <= 0 || pair.slice(at + 1) === "" || (maxAge !== undefined ? Number(maxAge) <= 0 : expires !== undefined && Date.parse(expires) < Date.now()))
162
+ return [];
163
+ const sameSite = attribute("samesite")?.slice("samesite=".length).toLowerCase();
164
+ return [{ name: pair.slice(0, at), flags: { secure: attribute("secure") !== undefined, httpOnly: attribute("httponly") !== undefined, ...(sameSite === undefined || sameSite === "" ? {} : { sameSite }) } }];
165
+ });
166
+ }
167
+ /** The requests of one kind (a method and a route) that are read: three tell what thirty would, and the share goes to requests that differ. */
168
+ const READ_PER_KIND = 3;
169
+ /**
170
+ * What one actor's walk made, read off the sidecar before its capture is cleared for the next actor: every request that is
171
+ * no asset with its status, and of at most `share` of them, a few of each kind, the text (for the names in it) and the
172
+ * answer's headers (for the cookies it set). `more` says requests were left unread because the share ran out. `passwords`
173
+ * (the walking account's) tell which request is the sign-in. What is returned holds no value; the texts are dropped here.
174
+ */
175
+ export async function readObserved(sidecar, share, passwords) {
176
+ const flows = sidecar.flows().filter((flow) => !flow.asset);
177
+ const perKind = new Map();
178
+ let read = 0;
179
+ let more = false;
180
+ // Of a kind, the requests that carried a query are read first: a page a walk opened five times by its address and once with what it
181
+ // takes is known by that once.
182
+ const picked = flows.map(() => false);
183
+ for (const i of flows.map((_, index) => index).toSorted((a, b) => Number(flows[b]?.query) - Number(flows[a]?.query))) {
184
+ const flow = flows[i];
185
+ const kind = `${flow.method} ${requestRoute(flow.path)}`;
186
+ perKind.set(kind, (perKind.get(kind) ?? 0) + 1);
187
+ if (perKind.get(kind) > READ_PER_KIND)
188
+ continue;
189
+ if (read >= share)
190
+ more = true;
191
+ picked[i] = read++ < share;
192
+ }
193
+ const observed = [];
194
+ // A few at a time: each answer comes on Interceptor's next tick, whoever asked.
195
+ for (let i = 0; i < flows.length; i += 8) {
196
+ observed.push(...(await Promise.all(flows.slice(i, i + 8).map(async (flow, j) => {
197
+ // An answer that has not come by the end of the walk (a request a page keeps open) is not asked for: the sidecar would wait for it.
198
+ const [raw, answer] = picked[i + j] === true ? await Promise.all([sidecar.raw(flow.id), flow.status === undefined ? undefined : sidecar.answer(flow.id)]) : [undefined, undefined];
199
+ // Unread, or with no text to read (a streamed body): the request by its summary, which still says who got which status.
200
+ const facts = raw === undefined ? { method: flow.method, route: requestRoute(flow.path), parameters: [], cookies: [], authorization: false, carries: [] } : requestFacts(raw, passwords);
201
+ // What a router's script fetches of a page's route is answered data, and a page a visitor is sent on from is a redirect: neither is a page.
202
+ const page = flow.page && flow.status !== undefined && (flow.status < 300 || flow.status >= 400) && facts.parameters.length > 0;
203
+ return { ...facts, ...(flow.status === undefined ? {} : { status: flow.status }), sets: answer === undefined ? [] : setCookies(answer.headers), ...(page ? { page } : {}) };
204
+ }))));
205
+ }
206
+ return { observed, more };
207
+ }
208
+ /** A cookie every visitor gets that is a session all the same, by what products call one. */
209
+ const SESSION_NAME = /sess|sid/i;
210
+ /**
211
+ * Sessions and Requests of security.md from what each actor's walk made.
212
+ * An account's session cookies are the ones its requests carry that no guest's request did, or that are called like a session
213
+ * (a product that hands every visitor one and keeps its name across the sign-in); an anti-forgery cookie is never one.
214
+ * A request's pages and an account's sign-out page are not in what the sidecar saw: the caller adds them from the crawl.
215
+ * ponytail: passive, so a session cookie a guest also has under an unusual name is missed; re-sending a request without each
216
+ * cookie in turn would tell, and is a request of OmniQA's own that the pass does not make.
217
+ */
218
+ export function sessionsAndRequests(walks) {
219
+ const guestCookies = new Set(walks.filter((w) => w.actor === "guest").flatMap((w) => w.observed.flatMap((o) => o.cookies)));
220
+ const guestSets = walks.filter((w) => w.actor === "guest").flatMap((w) => w.observed.flatMap((o) => o.sets));
221
+ const sessionCookies = new Map();
222
+ const sessions = walks.filter((w) => w.actor !== "guest").map((w) => {
223
+ const names = [...new Set(w.observed.flatMap((o) => o.cookies))].filter((name) => !ANTI_FORGERY.test(name) && (!guestCookies.has(name) || SESSION_NAME.test(name)));
224
+ sessionCookies.set(w.actor, new Set(names));
225
+ // The flags of the newest answer that set it: the sign-in's, where the sign-in renews a cookie the visitor already had.
226
+ const sets = [...guestSets, ...w.observed.flatMap((o) => o.sets)];
227
+ const antiForgery = w.observed.find((o) => o.antiForgery !== undefined)?.antiForgery;
228
+ return { account: w.actor, cookies: names.map((name) => sets.findLast((c) => c.name === name) ?? { name }), authorization: w.observed.some((o) => o.authorization), ...(antiForgery === undefined ? {} : { antiForgery }) };
229
+ });
230
+ const rows = new Map();
231
+ for (const w of walks) {
232
+ for (const o of w.observed) {
233
+ const key = `${o.method} ${o.route}`;
234
+ const row = rows.get(key) ?? { request: key, statuses: {}, parameters: [], carries: [], pages: [], pageFor: [], forms: [] };
235
+ rows.set(key, row);
236
+ // A request that got no answer is not written for that actor: a row says who was answered what.
237
+ if (o.status !== undefined && !(row.statuses[w.actor] ??= []).includes(o.status))
238
+ row.statuses[w.actor].push(o.status);
239
+ for (const name of o.parameters)
240
+ if (!row.parameters.includes(name))
241
+ row.parameters.push(name);
242
+ const carries = [...(o.cookies.some((name) => sessionCookies.get(w.actor)?.has(name)) ? ["cookie"] : []), ...(o.authorization ? ["authorization"] : []), ...o.carries];
243
+ for (const kind of carries)
244
+ if (!row.carries.includes(kind))
245
+ row.carries.push(kind);
246
+ if (o.page === true && !row.pageFor.includes(w.actor))
247
+ row.pageFor.push(w.actor);
248
+ }
249
+ }
250
+ // In one order whatever the walks' order was: a session first, then the shapes.
251
+ const order = ["cookie", "authorization", "credentials", "an identifier", "a JWT", "a url", "a file name"];
252
+ return { sessions, requests: [...rows.values()].map((row) => ({ ...row, carries: row.carries.toSorted((a, b) => order.indexOf(a) - order.indexOf(b)) })) };
253
+ }
254
+ //# sourceMappingURL=security-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-request.js","sourceRoot":"","sources":["../src/security-request.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAoB,MAAM,aAAa,CAAC;AAkB7D,mGAAmG;AACnG,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,MAAM,IAAI,GAAG,GA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MAAM,IAAI,IAAI,OAAO;gBAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;oBAAE,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpF,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;gBAAE,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACnF,CAAC;IACH,CAAC;IACD,gFAAgF;IAChF,MAAM,KAAK,GAAG,CAAC,QAAQ,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,CAAC;IAC3G,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAC7J,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The lists the basic checks were reviewed against, and the comparison a monthly job in OmniQA's own repository makes with
3
+ * what OWASP and MITRE publish now (.github/workflows/security-sources.yml, scripts/security-sources.mjs). A check is
4
+ * reviewed code only a release can bring, so nothing here runs in a project: it tells the maintainers when to look again.
5
+ * Pure: the script fetches, this compares.
6
+ */
7
+ /** `packages/omniqa/security-sources.json`. */
8
+ export interface Sources {
9
+ /** The day the checks were last reviewed against the two lists, ISO. */
10
+ reviewed: string;
11
+ /** The OWASP Top 10 edition, and its ten categories as its repository names their files (`A01_2025-Broken_Access_Control`). */
12
+ owasp: {
13
+ edition: string;
14
+ categories: string[];
15
+ };
16
+ /** The year of the CWE Top 25, and its ids in rank order. */
17
+ cwe: {
18
+ year: number;
19
+ ids: number[];
20
+ };
21
+ }
22
+ /** A listing that could not be read, with why. */
23
+ interface Unread {
24
+ error: string;
25
+ }
26
+ /** What the job read. */
27
+ export interface Listings {
28
+ /** The entries at the root of OWASP's Top 10 repository: a folder per edition, by its year. */
29
+ owaspRoot: string[] | Unread;
30
+ /** The files of the reviewed edition (`<edition>/docs/en`). */
31
+ owaspEdition: string[] | Unread;
32
+ /** MITRE's page for the year after the reviewed one, which answers 404 until that list is published. */
33
+ cweNext: {
34
+ status: number;
35
+ html: string;
36
+ } | Unread;
37
+ }
38
+ /** The contents of OWASP's repository, as GitHub's API lists a folder. */
39
+ export declare const OWASP_CONTENTS = "https://api.github.com/repos/OWASP/Top10/contents";
40
+ /** Where an edition keeps its categories. */
41
+ export declare const owaspEditionPath: (edition: string) => string;
42
+ /** MITRE's page of a year's Top 25. */
43
+ export declare const cwePage: (year: number) => string;
44
+ /** The weaknesses a Top 25 page lists, in rank order: each links to its definition, some more than once. */
45
+ export declare function cweIds(html: string): number[];
46
+ /**
47
+ * The issue to open when a list is no longer the one the checks were reviewed against, or could not be read (a comparison
48
+ * that silently stops is a list nobody watches); undefined while nothing changed.
49
+ */
50
+ export declare function sourcesIssue(reviewed: Sources, seen: Listings): {
51
+ title: string;
52
+ body: string;
53
+ } | undefined;
54
+ export {};
55
+ //# sourceMappingURL=security-sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-sources.d.ts","sourceRoot":"","sources":["../src/security-sources.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+CAA+C;AAC/C,MAAM,WAAW,OAAO;IACtB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IACjB,+HAA+H;IAC/H,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACjD,6DAA6D;IAC7D,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CACtC;AAED,kDAAkD;AAClD,UAAU,MAAM;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,yBAAyB;AACzB,MAAM,WAAW,QAAQ;IACvB,+FAA+F;IAC/F,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAChC,wGAAwG;IACxG,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC;CACpD;AAED,0EAA0E;AAC1E,eAAO,MAAM,cAAc,sDAAsD,CAAC;AAClF,6CAA6C;AAC7C,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,KAAG,MAA8B,CAAC;AAClF,uCAAuC;AACvC,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,KAAG,MAA8E,CAAC;AAEtH,4GAA4G;AAC5G,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAE7C;AAKD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAyC3G"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * The lists the basic checks were reviewed against, and the comparison a monthly job in OmniQA's own repository makes with
3
+ * what OWASP and MITRE publish now (.github/workflows/security-sources.yml, scripts/security-sources.mjs). A check is
4
+ * reviewed code only a release can bring, so nothing here runs in a project: it tells the maintainers when to look again.
5
+ * Pure: the script fetches, this compares.
6
+ */
7
+ /** The contents of OWASP's repository, as GitHub's API lists a folder. */
8
+ export const OWASP_CONTENTS = "https://api.github.com/repos/OWASP/Top10/contents";
9
+ /** Where an edition keeps its categories. */
10
+ export const owaspEditionPath = (edition) => `${edition}/docs/en`;
11
+ /** MITRE's page of a year's Top 25. */
12
+ export const cwePage = (year) => `https://cwe.mitre.org/top25/archive/${year}/${year}_cwe_top25.html`;
13
+ /** The weaknesses a Top 25 page lists, in rank order: each links to its definition, some more than once. */
14
+ export function cweIds(html) {
15
+ return [...new Set([...html.matchAll(/\/data\/definitions\/(\d+)\.html/g)].map((m) => Number(m[1])))];
16
+ }
17
+ const unread = (listing) => typeof listing === "object" && listing !== null && "error" in listing;
18
+ const listed = (ids) => ids.map((id) => `CWE-${id}`).join(", ");
19
+ /**
20
+ * The issue to open when a list is no longer the one the checks were reviewed against, or could not be read (a comparison
21
+ * that silently stops is a list nobody watches); undefined while nothing changed.
22
+ */
23
+ export function sourcesIssue(reviewed, seen) {
24
+ const found = [];
25
+ const edition = reviewed.owasp.edition;
26
+ if (unread(seen.owaspRoot))
27
+ found.push(`OWASP's repository could not be read (its edition folders): ${seen.owaspRoot.error}.`);
28
+ else {
29
+ const editions = seen.owaspRoot.filter((name) => /^\d{4}$/.test(name));
30
+ const newer = editions.filter((year) => year > edition).toSorted();
31
+ if (newer.length > 0)
32
+ found.push(`OWASP has a Top 10 edition after ${edition}: ${newer.map((year) => `${year} (https://github.com/OWASP/Top10/tree/master/${year})`).join(", ")}.`);
33
+ if (!editions.includes(edition))
34
+ found.push(`OWASP's repository no longer has the folder of the edition the checks were reviewed against (${edition}).`);
35
+ }
36
+ if (unread(seen.owaspEdition))
37
+ found.push(`OWASP's repository could not be read (the files of ${owaspEditionPath(edition)}): ${seen.owaspEdition.error}.`);
38
+ else {
39
+ const now = seen.owaspEdition.flatMap((file) => (/^A\d\d_/.test(file) ? [file.replace(/\.md$/, "")] : []));
40
+ const fresh = now.filter((name) => !reviewed.owasp.categories.includes(name));
41
+ const gone = reviewed.owasp.categories.filter((name) => !now.includes(name));
42
+ if (fresh.length > 0 || gone.length > 0)
43
+ found.push(`The categories of OWASP Top 10:${edition} changed: ${[...(fresh.length === 0 ? [] : [`new ${fresh.join(", ")}`]), ...(gone.length === 0 ? [] : [`gone ${gone.join(", ")}`])].join("; ")}.`);
44
+ }
45
+ const year = reviewed.cwe.year + 1;
46
+ const page = `MITRE's page for the ${year} CWE Top 25`;
47
+ if (unread(seen.cweNext))
48
+ found.push(`${page} could not be read: ${seen.cweNext.error} (${cwePage(year)}).`);
49
+ else if (seen.cweNext.status === 200) {
50
+ const ids = cweIds(seen.cweNext.html);
51
+ if (ids.length < 25)
52
+ found.push(`${page} could not be read: it answered 200 with no list of 25 weaknesses in it (${cwePage(year)}).`);
53
+ else {
54
+ const fresh = ids.filter((id) => !reviewed.cwe.ids.includes(id));
55
+ const gone = reviewed.cwe.ids.filter((id) => !ids.includes(id));
56
+ const moved = fresh.length === 0 && gone.length === 0 ? "the same 25 weaknesses, in another order" : [...(fresh.length === 0 ? [] : [`new in it ${listed(fresh)}`]), ...(gone.length === 0 ? [] : [`no longer in it ${listed(gone)}`])].join("; ");
57
+ found.push(`MITRE has published the ${year} CWE Top 25 (${cwePage(year)}): ${moved}.`);
58
+ }
59
+ }
60
+ else if (seen.cweNext.status !== 404)
61
+ found.push(`${page} could not be read: it answered ${seen.cweNext.status} (${cwePage(year)}).`);
62
+ if (found.length === 0)
63
+ return undefined;
64
+ return {
65
+ title: "Security checks: OWASP's or MITRE's list is no longer the one they were reviewed against",
66
+ body: [
67
+ `The monthly comparison of \`packages/omniqa/security-sources.json\` (reviewed ${reviewed.reviewed}) with the lists it names found:`,
68
+ "",
69
+ ...found.map((line) => `- ${line}`),
70
+ "",
71
+ "Review the basic checks (`packages/omniqa/src/security-checks.ts`, spec §2) against what changed, write the checks it calls for, then update `security-sources.json`. The changeset names the new checks.",
72
+ ].join("\n"),
73
+ };
74
+ }
75
+ //# sourceMappingURL=security-sources.js.map
@@ -0,0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S,CAAC;IACzC,OAAO;QACL,KAAK,EAAE,0FAA0F;QACjG,IAAI,EAAE;YACJ,iFAAiF,QAAQ,CAAC,QAAQ,kCAAkC;YACpI,EAAE;YACF,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;YACnC,EAAE;YACF,2MAA2M;SAC5M,CAAC,IAAI,CAAC,IAAI,CAAC;KACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { type PlanCase, type SecurityCheck, type State } from "@omniqa/core";
2
+ import { type Check } from "./security-checks.ts";
3
+ import { type Selected, type WriteResult } from "./writer.ts";
4
+ /** The parameters of a request a test can name and a sweep asks: one written by its shape (`{n}`, `{value}`), one that echoed an account's value and one named like an anti-forgery token are not. */
5
+ export declare const askable: (parameters: string[]) => string[];
6
+ export interface SecurityPlanned {
7
+ /** The cases appended, as tests/plan.md now has them. */
8
+ added: PlanCase[];
9
+ /** The rows written into security.md › Checks for cases the plan already had: a file written anew holds none. */
10
+ restored: number;
11
+ /** What a rule left out, each with what would allow it. */
12
+ left: string[];
13
+ /** tests/plan.md relative to the project. */
14
+ planFile: string;
15
+ }
16
+ /**
17
+ * The security cases security.md calls for that the plan does not have yet, appended (no id moves; a case the plan already
18
+ * has, skipped ones included, is not planned twice), and their rows written into security.md › Checks. A case the plan has
19
+ * and the file has no row for gets its row too: omniqa write reads it, and a security.md written anew holds none.
20
+ */
21
+ export declare function planSecurity(cwd: string, env: NodeJS.ProcessEnv, o?: {
22
+ firstOnly?: boolean;
23
+ }): Promise<SecurityPlanned>;
24
+ /**
25
+ * What a project is told after an upgrade brought checks its security suites were planned without, with the command that
26
+ * plans them; undefined when there is none, and for a project whose planning never recorded what it knew of.
27
+ */
28
+ export declare function newChecksLine(state: Pick<State, "security">): string | undefined;
29
+ /** `2 security cases appended to tests/plan.md (suite sec-passive)`, or the suites with their counts when there are several. */
30
+ export declare function plannedLine(p: SecurityPlanned): string;
31
+ /** A guard as a test: the actor signed in when it is an account, the pages of the plan row visited (each left once its traffic is quiet), the findings against the accepted ones, each accepted line dated. */
32
+ export declare function renderGuard(c: PlanCase, actor: string, accepted: string[], date: string): string;
33
+ /**
34
+ * A basic check as a test: the account signed in (a guest signs nobody in), the page that makes the request opened, the
35
+ * request found, then the check; a check on the site asks from the page alone. A check that is one replay asserts what the
36
+ * product answered when the test was written (`observed`; without it the test only sends, which is the run that learns the
37
+ * answer); the others are run by name and throw by themselves. `query` are the parameters the page is opened with, each
38
+ * holding a placeholder: security.md keeps their names, never a value. `button` is what the button says of the form the
39
+ * test sends on that page, for a request that only a sent form makes.
40
+ */
41
+ export declare function renderCheck(c: PlanCase, row: Omit<SecurityCheck, "case">, check: Check, observed?: {
42
+ status: number;
43
+ location?: string;
44
+ }, query?: string[], signIn?: boolean, button?: string): string;
45
+ /**
46
+ * Write one security case by code, from its row in security.md › Checks. A guard is walked once with nothing accepted, in a run
47
+ * that lists what the sidecar saw instead of failing on it (OMNIQA_SECURITY_ACCEPT), then written with that list accepted and
48
+ * run once more: the walk is the test's own, so the test is exactly what was observed. No model is asked. A case that cannot be
49
+ * written (no Interceptor, a sign-in that fails, a page that does not load) leaves no draft and stays planned, with the reason.
50
+ */
51
+ export declare function writeSecurity(o: {
52
+ cwd: string;
53
+ env: NodeJS.ProcessEnv;
54
+ testDir: string;
55
+ envName: string;
56
+ project: string;
57
+ selected: Selected;
58
+ out: (line: string) => void; /** A line for the terminal alone: `out`'s lines are kept for a commit message and a pull request, where a finding must never be. */
59
+ tell: (line: string) => void;
60
+ log: (line: string) => void; /** The writer's redactor: the config's secrets and the accounts' values. */
61
+ redact: (text: string) => string;
62
+ }): Promise<WriteResult>;
63
+ //# sourceMappingURL=security.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../src/security.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqT,KAAK,QAAQ,EAAgB,KAAK,aAAa,EAAgD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