@shieldaai/security-watch 1.1.0 → 1.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/dist/matching.js CHANGED
@@ -390,7 +390,7 @@ const STRONG_LIBRARY_CUE = new RegExp('(?:^|[^\\p{L}])(?:npm|pypi|rubygems|crate
390
390
  * a common abbreviation ("e.g.", "i.e.", "incl.", "vs.") or a single lower-case letter. After "etc." and
391
391
  * initials ("the U.S. Package scams") it does end.
392
392
  */
393
- const SENTENCE_END = /(?<=[.!?])(?<!(?:^|[^\p{L}])(?:e\.g|i\.e|incl|vs|approx|cf|al|ca|no|nr|ver|v|\p{Ll})\.)\s+(?=[\p{Lu}\p{N}])/u;
393
+ export const SENTENCE_END = /(?<=[.!?])(?<!(?:^|[^\p{L}])(?:e\.g|i\.e|incl|vs|approx|cf|al|ca|no|nr|ver|v|\p{Ll})\.)\s+(?=[\p{Lu}\p{N}])/u;
394
394
  /** Words that name a flaw. */
395
395
  const FLAW_NOUN = '(?:flaws?|bugs?|vulnerabilit(?:y|ies)|escapes?|bypass(?:es)?|injections?)';
396
396
  /** Words for the kind of a flaw that may come before it ("remote code execution flaw"). */
@@ -0,0 +1,29 @@
1
+ import type { NewsSignals, Severity } from './types.js';
2
+ /**
3
+ * What a news article states about one finding's subject, read without a model: a CVSS score, a
4
+ * vendor's word rating, a report of exploitation, a public exploit. These only ever raise a
5
+ * finding's priority; a missing or negated statement lowers and dismisses nothing.
6
+ *
7
+ * A statement counts for the subject only when it is tied to it: the nearest advisory identifier
8
+ * before the statement in its sentence is the subject's (`CVE-X (CVSS score: 9.8)`, a list item
9
+ * `CVE-X (CVSS score: 9.3) - text`); or the article cites no other identifier and the sentence names
10
+ * the subject; or, for a score or rating, the article is about the subject alone and the sentence
11
+ * cites nothing. "It scores all five 9.2" in an article about five flaws is not read.
12
+ */
13
+ export interface SignalTarget {
14
+ /** Advisory identifiers of the finding's event, in any spelling. */
15
+ identifiers: string[];
16
+ /** Inventory names the finding matched: package, product and keyword names. */
17
+ names: string[];
18
+ }
19
+ export declare function scoreLevel(score: number): Severity;
20
+ /** Reads the articles for one finding. `undefined` when they state nothing about its subject. */
21
+ export declare function newsSignals(articles: readonly {
22
+ title: string;
23
+ description: string;
24
+ }[], target: SignalTarget): NewsSignals | undefined;
25
+ /** The level the signals give a finding, and one reason per signal, for the finding's reasons. */
26
+ export declare function signalLevel(signals: NewsSignals): {
27
+ level: Severity;
28
+ reasons: string[];
29
+ };
@@ -0,0 +1,271 @@
1
+ import { mentions, SENTENCE_END } from './matching.js';
2
+ import { cut, highest } from './util.js';
3
+ const IDENTIFIER = /\b(?:CVE-\d{4}-\d{4,19}|GHSA-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{4})\b/gi;
4
+ const normal = (id) => (/^cve-/i.test(id) ? id.toUpperCase() : id.toLowerCase());
5
+ /** At most this much of an article is read, and this many sentences. */
6
+ const MAX_TEXT = 40_000;
7
+ const MAX_SENTENCES = 2_000;
8
+ const EXCERPT = 160;
9
+ /** How far before a statement a hedging word counts. */
10
+ const HEDGE_WINDOW = 60;
11
+ /** How far after a report of exploitation its identifier may stand. */
12
+ const FOLLOWING_WINDOW = 160;
13
+ /**
14
+ * "CVSS score: 9.8", "CVSS v3.1 score of 9.8", "CVSSv4: 9.3", "CVSS 3.1: 5.5", "(CVSS 9.8)". A whole
15
+ * number counts only after "score" or "rating" or a colon: "CVSS v4 metrics" names a version.
16
+ */
17
+ const SCORE_AFTER = /^CVSS\s*(?:v(?:ersion)?\s*)?([234](?:\.[01])?)?\s*(?:\(\s*v?[234]\.[01]\s*\)\s*)?(?:[-:,\s]*(?:base|severity|risk|overall)\b)?(?:[-:,\s]*(score|rating)\b)?(?:\s+(?:of|is|was|at))?([\s:=]*)(\d{1,2}(?:\.\d)?)(?![\d%]|\.\d)/i;
18
+ /** A threshold, not a score: "a CVSS score of 7 or higher", "CVSS 9.0+". */
19
+ const THRESHOLD_AFTER = /^\s*(?:\+|(?:or|and)\s+(?:higher|above|more|greater|over|up|lower|less|below))/i;
20
+ const THRESHOLD_BEFORE = /\b(?:above|over|below|at least|at most|exceed(?:s|ing)?|greater than|less than|higher than|lower than|threshold|minimum|maximum)\s+(?:(?:an?|the)\s+)?$/i;
21
+ /** "9.2 CVSS rating", "9.2 out of 10 on CVSS 4.0", "rated 9.8/10 under the CVSS scale". */
22
+ const SCORE_BEFORE = /(?<![\d.])(\d{1,2}\.\d|10(?=\s*\/\s*10|\s+out of 10)|\d(?=\s*\/\s*10|\s+out of 10))(?:\s*\/\s*10|\s+out of 10)?(?:\s+(?:on|under|in|with|using))?(?:\s+the)?\s+$/i;
23
+ /** What may follow "CVSS" after a score written before it: a version, then a noun or the end. */
24
+ const AFTER_SCORE_BEFORE = /^CVSS\s*(?:v(?:ersion)?\s*)?(?:[234](?:\.[01])?)?\s*(?:score|rating|scale|base|severity|\(|[.,;)]|$)/i;
25
+ /** The CVSS version right after "CVSS", when a score came before it ("on CVSS 4.0"). */
26
+ const VERSION_AFTER = /^CVSS\s*(?:v(?:ersion)?\s*)?([234]\.[01])(?!\.?\d)/i;
27
+ /** A vendor's own word rating: "Severity: moderate" (Apache), "rated the vulnerability Important". */
28
+ const RATINGS = [
29
+ /\bseverity\s*:\s*(low|moderate|medium|important|high|critical)\b/i,
30
+ /\brat(?:ed|es)\s+(?:(?:it|this|the\s+(?:flaw|vulnerability|bug|issue)|CVE-\d{4}-\d{4,19}|GHSA(?:-[a-z\d]{4}){3})\s+)?(?:as\s+)?(?:an?\s+)?(low|moderate|medium|important|high|critical)\b(?![-\s]*(?:risk|rated|severity))/i,
31
+ ];
32
+ /** Statements that a subject is being exploited. Bound, not negated and not hedged to count. */
33
+ const EXPLOITED = new RegExp([
34
+ 'exploited in (?:the wild|attacks?|real[- ]world attacks)',
35
+ '(?:under|come under|subject to) (?:active )?(?:exploitation|attacks?)',
36
+ 'actively (?:being )?exploited',
37
+ 'active exploitation',
38
+ 'exploitation (?:attempts|activity)',
39
+ 'in-the-wild exploitation',
40
+ 'exploitation in the wild',
41
+ '(?:detected|observed|confirmed|seen|reported) (?:active |in-the-wild )?exploitation',
42
+ '(?:attackers|hackers|threat actors|adversaries|bad (?:guys|actors)|miscreants|criminals|crooks) (?:are |were |have been |had been |have |had )?(?:actively |now )?(?:exploiting|exploited|weaponi[sz]ing|abusing)',
43
+ 'used in (?:the wild|attacks|real[- ]world attacks)',
44
+ '(?:is|are|was|were|being|been) (?:actively |now |still )?(?:being )?exploited',
45
+ 'added\\b.{0,160}?(?:Known Exploited Vulnerabilities|\\bKEV\\b)',
46
+ ].join('|'), 'i');
47
+ /**
48
+ * Read only to recognise a denial ("not aware of attacks exploiting the flaw"). On its own it is
49
+ * not a report: researchers publish "videos demonstrating attacks using" a flaw.
50
+ */
51
+ const DENIED_ONLY = /\battacks? (?:exploiting|using|leveraging|targeting)/i;
52
+ /** Public exploit code: shown as a reason, it raises nothing. */
53
+ const PUBLIC_EXPLOIT = /proof[- ]of[- ]concept|\bPoC\b|exploit code|public(?:ly available)? exploits?\b|working exploits?\b|exploits? (?:is|was|were|has been|have been) (?:released|published)/i;
54
+ /**
55
+ * A denial of the statement that follows in the same clause: "no evidence that ... has been
56
+ * exploited", "neither ... nor ... report that it was used in attacks". "Without authentication"
57
+ * and "no patch" after a report do not deny it.
58
+ */
59
+ const NEGATION = /\b(?:no|not|never|neither|nor|none|nothing|nobody|no one|unaware|yet to|absence|lack of)\b|n['’]t\b/i;
60
+ /** How far before a statement a denial counts, within its clause. */
61
+ const NEGATION_WINDOW = 160;
62
+ /** Where a clause ends inside a sentence: "X was patched, but attackers exploit Y". */
63
+ const CLAUSE_BREAK = /;|,\s*(?:but|while|whereas|although|though|yet|and|or|so)\b|\s(?:but|while|whereas|although)\s|\s[–—]\s/gi;
64
+ /** Reports whose identifier follows them: "attackers are exploiting CVE-A", "added CVE-A to KEV". */
65
+ const OBJECT_FOLLOWS = /^(?:attackers|hackers|threat actors|adversaries|bad|miscreants|criminals|crooks|added|detected|observed|confirmed|seen|reported|exploitation|in-the-wild|proof|poc|exploit|public|working)/i;
66
+ /** Words just before a statement that only suppose it: "could be exploited", "suspected to be exploiting". */
67
+ const HEDGE = /\b(?:could|may|might|can|would|should|if|potential(?:ly)?|possibl[ey]|suspect(?:ed|s)?|alleged(?:ly)?|claims?|likely|unconfirmed|whether|unless|expects?)\b/i;
68
+ function sentences(text) {
69
+ const out = [];
70
+ for (const line of text.slice(0, MAX_TEXT).split(/\n+/)) {
71
+ for (const sentence of line.split(SENTENCE_END)) {
72
+ const trimmed = sentence.trim();
73
+ if (trimmed)
74
+ out.push(trimmed);
75
+ if (out.length >= MAX_SENTENCES)
76
+ return out;
77
+ }
78
+ }
79
+ return out;
80
+ }
81
+ export function scoreLevel(score) {
82
+ return score >= 9
83
+ ? 'critical'
84
+ : score >= 7
85
+ ? 'high'
86
+ : score >= 4
87
+ ? 'medium'
88
+ : score > 0
89
+ ? 'low'
90
+ : 'unknown';
91
+ }
92
+ function ratingLevel(word) {
93
+ const value = word.toLowerCase();
94
+ return value === 'critical'
95
+ ? 'critical'
96
+ : value === 'high' || value === 'important'
97
+ ? 'high'
98
+ : value === 'moderate' || value === 'medium'
99
+ ? 'medium'
100
+ : 'low';
101
+ }
102
+ /** Reads the articles for one finding. `undefined` when they state nothing about its subject. */
103
+ export function newsSignals(articles, target) {
104
+ const targets = new Set(target.identifiers.map(normal));
105
+ const names = [...new Set(target.names.filter((name) => name.trim().length >= 3))];
106
+ const signals = {};
107
+ for (const article of articles) {
108
+ const text = `${article.title}\n${article.description}`;
109
+ const cited = new Set((text.slice(0, MAX_TEXT).match(IDENTIFIER) ?? []).map(normal));
110
+ // Every identifier the article cites is this finding's: a sentence naming the subject is about it.
111
+ const singleSubject = [...cited].every((id) => targets.has(id));
112
+ /**
113
+ * An article about one subject: it cites one identifier, the finding's, or none and names the
114
+ * subject in its title (ZDI: "ZDI-26-1037: (0Day) Acme Router ... Vulnerability"). A score or
115
+ * rating in a sentence that cites nothing is about that subject ("The ZDI has assigned a CVSS
116
+ * rating of 7.6", "CISA gives the flaw a CVSS score of 5.0"). Not used for exploitation.
117
+ */
118
+ const articleSubject = !singleSubject
119
+ ? undefined
120
+ : cited.size === 1
121
+ ? [...cited][0]
122
+ : cited.size === 0
123
+ ? names.find((name) => mentions(article.title, name))
124
+ : undefined;
125
+ for (const sentence of sentences(text)) {
126
+ if (sentence.endsWith('?'))
127
+ continue; // "Is there a proof-of-concept available?"
128
+ const ids = [...sentence.matchAll(IDENTIFIER)].map((m) => ({ at: m.index, id: normal(m[0]) }));
129
+ const breaks = [...sentence.matchAll(CLAUSE_BREAK)].map((m) => m.index);
130
+ const clause = (at) => [
131
+ breaks.filter((index) => index < at).at(-1) ?? 0,
132
+ breaks.find((index) => index >= at) ?? sentence.length,
133
+ ];
134
+ /** An inventory name in the clause around `at`, when the article cites only the finding's identifiers. */
135
+ const namedIn = (at) => {
136
+ if (!singleSubject)
137
+ return undefined;
138
+ const [start, end] = clause(at);
139
+ const part = sentence.slice(start, end);
140
+ return names.find((name) => mentions(part, name));
141
+ };
142
+ /** A score or rating: the nearest identifier before it, as in lists; or a name in its clause. */
143
+ const boundScore = (at) => {
144
+ const nearest = ids.filter((item) => item.at < at).at(-1);
145
+ if (nearest)
146
+ return targets.has(nearest.id) ? nearest.id : undefined;
147
+ return ids.length ? undefined : namedIn(at);
148
+ };
149
+ /**
150
+ * A report: an identifier in its own clause, the one it names when the report reads
151
+ * "attackers are exploiting CVE-A" or "added CVE-A to KEV", else the nearest before it ("CVE-A
152
+ * is being exploited"), else shortly after it ("X has come under active exploitation ...,
153
+ * tracked as CVE-A"). With no identifier in its clause and none in the sentence, a name in its
154
+ * clause.
155
+ */
156
+ const boundReport = (match) => {
157
+ const [start, end] = clause(match.index);
158
+ const inClause = ids.filter((item) => item.at >= start && item.at < end);
159
+ const after = inClause.find((item) => item.at >= match.index && item.at - match.index <= FOLLOWING_WINDOW);
160
+ const before = inClause.filter((item) => item.at < match.index).at(-1);
161
+ const nearest = OBJECT_FOLLOWS.test(match[0]) ? (after ?? before) : (before ?? after);
162
+ if (nearest)
163
+ return targets.has(nearest.id) ? nearest.id : undefined;
164
+ return ids.length ? undefined : namedIn(match.index);
165
+ };
166
+ /** A denial before the statement, in its clause. */
167
+ const negated = (match) => {
168
+ const [start] = clause(match.index);
169
+ return NEGATION.test(sentence.slice(Math.max(start, match.index - NEGATION_WINDOW), match.index + match[0].length));
170
+ };
171
+ const excerpt = () => cut(sentence.replace(/\s+/g, ' '), EXCERPT);
172
+ for (const match of sentence.matchAll(/CVSS/gi)) {
173
+ const at = match.index;
174
+ const after = SCORE_AFTER.exec(sentence.slice(at, at + 80));
175
+ let score;
176
+ let version;
177
+ if (after) {
178
+ const [, written, word, separator, number] = after;
179
+ // "CVSS 4.0" names a version; it is a score only after "score" or "rating".
180
+ const isVersion = !written && !word && /^[234]\.[01]$/.test(number);
181
+ const stated = Boolean(word) || /[:=]/.test(separator) || number.includes('.');
182
+ const threshold = THRESHOLD_AFTER.test(sentence.slice(at + after[0].length, at + after[0].length + 20)) ||
183
+ THRESHOLD_BEFORE.test(sentence.slice(Math.max(0, at - 30), at));
184
+ if (!isVersion && stated && !threshold) {
185
+ score = Number(number);
186
+ version = written;
187
+ }
188
+ }
189
+ if (score === undefined && AFTER_SCORE_BEFORE.test(sentence.slice(at, at + 40))) {
190
+ const before = SCORE_BEFORE.exec(sentence.slice(Math.max(0, at - 40), at));
191
+ if (before) {
192
+ score = Number(before[1]);
193
+ version = VERSION_AFTER.exec(sentence.slice(at, at + 20))?.[1];
194
+ }
195
+ }
196
+ if (score === undefined || !(score > 0 && score <= 10))
197
+ continue;
198
+ const subject = boundScore(at) ?? (ids.length ? undefined : articleSubject);
199
+ if (!subject)
200
+ continue;
201
+ if (!signals.cvss || score > signals.cvss.score)
202
+ signals.cvss = {
203
+ score,
204
+ ...(version ? { version: version.includes('.') ? version : `${version}.x` } : {}),
205
+ level: scoreLevel(score),
206
+ subject,
207
+ excerpt: excerpt(),
208
+ };
209
+ }
210
+ for (const pattern of RATINGS) {
211
+ const match = pattern.exec(sentence);
212
+ if (!match)
213
+ continue;
214
+ // A "Severity:" field stands on a line of its own in Apache advisories.
215
+ const subject = boundScore(match.index + match[0].length) ?? (ids.length ? undefined : articleSubject);
216
+ if (!subject)
217
+ continue;
218
+ const level = ratingLevel(match[1]);
219
+ if (!signals.rating || highest(level, signals.rating.level) !== signals.rating.level)
220
+ signals.rating = { level, word: match[1].toLowerCase(), subject, excerpt: excerpt() };
221
+ }
222
+ // A denial counts before the statement in its clause; a hedge only just before it, since a
223
+ // merged sentence often goes on to "could".
224
+ const hedged = (match) => HEDGE.test(sentence.slice(Math.max(0, match.index - HEDGE_WINDOW), match.index + match[0].length));
225
+ for (const pattern of [EXPLOITED, DENIED_ONLY]) {
226
+ for (const match of sentence.matchAll(new RegExp(pattern.source, 'gi'))) {
227
+ const denied = negated(match);
228
+ if (!denied && (pattern === DENIED_ONLY || hedged(match)))
229
+ continue;
230
+ const subject = boundReport(match);
231
+ if (!subject)
232
+ continue;
233
+ if (denied)
234
+ signals.no_known_exploitation ??= { subject, excerpt: excerpt() };
235
+ else
236
+ signals.exploitation ??= { subject, excerpt: excerpt() };
237
+ }
238
+ }
239
+ for (const exploit of sentence.matchAll(new RegExp(PUBLIC_EXPLOIT.source, 'gi'))) {
240
+ if (negated(exploit) || hedged(exploit))
241
+ continue;
242
+ const subject = boundReport(exploit);
243
+ if (subject)
244
+ signals.public_exploit ??= { subject, excerpt: excerpt() };
245
+ }
246
+ }
247
+ }
248
+ return Object.keys(signals).length ? signals : undefined;
249
+ }
250
+ /** The level the signals give a finding, and one reason per signal, for the finding's reasons. */
251
+ export function signalLevel(signals) {
252
+ const reasons = [];
253
+ let level = 'unknown';
254
+ if (signals.cvss) {
255
+ level = highest(level, signals.cvss.level);
256
+ reasons.push(`An article states CVSS ${signals.cvss.version ? `${signals.cvss.version} ` : ''}${signals.cvss.score} for ${signals.cvss.subject}; no advisory severity is available yet.`);
257
+ }
258
+ if (signals.rating) {
259
+ level = highest(level, signals.rating.level);
260
+ reasons.push(`An article reports a "${signals.rating.word}" rating for ${signals.rating.subject}.`);
261
+ }
262
+ if (signals.exploitation) {
263
+ level = highest(level, 'critical');
264
+ reasons.push(`An article reports exploitation of ${signals.exploitation.subject}; not confirmed by a known-exploited catalog.`);
265
+ }
266
+ else if (signals.no_known_exploitation)
267
+ reasons.push(`An article says no exploitation of ${signals.no_known_exploitation.subject} is known.`);
268
+ if (signals.public_exploit)
269
+ reasons.push(`An article reports public exploit code for ${signals.public_exploit.subject}.`);
270
+ return { level, reasons };
271
+ }
package/dist/sources.js CHANGED
@@ -1250,8 +1250,37 @@ function htmlText(root, limit = 16_000) {
1250
1250
  // Entity references have already been decoded once by the HTML parser.
1251
1251
  return cleanText(parts.join(' ').replace(/\s+/g, ' ').trim(), limit);
1252
1252
  }
1253
- function plainText(value, limit = 16_000) {
1254
- return htmlText(parseHtml(xmlText(value)), limit);
1253
+ /**
1254
+ * A feed value read as plain text. Only for values parsed by `feed()`, which leaves entity
1255
+ * references alone (`processEntities: false`), so the HTML parser decodes them once.
1256
+ *
1257
+ * With `html`, the field carries HTML (RSS `description` and `content:encoded`, Atom `content` and
1258
+ * `summary` with `type="html"`). A publisher may escape that HTML with entities (`&lt;p&gt;`)
1259
+ * instead of wrapping it in CDATA; escaped XML text can never hold a raw `<`, so a value without
1260
+ * one is unescaped once as XML before it is read as HTML. Plain-text fields (titles, Atom text
1261
+ * content) are read as before: `&lt;script&gt;` in a title is text, not a tag.
1262
+ */
1263
+ function plainText(value, limit = 16_000, html = false) {
1264
+ const raw = xmlText(value);
1265
+ return htmlText(parseHtml(html && !raw.includes('<') ? xmlUnescape(raw) : raw), limit);
1266
+ }
1267
+ /** Whether a feed field carries HTML: its `type` attribute when it has one (Atom), else the default. */
1268
+ function htmlField(value, otherwise) {
1269
+ const type = value && typeof value === 'object' && !Array.isArray(value)
1270
+ ? value['@_type']
1271
+ : undefined;
1272
+ return typeof type === 'string' ? type.toLowerCase() === 'html' : otherwise;
1273
+ }
1274
+ /** The five predefined XML entities and character references; nothing that a DTD could declare. */
1275
+ function xmlUnescape(value) {
1276
+ return value.replace(/&(?:(lt|gt|amp|quot|apos)|#(\d{1,7})|#x([\da-f]{1,6}));/gi, (match, name, decimal, hex) => {
1277
+ if (name)
1278
+ return { lt: '<', gt: '>', amp: '&', quot: '"', apos: "'" }[name.toLowerCase()];
1279
+ const point = decimal ? Number(decimal) : Number.parseInt(hex, 16);
1280
+ return point > 0 && point <= 0x10ffff && (point < 0xd800 || point > 0xdfff)
1281
+ ? String.fromCodePoint(point)
1282
+ : match;
1283
+ });
1255
1284
  }
1256
1285
  function list(value) {
1257
1286
  return value === undefined ? [] : Array.isArray(value) ? value : [value];
@@ -1350,7 +1379,20 @@ async function feed(url, source, http, now, window, entryLimit = MAX_FEED_ENTRIE
1350
1379
  const title = plainText(entry.title, 500);
1351
1380
  if (!title)
1352
1381
  throw new SourceError('Feed entry is missing its title.');
1353
- const description = plainText(entry.encoded ?? entry.content ?? entry.description ?? entry.summary ?? '');
1382
+ // The first field that holds text. An element can be present and empty: `<media:content>`
1383
+ // (an image, read as `content` once namespace prefixes are removed) beside the article in
1384
+ // `<description>`, or an empty `<content:encoded>`.
1385
+ let description = '';
1386
+ for (const [field, html] of [
1387
+ [entry.encoded, true],
1388
+ [entry.content, htmlField(entry.content, false)],
1389
+ [entry.description, true],
1390
+ [entry.summary, htmlField(entry.summary, false)],
1391
+ ]) {
1392
+ description = plainText(field, 16_000, html);
1393
+ if (description)
1394
+ break;
1395
+ }
1354
1396
  const links = list(entry.link);
1355
1397
  const selectedLink = links.find((link) => typeof link === 'string' || !record(link)['@_rel'] || record(link)['@_rel'] === 'alternate');
1356
1398
  const rawLink = typeof selectedLink === 'object' && selectedLink !== null
package/dist/store.js CHANGED
@@ -388,7 +388,8 @@ export class Store {
388
388
  : [];
389
389
  // Where the finding lives (inventory names and notes) is shown to the reader; it is not part
390
390
  // of the conclusion a reviewer approves, so editing a note does not ask for a new review.
391
- const { updated_at: _updated, location: _location, ...reviewedAssessment } = assessment;
391
+ // EPSS changes daily and is shown only: it is not part of the conclusion either.
392
+ const { updated_at: _updated, location: _location, epss: _epss, ...reviewedAssessment } = assessment;
392
393
  // Ordinary alert deduplication stays semantic. A human review instead binds the exact
393
394
  // supplied conclusion, source content and host inventory/model context, excluding scan time.
394
395
  const signature = decision.review
package/dist/types.d.ts CHANGED
@@ -69,6 +69,20 @@ export interface Product {
69
69
  /** Operator's pointer to where this product runs. Shown in notifications; never sent to models or sources. */
70
70
  note?: string;
71
71
  }
72
+ /**
73
+ * FIRST's EPSS for a finding's CVE: the estimated probability of exploitation in the next 30 days,
74
+ * and its rank among all scored CVEs. Shown only; not part of a finding's revision or review.
75
+ */
76
+ export interface EpssScore {
77
+ /** The CVE it is for: the finding's event, or a CVE alias of its advisory when the event is a GHSA. */
78
+ cve: string;
79
+ /** 0 to 1. */
80
+ probability: number;
81
+ /** 0 to 1: the share of scored CVEs with a lower probability. */
82
+ percentile: number;
83
+ /** The day FIRST computed it, YYYY-MM-DD. */
84
+ date: string;
85
+ }
72
86
  /** Where a reader should look to confirm a finding. Copied from the inventory; not security evidence. */
73
87
  export interface FindingLocation {
74
88
  system: string;
@@ -171,6 +185,8 @@ export interface Config {
171
185
  kev: boolean;
172
186
  feeds: string[];
173
187
  vendor_feeds?: ('nodejs' | 'python' | 'php')[];
188
+ /** Look up FIRST's EPSS for the CVEs of current findings (CVE identifiers only). Default false. */
189
+ epss?: boolean;
174
190
  };
175
191
  models: {
176
192
  enabled: boolean;
@@ -194,6 +210,11 @@ export interface Config {
194
210
  ai_dismissals?: 'review' | 'record';
195
211
  /** Deprecated configuration alias; true maps to review, false to record. */
196
212
  review_before_news_suppression?: boolean;
213
+ /**
214
+ * Read stated CVSS scores, vendor ratings and exploitation reports from news to raise the
215
+ * priority of findings without an advisory severity. Default true.
216
+ */
217
+ news_signals?: boolean;
197
218
  health_channels: Channel[];
198
219
  };
199
220
  notifications: {
@@ -255,6 +276,8 @@ export interface Assessment {
255
276
  remediation?: RemediationEvidence;
256
277
  /** Inventory names and notes for the reader of a notification. Not part of alert deduplication. */
257
278
  location?: FindingLocation;
279
+ /** EPSS for the finding's CVE when `sources.epss` is on. Shown only; changes nothing. */
280
+ epss?: EpssScore;
258
281
  /** News-only or generic product context without deterministic package applicability. */
259
282
  news_candidate?: boolean;
260
283
  /**
@@ -284,6 +307,8 @@ export interface Assessment {
284
307
  relevance?: 'relevant' | 'irrelevant' | 'unknown';
285
308
  /** Model assessment of the article, separate from version-range applicability. */
286
309
  news_analysis?: NewsAnalysis;
310
+ /** What articles state about a finding that has no advisory severity, read without a model. */
311
+ news_signals?: NewsSignals;
287
312
  ai?: {
288
313
  model: string;
289
314
  provider: string;
@@ -291,6 +316,36 @@ export interface Assessment {
291
316
  status: 'complete' | 'unavailable' | 'conflicting';
292
317
  };
293
318
  }
319
+ /** One statement an article makes about a finding's subject, with the sentence it was read from. */
320
+ export interface NewsStatement {
321
+ /** The identifier or inventory name the statement is tied to. */
322
+ subject: string;
323
+ /** The sentence, shortened. Untrusted article text. */
324
+ excerpt: string;
325
+ }
326
+ /**
327
+ * What news articles state about a finding without an advisory severity, read without a model.
328
+ * Signals only raise priority; see the configuration guide for what is read.
329
+ */
330
+ export interface NewsSignals {
331
+ /** The highest CVSS base score stated for the subject. */
332
+ cvss?: NewsStatement & {
333
+ score: number;
334
+ version?: string;
335
+ level: Severity;
336
+ };
337
+ /** A vendor's word rating ("Severity: moderate", "rated Important"). */
338
+ rating?: NewsStatement & {
339
+ level: Severity;
340
+ word: string;
341
+ };
342
+ /** The article reports exploitation. Not a known-exploited catalog entry. */
343
+ exploitation?: NewsStatement;
344
+ /** The article says no exploitation is known. Shown only. */
345
+ no_known_exploitation?: NewsStatement;
346
+ /** The article reports public exploit code. Shown only. */
347
+ public_exploit?: NewsStatement;
348
+ }
294
349
  export type AiReviewReason = 'ai_general_news' | 'ai_not_affected' | 'ai_irrelevant';
295
350
  export interface AiReview {
296
351
  finding_id: string;
@@ -215,6 +215,7 @@ npm affected ranges and a documented PyPI final-release subset are evaluated loc
215
215
  | `sources.github_token_env` | `GITHUB_TOKEN`; optional authentication for the GitHub API |
216
216
  | `sources.kev` | `false`; optional matching-CVE enrichment with CISA known-exploitation evidence; KEV alone does not invent a product finding |
217
217
  | `sources.vendor_feeds` | `[]`; opt-in official Node.js, Python and PHP feeds with bounded article extraction |
218
+ | `sources.epss` | `false`; FIRST's EPSS score for the CVE of each current finding, shown in alerts and `explain`; sends CVE identifiers only, see [EPSS](#epss) |
218
219
  | `sources.feeds` | `[]`; up to 30 selected public HTTPS RSS 2.0/Atom URLs, without URL credentials |
219
220
 
220
221
  Collection is designed to keep making progress. cve.now records that match a package on your list are re-read at every scan, the longest unread first. At most 4,000 records other than new ones from the listing are read in one scan (records named by the package lookups and cited CVEs included), so that 1,000 requests always stay for the listing; a lookup whose records did not all fit is sent first on the next scan; each request takes about 1.1 seconds, so 2,000 such records add about 37 minutes to a scan. With more than about 8,000 records for your packages, each is re-read less often than every second scan, and exclusions resting on those waiting their turn become `unknown` (and go to the review digest) until they are read again; records kept only because a declared product or keyword appears in their text, or because a stored news story cites them, are re-read in turn, 200 per scan, longest unread first. When cve.now or GitHub lists more new records than one scan reads (5,000), the oldest are collected, the scan is reported as incomplete, and the next scan continues from where this one stopped; any request left out by that limit is reported the same way. A package name in a source record that this application cannot normalise is kept as published and matches nothing; it no longer discards the rest of the record. A stored OSV record that the service no longer serves keeps its last known content and counts as checked at that scan, as a cve.now record does. A stored GitHub record for one of your packages that is not among the records modified since its last reading is unchanged, and counts as checked at each complete GitHub scan, also after a catch-up over more updates than one scan reads. Stored OSV records are re-read only while their package is in the inventory. A GitHub record that cannot be read is reported and remembered by its identifier, as GitHub wrote it (up to 10,000; beyond that, those first met more than a day ago are given up on first, then the newest, so the checkpoint can always move), and the checkpoint moves on. Later scans ask GitHub for it by identifier, the longest waiting first: two per scan without a token (GitHub allows 60 requests an hour without one), ten with one; a refusal for this client (403 or 429) ends those requests and is reported. Its stored copy is not confirmed as current meanwhile, so an exclusion resting on it becomes `unknown` and goes to the review digest; other records are confirmed as usual. It is given up on, with a report, only after three failed reads (an unreadable answer or 404) in scans whose listing could read something, and a day after it was first met. A scan whose listing has records but can read none of them is a format outage while any of those records was first met within the last day (with new records arriving, that can last as long as the outage): no attempt is counted and the checkpoint waits, so the whole window is listed again when GitHub serves the usual format; after a day they count as records that cannot be read. Listing a long window again costs one request per 100 records: without a token, GitHub's 60 requests an hour can run out during a long outage, so set `github_token_env` if you enable GitHub; once a record is read again by identifier, the listing is read again from the oldest record still remembered. A stored copy of a record that was given up on is not confirmed again until GitHub serves it readably; such records are kept as long as their stored copy exists. When a scan has request budget left, records that were given up on are asked for again in turn: with two requests to spare, one goes to the next record that has a stored copy and one to the next record in turn, so neither kind can keep the other from its turns; with one to spare, they simply take turns. A record lost to a long partial format change is so found again once GitHub serves it readably. A row whose `ghsa_id` is missing or reshaped is read by the identifier its own links end with. A row with no identifier at all is reported and cannot be asked for by name; stored records for those packages (every stored record, if it names none) read before the row was first seen (GitHub may list a row late) and older than the row's own update are not confirmed as current until each is read again by identifier. Scans do that in turn, from the same scan on, with the request budget left after the records above (one request is kept for them), longest unread first; one that cannot be read is remembered like any other. Such a row updated within the last day also holds the listing: later scans list again from the earliest of them, so a row that regains its identifier within a day of its update is read; not in a scan that reaches the page limit, and without a token not when the scan listed more than 300 records. While they wait, exclusions resting on them become `unknown` once not read for two poll intervals, as above, and go to the review digest. A listing that can read nothing while such a row was updated within the last day, or carries no update time, is a format outage, as above. An answer to a request by identifier that carries no identifier is a failed read of the record asked for. A stored cve.now record that the service no longer serves keeps its last known content and counts as checked at that scan; nothing is reported, and a finding that rests on it stays as it was. A stored record that the service serves in a form that cannot be used (a status this application does not know, such as a supersession) is reported as a failed request when it concerns one of your packages, and the exclusion resting on that record becomes `unknown` once it has not been read for two poll intervals; any other stored record keeps its last content. A new cve.now record whose request fails is not lost and cannot hold the source back. On the scan in which it first fails, the scan is reported as incomplete and its checkpoint stays where it was, as for any failed collection, unless that scan listed more than 200 records, counting the one-hour overlap (a first scan, or a catch-up after downtime): then the checkpoint moves at once, so that the next scan does not read the same records again. From then on the record is remembered by its identifier and the checkpoint moves on; the record is asked for again on every scan, after the records that have not failed and before the stored records re-read in turn, the ones tried least first. A listed record that is already stored (the checkpoint's one-hour overlap) is not read again. Records left unasked because a scan ended early are remembered the same way. Up to 2,000 records are remembered, the oldest first; when there are more, the checkpoint stops just before the first one that is not, and the next scan finds it in the listing. It is given up on, with a report, once its requests have failed three times and, since its first failure, one day has passed when the service answers with a refusal (such as HTTP 404) or with content that cannot be used, or three days when the request itself fails (a transport error, HTTP 5xx or "too many requests"). A record that waited without being asked for is not given up on. A record named by a package lookup whose request fails is reported, and the lookups that named it are sent first on the next scan. A record whose request failed without an answer (a transport error, HTTP 5xx or "too many requests") is given up on only in a scan in which other records were read: while none can be read, it is an outage, not a bad record. A record that was given up on is always reported, also when the listing request of that scan failed. A listing entry with no usable identifier cannot be asked for by name: it holds the checkpoint for at most one day from when it was first seen and is reported during that time. A checkpoint that lies ahead of the clock (the clock was set back) is treated like a new installation's: the scan looks back one day. A CVE that a stored news story cites and cve.now does not have is asked for again once a day; when it is published it also appears in the listing.
@@ -242,9 +243,15 @@ A release is written with at most three parts in prose ("Rails 7.0.8"); a four-p
242
243
 
243
244
  `hacker_news` means **The Hacker News** at `thehackernews.com`, the cybersecurity publication, not Y Combinator's Hacker News. Its feed is [The Hacker News RSS](https://feeds.feedburner.com/TheHackersNews). The bot fetches bounded article text only from allowed The Hacker News hosts, without executing scripts: at most 50 articles per scan, four concurrently, with a 2 MB HTML response cap and 16,000 characters of extracted text per article. Evidence records whether full article content, a feed excerpt or unavailable content was used. A failed or capped article fetch retains the feed excerpt and cannot support a new confident AI-only dismissal. Incomplete articles relevant to the inventory create a `hacker_news:articles` monitoring-health finding; the successful RSS collection and its checkpoint are still retained.
244
245
 
246
+ ### EPSS
247
+
248
+ `sources.epss: true` looks up [FIRST's EPSS](https://www.first.org/epss/) for the CVEs of every current finding (its event when that is a CVE, and the CVE aliases of its advisory and known-exploited records, since a library finding is often keyed by its GHSA identifier; not the CVEs a news story cites): the estimated probability that the CVE is exploited in the next 30 days, and how it ranks among all scored CVEs. When a finding has several CVEs, the highest score is shown with the CVE it is for. Alerts and digests show it on one line (`EPSS for CVE-2026-1234: 1.6% chance of exploitation in the next 30 days; higher than 76% of scored CVEs (FIRST, 2026-11-18)`), and `explain`, `findings` and the scan report carry it as `epss`.
249
+
250
+ It is shown only. It changes no priority, rule or decision, and it is not part of what makes a new finding revision, reopens a review or asks a model for a new analysis, so a score that FIRST updates daily never re-sends an alert. Only CVE identifiers are sent, to `https://api.first.org/data/v1/epss`, in batches of 50, at most ten requests a scan. A score is refreshed once a day, the longest unrefreshed first. A CVE that FIRST has not scored yet (usually one published in the last day or two) is asked for again the next day. GHSA and other identifiers have no EPSS. When a lookup fails, the scan reports a notice, not degraded monitoring, and findings keep the score of the last successful lookup. The cache holds the CVEs of current findings, and keeps others for 30 days after their last lookup, so a scan without findings does not throw the scores away. A score FIRST leaves out of one answer is kept while its date is within a week. A retired finding no longer shows a score. The notice of a failed lookup is in that scan's report (`scan`), not in `status`.
251
+
245
252
  Set `sources.vendor_feeds: [nodejs, python, php]`, or choose those names with `init --vendor-feeds`, to enable the official Node.js vulnerability feed, Python release blog and PHP announcements. Each adapter fetches at most 20 eligible articles per scan from its fixed vendor origin, with bounded HTML parsing and 16,000-character text limits. Unsupported links or failed extraction retain an excerpt; relevant incomplete articles produce a health warning. PHP announcements are extracted by their feed anchor so unrelated releases do not become one article. Vendor release dates and later advisory-index publication dates do not prove first vulnerability disclosure.
246
253
 
247
- Additional `feeds` supply titles and summaries/content present in their RSS/Atom response; their article links are not fetched. The bot does not search the web or obtain paywalled content. Choose feed URLs deliberately. Public destinations, DNS results, redirects, response sizes and request durations are checked; a failing source retains its previous checkpoint and cached evidence and produces degraded status.
254
+ Additional `feeds` supply titles and summaries/content present in their RSS/Atom response; their article links are not fetched. A feed that carries the whole article is therefore worth more than one that carries a headline and a few sentences. Feeds checked in November 2026 that carry full text with scores or exploitation reports: Rapid7's blog (`https://www.rapid7.com/blog/rss/`), Tenable's blog (`https://www.tenable.com/blog/feed`), The Register's security section (`https://www.theregister.com/security/headlines.atom`), Security Affairs (`https://securityaffairs.com/feed`), and the Zero Day Initiative's published advisories (`https://www.zerodayinitiative.com/rss/published/`), which state a CVSS rating for every advisory, including 0-day advisories published before a vendor fix or a CVE exists. oss-security (`https://seclists.org/rss/oss-sec.rss`) carries open-source disclosures as excerpts. BleepingComputer, SecurityWeek and Dark Reading feeds carry a headline and a few hundred characters. The bot does not search the web or obtain paywalled content. Choose feed URLs deliberately. Public destinations, DNS results, redirects, response sizes and request durations are checked; a failing source retains its previous checkpoint and cached evidence and produces degraded status.
248
255
 
249
256
  Malformed individual records are skipped while valid neighboring records continue through collection and assessment. Incomplete collection keeps the previous checkpoint, including when valid records have already been saved; cve.now and GitHub instead remember the records they could not read by identifier and move their checkpoints on, as described above. Authentication failures, rate limits, invalid pagination and request bounds can stop the affected source; other sources and notification delivery continue. Cancellation stops further requests.
250
257
 
@@ -416,6 +423,7 @@ Each `library`, `product` and `news` rule has `levels`, `basis` and `channels`.
416
423
  - Confirmed exclusions and all-source withdrawals are retained without new vulnerability notifications. Withdrawal alone does not prove a system safe. Withdrawal disagreement remains conflicting.
417
424
  - AI distinguishes noncritical system news from vulnerability reports and evaluates claimed system impact before routing; general news and supported AI-only exclusions enter a durable local review queue by default, with a digest when channels are configured. Generic product reports with linked CVEs use this analysis too. Uncertain analysis goes to review. AI cannot suppress source-critical news, an enabled exploitation override or deterministic package urgency by declaring it irrelevant. Advisory-linked package news uses library policy. Multi-advisory articles retain unmatched CVE/GHSA subjects separately until authoritative alias evidence joins them.
418
425
  - `policy.ai_dismissals: review` is the default. Both complete `general_news/not_applicable` and model-only `not_affected` conclusions require local review, including legacy AI-only irrelevant news. `record` is an explicit opt-out. Deterministic package exclusions, source-critical and enabled exploitation overrides take precedence. See the local review workflow below.
426
+ - `news_signals: true` (the default) reads what news articles state about a finding that has no advisory severity yet, without a model; see [News signals](#news-signals) below. `false` turns it off.
419
427
  - `health_channels` routes monitoring failures independently from vulnerability thresholds. If every destination fails, inspect local status/logs; the bot cannot notify through an unavailable channel.
420
428
 
421
429
  `poll_interval_minutes` is an integer from 1 to 1,440, default 15. `inventory_stale_days` is 1–365, default 7; timestamps more than five minutes in the future are also invalid for assessment. `digest_interval_hours` is an integer from 1 to 168, default 24. Digest boundaries are aligned to the Unix epoch in UTC, not a user's timezone. Each Slack/email digest contains at most five findings; additional groups are sent separately.
@@ -428,6 +436,28 @@ Slack digest groups also respect the message size limit. Entries that do not fit
428
436
 
429
437
  Acknowledgement applies to the current finding revision. Material changes create a new revision. Pass the revision you read, `security-watch acknowledge FINDING_ID --revision N`, to have the command refuse when a newer revision has appeared in the meantime; without `--revision` the current revision is acknowledged and its number is printed. Suppression requires a reason and expiry and remains active until that expiry. `explain FINDING_ID` shows the current policy decision together with acknowledgement and suppression controls, so policy eligibility can be distinguished from an active operator hold. Existing pending deliveries are superseded when the assessment or policy changes. Ordinary alerts keep semantic deduplication. AI dismissal reviews additionally bind the exact reviewed conclusion, evidence content and inventory/model context; changes to that basis create a new review revision. Scan timestamps, unchanged evidence refreshes and JSON object key order do not reopen a review. Rare new advisory aliases can change canonical finding identity; this release does not migrate historical identities automatically.
430
438
 
439
+ ### News signals
440
+
441
+ A news story often comes before the advisory record that carries a severity: a zero-day with no CVE yet, a CVE that is reserved but not published, a vendor bulletin. Such a finding has source severity `unknown`. With `policy.news_signals: true` (the default), Security Watch reads the articles of that finding for four statements, without a model:
442
+
443
+ | Statement | Read from | Effect |
444
+ | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
445
+ | A CVSS score | `CVE-2026-1234 (CVSS score: 9.8)`, `a CVSS v3.1 score of 7.5`, `9.2 out of 10 on CVSS 4.0`, `The ZDI has assigned a CVSS rating of 7.6` | Priority at least the score's level (9.0 critical, 7.0 high, 4.0 medium); the highest stated score counts |
446
+ | A vendor's word rating | `Severity: moderate` (Apache advisories), `rated the vulnerability Important` | Priority at least that level (important = high, moderate = medium) |
447
+ | A report of exploitation | `is being actively exploited in the wild`, `under active exploitation`, `attackers are exploiting`, `exploitation attempts`, `added ... to its Known Exploited Vulnerabilities catalog` | Priority critical. With `urgent_unknown: true` the finding is sent at once as possibly critical; `exploited` stays false, since an article is not a known-exploited catalog |
448
+ | Public exploit code, or a denial of exploitation | `published a proof-of-concept`, `no evidence ... has been exploited` | Shown only |
449
+
450
+ The same internet-exposed, business-critical context rule as for advisories applies to a stated score or rating. Signals only raise: a missing, denied or uncertain statement lowers nothing and dismisses nothing, the source severity keeps meaning what advisory sources said, and a model's `not_affected` answer still goes to [local review](#reviewing-ai-dismissals-locally). As soon as an advisory record with a severity joins the finding, signals are no longer read for it.
451
+
452
+ A statement counts only when it is tied to the finding's subject:
453
+
454
+ - A score or rating: the nearest CVE or GHSA identifier before it in the same sentence is the finding's (`CVE-A (CVSS score: 9.3) - text` in a list); or, when the sentence cites no identifier, the product, package or keyword the finding matched is named in the same clause and the article cites no other identifier; or the article is about the subject alone (it cites one identifier, the finding's, or none and its title names the product).
455
+ - A report of exploitation, a denial or exploit code: an identifier in the same clause. A clause ends at `;`, at `, but`, `, and`, `while` and similar. In "attackers are exploiting CVE-A" and "CISA added CVE-A to its KEV catalog" that is the identifier after the report; in "CVE-A is being actively exploited" the one before it. So in "CVE-B was patched in March, but attackers are now exploiting CVE-A" only CVE-A is reported as exploited. When the sentence cites no identifier, a product, package or keyword named in the same clause, if the article cites no other identifier.
456
+
457
+ A negation before a report in its clause ("no evidence that", "not aware of", "neither ... nor ... report") makes it a denial. "No patch is available" or "without authentication" after a report does not. A hedge just before a report ("could be exploited", "suspected to be exploiting") voids it. "Zero-day" alone and "can exploit" are not reports. A whole number next to "CVSS" counts as a score only after "score", "rating" or a colon, and never as a threshold ("a CVSS score of 7 or higher", "CVSS 9.0+"). So "10 CVSS critical flaws" and "CVSS v4 metrics" are not scores. Not read: group statements ("It scores all five 9.2"), a score in another sentence of an article about several flaws ("The flaw has a CVSS score of 9.8"), CVSS vectors without a score, adjectives such as "critical flaw" or "high-severity", and tables (CISA ICS advisories). The excerpt each statement was read from is kept in the finding (`explain`); alerts print only the score, the rating word and the subject, never article text.
458
+
459
+ This is text matching: an article can be wrong, out of date or misleading, and a feed you add is trusted to write what it means. It was measured on one week of articles from The Hacker News, Rapid7, Tenable, The Register, Security Affairs, ZDI, seclists.org and CISA (256 items): every score and every report it read was correct, and it read no report from the ten articles that denied exploitation; it misses statements it cannot tie, which is the intended trade-off. Against a 20-product inventory that week it raised five findings and sent one more immediate alert, because cve.now usually has a severity already.
460
+
431
461
  ### Reviewing AI dismissals locally
432
462
 
433
463
  ```yaml
@@ -4,7 +4,7 @@ Security Watch compares a system inventory with advisory evidence and records
4
4
  why a finding applies. Begin with its published fictional inventory and advisory
5
5
  fixture, then inspect the result before configuring real monitoring.
6
6
 
7
- This example uses `@shieldaai/security-watch@1.1.0`, an in-memory database,
7
+ This example uses `@shieldaai/security-watch@1.2.0`, an in-memory database,
8
8
  no provider credentials and no notification delivery. It is a fixture check of
9
9
  matching behavior, not an audit of real dependencies.
10
10
 
@@ -16,7 +16,7 @@ Use Node.js 24.10 or newer in a new directory:
16
16
  mkdir watch-demo
17
17
  cd watch-demo
18
18
  npm init -y
19
- npm install --ignore-scripts --save-exact @shieldaai/security-watch@1.1.0
19
+ npm install --ignore-scripts --save-exact @shieldaai/security-watch@1.2.0
20
20
  ```
21
21
 
22
22
  ## Run the fictional inventory
package/docs/sbom.md CHANGED
@@ -127,7 +127,7 @@ jobs:
127
127
  steps:
128
128
  - uses: actions/checkout@v7
129
129
  - id: sbom
130
- uses: ShieldaAI/security-watch@v1.1.0
130
+ uses: ShieldaAI/security-watch@v1.2.0
131
131
  with:
132
132
  system-id: checkout-api
133
133
  owner: Dana, platform team
@@ -143,7 +143,7 @@ To use an SBOM made by another tool, pass it as `sbom-file`; the action checks t
143
143
 
144
144
  ```yaml
145
145
  - run: trivy image --format cyclonedx --output image.cdx.json "$IMAGE"
146
- - uses: ShieldaAI/security-watch@v1.1.0
146
+ - uses: ShieldaAI/security-watch@v1.2.0
147
147
  with:
148
148
  sbom-file: image.cdx.json
149
149
  system-id: checkout-image
@@ -160,7 +160,7 @@ Any job with Node.js 24.10 or newer can run the command:
160
160
  security-watch-sbom:
161
161
  image: node:24-slim
162
162
  script:
163
- - npx --yes @shieldaai/security-watch@1.1.0 sbom --system-id checkout-api --output security-watch.cdx.json --upload https://watch.example.com:8787
163
+ - npx --yes @shieldaai/security-watch@1.2.0 sbom --system-id checkout-api --output security-watch.cdx.json --upload https://watch.example.com:8787
164
164
  artifacts:
165
165
  paths: [security-watch.cdx.json]
166
166
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shieldaai/security-watch",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Self-hosted security alerts for the software you run: reads your lockfiles (npm, Python, Go, Rust, Java and 7 more ecosystems) or any SBOM, watches new advisories and security news, and alerts you on Slack or email.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",