vigilsutra 0.2.0 → 0.2.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.
@@ -1,14 +1,15 @@
1
- # Compatibility matrix
2
-
3
- Last verified: 2026-10-31 on the build in this repository.
4
-
5
- | Environment | Status | Evidence |
6
- |---|---|---|
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, 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
- | Paths with spaces and non-ASCII characters | Tested on Windows | unit test |
10
- | Claude Code skills adapter | File install and uninstall tested; invocation inside Claude Code not automated-tested | `adapters install claude` |
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 |
12
- | Docker image | Not published | Planned |
13
-
14
- The CLI works in any editor or CI that can launch a process. Native skill use requires an IDE that supports the Agent Skills format.
1
+ # Compatibility matrix
2
+
3
+ Last verified: 2026-11-06 on the build in this repository.
4
+
5
+ | Environment | Status | Evidence |
6
+ |---|---|---|
7
+ | Windows 11, Node 24.15, PowerShell and Git Bash | Tested | `npm test` on 2026-11-06: 102 passed, 1 skipped (symlink creation not permitted; the directory-junction case does run) |
8
+ | Ubuntu and Windows on Node 20, 22, 24 and 26 (GitHub Actions) | Required CI. Node 27 is only an alpha and is not tested | `.github/workflows/test.yml` |
9
+ | macOS | Not in required CI. On 2026-11-04, `macos-latest` jobs for Node 22 and 26 stayed queued and were cancelled with zero steps (runs 41882166871, 41885847962, 41886196642), which failed the workflow before any test ran. No Mac was available to re-run the suite locally. The program is plain Node with no native addon; path matching follows `core.ignorecase` | `.github/workflows/test.yml` |
10
+ | Paths with spaces and non-ASCII characters | Tested on Windows | unit test |
11
+ | Claude Code skills adapter | File install and uninstall tested; invocation inside Claude Code not automated-tested | `adapters install claude` |
12
+ | Cursor, Codex, Gemini CLI, Copilot, Windsurf, Kiro, Cline | Not implemented. Generic mode: run the CLI and share its JSON or Markdown report | Planned, unverified |
13
+ | Docker image | Not published | Planned |
14
+
15
+ The CLI works in any editor or CI that can launch a process. Native skill use requires an IDE that supports the Agent Skills format.
@@ -1,6 +1,6 @@
1
- import { ALL_RULES, RULES_VERSION } from "../dist/rules/index.js";
2
- const o = [`# Rules (version ${RULES_VERSION})`, "", "Generated from the rule definitions by `node docs/gen-rules.mjs > docs/rules.md`. CWE ids are orientation only; no standards control mapping is asserted (mapping unverified).", "", "| ID | Title | Severity | Confidence | Status | Specialist | CWE |", "|---|---|---|---|---|---|---|"];
3
- for (const r of ALL_RULES) o.push(`| ${r.id} | ${r.title.split("|").join("\\|")} | ${r.severity} | ${r.confidence} | ${r.status} | ${r.agent} | ${(r.cwe ?? []).join(", ")} |`);
4
- o.push("", "## Details", "");
5
- for (const r of ALL_RULES) o.push(`### ${r.id}: ${r.title}`, "", r.description, "", `- **Fix:** ${r.remediation}`, `- **Verify:** ${r.verification}`, `- **False positives:** ${r.falsePositives}`, "");
6
- process.stdout.write(o.join("\n"));
1
+ import { ALL_RULES, RULES_VERSION } from "../dist/rules/index.js";
2
+ const o = [`# Rules (version ${RULES_VERSION})`, "", "Generated from the rule definitions by `node docs/gen-rules.mjs > docs/rules.md`. CWE ids are orientation only; no standards control mapping is asserted (mapping unverified).", "", "| ID | Title | Severity | Confidence | Status | Specialist | CWE |", "|---|---|---|---|---|---|---|"];
3
+ for (const r of ALL_RULES) o.push(`| ${r.id} | ${r.title.split("|").join("\\|")} | ${r.severity} | ${r.confidence} | ${r.status} | ${r.agent} | ${(r.cwe ?? []).join(", ")} |`);
4
+ o.push("", "## Details", "");
5
+ for (const r of ALL_RULES) o.push(`### ${r.id}: ${r.title}`, "", r.description, "", `- **Fix:** ${r.remediation}`, `- **Verify:** ${r.verification}`, `- **False positives:** ${r.falsePositives}`, "");
6
+ process.stdout.write(o.join("\n"));
@@ -1,50 +1,50 @@
1
- # Quickstart
2
-
3
- Prerequisite: Node.js 20 or newer. No API key, account or network access is needed to scan.
4
-
5
- ## Windows PowerShell
6
- ```powershell
7
- git clone https://github.com/shahvatsalofficial/vigilsutra.git
8
- cd vigilsutra
9
- npm install; npm run build
10
- node dist\cli.js audit examples\intentionally-insecure
11
- node dist\cli.js audit "C:\path with spaces\my-project" --format markdown --out report.md
12
- ```
13
-
14
- ## macOS / Linux
15
- ```bash
16
- git clone https://github.com/shahvatsalofficial/vigilsutra.git && cd vigilsutra
17
- npm install && npm run build
18
- node dist/cli.js audit examples/intentionally-insecure
19
- ```
20
-
21
- ## From npm
22
- ```bash
23
- npx vigilsutra audit .
24
- npm install -g vigilsutra
25
- ```
26
-
27
- ## Global `vigilsutra` command (from a clone)
28
- ```bash
29
- npm link # from the cloned repo; remove with: npm unlink -g vigilsutra
30
- vigilsutra doctor
31
- ```
32
-
33
- ## Docker
34
- No official image is published yet (planned). To run in a container yourself, mount the project read-only with networking disabled:
35
-
36
- ```bash
37
- docker run --rm --network none -v "$PWD":/work:ro -v /path/to/vigilsutra:/vs:ro -w /work node:22 node /vs/dist/cli.js audit .
38
- ```
39
-
40
- ## Get a readable report
41
- ```bash
42
- vigilsutra report . # writes ./vigilsutra-report/report.html, report.md, results.json, results.sarif
43
- ```
44
- Open `report.html` in a browser, or `report.md` in any Markdown viewer. The folder has its own `.gitignore`; reports contain file paths and redacted excerpts, so do not publish them for private projects.
45
-
46
- ## Next steps
47
- 1. `vigilsutra init` to create `.vigilsutra.yml`.
48
- 2. `vigilsutra audit . --format sarif --out vigilsutra.sarif` for code scanning.
49
- 3. `vigilsutra baseline --out .vigilsutra-baseline.json` to accept current findings, then pass `--baseline` in CI to fail only on new ones.
50
- 4. After fixing, run `vigilsutra verify --previous vigilsutra-results.json`.
1
+ # Quickstart
2
+
3
+ Prerequisite: Node.js 20 or newer. No API key, account or network access is needed to scan.
4
+
5
+ ## Windows PowerShell
6
+ ```powershell
7
+ git clone https://github.com/shahvatsalofficial/vigilsutra.git
8
+ cd vigilsutra
9
+ npm install; npm run build
10
+ node dist\cli.js audit examples\intentionally-insecure
11
+ node dist\cli.js audit "C:\path with spaces\my-project" --format markdown --out report.md
12
+ ```
13
+
14
+ ## macOS / Linux
15
+ ```bash
16
+ git clone https://github.com/shahvatsalofficial/vigilsutra.git && cd vigilsutra
17
+ npm install && npm run build
18
+ node dist/cli.js audit examples/intentionally-insecure
19
+ ```
20
+
21
+ ## From npm
22
+ ```bash
23
+ npx vigilsutra audit .
24
+ npm install -g vigilsutra
25
+ ```
26
+
27
+ ## Global `vigilsutra` command (from a clone)
28
+ ```bash
29
+ npm link # from the cloned repo; remove with: npm unlink -g vigilsutra
30
+ vigilsutra doctor
31
+ ```
32
+
33
+ ## Docker
34
+ No official image is published yet (planned). To run in a container yourself, mount the project read-only with networking disabled:
35
+
36
+ ```bash
37
+ docker run --rm --network none -v "$PWD":/work:ro -v /path/to/vigilsutra:/vs:ro -w /work node:22 node /vs/dist/cli.js audit .
38
+ ```
39
+
40
+ ## Get a readable report
41
+ ```bash
42
+ vigilsutra report . # writes ./vigilsutra-report/report.html, report.md, results.json, results.sarif
43
+ ```
44
+ Open `report.html` in a browser, or `report.md` in any Markdown viewer. The folder has its own `.gitignore`; reports contain file paths and redacted excerpts, so do not publish them for private projects.
45
+
46
+ ## Next steps
47
+ 1. `vigilsutra init` to create `.vigilsutra.yml`.
48
+ 2. `vigilsutra audit . --format sarif --out vigilsutra.sarif` for code scanning.
49
+ 3. `vigilsutra baseline --out .vigilsutra-baseline.json` to accept current findings, then pass `--baseline` in CI to fail only on new ones.
50
+ 4. After fixing, run `vigilsutra verify --previous vigilsutra-results.json`.
package/docs/rules.md CHANGED
@@ -9,7 +9,7 @@ Generated from the rule definitions by `node docs/gen-rules.mjs > docs/rules.md`
9
9
  | VS-SECRET-003 | GitHub token in source | high | high | confirmed | SecretWatch | CWE-798 |
