@shieldaai/security-watch 1.3.0 → 1.4.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/CHANGELOG.md +21 -0
- package/CONTRIBUTING.md +2 -0
- package/README.md +68 -42
- package/dist/check.d.ts +193 -0
- package/dist/check.js +1000 -0
- package/dist/cli.js +115 -2
- package/dist/inventory.d.ts +2 -1
- package/dist/inventory.js +1 -2
- package/dist/manifests.d.ts +7 -0
- package/dist/manifests.js +16 -0
- package/dist/mcp-server.d.ts +256 -0
- package/dist/mcp-server.js +755 -0
- package/dist/sources.d.ts +2 -0
- package/dist/sources.js +4 -0
- package/docs/agents.md +139 -0
- package/docs/offline-advisory-preview.md +2 -2
- package/docs/sbom.md +3 -3
- package/npm-shrinkwrap.json +237 -0
- package/package.json +10 -5
package/dist/sources.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { Config, CoverageReceipt, Evidence, HttpClient, Inventory, SourceResult } from './types.js';
|
|
2
|
+
/** One OSV record (`GET /v1/vulns/ID`) read as evidence, for a one-off lookup by identifier. */
|
|
3
|
+
export declare function osvEvidence(raw: unknown, id: string, now: number): Evidence;
|
|
2
4
|
/** Collect source evidence and report failures without advancing failed sources' checkpoints. */
|
|
3
5
|
export declare function collectSources(inventory: Inventory, config: Config, checkpoints: Record<string, string>, http: HttpClient, now?: number, previousEvidence?: Evidence[], previousCoverage?: CoverageReceipt[]): Promise<SourceResult>;
|
package/dist/sources.js
CHANGED
|
@@ -371,6 +371,10 @@ function osvRecord(raw, expectedId, matches, now) {
|
|
|
371
371
|
}),
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
+
/** One OSV record (`GET /v1/vulns/ID`) read as evidence, for a one-off lookup by identifier. */
|
|
375
|
+
export function osvEvidence(raw, id, now) {
|
|
376
|
+
return osvRecord(raw, id, [], now);
|
|
377
|
+
}
|
|
374
378
|
async function osv(inventory, previous, http, now) {
|
|
375
379
|
const unique = new Map();
|
|
376
380
|
for (const system of inventory.systems)
|
package/docs/agents.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Security Watch for AI agents and one-off checks
|
|
2
|
+
|
|
3
|
+
The monitor tells you when something new affects software you run. Sometimes you need the answer
|
|
4
|
+
now, in the project you have open: is anything in here vulnerable, did my upgrade bring something
|
|
5
|
+
in, does this CVE concern us, is this package safe to add. `security-watch check` and the MCP
|
|
6
|
+
server answer those questions with the monitor's own engine, on an in-memory database: no
|
|
7
|
+
configuration, nothing stored.
|
|
8
|
+
|
|
9
|
+
## What it checks against
|
|
10
|
+
|
|
11
|
+
- **OSV** (api.osv.dev): every package version is looked up, transitive dependencies included, in
|
|
12
|
+
the 12 ecosystems Security Watch reads. OSV aggregates GitHub's advisory database, PyPA, RustSec,
|
|
13
|
+
the Go vulnerability database and others, and its `MAL-` records name malicious packages.
|
|
14
|
+
- **CISA's Known Exploited Vulnerabilities catalog**: findings it lists are marked and sorted first.
|
|
15
|
+
- **FIRST EPSS**, only when asked (`--epss`, or `epss: true` in the MCP tools): the estimated
|
|
16
|
+
probability of exploitation in the next 30 days.
|
|
17
|
+
|
|
18
|
+
News, cve.now, vendor feeds and AI models are monitor features; the one-off checks do not use them.
|
|
19
|
+
|
|
20
|
+
**What is sent:** package ecosystems, names and versions to OSV, advisory IDs to OSV, and CVE IDs to
|
|
21
|
+
FIRST when EPSS is asked for. The KEV catalog is a public file that is downloaded. File contents,
|
|
22
|
+
paths and notes never leave the machine.
|
|
23
|
+
|
|
24
|
+
## On the command line
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npx --yes @shieldaai/security-watch@1.4.0 check # the current folder
|
|
28
|
+
npx --yes @shieldaai/security-watch@1.4.0 check ./services/api --production
|
|
29
|
+
npx --yes @shieldaai/security-watch@1.4.0 check --base origin/main... # only what this branch changed
|
|
30
|
+
npx --yes @shieldaai/security-watch@1.4.0 check --package npm:lodash@4.17.21 --package pypi:requests@2.32.4
|
|
31
|
+
npx --yes @shieldaai/security-watch@1.4.0 check --advisory CVE-2021-44906
|
|
32
|
+
npx --yes @shieldaai/security-watch@1.4.0 check --sbom image.cdx.json # Trivy, Syft, cdxgen, GitHub
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
- `--json` prints the whole report for scripts.
|
|
36
|
+
- `--fail-on critical|high|medium|low|none` sets when the exit code is 1 (default `high`): an
|
|
37
|
+
installed version is affected at or above that level. Malware and known-exploited findings always
|
|
38
|
+
count, except with `none`. An advisory without a severity (common for Go and some Python records)
|
|
39
|
+
counts as medium; it is shown by default and the summary says how many there are. A package
|
|
40
|
+
without an exact version ("check by hand") never fails the check.
|
|
41
|
+
- Exit code 2 means the check is incomplete: a source failed, or a dependency file could not be
|
|
42
|
+
read (it is named at the top of the output). A pipeline should treat 2 as a failure too.
|
|
43
|
+
- `--base REF` reads the dependency files at that commit straight from git, without checking
|
|
44
|
+
anything out, and reports what the working tree added and what it fixed. `--base REF...` (three
|
|
45
|
+
dots, as in `git diff`) compares with the point where the current branch left REF, so a branch
|
|
46
|
+
that is behind main is not blamed for upgrades made on main since. Both sides are the files git
|
|
47
|
+
knows: submodules, nested repositories and ignored folders are left out. The project must be a
|
|
48
|
+
git checkout that has the commit (fetch it first in CI).
|
|
49
|
+
- A package with several findings gets one line with the version that fixes them all.
|
|
50
|
+
|
|
51
|
+
In CI, `check --base origin/main... --fail-on high` fails a pull request that brings in a high or
|
|
52
|
+
critical vulnerability, without blocking on ones that were already there.
|
|
53
|
+
|
|
54
|
+
## The MCP server
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
npx --yes @shieldaai/security-watch@1.4.0 mcp /path/to/project
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
It speaks MCP over stdio (protocol versions 2024-11-05 to 2025-11-25). The project is the
|
|
61
|
+
argument, else `CLAUDE_PROJECT_DIR`, else the working folder. If that is a filesystem root or your
|
|
62
|
+
home folder (where some hosts start servers), the server asks the client for its roots and uses
|
|
63
|
+
the first project folder it names. Every tool's `path` must stay inside the project; links that
|
|
64
|
+
lead out are refused.
|
|
65
|
+
|
|
66
|
+
| Tool | What it does | Network | Writes |
|
|
67
|
+
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
|
|
68
|
+
| `check_project_vulnerabilities` | Every known vulnerability and malicious package in the installed versions, most urgent first, with the fixed version and the file, or the packages of an `sbom` file inside the project. `path`, `minSeverity`, `production`, `epss`. | OSV, KEV | no |
|
|
69
|
+
| `check_dependency_change` | Compares dependency files at `base` (a git ref) with the working tree: what the change brings in, what it fixes, which packages were added, removed or changed. | OSV, KEV | no |
|
|
70
|
+
| `check_package` | Up to 50 `packages` (`ecosystem`, `name`, optional `version`) before you add or upgrade them; flags OSV malicious-package records. | OSV, KEV | no |
|
|
71
|
+
| `check_advisory` | Looks up a CVE, GHSA, PYSEC, RUSTSEC, GO or MAL identifier, follows its aliases to the records that name packages, and says whether the project is affected, has the package at a safe version, or does not use it. | OSV, KEV | no |
|
|
72
|
+
| `list_dependencies` | Files read, packages per ecosystem, packages without an exact version, files that could not be read; `includePackages` lists them all. | none | no |
|
|
73
|
+
| `write_sbom` | A CycloneDX 1.6 SBOM at `output` inside the project, with optional name, owner, environment, note and exposure. Replaces an existing file only with `overwrite: true` and only if it is an SBOM; never writes into hidden folders. | none | yes |
|
|
74
|
+
| `list_watch_findings` | Open findings of your running monitor: priority, system, owner, fix. Listed only when `SECURITY_WATCH_CONFIG` names its configuration. Reads its database, changes nothing. | none | no |
|
|
75
|
+
|
|
76
|
+
Results are plain text written for the agent to read and quote. Findings from one session share a
|
|
77
|
+
15-minute cache of the KEV catalog and OSV records, so repeated checks are fast; package queries
|
|
78
|
+
are always asked again.
|
|
79
|
+
|
|
80
|
+
Nothing in the server runs project code, installs packages, or changes the monitor's state.
|
|
81
|
+
Acknowledging, suppressing and reviewing findings stay in the command line, with a person deciding.
|
|
82
|
+
|
|
83
|
+
### In Claude Code, Codex, Antigravity and the desktop apps
|
|
84
|
+
|
|
85
|
+
Install the plugin from [plugins/security-watch](https://github.com/ShieldaAI/security-watch/tree/main/plugins/security-watch): it adds the
|
|
86
|
+
server and two skills that tell the agent when to check (before adding a package, after changing
|
|
87
|
+
dependency files, when a CVE is in the news) and how to fix findings without hiding them.
|
|
88
|
+
|
|
89
|
+
### In any other MCP client
|
|
90
|
+
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"mcpServers": {
|
|
94
|
+
"security-watch": {
|
|
95
|
+
"command": "npx",
|
|
96
|
+
"args": ["--yes", "@shieldaai/security-watch@1.4.0", "mcp", "/path/to/project"]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Or the signed container image, with the project mounted read-only:
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"mcpServers": {
|
|
107
|
+
"security-watch": {
|
|
108
|
+
"command": "docker",
|
|
109
|
+
"args": [
|
|
110
|
+
"run",
|
|
111
|
+
"-i",
|
|
112
|
+
"--rm",
|
|
113
|
+
"-v",
|
|
114
|
+
"/path/to/project:/project:ro",
|
|
115
|
+
"ghcr.io/shieldaai/security-watch:1.4.0",
|
|
116
|
+
"mcp",
|
|
117
|
+
"/project"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The image has no git, so `check_dependency_change` needs the npm form; `write_sbom` needs the
|
|
125
|
+
mount to be writable. It is listed in the MCP Registry as `io.github.ShieldaAI/security-watch`.
|
|
126
|
+
|
|
127
|
+
Starting npx inside the project lets the project's `.npmrc` choose the registry the checker comes
|
|
128
|
+
from. The plugin's launcher avoids that by starting npx elsewhere; in your own configuration, give
|
|
129
|
+
the project as an argument (as above) and keep the client's working folder outside it if you can.
|
|
130
|
+
|
|
131
|
+
## Limits
|
|
132
|
+
|
|
133
|
+
- A clean result means no OSV advisory matches these exact versions today. It says nothing about
|
|
134
|
+
code that has no advisory yet, and nothing about whether a vulnerable function is reachable.
|
|
135
|
+
- Without a lockfile, versions are unknown and findings are listed as "check by hand".
|
|
136
|
+
- Operating-system packages in a container SBOM, products and SaaS are not matched by the
|
|
137
|
+
one-off checks: the monitor's news and product matching, or your image scanner, cover those.
|
|
138
|
+
- OSV can lag a new advisory by hours. For "is this morning's CVE in our stack", `check_advisory`
|
|
139
|
+
says so when OSV has no record yet.
|
|
@@ -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.
|
|
7
|
+
This example uses `@shieldaai/security-watch@1.4.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.
|
|
19
|
+
npm install --ignore-scripts --save-exact @shieldaai/security-watch@1.4.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.
|
|
130
|
+
uses: ShieldaAI/security-watch@v1.4.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.
|
|
146
|
+
- uses: ShieldaAI/security-watch@v1.4.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.
|
|
163
|
+
- npx --yes @shieldaai/security-watch@1.4.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
|
```
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shieldaai/security-watch",
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "@shieldaai/security-watch",
|
|
9
|
+
"version": "1.4.0",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@renovatebot/pep440": "6.0.0",
|
|
13
|
+
"fast-xml-parser": "5.12.1",
|
|
14
|
+
"ipaddr.js": "2.5.0",
|
|
15
|
+
"nodemailer": "10.2.1",
|
|
16
|
+
"parse5": "8.0.1",
|
|
17
|
+
"semver": "7.8.5",
|
|
18
|
+
"yaml": "2.9.1",
|
|
19
|
+
"zod": "4.6.7"
|
|
20
|
+
},
|
|
21
|
+
"bin": {
|
|
22
|
+
"security-watch": "dist/cli.js"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=24.10.0"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"node_modules/@nodable/entities": {
|
|
29
|
+
"version": "3.1.0",
|
|
30
|
+
"resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-3.1.0.tgz",
|
|
31
|
+
"integrity": "sha512-LsS/DjHr+uDM647Gru/cA8+J3a3HfhttwCKLyuoyN7yXTFCxKBtSgMQBvrW9yNPa2/zDRUNuGPaH5QUFoa4arQ==",
|
|
32
|
+
"funding": [
|
|
33
|
+
{
|
|
34
|
+
"type": "github",
|
|
35
|
+
"url": "https://github.com/sponsors/nodable"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT"
|
|
39
|
+
},
|
|
40
|
+
"node_modules/@renovatebot/pep440": {
|
|
41
|
+
"version": "6.0.0",
|
|
42
|
+
"resolved": "https://registry.npmjs.org/@renovatebot/pep440/-/pep440-6.0.0.tgz",
|
|
43
|
+
"integrity": "sha512-L/HtOYInkZGLJCe9h/gpsm2Gig0JWzyvWajrEVK+pP6BGfRl1eFzg7jyVcis7tmht7hvpau/+pMzF60geiLq6w==",
|
|
44
|
+
"license": "Apache-2.0",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=24.10.0",
|
|
47
|
+
"pnpm": ">=10.0.0"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"node_modules/anynum": {
|
|
51
|
+
"version": "1.0.1",
|
|
52
|
+
"resolved": "https://registry.npmjs.org/anynum/-/anynum-1.0.1.tgz",
|
|
53
|
+
"integrity": "sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==",
|
|
54
|
+
"funding": [
|
|
55
|
+
{
|
|
56
|
+
"type": "github",
|
|
57
|
+
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"license": "MIT"
|
|
61
|
+
},
|
|
62
|
+
"node_modules/entities": {
|
|
63
|
+
"version": "8.1.0",
|
|
64
|
+
"resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz",
|
|
65
|
+
"integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==",
|
|
66
|
+
"license": "BSD-2-Clause",
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">=20.19.0"
|
|
69
|
+
},
|
|
70
|
+
"funding": {
|
|
71
|
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"node_modules/fast-xml-builder": {
|
|
75
|
+
"version": "1.3.2",
|
|
76
|
+
"resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.3.2.tgz",
|
|
77
|
+
"integrity": "sha512-OX91VSlShLPDgRZV7tk/YQ4l8tT75QziF5Ixg8g4PFbCVPjuTWwN+yQfAxLJ0dufJpprdOd6HlM74Jhd39TcBQ==",
|
|
78
|
+
"funding": [
|
|
79
|
+
{
|
|
80
|
+
"type": "github",
|
|
81
|
+
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"path-expression-matcher": "^1.6.2",
|
|
87
|
+
"xml-naming": "^0.3.0"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"node_modules/fast-xml-parser": {
|
|
91
|
+
"version": "5.12.1",
|
|
92
|
+
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.12.1.tgz",
|
|
93
|
+
"integrity": "sha512-wR8dO/fx+z8C5exuem1e7BKOWvjsuzvjS/tvA/Xu3Z1zQqJGcXrPzXbcAiaMgp2KjreEROcTkmnnisrcmJ2hYQ==",
|
|
94
|
+
"funding": [
|
|
95
|
+
{
|
|
96
|
+
"type": "github",
|
|
97
|
+
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"license": "MIT",
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"@nodable/entities": "^3.1.0",
|
|
103
|
+
"fast-xml-builder": "^1.3.2",
|
|
104
|
+
"is-unsafe": "^2.0.3",
|
|
105
|
+
"path-expression-matcher": "^1.6.2",
|
|
106
|
+
"strnum": "^2.5.1",
|
|
107
|
+
"xml-naming": "^0.3.0"
|
|
108
|
+
},
|
|
109
|
+
"bin": {
|
|
110
|
+
"fxparser": "src/cli/cli.js"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"node_modules/ipaddr.js": {
|
|
114
|
+
"version": "2.5.0",
|
|
115
|
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.5.0.tgz",
|
|
116
|
+
"integrity": "sha512-aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==",
|
|
117
|
+
"license": "MIT",
|
|
118
|
+
"engines": {
|
|
119
|
+
"node": ">= 10"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"node_modules/is-unsafe": {
|
|
123
|
+
"version": "2.0.3",
|
|
124
|
+
"resolved": "https://registry.npmjs.org/is-unsafe/-/is-unsafe-2.0.3.tgz",
|
|
125
|
+
"integrity": "sha512-ZBllczCCO267vgdFb6Tq3pv+LhHaCiGMdr+ZsuL+OopruAg7S+3ZDs1vD0RPC0uSrkjzbraxaGjtX1YBxjPeFQ==",
|
|
126
|
+
"funding": [
|
|
127
|
+
{
|
|
128
|
+
"type": "github",
|
|
129
|
+
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"license": "MIT"
|
|
133
|
+
},
|
|
134
|
+
"node_modules/nodemailer": {
|
|
135
|
+
"version": "10.2.1",
|
|
136
|
+
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-10.2.1.tgz",
|
|
137
|
+
"integrity": "sha512-ZrDNsPFoDMwefNs7sJwrYiEJ/CG4ClJWDZv05iNJsEBWa8GRDry1QJHTJxsuTAY9eDDKjX4k+q3SxslXJOao7w==",
|
|
138
|
+
"license": "MIT-0",
|
|
139
|
+
"engines": {
|
|
140
|
+
"node": ">=20.0.0"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"node_modules/parse5": {
|
|
144
|
+
"version": "8.0.1",
|
|
145
|
+
"resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz",
|
|
146
|
+
"integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==",
|
|
147
|
+
"license": "MIT",
|
|
148
|
+
"dependencies": {
|
|
149
|
+
"entities": "^8.0.0"
|
|
150
|
+
},
|
|
151
|
+
"funding": {
|
|
152
|
+
"url": "https://github.com/inikulin/parse5?sponsor=1"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"node_modules/path-expression-matcher": {
|
|
156
|
+
"version": "1.6.2",
|
|
157
|
+
"resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.2.tgz",
|
|
158
|
+
"integrity": "sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==",
|
|
159
|
+
"funding": [
|
|
160
|
+
{
|
|
161
|
+
"type": "github",
|
|
162
|
+
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"license": "MIT",
|
|
166
|
+
"engines": {
|
|
167
|
+
"node": ">=14.0.0"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"node_modules/semver": {
|
|
171
|
+
"version": "7.8.5",
|
|
172
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
|
|
173
|
+
"integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
|
|
174
|
+
"license": "ISC",
|
|
175
|
+
"bin": {
|
|
176
|
+
"semver": "bin/semver.js"
|
|
177
|
+
},
|
|
178
|
+
"engines": {
|
|
179
|
+
"node": ">=10"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"node_modules/strnum": {
|
|
183
|
+
"version": "2.5.1",
|
|
184
|
+
"resolved": "https://registry.npmjs.org/strnum/-/strnum-2.5.1.tgz",
|
|
185
|
+
"integrity": "sha512-UM4nTLWzQiDBseVxUGxN0wJzIk0UU89Qi7pKXz9qISo+lhviJikTuikBsK/oFRlpvYHvSdz0TVoLyQ+sEpYwxA==",
|
|
186
|
+
"funding": [
|
|
187
|
+
{
|
|
188
|
+
"type": "github",
|
|
189
|
+
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"license": "MIT",
|
|
193
|
+
"dependencies": {
|
|
194
|
+
"anynum": "^1.0.1"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"node_modules/xml-naming": {
|
|
198
|
+
"version": "0.3.0",
|
|
199
|
+
"resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz",
|
|
200
|
+
"integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==",
|
|
201
|
+
"funding": [
|
|
202
|
+
{
|
|
203
|
+
"type": "github",
|
|
204
|
+
"url": "https://github.com/sponsors/NaturalIntelligence"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"license": "MIT",
|
|
208
|
+
"engines": {
|
|
209
|
+
"node": ">=16.0.0"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"node_modules/yaml": {
|
|
213
|
+
"version": "2.9.1",
|
|
214
|
+
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",
|
|
215
|
+
"integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",
|
|
216
|
+
"license": "ISC",
|
|
217
|
+
"bin": {
|
|
218
|
+
"yaml": "bin.mjs"
|
|
219
|
+
},
|
|
220
|
+
"engines": {
|
|
221
|
+
"node": ">= 14.6"
|
|
222
|
+
},
|
|
223
|
+
"funding": {
|
|
224
|
+
"url": "https://github.com/sponsors/eemeli"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"node_modules/zod": {
|
|
228
|
+
"version": "4.6.7",
|
|
229
|
+
"resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
|
|
230
|
+
"integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
|
|
231
|
+
"license": "MIT",
|
|
232
|
+
"funding": {
|
|
233
|
+
"url": "https://github.com/sponsors/colinhacks"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shieldaai/security-watch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.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
|
+
"mcpName": "io.github.ShieldaAI/security-watch",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"license": "Apache-2.0",
|
|
7
8
|
"engines": {
|
|
8
9
|
"node": ">=24.10.0"
|
|
9
10
|
},
|
|
10
11
|
"bin": {
|
|
11
|
-
"security-watch": "dist/cli.js"
|
|
12
|
+
"security-watch": "dist/cli.js",
|
|
13
|
+
"security-watch-mcp": "dist/mcp-server.js"
|
|
12
14
|
},
|
|
13
15
|
"exports": {
|
|
14
16
|
".": {
|
|
@@ -24,7 +26,8 @@
|
|
|
24
26
|
"CHANGELOG.md",
|
|
25
27
|
"LICENSE",
|
|
26
28
|
"SECURITY.md",
|
|
27
|
-
"CONTRIBUTING.md"
|
|
29
|
+
"CONTRIBUTING.md",
|
|
30
|
+
"npm-shrinkwrap.json"
|
|
28
31
|
],
|
|
29
32
|
"scripts": {
|
|
30
33
|
"build": "node scripts/build.mjs",
|
|
@@ -41,8 +44,10 @@
|
|
|
41
44
|
"check:docker": "node scripts/check-docker.mjs",
|
|
42
45
|
"format": "prettier --write .",
|
|
43
46
|
"format:check": "prettier --check .",
|
|
44
|
-
"prepack": "npm run build",
|
|
45
|
-
"evaluate:outcomes": "npm run build && node scripts/evaluate-alerts.mjs"
|
|
47
|
+
"prepack": "npm run build && node scripts/shrinkwrap.mjs",
|
|
48
|
+
"evaluate:outcomes": "npm run build && node scripts/evaluate-alerts.mjs",
|
|
49
|
+
"postpack": "node scripts/shrinkwrap.mjs --remove",
|
|
50
|
+
"pack:plugins": "node scripts/pack-plugins.mjs"
|
|
46
51
|
},
|
|
47
52
|
"dependencies": {
|
|
48
53
|
"@renovatebot/pep440": "6.0.0",
|