torusguard 2.0.0-alpha → 2.1.0
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/.torusguard/.manifest.json +50 -28
- package/.torusguard/rules/container/TG-CONT-001-root-user-execution.md +50 -0
- package/.torusguard/rules/container/TG-CONT-002-docker-socket-mount.md +47 -0
- package/.torusguard/rules/container/TG-CONT-003-privileged-container-mode.md +53 -0
- package/.torusguard/rules/container/TG-CONT-004-build-arg-secret-exposure.md +43 -0
- package/.torusguard/rules/git/TG-GIT-001-historical-secret-in-git-commit.md +44 -0
- package/.torusguard/rules/git/TG-GIT-002-plaintext-credentials-in-git-config.md +41 -0
- package/.torusguard/rules/git/TG-GIT-003-sensitive-tracked-file-gitignore-breach.md +40 -0
- package/.torusguard/rules/rag/TG-RAG-001-untrusted-rag-context-injection.md +72 -0
- package/.torusguard/rules/rag/TG-RAG-002-autonomous-llm-tool-unsandboxed-call.md +51 -0
- package/.torusguard/rules/rag/TG-RAG-003-unpartitioned-vector-tenant-lookup.md +51 -0
- package/.torusguard/rules/redos/TG-REDOS-001-catastrophic-exponential-backtracking.md +46 -0
- package/.torusguard/rules/redos/TG-REDOS-002-unbounded-nested-quantifier.md +43 -0
- package/.torusguard/rules_catalog.json +96 -0
- package/.torusguard/scripts/__pycache__/manifest_builder.cpython-314.pyc +0 -0
- package/.torusguard/scripts/manifest_builder.py +1 -1
- package/.torusguard/skills/torusguard/SKILL.md +69 -24
- package/.torusguard/skills/torusguard/bootstrap.py +57 -24
- package/.torusguard/skills/torusguard-ai-guard/SKILL.md +95 -0
- package/.torusguard/skills/torusguard-apply/SKILL.md +60 -34
- package/.torusguard/skills/torusguard-audit/SKILL.md +73 -24
- package/.torusguard/skills/torusguard-authorize/SKILL.md +48 -6
- package/.torusguard/skills/torusguard-container/SKILL.md +94 -0
- package/.torusguard/skills/torusguard-exploit-check/SKILL.md +50 -6
- package/.torusguard/skills/torusguard-full/SKILL.md +62 -19
- package/.torusguard/skills/torusguard-git-mine/SKILL.md +92 -0
- package/.torusguard/skills/torusguard-harden/SKILL.md +81 -50
- package/.torusguard/skills/torusguard-init/SKILL.md +61 -14
- package/.torusguard/skills/torusguard-ocr-scan/SKILL.md +94 -0
- package/.torusguard/skills/torusguard-recheck/SKILL.md +71 -18
- package/.torusguard/skills/torusguard-redos/SKILL.md +91 -0
- package/.torusguard/skills/torusguard-report/SKILL.md +50 -9
- package/.torusguard/skills/torusguard-status/SKILL.md +63 -10
- package/.torusguard/skills/torusguard-verify/SKILL.md +52 -10
- package/.torusguard/skills/torusguard-web-validate/SKILL.md +53 -8
- package/.torusguard/workflows/ai-guard.md +31 -0
- package/.torusguard/workflows/apply.md +32 -55
- package/.torusguard/workflows/audit.md +28 -46
- package/.torusguard/workflows/authorize.md +27 -50
- package/.torusguard/workflows/container.md +29 -0
- package/.torusguard/workflows/exploit-check.md +28 -50
- package/.torusguard/workflows/git-mine.md +25 -0
- package/.torusguard/workflows/harden.md +29 -48
- package/.torusguard/workflows/init.md +27 -50
- package/.torusguard/workflows/memory.md +18 -23
- package/.torusguard/workflows/ocr-scan.md +25 -0
- package/.torusguard/workflows/recheck.md +28 -46
- package/.torusguard/workflows/redos.md +27 -0
- package/.torusguard/workflows/report.md +33 -52
- package/.torusguard/workflows/status.md +31 -52
- package/.torusguard/workflows/verify.md +29 -49
- package/.torusguard/workflows/web-validate.md +22 -45
- package/README.md +84 -56
- package/package.json +1 -1
- package/skills/torusguard/SKILL.md +71 -24
- package/skills/torusguard/__pycache__/bootstrap.cpython-314.pyc +0 -0
- package/skills/torusguard/bootstrap.py +60 -71
- package/skills/torusguard/payload/.manifest.json +50 -28
- package/skills/torusguard/payload/rules/container/TG-CONT-001-root-user-execution.md +50 -0
- package/skills/torusguard/payload/rules/container/TG-CONT-002-docker-socket-mount.md +47 -0
- package/skills/torusguard/payload/rules/container/TG-CONT-003-privileged-container-mode.md +53 -0
- package/skills/torusguard/payload/rules/container/TG-CONT-004-build-arg-secret-exposure.md +43 -0
- package/skills/torusguard/payload/rules/git/TG-GIT-001-historical-secret-in-git-commit.md +44 -0
- package/skills/torusguard/payload/rules/git/TG-GIT-002-plaintext-credentials-in-git-config.md +41 -0
- package/skills/torusguard/payload/rules/git/TG-GIT-003-sensitive-tracked-file-gitignore-breach.md +40 -0
- package/skills/torusguard/payload/rules/rag/TG-RAG-001-untrusted-rag-context-injection.md +72 -0
- package/skills/torusguard/payload/rules/rag/TG-RAG-002-autonomous-llm-tool-unsandboxed-call.md +51 -0
- package/skills/torusguard/payload/rules/rag/TG-RAG-003-unpartitioned-vector-tenant-lookup.md +51 -0
- package/skills/torusguard/payload/rules/redos/TG-REDOS-001-catastrophic-exponential-backtracking.md +46 -0
- package/skills/torusguard/payload/rules/redos/TG-REDOS-002-unbounded-nested-quantifier.md +43 -0
- package/skills/torusguard/payload/rules_catalog.json +338 -518
- package/skills/torusguard/payload/scripts/__pycache__/term_ui.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/manifest_builder.py +1 -1
- package/skills/torusguard/payload/skills/torusguard/SKILL.md +69 -24
- package/skills/torusguard/payload/skills/torusguard/bootstrap.py +57 -24
- package/skills/torusguard/payload/skills/torusguard/references/csharp-security.md +41 -41
- package/skills/torusguard/payload/skills/torusguard/references/go-security.md +41 -41
- package/skills/torusguard/payload/skills/torusguard/references/java-security.md +40 -40
- package/skills/torusguard/payload/skills/torusguard/references/polyglot-security-matrix.md +25 -25
- package/skills/torusguard/payload/skills/torusguard/references/rust-security.md +40 -40
- package/skills/torusguard/payload/skills/torusguard-ai-guard/SKILL.md +95 -0
- package/skills/torusguard/payload/skills/torusguard-apply/SKILL.md +60 -34
- package/skills/torusguard/payload/skills/torusguard-audit/SKILL.md +73 -24
- package/skills/torusguard/payload/skills/torusguard-authorize/SKILL.md +48 -6
- package/skills/torusguard/payload/skills/torusguard-container/SKILL.md +94 -0
- package/skills/torusguard/payload/skills/torusguard-exploit-check/SKILL.md +50 -6
- package/skills/torusguard/payload/skills/torusguard-full/SKILL.md +62 -19
- package/skills/torusguard/payload/skills/torusguard-git-mine/SKILL.md +92 -0
- package/skills/torusguard/payload/skills/torusguard-harden/SKILL.md +81 -50
- package/skills/torusguard/payload/skills/torusguard-init/SKILL.md +61 -14
- package/skills/torusguard/payload/skills/torusguard-ocr-scan/SKILL.md +94 -0
- package/skills/torusguard/payload/skills/torusguard-recheck/SKILL.md +71 -18
- package/skills/torusguard/payload/skills/torusguard-redos/SKILL.md +91 -0
- package/skills/torusguard/payload/skills/torusguard-report/SKILL.md +50 -9
- package/skills/torusguard/payload/skills/torusguard-status/SKILL.md +63 -10
- package/skills/torusguard/payload/skills/torusguard-verify/SKILL.md +52 -10
- package/skills/torusguard/payload/skills/torusguard-web-validate/SKILL.md +53 -8
- package/skills/torusguard/payload/workflows/ai-guard.md +31 -0
- package/skills/torusguard/payload/workflows/apply.md +31 -62
- package/skills/torusguard/payload/workflows/audit.md +27 -51
- package/skills/torusguard/payload/workflows/authorize.md +27 -50
- package/skills/torusguard/payload/workflows/container.md +29 -0
- package/skills/torusguard/payload/workflows/exploit-check.md +28 -50
- package/skills/torusguard/payload/workflows/git-mine.md +25 -0
- package/skills/torusguard/payload/workflows/harden.md +28 -52
- package/skills/torusguard/payload/workflows/init.md +27 -56
- package/skills/torusguard/payload/workflows/memory.md +18 -23
- package/skills/torusguard/payload/workflows/ocr-scan.md +25 -0
- package/skills/torusguard/payload/workflows/recheck.md +28 -46
- package/skills/torusguard/payload/workflows/redos.md +27 -0
- package/skills/torusguard/payload/workflows/report.md +39 -62
- package/skills/torusguard/payload/workflows/status.md +31 -55
- package/skills/torusguard/payload/workflows/verify.md +29 -49
- package/skills/torusguard/payload/workflows/web-validate.md +22 -45
- package/skills/torusguard/references/csharp-security.md +41 -0
- package/skills/torusguard/references/go-security.md +41 -0
- package/skills/torusguard/references/java-security.md +40 -0
- package/skills/torusguard/references/polyglot-security-matrix.md +25 -0
- package/skills/torusguard/references/rust-security.md +40 -0
- package/skills/torusguard-ai-guard/SKILL.md +95 -0
- package/skills/torusguard-apply/SKILL.md +60 -34
- package/skills/torusguard-audit/SKILL.md +73 -24
- package/skills/torusguard-authorize/SKILL.md +48 -6
- package/skills/torusguard-container/SKILL.md +94 -0
- package/skills/torusguard-exploit-check/SKILL.md +50 -6
- package/skills/torusguard-full/SKILL.md +62 -19
- package/skills/torusguard-git-mine/SKILL.md +92 -0
- package/skills/torusguard-harden/SKILL.md +81 -50
- package/skills/torusguard-init/SKILL.md +61 -14
- package/skills/torusguard-ocr-scan/SKILL.md +94 -0
- package/skills/torusguard-recheck/SKILL.md +71 -18
- package/skills/torusguard-redos/SKILL.md +91 -0
- package/skills/torusguard-report/SKILL.md +50 -9
- package/skills/torusguard-status/SKILL.md +63 -10
- package/skills/torusguard-verify/SKILL.md +52 -10
- package/skills/torusguard-web-validate/SKILL.md +53 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Governed remediation formulation under strict Ponytail Protocol bounds (<= 35 additions, <= 25 deletions) and bundle packaging.
|
|
3
|
-
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
-
version:
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write, run_command
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
agent: remediator
|
|
6
6
|
lifecycle-phase: Phase 4 (Remediation Formulation)
|
|
7
7
|
required-skills:
|
|
8
8
|
- torusguard-harden
|
|
9
9
|
scripts-binding:
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
10
|
+
- internal/harden/patch.go
|
|
11
|
+
- internal/harden/reflection.go
|
|
12
|
+
- cmd/torusguard/main.go
|
|
13
|
+
- cmd/torusguard/mcp.go
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# /torusguard harden — Governed Remediation & Bundle Packaging
|
|
@@ -20,31 +20,29 @@ $ARGUMENTS
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
22
|
## Objective
|
|
23
|
-
|
|
23
|
+
Formulate minimal, surgical code fixes bound by the Ponytail Protocol ($\le 35$ additions, $\le 25$ deletions), packaging unified diffs or semantic reflection patches into auditable remediation bundles ready for review.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Tri-Mode Execution
|
|
28
|
+
|
|
29
|
+
| Mode | Command / Tool | Execution Method |
|
|
30
|
+
| :--- | :--- | :--- |
|
|
31
|
+
| **Mode A: Terminal CLI** | `torusguard harden <candidate.patch \| patch.json>` | Shell validation of patch against Ponytail bounds. |
|
|
32
|
+
| **Mode B: AI Chat Slash** | `/torusguard harden` | Formulate semantic patch with Line-Level Reflection. |
|
|
33
|
+
| **Mode C: Native MCP Tool** | `torusguard_harden` | Automated validation of patch file or `find_snippet` / `replace_snippet`. |
|
|
24
34
|
|
|
25
35
|
---
|
|
26
36
|
|
|
27
37
|
## Mandatory Pre-Flight Context Inspection
|
|
28
38
|
|
|
29
39
|
Inspect finding targets and patch constraints before generating diffs:
|
|
30
|
-
1. **Target Finding (`
|
|
40
|
+
1. **Target Finding (`security_report.md`):** Identify prioritized verified findings.
|
|
31
41
|
2. **Ponytail Protocol:** Enforce hard limit ($\le 35$ additions, $\le 25$ deletions). Ban rewrites.
|
|
32
|
-
3. **Sensitive Path Review:** Flag changes touching `auth/` or
|
|
42
|
+
3. **Sensitive Path Review:** Flag changes touching `auth/` or credentials for explicit sign-off.
|
|
33
43
|
4. **Behavior Preservation:** Ensure patch addresses flaw without breaking public APIs.
|
|
34
44
|
5. **Dry-Run Rule:** Do NOT apply changes to disk during harden; emit bundle for review.
|
|
35
|
-
6. **
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## When to Use /torusguard harden
|
|
40
|
-
|
|
41
|
-
| Trigger Scenario | Recommended Action |
|
|
42
|
-
| :--- | :--- |
|
|
43
|
-
| Formulating minimal patches for verified findings | Run `/torusguard harden` |
|
|
44
|
-
| Packaging a 4-artifact remediation bundle for review | Run `/torusguard harden` |
|
|
45
|
-
| Writing and applying changes to code files | Run `/torusguard apply` |
|
|
46
|
-
| Differentially re-scanning code after patch application | Run `/torusguard recheck` |
|
|
47
|
-
| Discovering new vulnerabilities | Run `/torusguard audit` |
|
|
45
|
+
6. **Zero Bypasses:** Reject `# nosec`, `verify=False`, or `InsecureSkipVerify` under rule `TG-DIFF-001`.
|
|
48
46
|
|
|
49
47
|
---
|
|
50
48
|
|
|
@@ -52,30 +50,15 @@ Inspect finding targets and patch constraints before generating diffs:
|
|
|
52
50
|
- Candidate patches transition findings in `security_report.md` into `CANDIDATE 🟡` status.
|
|
53
51
|
- Every patch strictly conforms to Ponytail bounds (<= 35 additions, <= 25 deletions).
|
|
54
52
|
|
|
55
|
-
## Execution Steps
|
|
56
|
-
|
|
57
|
-
1. **Select Target Finding:** Choose verified flaw from active run directory.
|
|
58
|
-
2. **Examine Live Code Context:** Read surrounding lines (±15) of vulnerable sink.
|
|
59
|
-
3. **Draft Unified Diff:** Formulate minimal fix adhering to Ponytail Protocol limits.
|
|
60
|
-
4. **Audit Patch Safety:** Run `python .torusguard/scripts/diff_guard.py <patch.diff>`.
|
|
61
|
-
5. **Package 4-Artifact Bundle:** Write `patch.diff`, `plan.md`, `verification.md`, `rollback.md` to `.torusguard/runs/<run_id>/remediation/<finding_id>/`.
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## Failure Recovery
|
|
66
|
-
|
|
67
|
-
- **Line Churn Exceeded (>35 add or >25 del):** Decompose patch into smaller sequential sub-fixes.
|
|
68
|
-
- **Sensitive Path Conflict:** Mark bundle with `Requires Sensitive-Path Sign-Off` in `plan.md`.
|
|
69
|
-
- **Finding Not Found:** Ensure finding ID exists in active `findings.md`.
|
|
70
|
-
- **Halt Trigger:** Abort if target source file cannot be read from disk.
|
|
71
|
-
|
|
72
53
|
---
|
|
73
54
|
|
|
74
|
-
##
|
|
55
|
+
## Execution Steps
|
|
75
56
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
57
|
+
1. **Select Target Finding:** Choose verified flaw from `security_report.md`.
|
|
58
|
+
2. **Examine Live Code Context:** Read surrounding lines ($\pm 3$) using bounded context extraction.
|
|
59
|
+
3. **Formulate Minimal Semantic Patch:** Formulate `find_snippet` and `replace_snippet`.
|
|
60
|
+
4. **Audit Patch Safety:** Run `torusguard harden` or call `torusguard_harden`.
|
|
61
|
+
5. **Package Bundle:** Prepare candidate patch ready for the Human Gate.
|
|
79
62
|
|
|
80
63
|
---
|
|
81
64
|
|
|
@@ -84,10 +67,8 @@ Inspect finding targets and patch constraints before generating diffs:
|
|
|
84
67
|
```markdown
|
|
85
68
|
### 🛠️ TorusGuard Remediation Bundle
|
|
86
69
|
- **Finding Target:** `TG-XXX-HASH` ([Vulnerability Name])
|
|
87
|
-
- **File Affected:** `src/path/to/file
|
|
70
|
+
- **File Affected:** `src/path/to/file`
|
|
88
71
|
- **Line Churn:** +[Additions] / -[Deletions] (Ponytail: PASS)
|
|
89
|
-
- **Sensitive Path:** [Yes (Sign-Off Needed) / No (Standard)]
|
|
90
|
-
- **Bundle Path:** `.torusguard/runs/<run_id>/remediation/<finding_id>/`
|
|
91
72
|
- **Status:** READY FOR REVIEW — run `/torusguard apply` to execute
|
|
92
73
|
```
|
|
93
74
|
|
|
@@ -95,5 +76,5 @@ Inspect finding targets and patch constraints before generating diffs:
|
|
|
95
76
|
|
|
96
77
|
## Next Steps
|
|
97
78
|
|
|
98
|
-
1. Review proposed diff
|
|
99
|
-
2. Run `/torusguard apply`
|
|
79
|
+
1. Review proposed diff or semantic reflection snippet.
|
|
80
|
+
2. Run `/torusguard apply` or `torusguard apply` with Human Gate approval.
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Baseline project discovery, workspace scaffolding, stack detection, and framework-tailored security rule activation.
|
|
3
|
-
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
-
version:
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write, run_command
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
agent: profiler
|
|
6
6
|
lifecycle-phase: Phase 0 (Baseline Setup)
|
|
7
7
|
required-skills:
|
|
8
8
|
- torusguard-init
|
|
9
9
|
scripts-binding:
|
|
10
|
-
-
|
|
11
|
-
-
|
|
10
|
+
- internal/workspace/workspace.go
|
|
11
|
+
- cmd/torusguard/main.go
|
|
12
|
+
- cmd/torusguard/mcp.go
|
|
12
13
|
---
|
|
13
14
|
|
|
14
15
|
# /torusguard init — Project Baseline & Workspace Initialization
|
|
@@ -18,65 +19,42 @@ $ARGUMENTS
|
|
|
18
19
|
---
|
|
19
20
|
|
|
20
21
|
## Objective
|
|
21
|
-
Baseline project discovery, workspace scaffolding
|
|
22
|
+
Baseline project discovery, workspace scaffolding across polyglot stacks, and activation of 74 canonical security rules across 18 families.
|
|
22
23
|
|
|
23
24
|
---
|
|
24
25
|
|
|
25
|
-
##
|
|
26
|
+
## Tri-Mode Execution
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
5. **Runtime Preconditions:** Ensure Python 3.10+ is available in the current execution shell.
|
|
28
|
+
| Mode | Command / Tool | Execution Method |
|
|
29
|
+
| :--- | :--- | :--- |
|
|
30
|
+
| **Mode A: Terminal CLI** | `torusguard init [--force] [--stack <name>]` | Terminal execution of workspace scaffolder. |
|
|
31
|
+
| **Mode B: AI Chat Slash** | `/torusguard init` | Conversational stack profiling and rule activation. |
|
|
32
|
+
| **Mode C: Native MCP Tool** | Administrative Command | Agents execute `torusguard init` via shell and monitor via `torusguard_status`. |
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
36
|
-
##
|
|
36
|
+
## Mandatory Pre-Flight Context Inspection
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
| Repository already configured | Run `/torusguard audit` |
|
|
43
|
-
| Inspecting existing configuration | Run `/torusguard status` |
|
|
44
|
-
| Testing legal boundaries | Run `/torusguard authorize` |
|
|
38
|
+
Inspect workspace state before running initialization:
|
|
39
|
+
1. **Config State (`.torusguard/config/torusguard.json`):** Check if workspace is already initialized.
|
|
40
|
+
2. **Project Manifests:** Check root for `package.json`, `go.mod`, `Cargo.toml`, `requirements.txt`, `pyproject.toml`.
|
|
41
|
+
3. **Disclosure Policy (`SECURITY.md`):** Check for existing responsible disclosure policy.
|
|
45
42
|
|
|
46
43
|
---
|
|
47
44
|
|
|
48
45
|
## Living Report Invariant
|
|
49
|
-
- Provisions baseline `
|
|
46
|
+
- Provisions baseline `SECURITY.md` responsible disclosure policy.
|
|
50
47
|
- Activates tailored rules across 18 families based on detected stack.
|
|
51
48
|
|
|
52
|
-
## Execution Steps
|
|
53
|
-
|
|
54
|
-
1. **Scaffold Directory Topology:** Verify `.torusguard/` structure (`config/`, `rules/active/`, `runs/`, `scripts/`, `workflows/`, `templates/`, `schemas/`).
|
|
55
|
-
2. **Execute Stack Detection:**
|
|
56
|
-
```bash
|
|
57
|
-
python .torusguard/scripts/stack_detect.py .
|
|
58
|
-
```
|
|
59
|
-
3. **Activate Tailored Rules:** Symlink or copy matching security rules from `.torusguard/rules/` into `.torusguard/rules/active/`.
|
|
60
|
-
4. **Write Configuration (`.torusguard/config/torusguard.json`):**
|
|
61
|
-
Record detected stack, enabled rules count, timestamp, and runtime constraints.
|
|
62
|
-
5. **Verify Initialization:** Assert `.torusguard/config/torusguard.json` and `.torusguard/config/scope.json` exist.
|
|
63
|
-
|
|
64
49
|
---
|
|
65
50
|
|
|
66
|
-
##
|
|
67
|
-
|
|
68
|
-
- **Script Exit 1 (Detection Failed):** Check Python version (`python --version` >= 3.10) and verify read access to root manifests.
|
|
69
|
-
- **Permission Error:** Verify write permissions for `.torusguard/config/` and `.torusguard/rules/active/`.
|
|
70
|
-
- **Missing Directories:** Re-run directory scaffolding if any subfolder creation fails.
|
|
71
|
-
- **Halt Condition:** If root directory is empty, halt and prompt user to open the project root.
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## Hallucination Guard
|
|
51
|
+
## Execution Steps
|
|
76
52
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
53
|
+
1. **Scaffold Directory Topology:** Create `.torusguard/` structure (`config/`, `rules/active/`, `runs/`, `snapshots/`, `memory/`).
|
|
54
|
+
2. **Detect Stack:** Automatically identify frameworks across 16+ polyglot languages.
|
|
55
|
+
3. **Persist Configuration:** Write `.torusguard/config/torusguard.json`.
|
|
56
|
+
4. **Provision Policy:** Generate baseline `SECURITY.md` at workspace root.
|
|
57
|
+
5. **Recommend Audit:** Direct user to `/torusguard audit` or `torusguard audit`.
|
|
80
58
|
|
|
81
59
|
---
|
|
82
60
|
|
|
@@ -84,11 +62,10 @@ Inspect workspace state before running initialization:
|
|
|
84
62
|
|
|
85
63
|
```markdown
|
|
86
64
|
### 🛡️ TorusGuard Workspace Initialization
|
|
87
|
-
- **Primary Framework:** [Detected Stack
|
|
88
|
-
- **
|
|
89
|
-
- **Active Rules:** [Count] rules enabled in `.torusguard/rules/active/`
|
|
65
|
+
- **Primary Framework:** [Detected Stack]
|
|
66
|
+
- **Active Rules:** 74 rules enabled across 18 families
|
|
90
67
|
- **Config:** `.torusguard/config/torusguard.json` generated
|
|
91
|
-
- **
|
|
68
|
+
- **Policy:** `SECURITY.md` provisioned
|
|
92
69
|
- **Status:** READY — run `/torusguard audit` to scan codebase
|
|
93
70
|
```
|
|
94
71
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: TorusGuard Adaptive Security Memory Engine — view memory stats, export/import intelligence, apply TTL decay, and manage false positives.
|
|
3
|
-
tools: Read, Grep, Glob, Bash
|
|
4
|
-
version:
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write, run_command
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
agent: reviewer
|
|
6
6
|
lifecycle-phase: Intelligence / Memory
|
|
7
7
|
required-skills:
|
|
8
8
|
- torusguard
|
|
9
9
|
scripts-binding:
|
|
10
|
-
-
|
|
11
|
-
-
|
|
10
|
+
- internal/memory/recipes.go
|
|
11
|
+
- cmd/torusguard/main.go
|
|
12
|
+
- cmd/torusguard/mcp.go
|
|
12
13
|
---
|
|
13
14
|
|
|
14
15
|
# /torusguard memory — Adaptive Security Memory Engine & Intelligence Management
|
|
@@ -18,37 +19,31 @@ $ARGUMENTS
|
|
|
18
19
|
---
|
|
19
20
|
|
|
20
21
|
## Objective
|
|
21
|
-
Inspect, manage, export, import, or compact persistent local security memory patterns, context window cards, and
|
|
22
|
+
Inspect, manage, export, import, or compact persistent local security memory patterns, context window cards, and Golden Fix Recipes.
|
|
22
23
|
|
|
23
24
|
---
|
|
24
25
|
|
|
25
|
-
##
|
|
26
|
+
## Tri-Mode Execution
|
|
26
27
|
|
|
27
|
-
|
|
|
28
|
+
| Mode | Command / Tool | Execution Method |
|
|
28
29
|
| :--- | :--- | :--- |
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
| `npx torusguard memory decay [--ttl 90]` | TTL Decay | Apply confidence decay to stale, unconfirmed patterns |
|
|
33
|
-
| `npx torusguard memory export --path <FILE>` | Export | Export memory bundle for team sharing |
|
|
34
|
-
| `npx torusguard memory import --path <FILE>` | Import | Merge external memory bundle into local project intelligence |
|
|
35
|
-
| `npx torusguard memory compact` | Compaction | Archive raw events older than 30 days into single archive |
|
|
30
|
+
| **Mode A: Terminal CLI** | `torusguard recipes [list \| show \| export]` | Terminal management of Golden Fix Recipes. |
|
|
31
|
+
| **Mode B: AI Chat Slash** | `/torusguard recipes` | Interactive exploration of verified remediation patterns. |
|
|
32
|
+
| **Mode C: Native MCP Tool** | `torusguard://rules_catalog` | Programmatic access to catalog rules and distilled patterns. |
|
|
36
33
|
|
|
37
34
|
---
|
|
38
35
|
|
|
39
|
-
##
|
|
36
|
+
## Subcommands & Usage
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
3. **Verify Context Token Budget:** Confirm `context.json` remains within token budget ($\le 2,000$ tokens).
|
|
47
|
-
4. **Display Intelligence Card:** Render summary card to user.
|
|
38
|
+
| Command | Action | Description |
|
|
39
|
+
| :--- | :--- | :--- |
|
|
40
|
+
| `torusguard recipes` | List | Display Golden Fix recipes library |
|
|
41
|
+
| `torusguard recipes list` | Catalog | Enumerate verified fix patterns |
|
|
42
|
+
| `torusguard recipes export` | Export | Export memory bundle for team sharing |
|
|
48
43
|
|
|
49
44
|
---
|
|
50
45
|
|
|
51
46
|
## Privacy & Security Invariants
|
|
52
47
|
- Memory files remain strictly local under `.torusguard/memory/` and are always gitignored.
|
|
53
|
-
- Memory files are never packaged into
|
|
48
|
+
- Memory files are never packaged into release tarballs.
|
|
54
49
|
- Export operations only occur when explicitly invoked by user command.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# /torusguard-ocr-scan — Multi-Modal OCR Secret Scanning
|
|
2
|
+
|
|
3
|
+
$ARGUMENTS
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Objective
|
|
8
|
+
Detect optical leaks of private API keys, AWS credentials, database URIs, GitHub personal access tokens, and private certificates embedded inside visual artifacts (`.png`, `.jpg`, `.jpeg`, `.webp`, `.bmp`, `.tiff`) up to 10MB using Tesseract OCR and deterministic regex signatures.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Tri-Mode Parity
|
|
13
|
+
- **Mode A (Terminal CLI):** `torusguard ocr-scan <target>`
|
|
14
|
+
- **Mode B (AI Chat Slash Command):** `/torusguard ocr-scan <target>`
|
|
15
|
+
- **Mode C (Native MCP Tool):** `torusguard_ocr_scan`
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Execution Steps
|
|
20
|
+
|
|
21
|
+
1. **Verify Target:** Check target image or directory exists on disk.
|
|
22
|
+
2. **Inspect File Size:** Reject images exceeding 10MB (`DefaultMaxImageSize`) to preserve DoS resilience.
|
|
23
|
+
3. **Execute OCR Extraction:** Run Tesseract optical text analysis via Go scanner or MCP tool.
|
|
24
|
+
4. **Pattern Match Secrets:** Evaluate optical text against `TG-SEC-001` through `TG-SEC-007` signatures.
|
|
25
|
+
5. **Redact & Report:** Emit sanitized finding cards and synchronize into `security_report.md`.
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Targeted differential AST re-scan, fix closure verification, and regression state machine transitions.
|
|
3
|
-
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
-
version:
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write, run_command
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
agent: reviewer
|
|
6
6
|
lifecycle-phase: Phase 6 (Targeted Recheck & Verification)
|
|
7
7
|
required-skills:
|
|
8
8
|
- torusguard-recheck
|
|
9
9
|
scripts-binding:
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
- .torusguard/scripts/finding_scorer.py
|
|
10
|
+
- internal/recheck/recheck.go
|
|
11
|
+
- cmd/torusguard/main.go
|
|
12
|
+
- cmd/torusguard/mcp.go
|
|
14
13
|
---
|
|
15
14
|
|
|
16
15
|
# /torusguard recheck — Targeted Differential Recheck & Regression Audit
|
|
@@ -20,31 +19,28 @@ $ARGUMENTS
|
|
|
20
19
|
---
|
|
21
20
|
|
|
22
21
|
## Objective
|
|
23
|
-
Targeted differential AST re-scan, fix closure verification, and regression state transitions.
|
|
22
|
+
Targeted differential AST re-scan, fix closure verification, and regression state machine transitions across modified files.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Tri-Mode Execution
|
|
27
|
+
|
|
28
|
+
| Mode | Command / Tool | Execution Method |
|
|
29
|
+
| :--- | :--- | :--- |
|
|
30
|
+
| **Mode A: Terminal CLI** | `torusguard recheck` | Terminal execution of differential AST scanner. |
|
|
31
|
+
| **Mode B: AI Chat Slash** | `/torusguard recheck` | Conversational differential review and regression verification. |
|
|
32
|
+
| **Mode C: Native MCP Tool** | `torusguard_recheck` | Agent tool call with `{"target": "."}` returning diff assertions. |
|
|
24
33
|
|
|
25
34
|
---
|
|
26
35
|
|
|
27
36
|
## Mandatory Pre-Flight Context Inspection
|
|
28
37
|
|
|
29
38
|
Inspect applied patch history and target file scope before re-checking:
|
|
30
|
-
1. **Applied Patch Record:**
|
|
39
|
+
1. **Applied Patch Record:** Inspect git status or diff for modified files.
|
|
31
40
|
2. **Scope Limitation:** Restrict differential scan strictly to modified files to conserve token budget.
|
|
32
|
-
3. **Rollback Availability:** Confirm `.bak` snapshot exists in
|
|
41
|
+
3. **Rollback Availability:** Confirm `.bak` snapshot exists in `.torusguard/snapshots/` in case regression is detected.
|
|
33
42
|
4. **4-State Transition Engine:** Prepare to transition findings to `Fixed`, `Partially Fixed`, `Not Fixed`, or `Regression`.
|
|
34
43
|
5. **Fresh Syntax Validation:** Ensure no compiler or syntax errors exist before re-evaluating rules.
|
|
35
|
-
6. **AST Consistency:** Ensure imported dependencies on modified lines resolve correctly.
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## When to Use /torusguard recheck
|
|
40
|
-
|
|
41
|
-
| Trigger Scenario | Recommended Action |
|
|
42
|
-
| :--- | :--- |
|
|
43
|
-
| Immediately after applying a remediation patch | Run `/torusguard recheck` |
|
|
44
|
-
| Verifying that a specific finding is eliminated | Run `/torusguard recheck` |
|
|
45
|
-
| Checking whether a patch introduced new security flaws | Run `/torusguard recheck` |
|
|
46
|
-
| Whole repository baseline audit | Run `/torusguard audit` |
|
|
47
|
-
| Generating final signed release report | Run `/torusguard report` |
|
|
48
44
|
|
|
49
45
|
---
|
|
50
46
|
|
|
@@ -52,32 +48,19 @@ Inspect applied patch history and target file scope before re-checking:
|
|
|
52
48
|
- Verified fix closures transition findings in `security_report.md` to `RESOLVED 🟢`.
|
|
53
49
|
- Regressions transition findings to `REGRESSED ❌`.
|
|
54
50
|
|
|
55
|
-
## Execution Steps
|
|
56
|
-
|
|
57
|
-
1. **Identify Modified Files:** Extract list of altered files from latest apply step.
|
|
58
|
-
2. **Execute Differential AST Scan:** Re-run active security rules exclusively against modified files.
|
|
59
|
-
3. **Evaluate Finding Status:**
|
|
60
|
-
- If original vulnerable AST pattern is absent and no new sink appears: transition to `Fixed`.
|
|
61
|
-
- If new security rule triggers on altered lines: classify as `Regression`.
|
|
62
|
-
4. **Update Finding State:** Record verified resolution status into `findings.json`.
|
|
63
|
-
5. **Emit Recheck Report:** Write `recheck-report.md` into the active run folder.
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Failure Recovery
|
|
68
|
-
|
|
69
|
-
- **Finding Still Present (`Not Fixed`):** Review patch diff; the remediation did not neutralize the AST sink.
|
|
70
|
-
- **New Vulnerability Detected (`Regression`):** Alert operator; prompt to revert from `.bak` snapshot.
|
|
71
|
-
- **File Not Found:** Verify file path matches git repository layout.
|
|
72
|
-
- **Halt Trigger:** Abort if diff shows changes outside approved patch scope.
|
|
73
|
-
|
|
74
51
|
---
|
|
75
52
|
|
|
76
|
-
##
|
|
53
|
+
## Execution Steps
|
|
77
54
|
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
55
|
+
1. **Trigger Recheck:**
|
|
56
|
+
- **Mode A (CLI):** Run `torusguard recheck`.
|
|
57
|
+
- **Mode B (Chat):** Review modified files and re-scan AST sinks.
|
|
58
|
+
- **Mode C (MCP):** Call `torusguard_recheck`.
|
|
59
|
+
2. **Evaluate Finding Status:**
|
|
60
|
+
- If original vulnerable pattern is absent and no new sink appears: transition to `✔ [Confirmed Fixed]`.
|
|
61
|
+
- If new security rule triggers on altered lines: classify as `✖ [Regressed]`.
|
|
62
|
+
3. **Update Finding State:** Update `security_report.md`.
|
|
63
|
+
4. **Recommend Posture Report:** Advise running `torusguard report --html`.
|
|
81
64
|
|
|
82
65
|
---
|
|
83
66
|
|
|
@@ -89,7 +72,6 @@ Inspect applied patch history and target file scope before re-checking:
|
|
|
89
72
|
- **Target Finding:** `TG-XXX-HASH`
|
|
90
73
|
- **Result:** [FIXED / REGRESSION / PARTIAL]
|
|
91
74
|
- **Regressions Introduced:** 0
|
|
92
|
-
- **Report:** `.torusguard/runs/<run_id>/recheck-report.md`
|
|
93
75
|
- **Status:** VERIFIED — ready for `/torusguard report`
|
|
94
76
|
```
|
|
95
77
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# /torusguard-redos — Regular Expression Complexity Scanner
|
|
2
|
+
|
|
3
|
+
$ARGUMENTS
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Objective
|
|
8
|
+
Detect and remediate catastrophic exponential ($O(2^n)$) and polynomial backtracking regular expressions in web applications to prevent availability and thread starvation DoS attacks.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Tri-Mode Parity
|
|
13
|
+
- **Mode A (Terminal CLI):** `torusguard redos [target]`
|
|
14
|
+
- **Mode B (AI Chat Slash Command):** `/torusguard redos [target]`
|
|
15
|
+
- **Mode C (Native MCP Tool):** `torusguard_redos`
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Execution Steps
|
|
20
|
+
|
|
21
|
+
1. **Locate Regex Definitions:** Walk source tree to find regex literals and constructor calls (`RegExp`, `re.compile`, `regexp.MustCompile`).
|
|
22
|
+
2. **Analyze Backtracking Complexity:**
|
|
23
|
+
- Detect nested quantifiers (`(x+)+`, `(x*)*`) causing $O(2^n)$ exponential blowup (`TG-REDOS-001`).
|
|
24
|
+
- Detect overlapping alternations with outer repetition causing polynomial blowup (`TG-REDOS-002`).
|
|
25
|
+
3. **Audit Input Length Guardrails:** Check if untrusted inputs evaluated against regexes are bounded in character length.
|
|
26
|
+
4. **Formulate Safe Remediation:** Refactor vulnerable regexes into linear deterministic expressions, anchor tokens, or parser logic.
|
|
27
|
+
5. **Synchronize Report:** Log all ReDoS findings in `security_report.md`.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Executive posture reporting, cluster analysis, signed compliance audit, and OASIS SARIF v2.1.0 structured export.
|
|
3
|
-
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
-
version:
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write, run_command
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
agent: reviewer
|
|
6
6
|
lifecycle-phase: Phase 7 (Reporting & SARIF Export)
|
|
7
7
|
required-skills:
|
|
8
8
|
- torusguard-report
|
|
9
9
|
scripts-binding:
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
10
|
+
- internal/report/html.go
|
|
11
|
+
- internal/report/sarif.go
|
|
12
|
+
- cmd/torusguard/main.go
|
|
13
|
+
- cmd/torusguard/mcp.go
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
# /torusguard report — Unified Security Posture Report & SARIF Export
|
|
@@ -20,30 +20,28 @@ $ARGUMENTS
|
|
|
20
20
|
---
|
|
21
21
|
|
|
22
22
|
## Objective
|
|
23
|
-
Executive posture reporting, cluster analysis, signed compliance audit, and SARIF v2.1.0 export.
|
|
23
|
+
Executive posture reporting, cluster analysis, signed compliance audit, and OASIS SARIF v2.1.0 export.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Tri-Mode Execution
|
|
28
|
+
|
|
29
|
+
| Mode | Command / Tool | Execution Method |
|
|
30
|
+
| :--- | :--- | :--- |
|
|
31
|
+
| **Mode A: Terminal CLI** | `torusguard report --html [--sarif]` | Shell compilation of HTML dashboard and SARIF log. |
|
|
32
|
+
| **Mode B: AI Chat Slash** | `/torusguard report` | Executive summary generation and posture calculation. |
|
|
33
|
+
| **Mode C: Native MCP Tool** | `torusguard://security_report` | Agent reads resource payload directly from living report. |
|
|
24
34
|
|
|
25
35
|
---
|
|
26
36
|
|
|
27
37
|
## Mandatory Pre-Flight Context Inspection
|
|
28
38
|
|
|
29
39
|
Inspect run records and reporting parameters before generating release artifacts:
|
|
30
|
-
1. **
|
|
40
|
+
1. **Living Report State:** Ensure `security_report.md` exists and reflects latest findings.
|
|
31
41
|
2. **SARIF v2.1.0 Schema:** Validate output structure against official OASIS SARIF standard.
|
|
32
42
|
3. **Multi-Analysis Category:** Tag static findings under category `torusguard/static` to prevent CI collision.
|
|
33
43
|
4. **Secret Masking:** Ensure zero unredacted authorization tokens or API keys appear in report.
|
|
34
|
-
5. **
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## When to Use /torusguard report
|
|
39
|
-
|
|
40
|
-
| Trigger Scenario | Recommended Action |
|
|
41
|
-
| :--- | :--- |
|
|
42
|
-
| Concluding a security review cycle or audit milestone | Run `/torusguard report` |
|
|
43
|
-
| Exporting SARIF v2.1.0 logs for GitHub Code Scanning | Run `/torusguard report` |
|
|
44
|
-
| Sharing executive posture summaries with stakeholders | Run `/torusguard report` |
|
|
45
|
-
| Applying code modifications | Run `/torusguard apply` |
|
|
46
|
-
| Re-checking modified files | Run `/torusguard recheck` |
|
|
44
|
+
5. **Zero-CDN Guarantee:** Ensure HTML report contains zero external CDN script dependencies.
|
|
47
45
|
|
|
48
46
|
---
|
|
49
47
|
|
|
@@ -51,33 +49,17 @@ Inspect run records and reporting parameters before generating release artifacts
|
|
|
51
49
|
- Executive posture reports incorporate health scoring and metrics from `security_report.md`.
|
|
52
50
|
- Emits visual dark-mode HTML (`--html`) and OASIS SARIF v2.1.0 (`--sarif`).
|
|
53
51
|
|
|
54
|
-
## Execution Steps
|
|
55
|
-
|
|
56
|
-
1. **Aggregate Lifecycle Data:** Load all finding cards, verification traces, and recheck logs.
|
|
57
|
-
2. **Export OASIS SARIF v2.1.0:**
|
|
58
|
-
```bash
|
|
59
|
-
python .torusguard/scripts/sarif_exporter.py --run <run_dir> --output <run_dir>/results.sarif
|
|
60
|
-
```
|
|
61
|
-
3. **Compile Executive Markdown Report:** Generate `report.md` with executive summary, posture score, and metrics.
|
|
62
|
-
4. **Sign Off Run Manifest:** Update `.torusguard/runs/<run_id>/manifest.json` with final status counts.
|
|
63
|
-
5. **Archive Results:** Confirm artifacts (`report.md`, `results.sarif`, `summary.md`) are saved on disk.
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## Failure Recovery
|
|
68
|
-
|
|
69
|
-
- **SARIF Schema Error:** Re-run `sarif_exporter.py` with schema validation flag to locate invalid properties.
|
|
70
|
-
- **Empty Findings List:** Emit valid clean report indicating zero security vulnerabilities detected.
|
|
71
|
-
- **Missing Run Folder:** Point script to latest valid timestamped run in `.torusguard/runs/`.
|
|
72
|
-
- **Halt Trigger:** Abort if unredacted private secrets are detected in output text.
|
|
73
|
-
|
|
74
52
|
---
|
|
75
53
|
|
|
76
|
-
##
|
|
54
|
+
## Execution Steps
|
|
77
55
|
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
56
|
+
1. **Trigger Report Generation:**
|
|
57
|
+
- **Mode A (CLI):** Run `torusguard report --html --sarif`.
|
|
58
|
+
- **Mode B (Chat):** Calculate posture score from `security_report.md` and present summary card.
|
|
59
|
+
- **Mode C (MCP):** Query resource `torusguard://security_report`.
|
|
60
|
+
2. **Compile Visual HTML:** Generate zero-dependency dark-mode HTML dashboard at `report.html`.
|
|
61
|
+
3. **Export SARIF v2.1.0:** Produce schema-compliant SARIF log for CI/CD pipelines.
|
|
62
|
+
4. **Sign Off Ledger:** Confirm artifacts are persisted to disk.
|
|
81
63
|
|
|
82
64
|
---
|
|
83
65
|
|
|
@@ -85,12 +67,11 @@ Inspect run records and reporting parameters before generating release artifacts
|
|
|
85
67
|
|
|
86
68
|
```markdown
|
|
87
69
|
### 📊 TorusGuard Security Posture Report
|
|
88
|
-
- **
|
|
89
|
-
- **Total
|
|
90
|
-
- **
|
|
91
|
-
- **SARIF v2.1.0 Export:**
|
|
92
|
-
- **
|
|
93
|
-
- **Status:** COMPLETE — report published
|
|
70
|
+
- **Posture Score:** 100/100 (OPTIMAL DEFENSE)
|
|
71
|
+
- **Total Invariants:** 74 Defended across 18 families
|
|
72
|
+
- **HTML Dashboard:** `report.html`
|
|
73
|
+
- **SARIF v2.1.0 Export:** `results.sarif`
|
|
74
|
+
- **Living Ledger:** `security_report.md`
|
|
94
75
|
```
|
|
95
76
|
|
|
96
77
|
---
|
|
@@ -98,4 +79,4 @@ Inspect run records and reporting parameters before generating release artifacts
|
|
|
98
79
|
## Next Steps
|
|
99
80
|
|
|
100
81
|
1. Upload `results.sarif` to GitHub Code Scanning via `.github/workflows/`.
|
|
101
|
-
2.
|
|
82
|
+
2. Open `report.html` in browser for visual audit presentation.
|