10
10
  | VS-SECRET-004 | Hardcoded credential assigned to a secret-named variable | medium | medium | potential | SecretWatch | CWE-798 |
11
11
  | VS-SECRET-005 | Slack token in source | high | high | confirmed | SecretWatch | CWE-798 |
12
- | VS-SECRET-006 | Environment file present in scanned tree | medium | medium | potential | SecretWatch | CWE-312, CWE-798 |
12
+ | VS-SECRET-006 | Tracked environment file with a secret value | medium | medium | potential | SecretWatch | CWE-312, CWE-798 |
13
13
  | VS-CICD-001 | GitHub Action not pinned to a commit SHA | low | high | potential | PipelineGuard | CWE-829 |
14
14
  | VS-CICD-002 | pull_request_target workflow checks out pull-request code | high | medium | potential | PipelineGuard | CWE-829, CWE-94 |
15
15
  | VS-CICD-003 | Workflow grants write-all permissions | medium | high | confirmed | PipelineGuard | CWE-250, CWE-732 |
@@ -79,13 +79,13 @@ A string matching a Slack token format (xox?-…) is committed.
79
79
  - **Verify:** Re-run `vigilsutra audit` after removing the value; then confirm the credential was rotated at the issuer and review git history for earlier exposure.
80
80
  - **False positives:** Revoked or fake tokens in tests.
