vigilsutra 0.1.1 → 0.1.3

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 CHANGED
@@ -1,22 +1,30 @@
1
- # Changelog
2
-
3
- ## 0.1.1 - 2026-11-01
4
-
5
- - Release workflow publishing to npm with provenance (Trusted Publishing); Dependabot for Actions and npm; workflow actions pinned to commit SHAs; OpenSSF Scorecard workflow; manual benchmark workflow.
6
- - **Security fixes from an internal review** (see docs/assurance/internal-review.md): adapter uninstall validates manifest entries; a project policy that narrows scope is disclosed in reports (`--policy`, `--no-policy` added); single-descriptor file reads with inode check; SARIF paths percent-encoded; Markdown and terminal output neutralize hostile file names and control characters; per-rule per-file finding cap.
7
- - **Two quadratic regular expressions fixed** (found by new fuzz tests).
8
- - **Fewer false positives**, found by running on 18 public repositories (quoted local workflows, string-literal matches, JWT `verify=False`, `usedforsecurity=False`, routes and egress rules, `Effect: Deny`, `$variable` placeholders, `.env` placeholders, nonroot images, sanitized HTML, translation files). Findings in test, example, archived and vendored paths now have low confidence and `pathContext: test-or-example`.
9
- - `failOn` in `.vigilsutra.yml` is now applied.
10
- - New: runtime offline test, fuzz/ReDoS tests, benchmark tooling (`benchmarks/`), assurance documentation (`docs/assurance/`), SBOMs, coverage report.
11
-
12
- ## 0.1.0 - 2026-10-31
13
-
14
- First public release (early). Published to npm as `vigilsutra@0.1.0`.
15
-
16
- - Offline, read-only CLI: `audit`, `baseline`, `verify`, `rules`, `explain`, `doctor`, `init`, `adapters`.
17
- - 32 rules across secrets, GitHub Actions, Docker, Kubernetes, Terraform, JS/TS/Python code patterns, AI agents, privacy signals and process.
18
- - Reports: text, JSON, Markdown, SARIF 2.1.0, escaped HTML.
19
- - Secret redaction in all formats; stable fingerprints that exclude secret values and line numbers.
20
- - Safe scoping: symlinks never followed, size/count/time limits, binary skipping.
21
- - Six Agent Skills and a Claude Code project adapter (preview, no-overwrite, manifest-based uninstall).
22
- - Not included yet: dependency/SBOM/advisories, other IDE adapters, local-LLM adapter, waivers, patch proposals.
1
+ # Changelog
2
+
3
+ ## 0.1.3 - 2026-11-04
4
+
5
+ - Build with TypeScript 7.0.2 (`tsconfig.json` now lists `"types": ["node"]`); GitHub Actions updated to current majors (checkout 7, setup-node 7, codeql-action 4, upload-artifact 7), still pinned to commit SHAs.
6
+
7
+ ## 0.1.2 - 2026-11-01
8
+
9
+ - CI now tests Node 20, 22, 24 and 26 (current LTS) on Ubuntu, macOS and Windows; all 12 jobs pass. Docs updated. No code changes.
10
+
11
+ ## 0.1.1 - 2026-11-01
12
+
13
+ - Release workflow publishing to npm with provenance (Trusted Publishing); Dependabot for Actions and npm; workflow actions pinned to commit SHAs; OpenSSF Scorecard workflow; manual benchmark workflow.
14
+ - **Security fixes from an internal review** (see docs/assurance/internal-review.md): adapter uninstall validates manifest entries; a project policy that narrows scope is disclosed in reports (`--policy`, `--no-policy` added); single-descriptor file reads with inode check; SARIF paths percent-encoded; Markdown and terminal output neutralize hostile file names and control characters; per-rule per-file finding cap.
15
+ - **Two quadratic regular expressions fixed** (found by new fuzz tests).
16
+ - **Fewer false positives**, found by running on 18 public repositories (quoted local workflows, string-literal matches, JWT `verify=False`, `usedforsecurity=False`, routes and egress rules, `Effect: Deny`, `$variable` placeholders, `.env` placeholders, nonroot images, sanitized HTML, translation files). Findings in test, example, archived and vendored paths now have low confidence and `pathContext: test-or-example`.
17
+ - `failOn` in `.vigilsutra.yml` is now applied.
18
+ - New: runtime offline test, fuzz/ReDoS tests, benchmark tooling (`benchmarks/`), assurance documentation (`docs/assurance/`), SBOMs, coverage report.
19
+
20
+ ## 0.1.0 - 2026-10-31
21
+
22
+ First public release (early). Published to npm as `vigilsutra@0.1.0`.
23
+
24
+ - Offline, read-only CLI: `audit`, `baseline`, `verify`, `rules`, `explain`, `doctor`, `init`, `adapters`.
25
+ - 32 rules across secrets, GitHub Actions, Docker, Kubernetes, Terraform, JS/TS/Python code patterns, AI agents, privacy signals and process.
26
+ - Reports: text, JSON, Markdown, SARIF 2.1.0, escaped HTML.
27
+ - Secret redaction in all formats; stable fingerprints that exclude secret values and line numbers.
28
+ - Safe scoping: symlinks never followed, size/count/time limits, binary skipping.
29
+ - Six Agent Skills and a Claude Code project adapter (preview, no-overwrite, manifest-based uninstall).
30
+ - Not included yet: dependency/SBOM/advisories, other IDE adapters, local-LLM adapter, waivers, patch proposals.
package/README.md CHANGED
@@ -178,7 +178,7 @@ Everything here can be re-run; the full evidence index is [docs/assurance](docs/
178
178
  |---|---|
179
179
  | Automated tests (`npm test`) | 94 tests: **93 passed, 0 failed, 1 skipped** (file-symlink test; Windows denied symlink creation, the directory-junction case does run) |
180
180
  | Test coverage | **98.4 % lines, 89.6 % branches** ([details](docs/assurance/coverage.md)) |
181
- | CI | GitHub Actions on Ubuntu, macOS and Windows with Node 20 and 22: all jobs passed on the latest commit, plus an audit inside a Linux network namespace with no network |
181
+ | CI | GitHub Actions on Ubuntu, macOS and Windows with Node 20, 22, 24 and 26 (current LTS): all jobs passed on the latest commit, plus an audit inside a Linux network namespace with no network |
182
182
  | Offline claim | Runtime test blocks network, DNS and subprocess APIs and fails if any attempt is made ([how](docs/assurance/offline-verification.md)) |
183
183
  | Fuzzing / ReDoS | 16 adversarial shapes x 32 rules x 12 file kinds; found and fixed two real quadratic regexes; slowest rule 94 ms per 1,000 hostile lines ([details](docs/assurance/fuzzing.md)) |
184
184
  | Real-world accuracy | Run on **18 public repositories** (Juice Shop, NodeGoat, TerraGoat, Kubernetes Goat, Django, Prometheus and more). 240 findings labeled in three samples: false-positive share **18 %** with the released rules, **10 %** after round 1, **0 of 32** on a final untouched sample (95 % upper bound about 9 %) ([method and caveats](docs/assurance/benchmark.md)) |
package/dist/engine.js CHANGED
@@ -7,7 +7,7 @@ import { inventory } from "./scope.js";
7
7
  import { DEFAULT_POLICY, loadPolicy } from "./policy.js";
8
8
  import { redactSpan, scrubTokens, tidy } from "./redact.js";
9
9
  import { SEVERITY_ORDER } from "./types.js";
10
- export const VERSION = "0.1.1";
10
+ export const VERSION = "0.1.3";
11
11
  /** Per rule, per file. Keeps one noisy file from producing an unbounded report. */
12
12
  export const MAX_PER_RULE_PER_FILE = 200;
13
13
  function sha(s) {
@@ -7,7 +7,7 @@ Written 2026-11-01 after an independent-auditor style review of what a skeptical
7
7
  | 1 | Real-world accuracy evidence (fixtures were written by the rule author) | **Done with caveat** | Ran 18 public repos; labeled a sample; found and fixed 20+ false-positive classes; measured a holdout sample; regression-checked that real findings survive: [benchmark.md](benchmark.md) | Labels are AI-assigned and the sample is not random. Independent human re-labeling would strengthen it |
8
8
  | 2 | Comparison with other tools on a shared corpus | **Done with caveat** | Gitleaks 8.30.1 and Semgrep 1.183.0 on identical commits, on Linux CI; 7 deliberately vulnerable projects included | Trivy and CodeQL not run. Recall not measured |
9
9
  | 3 | Independent verification | **Blocked / not possible by tooling** | Internal review with 10 fixes and tests; GitHub CodeQL (an independent static analyzer) now runs on every push and found 3 real-or-near-real issues that were fixed: [internal-review.md](internal-review.md); open request for reviewers: [REVIEW-REQUEST.md](REVIEW-REQUEST.md) | Someone outside the project has to review it. Owner: recruit a reviewer |
10
- | 4 | npm provenance | **Blocked** | `release.yml` publishes with provenance via Trusted Publishing; Actions pinned; Dependabot on | Owner must add the Trusted Publisher on npmjs.com and run a release. Version 0.1.0 on npm has no provenance |
10
+ | 4 | npm provenance | **Blocked** | `release.yml` publishes with provenance via Trusted Publishing; Actions pinned; Dependabot on | Owner must add the Trusted Publisher on npmjs.com and run a release. Versions 0.1.0 and 0.1.1 on npm have no provenance |
11
11
  | 5 | Verified offline claim | **Done** | Runtime test with blocked network/subprocess APIs; Linux network-namespace step in CI: [offline-verification.md](offline-verification.md) | |
12
12
  | 6 | Visible CI status | **Done** | CI badge, 3 OS x Node 20/22 matrix, compatibility page; OpenSSF Scorecard published (5.5/10 at first run); CodeQL on every push | Scorecard weak spots: branch protection, required code review, repository age, OpenSSF best-practices badge (owner actions) |
13
13
  | 7 | Fuzz and ReDoS testing | **Done** | Seeded fuzz and adversarial-timing tests; found 2 real quadratic regexes: [fuzzing.md](fuzzing.md) | No formal regex analysis |
@@ -12,11 +12,11 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "prod": 1,
15
- "dev": 3,
16
- "optional": 0,
15
+ "dev": 23,
16
+ "optional": 20,
17
17
  "peer": 0,
18
18
  "peerOptional": 0,
19
- "total": 3
19
+ "total": 23
20
20
  }
21
21
  }
