vigilsutra 0.4.0 → 0.4.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 +10 -0
- package/README.md +4 -2
- package/dist/cli.js +1 -1
- package/dist/engine.js +1 -1
- package/llms.txt +1 -1
- package/package.json +6 -3
- package/docs/index.html +0 -75
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2 - 2026-11-24
|
|
4
|
+
|
|
5
|
+
- New documentation site (`site/`): guided pages, diagrams, charts, six real-world scenarios, light theme by default with a dark option, phone and desktop layouts, search, and a fresh sample report generated from the real CLI. Built by a zero-dependency generator and deployed by the Pages workflow. No rule or CLI changes.
|
|
6
|
+
|
|
7
|
+
## 0.4.1 - 2026-11-16
|
|
8
|
+
|
|
9
|
+
- Report footers (HTML and Markdown) show the author credit as plain text instead of a link to shahvatsal.com, so the HTML report contains no remote links and stays fully offline.
|
|
10
|
+
- The author credit links to shahvatsal.com in the README, `llms.txt`, `CITATION.cff` and `package.json`.
|
|
11
|
+
- No rule or CLI behaviour changes.
|
|
12
|
+
|
|
3
13
|
## 0.4.0 - 2026-11-07
|
|
4
14
|
|
|
5
15
|
- Git history reads SHA-1 and SHA-256 objects (loose and pack index version 2, including deltas) until the time limit. The 200-commit and 2,500-blob caps are gone. A blob over 1 MiB is still skipped. `--no-history` skips the pass.
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Finds hardcoded secrets, risky GitHub Actions, Docker / Kubernetes / Terraform m
|
|
|
18
18
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
|
-
> Created by **Vatsal Shah
|
|
21
|
+
> Created by **[Vatsal Shah](https://shahvatsal.com)** · [shahvatsal.com](https://shahvatsal.com). Status: **v0.4.0**. Everything marked *Implemented* is covered by automated tests in this repo. Everything else is marked *Planned*. See [Proof](#proof-what-has-actually-been-verified) and [Limitations](#limitations-please-read).
|
|
22
22
|
|
|
23
23
|
**Contents:** [What is it](#what-is-vigilsutra-ai) · [Why trust it](#why-you-can-trust-it) · [Quickstart](#quickstart) · [Example output](#example-output) · [Commands](#commands) · [What it checks](#what-it-checks-feature-matrix) · [AI IDE use](#use-it-from-an-ai-ide-optional) · [CI](#ci-example) · [Proof](#proof-what-has-actually-been-verified) · [How it compares](#how-it-fits-with-other-tools) · [FAQ](#faq) · [Limitations](#limitations-please-read) · [Legal](#legal-and-responsible-use) · [Contributing](#contributing-security-license)
|
|
24
24
|
|
|
@@ -44,6 +44,8 @@ It is built for developers, small teams and security reviewers who want a **priv
|
|
|
44
44
|
| **No fake certainty** | Pattern matches are `potential`. Only conclusive evidence is `confirmed`. Severity and confidence are separate. No "secure" or "compliant" verdicts anywhere. |
|
|
45
45
|
| **Open source, small, auditable** | Apache-2.0. About 3,000 non-empty lines of TypeScript in `src/`. |
|
|
46
46
|
|
|
47
|
+
**Documentation:** [guided docs with diagrams and real-world scenarios](https://shahvatsalofficial.github.io/vigilsutra/).
|
|
48
|
+
|
|
47
49
|
Details: [security model](docs/security-model.md), [threat model](docs/threat-model.md), [privacy model](docs/privacy-model.md), [evidence and benchmarks](docs/assurance/README.md).
|
|
48
50
|
|
|
49
51
|
## Quickstart
|
|
@@ -244,7 +246,7 @@ Full text: [docs/legal.md](docs/legal.md).
|
|
|
244
246
|
|
|
245
247
|
- [CONTRIBUTING.md](CONTRIBUTING.md) · [SECURITY.md](SECURITY.md) · [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) · [ROADMAP.md](ROADMAP.md) · [docs/rule-authoring.md](docs/rule-authoring.md) · [CHANGELOG.md](CHANGELOG.md)
|
|
246
248
|
- Cite this project with [CITATION.cff](CITATION.cff).
|
|
247
|
-
- Author and maintainer: **Vatsal Shah** ([@shahvatsalofficial](https://github.com/shahvatsalofficial)).
|
|
249
|
+
- Author and maintainer: **[Vatsal Shah](https://shahvatsal.com)** · [shahvatsal.com](https://shahvatsal.com) ([@shahvatsalofficial](https://github.com/shahvatsalofficial)).
|
|
248
250
|
- Found a bug or false positive? [Open an issue](https://github.com/shahvatsalofficial/vigilsutra/issues/new/choose). Found a vulnerability in VigilSutra? Follow [SECURITY.md](SECURITY.md).
|
|
249
251
|
|
|
250
252
|
<sub>Keywords: security scanner, secret scanning, hardcoded secrets detection, SAST, DevSecOps, GitHub Actions security, Docker security, Kubernetes security, Terraform security, SARIF, privacy audit, AI agent security, MCP security, prompt injection, Claude Code skills, offline security tool, open source security audit CLI.</sub>
|
package/dist/cli.js
CHANGED
|
@@ -10,7 +10,7 @@ import { locateGit } from "./git-objects.js";
|
|
|
10
10
|
import { cycloneDx, readComponents } from "./components.js";
|
|
11
11
|
import { applyFixes, planFixes } from "./fix.js";
|
|
12
12
|
import { SEVERITY_ORDER } from "./types.js";
|
|
13
|
-
const HELP = `VigilSutra AI ${VERSION} - offline, read-only security & privacy auditor. Created by Vatsal Shah.
|
|
13
|
+
const HELP = `VigilSutra AI ${VERSION} - offline, read-only security & privacy auditor. Created by Vatsal Shah (https://shahvatsal.com).
|
|
14
14
|
|
|
15
15
|
Usage: vigilsutra <command> [options]
|
|
16
16
|
|
package/dist/engine.js
CHANGED
|
@@ -11,7 +11,7 @@ import { propagateTaint } from "./taint.js";
|
|
|
11
11
|
import { DEFAULT_POLICY, loadPolicy } from "./policy.js";
|
|
12
12
|
import { redactSpan, scrubTokens, tidy } from "./redact.js";
|
|
13
13
|
import { SEVERITY_ORDER } from "./types.js";
|
|
14
|
-
export const VERSION = "0.4.
|
|
14
|
+
export const VERSION = "0.4.2";
|
|
15
15
|
/** Per rule, per file. Keeps one noisy file from producing an unbounded report. */
|
|
16
16
|
export const MAX_PER_RULE_PER_FILE = 200;
|
|
17
17
|
function sha(s) {
|
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# VigilSutra AI
|
|
2
2
|
|
|
3
|
-
> VigilSutra AI (CLI: `vigilsutra`, v0.4.0) is an open-source, offline-first security and privacy auditor for codebases, created by Vatsal Shah. It scans for hardcoded secrets (including git history for SHA-1 and SHA-256 repos), GitHub Actions risks, Docker, Kubernetes and Terraform misconfigurations, JS/TS/Python patterns, a shipped advisory snapshot, and AI-agent/MCP risks, and writes redacted SARIF, JSON, Markdown and HTML reports plus a CycloneDX SBOM. It needs no API key and sends no data anywhere. It ships Agent Skills and file-copy adapters for Claude Code, Cursor, Codex, Gemini CLI, and Copilot. License: Apache-2.0. Repository: https://github.com/shahvatsalofficial/vigilsutra
|
|
3
|
+
> VigilSutra AI (CLI: `vigilsutra`, v0.4.0) is an open-source, offline-first security and privacy auditor for codebases, created by [Vatsal Shah](https://shahvatsal.com). It scans for hardcoded secrets (including git history for SHA-1 and SHA-256 repos), GitHub Actions risks, Docker, Kubernetes and Terraform misconfigurations, JS/TS/Python patterns, a shipped advisory snapshot, and AI-agent/MCP risks, and writes redacted SARIF, JSON, Markdown and HTML reports plus a CycloneDX SBOM. It needs no API key and sends no data anywhere. It ships Agent Skills and file-copy adapters for Claude Code, Cursor, Codex, Gemini CLI, and Copilot. License: Apache-2.0. Repository: https://github.com/shahvatsalofficial/vigilsutra
|
|
4
4
|
|
|
5
5
|
Key facts for assistants:
|
|
6
6
|
- Runs locally on Node.js 20+; no telemetry, no network access, never executes scanned code.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vigilsutra",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.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",
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
"cli"
|
|
27
27
|
],
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
|
-
"author":
|
|
29
|
+
"author": {
|
|
30
|
+
"name": "Vatsal Shah",
|
|
31
|
+
"url": "https://shahvatsal.com"
|
|
32
|
+
},
|
|
30
33
|
"homepage": "https://shahvatsalofficial.github.io/vigilsutra/",
|
|
31
34
|
"repository": {
|
|
32
35
|
"type": "git",
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
"build": "tsc -p tsconfig.json",
|
|
62
65
|
"prepare": "npm run build",
|
|
63
66
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
64
|
-
"test": "npm run build && node --test test/vigilsutra.test.mjs test/offline-runtime.test.mjs test/fuzz.test.mjs",
|
|
67
|
+
"test": "npm run build && node --test test/vigilsutra.test.mjs test/offline-runtime.test.mjs test/fuzz.test.mjs test/site.test.mjs",
|
|
65
68
|
"audit:self": "npm run build && node dist/cli.js audit . --fail-on high",
|
|
66
69
|
"prepublishOnly": "npm test && npm run audit:self"
|
|
67
70
|
},
|
package/docs/index.html
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>VigilSutra AI — offline security audit</title>
|
|
7
|
-
<meta name="description" content="Offline, read-only security and privacy auditor. 42 rules, redacted reports, advisory snapshot, no telemetry. Apache-2.0.">
|
|
8
|
-
<link rel="canonical" href="https://shahvatsalofficial.github.io/vigilsutra/">
|
|
9
|
-
<meta name="color-scheme" content="light dark">
|
|
10
|
-
<meta name="author" content="Vatsal Shah">
|
|
11
|
-
<style>
|
|
12
|
-
:root { color-scheme: light dark; --bg: #f6f4ef; --fg: #1c1915; --muted: #5c564c; --line: #ddd6c8; --card: #fffdf8; }
|
|
13
|
-
@media (prefers-color-scheme: dark) {
|
|
14
|
-
:root { --bg: #16140f; --fg: #f3efe6; --muted: #b7b0a4; --line: #3a342c; --card: #211e18; }
|
|
15
|
-
}
|
|
16
|
-
body { margin: 0; font: 17px/1.5 Georgia, "Iowan Old Style", serif; background: var(--bg); color: var(--fg); }
|
|
17
|
-
header, main { max-width: 760px; margin: 0 auto; padding: 32px 20px; }
|
|
18
|
-
header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); }
|
|
19
|
-
a { color: inherit; }
|
|
20
|
-
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
|
|
21
|
-
.lede { font-size: 19px; }
|
|
22
|
-
.muted { color: var(--muted); }
|
|
23
|
-
ul { padding-left: 1.2em; }
|
|
24
|
-
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
25
|
-
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
|
|
26
|
-
article { border: 1px solid var(--line); background: var(--card); padding: 14px 16px; }
|
|
27
|
-
article h2 { margin: 0 0 6px; font-size: 18px; }
|
|
28
|
-
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }
|
|
29
|
-
footer { max-width: 760px; margin: 0 auto; padding: 8px 20px 40px; color: var(--muted); }
|
|
30
|
-
</style>
|
|
31
|
-
</head>
|
|
32
|
-
<body>
|
|
33
|
-
<header>
|
|
34
|
-
<strong>VigilSutra AI</strong>
|
|
35
|
-
<nav class="muted"><a href="https://github.com/shahvatsalofficial/vigilsutra">GitHub</a> · <a href="https://www.npmjs.com/package/vigilsutra">npm</a></nav>
|
|
36
|
-
</header>
|
|
37
|
-
<main>
|
|
38
|
-
<p class="muted">v0.4.0 · Apache-2.0 · by Vatsal Shah</p>
|
|
39
|
-
<h1>Inspect the repo. Keep the secrets out of the report.</h1>
|
|
40
|
-
<p class="lede">An offline, read-only auditor for source, CI, containers, Kubernetes, Terraform, and AI-agent setup. No account. No telemetry. The CLI never calls the network.</p>
|
|
41
|
-
<p><code>npx vigilsutra@0.4.0 audit .</code></p>
|
|
42
|
-
<p class="muted">That writes <code>vigilsutra-report/report.html</code> and <code>report.md</code>. Open the HTML file in a browser.</p>
|
|
43
|
-
<div class="grid">
|
|
44
|
-
<article>
|
|
45
|
-
<h2>What a scan does</h2>
|
|
46
|
-
<ul>
|
|
47
|
-
<li>42 rules, each with a bad and a clean test.</li>
|
|
48
|
-
<li>Reads git history (SHA-1 or SHA-256) until the time limit, without running <code>git</code>.</li>
|
|
49
|
-
<li>Redacts token-shaped text in text, JSON, Markdown, SARIF, and HTML.</li>
|
|
50
|
-
<li>Leaves an untracked <code>.env</code> unread when a git index exists.</li>
|
|
51
|
-
</ul>
|
|
52
|
-
</article>
|
|
53
|
-
<article>
|
|
54
|
-
<h2>What a scan does not do</h2>
|
|
55
|
-
<ul>
|
|
56
|
-
<li>Advisory matches use a snapshot from 2026-11-07, not a live feed.</li>
|
|
57
|
-
<li>Name tracking stops at object fields, dynamic imports, and function returns.</li>
|
|
58
|
-
<li>No mobile, runtime, or compliance verdict.</li>
|
|
59
|
-
<li>A clean report is not proof the project is secure.</li>
|
|
60
|
-
</ul>
|
|
61
|
-
</article>
|
|
62
|
-
</div>
|
|
63
|
-
<h2>Use it</h2>
|
|
64
|
-
<ul>
|
|
65
|
-
<li><code>vigilsutra audit . --fail-on high</code> for a CI gate.</li>
|
|
66
|
-
<li><code>vigilsutra audit . --since <rev></code> for the files that differ.</li>
|
|
67
|
-
<li><code>vigilsutra sbom .</code> for a CycloneDX file. <code>vigilsutra fix .</code> shows edits; <code>--apply</code> writes them.</li>
|
|
68
|
-
<li><code>vigilsutra init --hook</code> to scan the git index before commit.</li>
|
|
69
|
-
<li><code>vigilsutra adapters install cursor</code> (also claude, codex, gemini, copilot). File copy is tested. The IDE is not.</li>
|
|
70
|
-
</ul>
|
|
71
|
-
<p>Handbook and rule list stay in the repository: <a href="https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/rules.md">docs/rules.md</a>, <a href="https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/quickstart.md">quickstart</a>, <a href="https://github.com/shahvatsalofficial/vigilsutra/blob/main/docs/security-model.md">security model</a>.</p>
|
|
72
|
-
</main>
|
|
73
|
-
<footer>This page is static. It does not load remote scripts, fonts, or images. GitHub Pages serves it after the Pages workflow runs.</footer>
|
|
74
|
-
</body>
|
|
75
|
-
</html>
|