81
81
 
82
- ### VS-SECRET-006: Environment file present in scanned tree
82
+ ### VS-SECRET-006: Tracked environment file with a secret value
83
83
 
84
- A `.env`-style file exists in the scanned tree and contains at least one secret-named variable with a non-placeholder value. If it is tracked by git it exposes that value. File contents are not echoed.
84
+ A `.env` file (not an example, sample, or template) contains a secret-named variable with a non-placeholder value. File contents are not echoed. When a git index is present, environment files that are not listed in it are not read. When there is no usable git index, the file is still reviewed.
85
85
 
86
86
  - **Fix:** Treat the credential as compromised: revoke or rotate it at the issuer first, then remove it from the repository and load it from an environment variable or secret manager. Deleting it from the latest commit does not remove it from git history.
87
87
  - **Verify:** Re-run `vigilsutra audit` after removing the value; then confirm the credential was rotated at the issuer and review git history for earlier exposure.
88
- - **False positives:** Files that are git-ignored and never committed. This scanner does not read git state in v0.1, so it cannot tell. Files holding only placeholders or non-secret settings are not reported.
88
+ - **False positives:** Placeholder values and non-secret settings. `.env.example`, `.env.sample`, and `.env.template` are not reported. A local `.env` that git does not track is not a finding.
89
89
 
