vigilsutra 0.1.0 → 0.1.2

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 (41) hide show
  1. package/CHANGELOG.md +26 -13
  2. package/README.md +25 -14
  3. package/dist/adapters.js +24 -5
  4. package/dist/cli.js +23 -10
  5. package/dist/engine.js +29 -7
  6. package/dist/policy.js +13 -4
  7. package/dist/redact.js +2 -1
  8. package/dist/reporters/index.js +9 -5
  9. package/dist/rules/agents-privacy.js +5 -5
  10. package/dist/rules/code.js +26 -6
  11. package/dist/rules/infra.js +21 -7
  12. package/dist/rules/secrets.js +13 -5
  13. package/dist/rules/util.js +33 -2
  14. package/dist/scope.js +36 -10
  15. package/docs/assets/demo.svg +5 -0
  16. package/docs/assurance/README.md +28 -0
  17. package/docs/assurance/REVIEW-REQUEST.md +23 -0
  18. package/docs/assurance/TRUST-PLAN.md +31 -0
  19. package/docs/assurance/benchmark.md +148 -0
  20. package/docs/assurance/coverage-raw.txt +127 -0
  21. package/docs/assurance/coverage.md +34 -0
  22. package/docs/assurance/fuzz-results.json +130 -0
  23. package/docs/assurance/fuzzing.md +38 -0
  24. package/docs/assurance/internal-review.md +41 -0
  25. package/docs/assurance/npm-audit.json +22 -0
  26. package/docs/assurance/offline-verification.md +26 -0
  27. package/docs/assurance/sbom-full-dev.cdx.json +214 -0
  28. package/docs/assurance/sbom-production.cdx.json +61 -0
  29. package/docs/assurance/sbom-production.spdx.json +44 -0
  30. package/docs/assurance/supply-chain.md +42 -0
  31. package/docs/assurance/trademark-search.md +27 -0
  32. package/docs/compatibility.md +1 -1
  33. package/docs/gen-demo-svg.mjs +17 -0
  34. package/docs/gen-rules.mjs +6 -6
  35. package/docs/launch-kit.md +53 -0
  36. package/docs/quickstart.md +44 -38
  37. package/docs/releasing.md +16 -0
  38. package/docs/rules.md +2 -2
  39. package/docs/security-advisories.md +26 -0
  40. package/llms.txt +2 -0
  41. package/package.json +2 -2
