vigilsutra 0.1.1 → 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.
- package/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/engine.js +1 -1
- package/docs/assurance/TRUST-PLAN.md +1 -1
- package/docs/assurance/supply-chain.md +42 -42
- package/docs/compatibility.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2 - 2026-11-01
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
|
|
3
7
|
## 0.1.1 - 2026-11-01
|
|
4
8
|
|
|
5
9
|
- 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.
|
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
|
|
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.
|
|
10
|
+
export const VERSION = "0.1.2";
|
|
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.
|
|
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 |
|
|
@@ -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).
|
|
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 | 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
|
+
```
|
package/docs/compatibility.md
CHANGED
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "0.1.2",
|
|
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",
|