22
22
  }
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
- "serialNumber": "urn:uuid:7236448f-28eb-47b7-b03c-a078c675ee4a",
5
+ "serialNumber": "urn:uuid:a6af414a-eb9a-4cac-a6d7-06f1b624cd72",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-11-01T17:29:25.217Z",
8
+ "timestamp": "2026-11-02T19:30:12.772Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "build"
@@ -19,14 +19,14 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "vigilsutra@0.1.0",
22
+ "bom-ref": "vigilsutra@0.1.2",
23
23
  "type": "library",
24
24
  "name": "VigilSutra-AI",
25
- "version": "0.1.0",
25
+ "version": "0.1.2",
26
26
  "scope": "required",
27
27
  "author": "Vatsal Shah",
28
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",
29
+ "purl": "pkg:npm/vigilsutra@0.1.2",
30
30
  "properties": [],
31
31
  "externalReferences": [
32
32
  {
@@ -95,14 +95,61 @@
95
95
  ]
96
96
  },
97
97
  {
98
- "bom-ref": "typescript@5.9.3",
98
+ "bom-ref": "@typescript/typescript-win32-x64@7.0.2",
99
+ "type": "library",
100
+ "name": "@typescript/typescript-win32-x64",
101
+ "version": "7.0.2",
102
+ "scope": "optional",
103
+ "author": "Microsoft Corp.",
104
+ "description": "TypeScript is a language for application scale JavaScript development",
105
+ "purl": "pkg:npm/%40typescript/typescript-win32-x64@7.0.2",
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-win32-x64/-/typescript-win32-x64-7.0.2.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": "d014371e40071e528b4a9d6a46f7f7494846a46b03ba107f8e0170ef982ecaa6f126a11a4b40b0fd514ef22da71e094953340246d30c47f20100a137113302e2"
134
+ }
135
+ ],
136
+ "licenses": [
137
+ {
138
+ "license": {
139
+ "id": "Apache-2.0"
140
+ }
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "bom-ref": "typescript@7.0.2",
99
146
  "type": "library",
100
147
  "name": "typescript",
101
- "version": "5.9.3",
148
+ "version": "7.0.2",
102
149
  "scope": "required",
103
150
  "author": "Microsoft Corp.",
104
151
  "description": "TypeScript is a language for application scale JavaScript development",
105
- "purl": "pkg:npm/typescript@5.9.3",
152
+ "purl": "pkg:npm/typescript@7.0.2",
106
153
  "properties": [
107
154
  {
108
155
  "name": "cdx:npm:package:development",
@@ -112,7 +159,7 @@
112
159
  "externalReferences": [
113
160
  {
114
161
  "type": "distribution",
115
- "url": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz"
162
+ "url": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz"
116
163
  },
117
164
  {
118
165
  "type": "vcs",
@@ -130,7 +177,7 @@
130
177
  "hashes": [
131
178
  {
132
179
  "alg": "SHA-512",
133
- "content": "8e5d6f6733c38a72ebf5e52ddc9feded5e8580d130f508ef04f772b33f4a7d00c3e357d0ac2d98e2f290762694a454f86d795bd511e12e9a7cc2d9ba3394e04b"
180
+ "content": "f0561abbdea8dcd28e85b8ca8bfa8dbc6fd6e63873c646dd9b9b23f406d9ff94f9b16aa7de12602df1b1dbbb11299593bf2cc23fc74b4414dfe6d05349155434"
134
181
  }
135
182
  ],
136
183
  "licenses": [
@@ -190,10 +237,10 @@
190
237
  ],
191
238
  "dependencies": [
192
239
  {
193
- "ref": "vigilsutra@0.1.0",
240
+ "ref": "vigilsutra@0.1.2",
194
241
  "dependsOn": [
195
242
  "@types/node@22.20.5",
196
- "typescript@5.9.3"
243
+ "typescript@7.0.2"
197
244
  ]
198
245
  },
199
246
  {
@@ -203,9 +250,15 @@
203
250
  ]
204
251
  },
205
252
  {
206
- "ref": "typescript@5.9.3",
253
+ "ref": "@typescript/typescript-win32-x64@7.0.2",
207
254
  "dependsOn": []
208
255
  },
256
+ {
257
+ "ref": "typescript@7.0.2",
258
+ "dependsOn": [
259
+ "@typescript/typescript-win32-x64@7.0.2"
260
+ ]
261
+ },
209
262
  {
210
263
  "ref": "undici-types@6.21.0",
211
264
  "dependsOn": []
@@ -1,42 +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). The published 0.1.0 was uploaded by hand and has 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
- ```
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 | 7.0.2 (latest; native compiler, platform binary via `@typescript/typescript-<platform>`, Apache-2.0) | Apache-2.0 |
14
+ | @types/node | 22.20.5 (typed against Node 22 on purpose: Node 20 is end-of-life but still supported, so the types must not expose newer-only APIs) | 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
+ ```
@@ -5,7 +5,7 @@ Last verified: 2026-10-31 on the build in this repository.
5
5
  | Environment | Status | Evidence |
6
6
  |---|---|---|
7
7
  | Windows 11, Node 24.15, PowerShell and Git Bash | Tested | `npm test` run locally; the symlink test is skipped when symlink creation is not permitted |
8
- | Ubuntu, macOS, Windows on Node 20 and 22 (GitHub Actions) | Tested: 6 of 6 jobs passed on commits `c9e2b92` and `52e07e9` | `.github/workflows/test.yml` |
8
+ | Ubuntu, macOS, Windows on Node 20, 22, 24 and 26 (GitHub Actions) | Tested: all 12 jobs passed on commit `867132e` (Node 26.13 is the current LTS; Node 27 is only an alpha and is not tested) | `.github/workflows/test.yml` |
9
9
  | Paths with spaces and non-ASCII characters | Tested on Windows | unit test |
10
10
  | Claude Code skills adapter | File install and uninstall tested; invocation inside Claude Code not automated-tested | `adapters install claude` |
11
11
  | Cursor, Codex, Gemini CLI, Copilot, Windsurf, Kiro, Cline | Not implemented. Generic mode: run the CLI and share its JSON or Markdown report | Planned, unverified |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigilsutra",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "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.",
5
5
  "keywords": [
6
6
  "security",
@@ -66,6 +66,6 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/node": "^22.20.5",
69
- "typescript": "^5.9.3"
69
+ "typescript": "^7.0.2"
70
70
  }
71
71
  }