vigilsutra 0.4.1 → 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 +4 -0
- package/README.md +2 -0
- package/dist/engine.js +1 -1
- package/package.json +2 -2
- package/docs/index.html +0 -76
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
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
|
+
|
|
3
7
|
## 0.4.1 - 2026-11-16
|
|
4
8
|
|
|
5
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.
|
package/README.md
CHANGED
|
@@ -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
|
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/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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"build": "tsc -p tsconfig.json",
|
|
65
65
|
"prepare": "npm run build",
|
|
66
66
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
67
|
-
"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",
|
|
68
68
|
"audit:self": "npm run build && node dist/cli.js audit . --fail-on high",
|
|
69
69
|
"prepublishOnly": "npm test && npm run audit:self"
|
|
70
70
|
},
|
package/docs/index.html
DELETED
|
@@ -1,76 +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
|
-
<script type="application/ld+json">{"@context":"https://schema.org","@type":"SoftwareSourceCode","name":"VigilSutra AI","codeRepository":"https://github.com/shahvatsalofficial/vigilsutra","license":"https://www.apache.org/licenses/LICENSE-2.0","version":"0.4.0","author":{"@type":"Person","name":"Vatsal Shah","url":"https://shahvatsal.com"},"url":"https://shahvatsalofficial.github.io/vigilsutra/"}</script>
|
|
12
|
-
<style>
|
|
13
|
-
:root { color-scheme: light dark; --bg: #f6f4ef; --fg: #1c1915; --muted: #5c564c; --line: #ddd6c8; --card: #fffdf8; }
|
|
14
|
-
@media (prefers-color-scheme: dark) {
|
|
15
|
-
:root { --bg: #16140f; --fg: #f3efe6; --muted: #b7b0a4; --line: #3a342c; --card: #211e18; }
|
|
16
|
-
}
|
|
17
|
-
body { margin: 0; font: 17px/1.5 Georgia, "Iowan Old Style", serif; background: var(--bg); color: var(--fg); }
|
|
18
|
-
header, main { max-width: 760px; margin: 0 auto; padding: 32px 20px; }
|
|
19
|
-
header { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); }
|
|
20
|
-
a { color: inherit; }
|
|
21
|
-
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
|
|
22
|
-
.lede { font-size: 19px; }
|
|
23
|
-
.muted { color: var(--muted); }
|
|
24
|
-
ul { padding-left: 1.2em; }
|
|
25
|
-
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
|
26
|
-
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
|
|
27
|
-
article { border: 1px solid var(--line); background: var(--card); padding: 14px 16px; }
|
|
28
|
-
article h2 { margin: 0 0 6px; font-size: 18px; }
|
|
29
|
-
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; }
|
|
30
|
-
footer { max-width: 760px; margin: 0 auto; padding: 8px 20px 40px; color: var(--muted); }
|
|
31
|
-
</style>
|
|
32
|
-
</head>
|
|
33
|
-
<body>
|
|
34
|
-
<header>
|
|
35
|
-
<strong>VigilSutra AI</strong>
|
|
36
|
-
<nav class="muted"><a href="https://shahvatsal.com" rel="noopener">shahvatsal.com</a> · <a href="https://github.com/shahvatsalofficial/vigilsutra">GitHub</a> · <a href="https://www.npmjs.com/package/vigilsutra">npm</a></nav>
|
|
37
|
-
</header>
|
|
38
|
-
<main>
|
|
39
|
-
<p class="muted">v0.4.0 · Apache-2.0 · by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a></p>
|
|
40
|
-
<h1>Inspect the repo. Keep the secrets out of the report.</h1>
|
|
41
|
-
<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>
|
|
42
|
-
<p><code>npx vigilsutra@0.4.0 audit .</code></p>
|
|
43
|
-
<p class="muted">That writes <code>vigilsutra-report/report.html</code> and <code>report.md</code>. Open the HTML file in a browser.</p>
|
|
44
|
-
<div class="grid">
|
|
45
|
-
<article>
|
|
46
|
-
<h2>What a scan does</h2>
|
|
47
|
-
<ul>
|
|
48
|
-
<li>42 rules, each with a bad and a clean test.</li>
|
|
49
|
-
<li>Reads git history (SHA-1 or SHA-256) until the time limit, without running <code>git</code>.</li>
|
|
50
|
-
<li>Redacts token-shaped text in text, JSON, Markdown, SARIF, and HTML.</li>
|
|
51
|
-
<li>Leaves an untracked <code>.env</code> unread when a git index exists.</li>
|
|
52
|
-
</ul>
|
|
53
|
-
</article>
|
|
54
|
-
<article>
|
|
55
|
-
<h2>What a scan does not do</h2>
|
|
56
|
-
<ul>
|
|
57
|
-
<li>Advisory matches use a snapshot from 2026-11-07, not a live feed.</li>
|
|
58
|
-
<li>Name tracking stops at object fields, dynamic imports, and function returns.</li>
|
|
59
|
-
<li>No mobile, runtime, or compliance verdict.</li>
|
|
60
|
-
<li>A clean report is not proof the project is secure.</li>
|
|
61
|
-
</ul>
|
|
62
|
-
</article>
|
|
63
|
-
</div>
|
|
64
|
-
<h2>Use it</h2>
|
|
65
|
-
<ul>
|
|
66
|
-
<li><code>vigilsutra audit . --fail-on high</code> for a CI gate.</li>
|
|
67
|
-
<li><code>vigilsutra audit . --since <rev></code> for the files that differ.</li>
|
|
68
|
-
<li><code>vigilsutra sbom .</code> for a CycloneDX file. <code>vigilsutra fix .</code> shows edits; <code>--apply</code> writes them.</li>
|
|
69
|
-
<li><code>vigilsutra init --hook</code> to scan the git index before commit.</li>
|
|
70
|
-
<li><code>vigilsutra adapters install cursor</code> (also claude, codex, gemini, copilot). File copy is tested. The IDE is not.</li>
|
|
71
|
-
</ul>
|
|
72
|
-
<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>
|
|
73
|
-
</main>
|
|
74
|
-
<footer>Created by <a href="https://shahvatsal.com" rel="noopener">Vatsal Shah</a> · <a href="https://shahvatsal.com" rel="noopener">shahvatsal.com</a>. This page is static. It does not load remote scripts, fonts, or images.</footer>
|
|
75
|
-
</body>
|
|
76
|
-
</html>
|