@@ -0,0 +1,34 @@
1
+ # Test coverage
2
+
3
+ Measured with Node's built-in coverage (`node --test --experimental-test-coverage`) over the compiled `dist/` of the whole suite, including code reached through the CLI subprocess tests. Raw output: [coverage-raw.txt](coverage-raw.txt). Date 2026-11-01, Windows 11, Node 24.15.
4
+
5
+ | Metric | Value |
6
+ |---|---|
7
+ | Tests | 94 (93 passed, 0 failed, 1 skipped) |
8
+ | Line coverage | **98.36 %** |
9
+ | Branch coverage | **89.60 %** |
10
+ | Function coverage | **98.82 %** |
11
+
12
+ | File | Lines | Branches | Not covered |
13
+ |---|---|---|---|
14
+ | `engine.js` | 99.12 % | 91.58 % | an error path |
15
+ | `policy.js` | 100 % | 98.25 % | |
16
+ | `reporters/index.js` | 100 % | 92.00 % | |
17
+ | `rules/*` | 100 % | 96 to 100 % | one helper function |
18
+ | `cli.js` | 98.02 % | 62.79 % | two lines; many option branches |
19
+ | `adapters.js` | 97.33 % | 72.22 % | two lines |
20
+ | `scope.js` | 86.99 % | 71.74 % | time limit, unreadable files and directories, the symlink (not junction) branch, swapped-file branch |
21
+
22
+ ## How to read this
23
+
24
+ - Coverage shows which code ran, not that it is correct. A line can run without its result being checked.
25
+ - `scope.js` has the lowest coverage and is the safety-critical module. The uncovered branches are the hard-to-trigger ones: the time limit, permission errors, a file swapped for a link during the scan, and file symlinks (the junction case is tested on Windows; file symlinks need privileges that were not available, so that test skipped).
26
+ - No minimum threshold is enforced in CI yet.
27
+ - No mutation testing has been done.
28
+
29
+ ## Reproduce
30
+
31
+ ```bash
32
+ npm run build
33
+ node --test --experimental-test-coverage test/vigilsutra.test.mjs test/offline-runtime.test.mjs test/fuzz.test.mjs
34
+ ```
@@ -0,0 +1,130 @@
1
+ [
2
+ {
3
+ "rule": "VS-SECRET-001",
4
+ "worstMs": 4
5
+ },
6
+ {
7
+ "rule": "VS-SECRET-002",
8
+ "worstMs": 1
9
+ },
10
+ {
11
+ "rule": "VS-SECRET-003",
12
+ "worstMs": 5
13
+ },
14
+ {
15
+ "rule": "VS-SECRET-004",
16
+ "worstMs": 21
17
+ },
18
+ {
19
+ "rule": "VS-SECRET-005",
20
+ "worstMs": 3
21
+ },
22
+ {
23
+ "rule": "VS-SECRET-006",
24
+ "worstMs": 9
25
+ },
26
+ {
27
+ "rule": "VS-CICD-001",
28
+ "worstMs": 6
29
+ },
30
+ {
31
+ "rule": "VS-CICD-002",
32
+ "worstMs": 8
33
+ },
34
+ {
35
+ "rule": "VS-CICD-003",
36
+ "worstMs": 3
37
+ },
38
+ {
39
+ "rule": "VS-CICD-004",
40
+ "worstMs": 8
41
+ },
42
+ {
43
+ "rule": "VS-DOCKER-001",
44
+ "worstMs": 8
45
+ },
46
+ {
47
+ "rule": "VS-DOCKER-002",
48
+ "worstMs": 94
49
+ },
50
+ {
51
+ "rule": "VS-DOCKER-003",
52
+ "worstMs": 13
53
+ },
54
+ {
55
+ "rule": "VS-K8S-001",
56
+ "worstMs": 8
57
+ },
58
+ {
59
+ "rule": "VS-K8S-002",
60
+ "worstMs": 7
61
+ },
62
+ {
63
+ "rule": "VS-K8S-003",
64
+ "worstMs": 3
65
+ },
66
+ {
67
+ "rule": "VS-IAC-001",
68
+ "worstMs": 8
69
+ },
70
+ {
71
+ "rule": "VS-IAC-002",
72
+ "worstMs": 23
73
+ },
74
+ {
75
+ "rule": "VS-IAC-003",
76
+ "worstMs": 7
77
+ },
78
+ {
79
+ "rule": "VS-CODE-001",
80
+ "worstMs": 13
81
+ },
82
+ {
83
+ "rule": "VS-CODE-002",
84
+ "worstMs": 14
85
+ },
86
+ {
87
+ "rule": "VS-CODE-003",
88
+ "worstMs": 11
89
+ },
90
+ {
91
+ "rule": "VS-CODE-004",
92
+ "worstMs": 10
93
+ },
94
+ {
95
+ "rule": "VS-CODE-005",
96
+ "worstMs": 15
97
+ },
98
+ {
99
+ "rule": "VS-CODE-006",
100
+ "worstMs": 10
101
+ },
102
+ {
103
+ "rule": "VS-CODE-007",
104
+ "worstMs": 11
105
+ },
106
+ {
107
+ "rule": "VS-AGENT-001",
108
+ "worstMs": 16
109
+ },
110
+ {
111
+ "rule": "VS-AGENT-002",
112
+ "worstMs": 56
113
+ },
114
+ {
115
+ "rule": "VS-AGENT-003",
116
+ "worstMs": 6
117
+ },
118
+ {
119
+ "rule": "VS-PRIV-001",
120
+ "worstMs": 23
121
+ },
122
+ {
123
+ "rule": "VS-PRIV-002",
124
+ "worstMs": 32
125
+ },
126
+ {
127
+ "rule": "VS-PROC-001",
128
+ "worstMs": 0
129
+ }
130
+ ]
@@ -0,0 +1,38 @@
1
+ # Fuzzing and ReDoS testing
2
+
3
+ Tests: `test/fuzz.test.mjs` (run by `npm test`). Raw timings: [fuzz-results.json](fuzz-results.json).
4
+
5
+ ## What is tested
6
+
7
+ 1. **No rule throws** on 40 rounds of generated input: 60 lines each of 1 to 2,400 characters, drawn from 22 shapes (long runs of one character, near-matches of each rule's pattern, quote and backtick storms, random tokens including NUL, lone surrogates, right-to-left controls and CJK), against 12 file kinds (Dockerfile, JS, Python, workflow, Kubernetes YAML, Terraform, agent file, MCP JSON, `.env`, PEM, shell, JSON).
8
+ 2. **ReDoS guard**: every rule is given files of 1,000 adversarial lines of 1,990 characters (16 shapes) and must finish in under 1,500 ms per file. Lines over 2,000 characters are skipped by design.
9
+ 3. **Whole-audit robustness**: malformed UTF-8, lone surrogates, NUL bytes and a 900 KB single line.
10
+ 4. **Parser robustness**: the policy parser with 1 MB values, 50,000 list items, 100,000 colons, NUL and surrogate floods; baseline and previous-result inputs that are `{`, `[]`, `null`, wrong types or a 100 KB number must be rejected with exit code 2.
11
+
12
+ The PRNG is seeded, so failures reproduce.
13
+
14
+ ## Results (2026-11-01, Windows 11, Node 24)
15
+
16
+ All tests pass. Slowest rules on the 1,000-line adversarial files:
17
+
18
+ | Rule | Worst time for 1,000 adversarial lines |
19
+ |---|---|
20
+ | VS-DOCKER-002 | 94 ms |
21
+ | VS-AGENT-002 | 56 ms |
22
+ | VS-PRIV-002 | 32 ms |
23
+ | every other rule | under 25 ms |
24
+
25
+ ## What fuzzing found
26
+
27
+ Before the fixes, the same test failed:
28
+
29
+ - `VS-CICD-001` took **4.4 s** on 1,000 whitespace-only lines (a quadratic pattern `^\s*-?\s*uses:`).
30
+ - `VS-CICD-002` and the Kubernetes detector took **1.7 s** on a 2 MB file of blank lines because `\s*` in a multi-line regex spans newlines.
31
+
32
+ Both were fixed (see [IR-8](internal-review.md)). Without this test they would have shipped.
33
+
34
+ ## Limits of this evidence
35
+
36
+ - Sixteen adversarial shapes are not exhaustive. A formal analysis or a dedicated regex-safety tool has not been run.
37
+ - Timings depend on the machine and are loose upper bounds, not benchmarks.
38
+ - Fuzzing covers the rules and parsers, not the filesystem walk.
@@ -0,0 +1,41 @@
1
+ # Internal security review
2
+
3
+ > **Warning:** this review was done by the project's maintainer working with an AI assistant. It is **not independent**. It exists so that known weaknesses are fixed and visible, and so an outside reviewer has a starting point. See [REVIEW-REQUEST.md](REVIEW-REQUEST.md) for how to ask for an independent review.
4
+
5
+ Date: 2026-11-01. Scope: all of `src/` (about 1,900 lines), the CLI contract, report writers, the Claude adapter, the GitHub workflows and the fuzz/benchmark data. Method: manual read-through against the threat model, adversarial tests, fuzzing, and a run over 18 public repositories.
6
+
7
+ ## Findings and fixes
8
+
9
+ | ID | Severity | Finding | Fix | Test |
10
+ |---|---|---|---|---|
11
+ | IR-1 | medium | **Adapter uninstall trusted its manifest.** The check used a string prefix, so a manifest listing a sibling such as `.claude/skills-evil/x/SKILL.md` would pass and be deleted. The manifest lives in the project and can be edited by anyone with write access. | Entries must resolve to exactly `.claude/skills/<name>/SKILL.md` (path-relative check, no `..`, no absolute paths) | `review: adapter uninstall refuses manifest entries outside ...` |
12
+ | IR-2 | medium | **A hostile project can silence the scan.** The project's own `.vigilsutra.yml` can ignore every file or disable rules, so auditing someone else's repository could report "clean". | Reports now state when scope was narrowed by a policy (`scope.policy`, a limitation line). New `--policy <file>` uses a trusted policy and `--no-policy` ignores the project's | `review: a project policy that narrows scope is disclosed ...` |
13
+ | IR-3 | low | **Time-of-check/time-of-use symlink swap.** A path could be replaced by a symlink between `lstat` and the read, so the read would follow it out of the project. | Each file is opened once; the descriptor's device and inode must match the earlier `lstat`, otherwise the file is refused. Also halves file opens | `review: isInside ...`, junction test; a race itself is not simulated |
14
+ | IR-4 | medium | **Invalid SARIF for unusual paths.** File URIs were not percent-encoded, so paths with spaces, `#` or `%` produce invalid locations in code-scanning tools. | Each path segment is `encodeURIComponent`-encoded | `review: SARIF file locations are percent-encoded URIs` |
15
+ | IR-5 | low | **Markdown injection through file names.** A backtick in a file name closed the inline code span in the Markdown report. | Backticks and line breaks replaced in code spans | `review: Markdown report cannot be broken out ...` |
16
+ | IR-6 | low | **Terminal escape injection.** ANSI escapes or bidi controls in file names or excerpts reached the terminal. | Control characters neutralized in excerpts and in the text report | `review: terminal control characters ... are neutralized` |
17
+ | IR-7 | low | **Unbounded output.** One rule matching every line of a 1 MiB file could create hundreds of thousands of findings. | Cap of 200 findings per rule per file; the cut is disclosed in `limitations` and `scope.cappedFindings` | `review: one rule matching thousands of lines ... is capped` |
18
+ | IR-8 | medium | **Two quadratic regular expressions** (found by the fuzz tests): `^\s*-?\s*uses:` on whitespace-only lines and multi-line `\s*` that spans newlines in YAML detection. One crafted 2 MB file took 4 seconds. | Anchored patterns without overlapping quantifiers; `[ \t]*` for same-line whitespace | `ReDoS guard: each rule handles 1,000 adversarial 1,990-character lines quickly` |
19
+ | IR-9 | low | **Wrong line used by look-back filters.** Rules located the matched line with `indexOf(line)`, which returns the first identical line in the file, so a later egress block was judged by an earlier ingress block. Found by the holdout benchmark. | Filters receive the real line number | `IAC-001 uses the real line ...` |
20
+
21
+ | IR-10 | low | **Check-then-write races in `init` and the adapter** (reported by GitHub CodeQL, an independent static analyzer, after it was added to CI). `existsSync` followed by a write could overwrite a file created in between. | `init` creates with the exclusive `wx` flag; adapter installs use `COPYFILE_EXCL` for new files and treat "already exists" as skip | `init creates policy once and never overwrites`, `adapters: claude install is previewable, non-destructive ...` |
22
+
23
+ All ten were fixed and each has a test (IR-10 reuses existing no-overwrite tests). The test suite grew from 56 to 94 tests as a result of this work. CodeQL's other alerts were a regular expression it judged unanchored (rewritten), a documentation-generator escaping bug (fixed, it would have mis-rendered pipe characters in `docs/rules.md`) and a race in a test helper (dismissed: test code).
24
+
25
+ ## Checked and found acceptable
26
+
27
+ - No `child_process`, network, `eval` or dynamic `import()` in `src/` (static test and runtime test with blocked network and subprocess APIs).
28
+ - `--out` writes where the user asks; nothing else is written by `audit`, `verify`, `explain`, `rules` or `doctor`.
29
+ - HTML report: every untrusted value passes through one escaper; strict CSP; tested with hostile names and code.
30
+ - Fingerprints never include secret values; secret spans from all rules on a line are removed from every finding that quotes the line.
31
+ - Policy and baseline parsers reject malformed and hostile input with exit code 2 (tested with 1 MB lines, 50,000 list items, NUL and lone surrogates).
32
+
33
+ ## Residual risks (not fixed)
34
+
35
+ 1. Pattern rules are evadable by obfuscation and produce false positives (measured in [benchmark.md](benchmark.md)).
36
+ 2. The time limit is checked between files, so a stalled filesystem read is not interrupted.
37
+ 3. Regular-expression safety is evidenced by fuzzing with 16 adversarial shapes, not by a formal proof.
38
+ 4. The TOCTOU defence is not tested with a real race; it relies on the descriptor's device and inode, which some filesystems report as zero (the check is skipped there).
39
+ 5. Windows long paths (over 260 characters) were not tested.
40
+ 6. The Claude adapter copies skill text; a malicious or compromised copy of this package could ship hostile skill instructions. Install from the official npm package or repository and review `agents/*/SKILL.md`.
41
+ 7. No third-party has reviewed any of this.
@@ -0,0 +1,22 @@
1
+ {
2
+ "auditReportVersion": 2,
3
+ "vulnerabilities": {},
4
+ "metadata": {
5
+ "vulnerabilities": {
6
+ "info": 0,
7
+ "low": 0,
8
+ "moderate": 0,
9
+ "high": 0,
10
+ "critical": 0,
11
+ "total": 0
12
+ },
13
+ "dependencies": {
14
+ "prod": 1,
15
+ "dev": 3,
16
+ "optional": 0,
17
+ "peer": 0,
18
+ "peerOptional": 0,
19
+ "total": 3
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,26 @@
1
+ # Offline and no-execution verification
2
+
3
+ The README claims VigilSutra makes no network requests, runs no subprocesses and executes no scanned code. Three independent checks back that up.
4
+
5
+ ## 1. Static check (every `npm test`)
6
+
7
+ `src/` may not import `node:http`, `https`, `http2`, `net`, `tls`, `dgram` or `dns`, and may not call `fetch`, `XMLHttpRequest` or use `child_process` (rule files are excluded from the last check because they contain pattern text).
8
+
9
+ ## 2. Runtime check with blocked network and subprocess APIs (every `npm test`)
10
+
11
+ `test/offline-runtime.test.mjs` starts the real CLI with a preload (`test/block-network.mjs`) that replaces `net.Socket.connect`, `net.connect`, `net.createConnection`, `dns.lookup`, `dns.resolve`, `fetch` and every `child_process` entry point with functions that **record the attempt to a log file and throw**. Proxy variables point to a closed port.
12
+
13
+ - A self-check proves the preload really catches `fetch`, a socket connect and a subprocess call.
14
+ - Twelve commands then run (audit in text, JSON, SARIF, HTML and Markdown formats on the demo project and on the repository itself, `rules list`, `explain`, `doctor`, `adapters list`, `adapters install --dry-run`, `init`). Each must finish normally and the attempt log must be **empty**.
15
+
16
+ This catches dynamic imports and indirect calls that a text search would miss.
17
+
18
+ ## 3. Operating-system level check on Linux CI
19
+
20
+ The `test` workflow runs the audit in a network namespace that has no network interfaces (`unshare --net`), so an outbound connection cannot succeed at the kernel level. See `.github/workflows/test.yml`.
21
+
22
+ ## What this does not prove
23
+
24
+ - It does not cover Node.js itself or any code outside `dist/`. `npx` downloads the package from npm before running it; the scan after that is offline.
25
+ - The AI-IDE skills run inside your IDE and are governed by its policies; they are outside the CLI's guarantees.
26
+ - Anything added later must keep these tests passing, but the tests are only as complete as the checks above.
@@ -0,0 +1,214 @@
1
+ {
2
+ "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
+ "bomFormat": "CycloneDX",
4
+ "specVersion": "1.5",
5
+ "serialNumber": "urn:uuid:7236448f-28eb-47b7-b03c-a078c675ee4a",
6
+ "version": 1,
7
+ "metadata": {
8
+ "timestamp": "2026-11-01T17:29:25.217Z",
9
+ "lifecycles": [
10
+ {
11
+ "phase": "build"
12
+ }
13
+ ],
14
+ "tools": [
15
+ {
16
+ "vendor": "npm",
17
+ "name": "cli",
18
+ "version": "11.13.0"
19
+ }
20
+ ],
21
+ "component": {
22
+ "bom-ref": "vigilsutra@0.1.0",
23
+ "type": "library",
24
+ "name": "VigilSutra-AI",
25
+ "version": "0.1.0",
26
+ "scope": "required",
27
+ "author": "Vatsal Shah",
28
+ "description": "VigilSutra AI: open-source, offline-first security and privacy auditor CLI plus AI agent skills. Finds secrets, CI/CD, Docker, Kubernetes, IaC, code and AI-agent risks with redacted, evidence-based SARIF/JSON/Markdown reports. No API key, no telemetry.",
29
+ "purl": "pkg:npm/vigilsutra@0.1.0",
30
+ "properties": [],
31
+ "externalReferences": [
32
+ {
33
+ "type": "vcs",
34
+ "url": "git+https://github.com/shahvatsalofficial/vigilsutra.git"
35
+ },
36
+ {
37
+ "type": "website",
38
+ "url": "https://github.com/shahvatsalofficial/vigilsutra#readme"
39
+ },
40
+ {
41
+ "type": "issue-tracker",
42
+ "url": "https://github.com/shahvatsalofficial/vigilsutra/issues"
43
+ }
44
+ ],
45
+ "licenses": [
46
+ {
47
+ "license": {
48
+ "id": "Apache-2.0"
49
+ }
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ "components": [
55
+ {
56
+ "bom-ref": "@types/node@22.20.5",
57
+ "type": "library",
58
+ "name": "@types/node",
59
+ "version": "22.20.5",
60
+ "scope": "required",
61
+ "description": "TypeScript definitions for node",
62
+ "purl": "pkg:npm/%40types/node@22.20.5",
63
+ "properties": [
64
+ {
65
+ "name": "cdx:npm:package:development",
66
+ "value": "true"
67
+ }
68
+ ],
69
+ "externalReferences": [
70
+ {
71
+ "type": "distribution",
72
+ "url": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz"
73
+ },
74
+ {
75
+ "type": "vcs",
76
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
77
+ },
78
+ {
79
+ "type": "website",
80
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node"
81
+ }
82
+ ],
83
+ "hashes": [
84
+ {
85
+ "alg": "SHA-512",
86
+ "content": "536f8336bfb04a3a6c4d2ff0646607abb19cc1fb9298a88abe83ef2b6db3c13951854f75c8e9e2378a914792a1223be27fbcacc3f773fe12a67c31f4462b3868"
87
+ }
88
+ ],
89
+ "licenses": [
90
+ {
91
+ "license": {
92
+ "id": "MIT"
93
+ }
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "bom-ref": "typescript@5.9.3",
99
+ "type": "library",
100
+ "name": "typescript",
101
+ "version": "5.9.3",
102
+ "scope": "required",
103
+ "author": "Microsoft Corp.",
104
+ "description": "TypeScript is a language for application scale JavaScript development",
105
+ "purl": "pkg:npm/typescript@5.9.3",
106
+ "properties": [
107
+ {
108
+ "name": "cdx:npm:package:development",
109
+ "value": "true"
110
+ }
111
+ ],
112
+ "externalReferences": [
113
+ {
114
+ "type": "distribution",
115
+ "url": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz"
116
+ },
117
+ {
118
+ "type": "vcs",
119
+ "url": "https://github.com/microsoft/TypeScript.git"
120
+ },
121
+ {
122
+ "type": "website",
123
+ "url": "https://www.typescriptlang.org/"
124
+ },
125
+ {
126
+ "type": "issue-tracker",
127
+ "url": "https://github.com/microsoft/TypeScript/issues"
128
+ }
129
+ ],
130
+ "hashes": [
131
+ {
132
+ "alg": "SHA-512",
133
+ "content": "8e5d6f6733c38a72ebf5e52ddc9feded5e8580d130f508ef04f772b33f4a7d00c3e357d0ac2d98e2f290762694a454f86d795bd511e12e9a7cc2d9ba3394e04b"
134
+ }
135
+ ],
136
+ "licenses": [
137
+ {
138
+ "license": {
139
+ "id": "Apache-2.0"
140
+ }
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "bom-ref": "undici-types@6.21.0",
146
+ "type": "library",
147
+ "name": "undici-types",
148
+ "version": "6.21.0",
149
+ "scope": "required",
150
+ "description": "A stand-alone types package for Undici",
151
+ "purl": "pkg:npm/undici-types@6.21.0",
152
+ "properties": [
153
+ {
154
+ "name": "cdx:npm:package:development",
155
+ "value": "true"
156
+ }
157
+ ],
158
+ "externalReferences": [
159
+ {
160
+ "type": "distribution",
161
+ "url": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz"
162
+ },
163
+ {
164
+ "type": "vcs",
165
+ "url": "git+https://github.com/nodejs/undici.git"
166
+ },
167
+ {
168
+ "type": "website",
169
+ "url": "https://undici.nodejs.org"
170
+ },
171
+ {
172
+ "type": "issue-tracker",
173
+ "url": "https://github.com/nodejs/undici/issues"
174
+ }
175
+ ],
176
+ "hashes": [
177
+ {
178
+ "alg": "SHA-512",
179
+ "content": "8b00d9aa0d10006ae0f516afe47e27d0ceb87379a4479f5c27ac10a7eec2e2723482c984c5a79d6982cd3b8e1e4f802d041c236d38863cc96dd8c7744fd1fd25"
180
+ }
181
+ ],
182
+ "licenses": [
183
+ {
184
+ "license": {
185
+ "id": "MIT"
186
+ }
187
+ }
188
+ ]
189
+ }
190
+ ],
191
+ "dependencies": [
192
+ {
193
+ "ref": "vigilsutra@0.1.0",
194
+ "dependsOn": [
195
+ "@types/node@22.20.5",
196
+ "typescript@5.9.3"
197
+ ]
198
+ },
199
+ {
200
+ "ref": "@types/node@22.20.5",
201
+ "dependsOn": [
202
+ "undici-types@6.21.0"
203
+ ]
204
+ },
205
+ {
206
+ "ref": "typescript@5.9.3",
207
+ "dependsOn": []
208
+ },
209
+ {
210
+ "ref": "undici-types@6.21.0",
211
+ "dependsOn": []
212
+ }
213
+ ]
214
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
+ "bomFormat": "CycloneDX",
4
+ "specVersion": "1.5",
5
+ "serialNumber": "urn:uuid:0375fa3d-b621-4078-9660-88b034aec7ad",
6
+ "version": 1,
7
+ "metadata": {
8
+ "timestamp": "2026-11-01T17:29:17.098Z",
9
+ "lifecycles": [
10
+ {
11
+ "phase": "build"
12
+ }
13
+ ],
14
+ "tools": [
15
+ {
16
+ "vendor": "npm",
17
+ "name": "cli",
18
+ "version": "11.13.0"
19
+ }
20
+ ],
21
+ "component": {
22
+ "bom-ref": "vigilsutra@0.1.0",
23
+ "type": "library",
24
+ "name": "VigilSutra-AI",
25
+ "version": "0.1.0",
26
+ "scope": "required",
27
+ "author": "Vatsal Shah",
28
+ "description": "VigilSutra AI: open-source, offline-first security and privacy auditor CLI plus AI agent skills. Finds secrets, CI/CD, Docker, Kubernetes, IaC, code and AI-agent risks with redacted, evidence-based SARIF/JSON/Markdown reports. No API key, no telemetry.",
29
+ "purl": "pkg:npm/vigilsutra@0.1.0",
30
+ "properties": [],
31
+ "externalReferences": [
32
+ {
33
+ "type": "vcs",
34
+ "url": "git+https://github.com/shahvatsalofficial/vigilsutra.git"
35
+ },
36
+ {
37
+ "type": "website",
38
+ "url": "https://github.com/shahvatsalofficial/vigilsutra#readme"
39
+ },
40
+ {
41
+ "type": "issue-tracker",
42
+ "url": "https://github.com/shahvatsalofficial/vigilsutra/issues"
43
+ }
44
+ ],
45
+ "licenses": [
46
+ {
47
+ "license": {
48
+ "id": "Apache-2.0"
49
+ }
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ "components": [],
55
+ "dependencies": [
56
+ {
57
+ "ref": "vigilsutra@0.1.0",
58
+ "dependsOn": []
59
+ }
60
+ ]
61
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "spdxVersion": "SPDX-2.3",
3
+ "dataLicense": "CC0-1.0",
4
+ "SPDXID": "SPDXRef-DOCUMENT",
5
+ "name": "vigilsutra@0.1.0",
6
+ "documentNamespace": "http://spdx.org/spdxdocs/vigilsutra-0.1.0-d2672eba-ee7d-4250-b0fb-642c9bae6a14",
7
+ "creationInfo": {
8
+ "created": "2026-11-01T17:29:33.965Z",
9
+ "creators": [
10
+ "Tool: npm/cli-11.13.0"
11
+ ]
12
+ },
13
+ "documentDescribes": [
14
+ "SPDXRef-Package-vigilsutra-0.1.0"
15
+ ],
16
+ "packages": [
17
+ {
18
+ "name": "vigilsutra",
19
+ "SPDXID": "SPDXRef-Package-vigilsutra-0.1.0",
20
+ "versionInfo": "0.1.0",
21
+ "packageFileName": "",
22
+ "description": "VigilSutra AI: open-source, offline-first security and privacy auditor CLI plus AI agent skills. Finds secrets, CI/CD, Docker, Kubernetes, IaC, code and AI-agent risks with redacted, evidence-based SARIF/JSON/Markdown reports. No API key, no telemetry.",
23
+ "primaryPackagePurpose": "LIBRARY",
24
+ "downloadLocation": "NOASSERTION",
25
+ "filesAnalyzed": false,
26
+ "homepage": "https://github.com/shahvatsalofficial/vigilsutra#readme",
27
+ "licenseDeclared": "Apache-2.0",
28
+ "externalRefs": [
29
+ {
30
+ "referenceCategory": "PACKAGE-MANAGER",
31
+ "referenceType": "purl",
32
+ "referenceLocator": "pkg:npm/vigilsutra@0.1.0"
33
+ }
34
+ ]
35
+ }
36
+ ],
37
+ "relationships": [
38
+ {
39
+ "spdxElementId": "SPDXRef-DOCUMENT",
40
+ "relatedSpdxElement": "SPDXRef-Package-vigilsutra-0.1.0",
41
+ "relationshipType": "DESCRIBES"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,42 @@
1
+ # Supply chain: dependencies, licenses, SBOM
2
+
3
+ Date 2026-11-01. Package `vigilsutra@0.1.0`.
4
+
5
+ ## Runtime dependencies: none
6
+
7
+ `package.json` has no `dependencies`. Installing `vigilsutra` from npm installs one package: itself. The CycloneDX 1.5 SBOM for production contains **0 components** ([sbom-production.cdx.json](sbom-production.cdx.json)); an SPDX version is in [sbom-production.spdx.json](sbom-production.spdx.json).
8
+
9
+ ## Development dependencies (build and test only, never shipped)
10
+
11
+ | Package | Version | License |
12
+ |---|---|---|
13
+ | typescript | 5.9.3 | Apache-2.0 |
14
+ | @types/node | 22.20.5 | MIT |
15
+ | undici-types (via @types/node) | 6.21.0 | MIT |
16
+
17
+ Full dev SBOM: [sbom-full-dev.cdx.json](sbom-full-dev.cdx.json). All licenses are compatible with Apache-2.0 distribution.
18
+
19
+ ## Known vulnerabilities
20
+
21
+ `npm audit` on 2026-11-01 reported **0** vulnerabilities (info 0, low 0, moderate 0, high 0, critical 0) across 3 dev dependencies ([npm-audit.json](npm-audit.json)). An audit is a point-in-time check against the npm advisory database.
22
+
23
+ ## Build and release integrity
24
+
25
+ | Control | State |
26
+ |---|---|
27
+ | Lockfile committed, `npm ci` in CI | yes |
28
+ | GitHub Actions pinned to commit SHAs | yes, all workflows |
29
+ | Dependabot for Actions and npm | enabled |
30
+ | Workflow permissions | `contents: read` by default; `id-token: write` and `security-events: write` only where needed |
31
+ | OpenSSF Scorecard workflow | added; first result pending |
32
+ | npm provenance (attestation linking the package to this repository and workflow) | **workflow written, not yet exercised.** Requires the owner to configure Trusted Publishing on npmjs.com; see [releasing.md](../releasing.md). Versions 0.1.0 and 0.1.1 were uploaded by hand and have no provenance |
33
+ | Reproducible builds | not verified |
34
+ | Package contents | 44 files in `dist`, `agents`, `adapters`, `policies`, `schemas`, `docs`, `templates` and top-level docs; no source maps, no tests |
35
+
36
+ ## Reproduce
37
+
38
+ ```bash
39
+ npm ci && npm audit
40
+ npm sbom --sbom-format cyclonedx --omit dev
41
+ npm pack --dry-run
42
+ ```