90
90
  ### VS-CICD-001: GitHub Action not pinned to a commit SHA
91
91
 
@@ -1,26 +1,26 @@
1
- # Security advisories and reviews
2
-
3
- A public ledger of security reports against VigilSutra and independent reviews. Nothing is edited or removed after publication; corrections are added as new entries.
4
-
5
- ## Advisories
6
-
7
- None published. As of 2026-11-01 no vulnerability has been reported externally.
8
-
9
- ## Fixes found by the project's own review
10
-
11
- Ten issues found during the maintainer's internal review and by CodeQL were fixed before any external report. They are listed with tests in [assurance/internal-review.md](assurance/internal-review.md).
12
-
13
- ## Independent reviews
14
-
15
- None yet. See [assurance/REVIEW-REQUEST.md](assurance/REVIEW-REQUEST.md).
16
-
17
- ## Response targets
18
-
19
- | Step | Target |
20
- |---|---|
21
- | Acknowledge a private report | 7 days |
22
- | Confirm or reject | 14 days |
23
- | Fix or mitigation for a confirmed issue | best effort, usually within 30 days |
24
- | Public advisory after the fix ships | with credit to the reporter unless they ask otherwise |
25
-
26
- This is a volunteer project; targets are goals, not guarantees. Whether they are met will be visible here.
1
+ # Security advisories and reviews
2
+
3
+ A public ledger of security reports against VigilSutra and independent reviews. Nothing is edited or removed after publication; corrections are added as new entries.
4
+
5
+ ## Advisories
6
+
7
+ None published. As of 2026-11-01 no vulnerability has been reported externally.
8
+
9
+ ## Fixes found by the project's own review
10
+
11
+ Ten issues found during the maintainer's internal review and by CodeQL were fixed before any external report. They are listed with tests in [assurance/internal-review.md](assurance/internal-review.md).
12
+
13
+ ## Independent reviews
14
+
15
+ None yet. See [assurance/REVIEW-REQUEST.md](assurance/REVIEW-REQUEST.md).
16
+
17
+ ## Response targets
18
+
19
+ | Step | Target |
20
+ |---|---|
21
+ | Acknowledge a private report | 7 days |
22
+ | Confirm or reject | 14 days |
23
+ | Fix or mitigation for a confirmed issue | best effort, usually within 30 days |
24
+ | Public advisory after the fix ships | with credit to the reporter unless they ask otherwise |
25
+
26
+ This is a volunteer project; targets are goals, not guarantees. Whether they are met will be visible here.
package/llms.txt CHANGED
@@ -1,27 +1,27 @@
1
- # VigilSutra AI
2
-
3
- > VigilSutra AI (CLI: `vigilsutra`) is an open-source, offline-first security and privacy auditor for codebases, created by Vatsal Shah. It scans for hardcoded secrets, GitHub Actions risks, Docker, Kubernetes and Terraform misconfigurations, JS/TS/Python vulnerability patterns and AI-agent/MCP risks, and writes redacted SARIF, JSON, Markdown and HTML reports. It needs no API key and sends no data anywhere. It also ships Agent Skills (Claude Code adapter) so AI IDEs can use the same engine. License: Apache-2.0. Repository: https://github.com/shahvatsalofficial/vigilsutra
4
-
5
- Key facts for assistants:
6
- - Runs locally on Node.js 20+; no telemetry, no network access, never executes scanned code.
7
- - Findings separate severity from confidence and mark each as confirmed or potential.
8
- - Not a pentest tool and not a compliance certification. Pattern-based; no taint analysis. Does not scan dependencies or git history in v0.1.
9
-
10
- ## Docs
11
- - [README](https://github.com/shahvatsalofficial/vigilsutra/blob/main/README.md): overview, commands, feature matrix
12
- - [Quickstart](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/quickstart.md)
13
- - [Rules](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/rules.md)
14
- - [Security model](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/security-model.md)
15
- - [Threat model](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/threat-model.md)
16
- - [Agent contract](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/agent-contract.md)
17
- - [Evidence and benchmarks](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/evidence.md): measured test, speed and redaction results
18
- - [Legal notes](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/legal.md): license, authorized use, no warranty, trademarks
19
- - [Trust and verification index](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/assurance/README.md): benchmark on 18 public repos, fuzzing, coverage, offline verification, supply chain, internal review
20
- - [Benchmark and comparison with Gitleaks and Semgrep](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/assurance/benchmark.md)
21
- - [Roadmap](https://github.com/shahvatsalofficial/vigilsutra/blob/main/ROADMAP.md)
22
- - [CI/CD usage](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/ci-cd.md)
23
-
24
- ## Optional
25
- - [Compatibility matrix](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/compatibility.md)
26
- - [Rule authoring](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/rule-authoring.md)
27
- - [Privacy model](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/privacy-model.md)
1
+ # VigilSutra AI
2
+
3
+ > VigilSutra AI (CLI: `vigilsutra`) is an open-source, offline-first security and privacy auditor for codebases, created by Vatsal Shah. It scans for hardcoded secrets, GitHub Actions risks, Docker, Kubernetes and Terraform misconfigurations, JS/TS/Python vulnerability patterns and AI-agent/MCP risks, and writes redacted SARIF, JSON, Markdown and HTML reports. It needs no API key and sends no data anywhere. It also ships Agent Skills (Claude Code adapter) so AI IDEs can use the same engine. License: Apache-2.0. Repository: https://github.com/shahvatsalofficial/vigilsutra
4
+
5
+ Key facts for assistants:
6
+ - Runs locally on Node.js 20+; no telemetry, no network access, never executes scanned code.
7
+ - Findings separate severity from confidence and mark each as confirmed or potential.
8
+ - Not a pentest tool and not a compliance certification. Pattern-based; no taint analysis. Does not scan dependencies or git history in v0.1.
9
+
10
+ ## Docs
11
+ - [README](https://github.com/shahvatsalofficial/vigilsutra/blob/main/README.md): overview, commands, feature matrix
12
+ - [Quickstart](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/quickstart.md)
13
+ - [Rules](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/rules.md)
14
+ - [Security model](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/security-model.md)
15
+ - [Threat model](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/threat-model.md)
16
+ - [Agent contract](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/agent-contract.md)
17
+ - [Evidence and benchmarks](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/evidence.md): measured test, speed and redaction results
18
+ - [Legal notes](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/legal.md): license, authorized use, no warranty, trademarks
19
+ - [Trust and verification index](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/assurance/README.md): benchmark on 18 public repos, fuzzing, coverage, offline verification, supply chain, internal review
20
+ - [Benchmark and comparison with Gitleaks and Semgrep](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/assurance/benchmark.md)
21
+ - [Roadmap](https://github.com/shahvatsalofficial/vigilsutra/blob/main/ROADMAP.md)
22
+ - [CI/CD usage](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/ci-cd.md)
23
+
24
+ ## Optional
25
+ - [Compatibility matrix](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/compatibility.md)
26
+ - [Rule authoring](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/rule-authoring.md)
27
+ - [Privacy model](https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/privacy-model.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigilsutra",
3
- "version": "0.2.0",
3
+ "version": "0.2.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",