torusguard 1.3.6 โ 1.4.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 +9 -8
- package/.torusguard/runs/report-latest.html +3529 -364
- package/.torusguard/runs/run-20260918-105940-audit/manifest.json +2 -1
- package/.torusguard/runs/run-20260918-105940-audit/remediation.md +7 -0
- package/.torusguard/runs/run-20260919-145701-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260919-145701-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260919-145701-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260919-145701-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260919-151729-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260919-151729-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260919-151729-audit/manifest.json +13 -0
- package/.torusguard/runs/run-20260919-151729-audit/remediation.md +7 -0
- package/.torusguard/runs/run-20260919-151729-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260919-152340-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260919-152340-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260919-152340-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260919-152340-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260919-152345-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260919-152345-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260919-152345-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260919-152345-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260919-153500-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260919-153500-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260919-153500-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260919-153500-audit/summary.md +5 -0
- package/.torusguard/scripts/__pycache__/apply_runner.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/audit_runner.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/harden_runner.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/html_reporter.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/manifest_builder.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/recipes_runner.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/report_sync.cpython-314.pyc +0 -0
- package/.torusguard/scripts/apply_runner.py +101 -8
- package/.torusguard/scripts/audit_runner.py +116 -11
- package/.torusguard/scripts/harden_runner.py +122 -68
- package/.torusguard/scripts/html_reporter.py +1170 -253
- package/.torusguard/scripts/manifest_builder.py +2 -0
- package/.torusguard/scripts/recheck_runner.py +2 -1
- package/.torusguard/scripts/recipes_runner.py +91 -8
- package/.torusguard/scripts/report_sync.py +134 -7
- package/.torusguard/scripts/status_runner.py +267 -0
- package/README.md +108 -80
- package/bin/torusguard.js +190 -20
- package/package.json +6 -2
- package/skills/torusguard/__pycache__/bootstrap.cpython-314.pyc +0 -0
- package/skills/torusguard/bootstrap.py +45 -6
- package/skills/torusguard/payload/.manifest.json +29 -14
- package/skills/torusguard/payload/scripts/__pycache__/audit_runner.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/html_reporter.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/report_sync.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/sarif_exporter.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/term_ui.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/apply_runner.py +101 -8
- package/skills/torusguard/payload/scripts/audit_runner.py +116 -11
- package/skills/torusguard/payload/scripts/harden_runner.py +122 -68
- package/skills/torusguard/payload/scripts/html_reporter.py +1170 -253
- package/skills/torusguard/payload/scripts/manifest_builder.py +2 -0
- package/skills/torusguard/payload/scripts/recheck_runner.py +2 -1
- package/skills/torusguard/payload/scripts/recipes_runner.py +91 -8
- package/skills/torusguard/payload/scripts/report_sync.py +134 -7
- package/skills/torusguard/payload/scripts/status_runner.py +267 -0
- package/skills/torusguard/payload/workflows/apply.md +9 -1
- package/skills/torusguard/payload/workflows/audit.md +8 -2
- package/skills/torusguard/payload/workflows/harden.md +6 -1
- package/skills/torusguard/payload/workflows/init.md +7 -1
- package/skills/torusguard/payload/workflows/recipes.md +55 -0
- package/skills/torusguard/payload/workflows/report.md +59 -55
- package/skills/torusguard/payload/workflows/status.md +4 -1
- package/skills/torusguard/payload/workflows/torusguard-apply.md +110 -0
- package/skills/torusguard/payload/workflows/torusguard-audit.md +105 -0
- package/skills/torusguard/payload/workflows/torusguard-authorize.md +96 -0
- package/skills/torusguard/payload/workflows/torusguard-exploit-check.md +98 -0
- package/skills/torusguard/payload/workflows/torusguard-harden.md +104 -0
- package/skills/torusguard/payload/workflows/torusguard-init.md +106 -0
- package/skills/torusguard/payload/workflows/torusguard-recheck.md +101 -0
- package/skills/torusguard/payload/workflows/torusguard-recipes.md +55 -0
- package/skills/torusguard/payload/workflows/torusguard-report.md +105 -0
- package/skills/torusguard/payload/workflows/torusguard-status.md +103 -0
- package/skills/torusguard/payload/workflows/torusguard-verify.md +100 -0
- package/skills/torusguard/payload/workflows/torusguard-web-validate.md +96 -0
- package/skills/torusguard/payload/workflows/torusguard.md +19 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Safe, bounded, single-step exploitability confirmation across 5 standard verification statuses.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
+
version: 1.3.6
|
|
5
|
+
agent: validator
|
|
6
|
+
lifecycle-phase: Phase 3c (Exploitability Check)
|
|
7
|
+
required-skills:
|
|
8
|
+
- torusguard-exploit-check
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .torusguard/scripts/report_sync.py
|
|
11
|
+
- .torusguard/scripts/safety_gate.py
|
|
12
|
+
- .torusguard/scripts/finding_scorer.py
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# /torusguard exploit-check โ Bounded Exploitability Confirmation
|
|
16
|
+
|
|
17
|
+
$ARGUMENTS
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Objective
|
|
22
|
+
Safe, bounded, single-step exploitability confirmation across 5 standard verification statuses.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Mandatory Pre-Flight Context Inspection
|
|
27
|
+
|
|
28
|
+
Inspect authorization parameters and probe safety constraints:
|
|
29
|
+
1. **Scope Check (`scope.json`):** Assert endpoint is authorized.
|
|
30
|
+
2. **Approved Probes:** Use benign canaries (SQLi math, HTML marker, unauth read).
|
|
31
|
+
3. **Destructive Ban:** Strictly prohibit drops, DOS, or weaponized payloads.
|
|
32
|
+
4. **Safety Gate:** Verify probe with `safety_gate.py` prior to dispatch.
|
|
33
|
+
5. **Bound:** Limit to single non-destructive HTTP request per finding.
|
|
34
|
+
6. **Audit Trail:** Inject `X-TorusGuard-AuthID` header on all outbound requests.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## When to Use /torusguard exploit-check
|
|
39
|
+
|
|
40
|
+
| Trigger Scenario | Recommended Action |
|
|
41
|
+
| :--- | :--- |
|
|
42
|
+
| Confirming whether a flaw is practically exploitable | Run `/torusguard exploit-check` |
|
|
43
|
+
| Upgrading Medium confidence finding to Confirmed | Run `/torusguard exploit-check` |
|
|
44
|
+
| Verifying IDOR or tenant isolation boundaries | Run `/torusguard exploit-check` |
|
|
45
|
+
| Routine endpoint header inspection | Run `/torusguard web-validate` |
|
|
46
|
+
| Applying approved remediation patch | Run `/torusguard apply` |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Execution Steps
|
|
51
|
+
|
|
52
|
+
1. **Verify Authorization Scope:** Confirm target host and route in `scope.json`.
|
|
53
|
+
2. **Select Safe Canary:** Choose inert mathematical sentinel or unauth GET.
|
|
54
|
+
3. **Validate With Safety Gate:**
|
|
55
|
+
```bash
|
|
56
|
+
python .torusguard/scripts/safety_gate.py check --url <target_url> --payload <canary>
|
|
57
|
+
```
|
|
58
|
+
4. **Dispatch Bounded Single Probe:** Send request with header `X-TorusGuard-AuthID`.
|
|
59
|
+
5. **Classify Status:** Evaluate response against 5 outcomes: `Confirmed`, `Needs Review`, `Not Reproducible`, `Blocked by Controls`, `Out of Scope`.
|
|
60
|
+
6. **Emit Artifacts:** Write `exploit-check.md` and update `findings.json`.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Failure Recovery
|
|
65
|
+
|
|
66
|
+
- **Connection Refused:** Verify target server is running locally on port.
|
|
67
|
+
- **Safety Gate Block:** If `Manual Only`, halt automated probe and request human review.
|
|
68
|
+
- **Ambiguous Response:** Mark finding as `Needs Review`; never assume exploit without proof.
|
|
69
|
+
- **Halt Trigger:** Abort if probe causes server 500 error or unexpected crash.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Hallucination Guard
|
|
74
|
+
|
|
75
|
+
- โ Never classify a vulnerability as `Confirmed` without direct sentinel reflection.
|
|
76
|
+
- โ Never execute brute force attacks or automated password spraying.
|
|
77
|
+
- โ
Always provide reproducible curl commands with redacted credentials.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Output Card Format
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
### ๐ฏ TorusGuard Exploitability Confirmation
|
|
85
|
+
- **Target Route:** `[METHOD] /path`
|
|
86
|
+
- **Finding ID:** `TG-XXX-HASH`
|
|
87
|
+
- **Canary Used:** [Inert Math Sentinel / Unauth Read]
|
|
88
|
+
- **Status:** [Confirmed / Not Reproducible / Blocked]
|
|
89
|
+
- **Evidence:** [Response snippet demonstrating leak or block]
|
|
90
|
+
- **Replay Curl:** `curl -X [METHOD] http://localhost:PORT/path ...`
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Next Steps
|
|
96
|
+
|
|
97
|
+
1. Run `/torusguard harden` to formulate surgical patch bundles for confirmed flaws.
|
|
98
|
+
2. Run `/torusguard report` to export findings into SARIF v2.1.0 format.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
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: 1.4.0
|
|
5
|
+
agent: remediator
|
|
6
|
+
lifecycle-phase: Phase 4 (Remediation Formulation)
|
|
7
|
+
required-skills:
|
|
8
|
+
- torusguard-harden
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .torusguard/scripts/harden_runner.py
|
|
11
|
+
- .torusguard/scripts/report_sync.py
|
|
12
|
+
- .torusguard/scripts/run_manager.py
|
|
13
|
+
- .torusguard/scripts/diff_guard.py
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# /torusguard harden โ Governed Remediation & Bundle Packaging
|
|
17
|
+
|
|
18
|
+
$ARGUMENTS
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Objective
|
|
23
|
+
Governed remediation formulation under strict Ponytail Protocol bounds (<=35 add, <=25 del).
|
|
24
|
+
|
|
25
|
+
Supported CLI flags:
|
|
26
|
+
- `npx torusguard harden [--target <dir>]` : Specify project root directory
|
|
27
|
+
- `npx torusguard harden --dry-run` : Preview candidate patches without modifying disk files
|
|
28
|
+
- `npx torusguard harden --severity <critical|high|medium|low>` : Filter findings by minimum severity floor
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Mandatory Pre-Flight Context Inspection
|
|
33
|
+
|
|
34
|
+
Inspect finding targets and patch constraints before generating diffs:
|
|
35
|
+
1. **Target Finding (`findings.md`):** Identify prioritized verified findings.
|
|
36
|
+
2. **Ponytail Protocol:** Enforce hard limit ($\le 35$ additions, $\le 25$ deletions). Ban rewrites.
|
|
37
|
+
3. **Sensitive Path Review:** Flag changes touching `auth/` or `settings.py` for human sign-off.
|
|
38
|
+
4. **Behavior Preservation:** Ensure patch addresses flaw without breaking public APIs.
|
|
39
|
+
5. **Dry-Run Rule:** Do NOT apply changes to disk during harden; emit bundle for review.
|
|
40
|
+
6. **Backup Readiness:** Ensure rollback procedures are prepared before staging patch.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## When to Use /torusguard harden
|
|
45
|
+
|
|
46
|
+
| Trigger Scenario | Recommended Action |
|
|
47
|
+
| :--- | :--- |
|
|
48
|
+
| Formulating minimal patches for verified findings | Run `/torusguard harden` |
|
|
49
|
+
| Packaging a 4-artifact remediation bundle for review | Run `/torusguard harden` |
|
|
50
|
+
| Writing and applying changes to code files | Run `/torusguard apply` |
|
|
51
|
+
| Differentially re-scanning code after patch application | Run `/torusguard recheck` |
|
|
52
|
+
| Discovering new vulnerabilities | Run `/torusguard audit` |
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Living Report Invariant
|
|
57
|
+
- Candidate patches transition findings in `security_report.md` into `CANDIDATE ๐ก` status.
|
|
58
|
+
- Every patch strictly conforms to Ponytail bounds (<= 35 additions, <= 25 deletions).
|
|
59
|
+
|
|
60
|
+
## Execution Steps
|
|
61
|
+
|
|
62
|
+
1. **Select Target Finding:** Choose verified flaw from active run directory.
|
|
63
|
+
2. **Examine Live Code Context:** Read surrounding lines (ยฑ15) of vulnerable sink.
|
|
64
|
+
3. **Draft Unified Diff:** Formulate minimal fix adhering to Ponytail Protocol limits.
|
|
65
|
+
4. **Audit Patch Safety:** Run `python .torusguard/scripts/diff_guard.py <patch.diff>`.
|
|
66
|
+
5. **Package 4-Artifact Bundle:** Write `patch.diff`, `plan.md`, `verification.md`, `rollback.md` to `.torusguard/runs/<run_id>/remediation/<finding_id>/`.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Failure Recovery
|
|
71
|
+
|
|
72
|
+
- **Line Churn Exceeded (>35 add or >25 del):** Decompose patch into smaller sequential sub-fixes.
|
|
73
|
+
- **Sensitive Path Conflict:** Mark bundle with `Requires Sensitive-Path Sign-Off` in `plan.md`.
|
|
74
|
+
- **Finding Not Found:** Ensure finding ID exists in active `findings.md`.
|
|
75
|
+
- **Halt Trigger:** Abort if target source file cannot be read from disk.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Hallucination Guard
|
|
80
|
+
|
|
81
|
+
- โ Never generate full-file replacements or unconstrained cosmetic code refactoring.
|
|
82
|
+
- โ Never modify imports, variables, or functions unrelated to the vulnerability.
|
|
83
|
+
- โ
Always calculate addition and deletion line counts before emitting `patch.diff`.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Output Card Format
|
|
88
|
+
|
|
89
|
+
```markdown
|
|
90
|
+
### ๐ ๏ธ TorusGuard Remediation Bundle
|
|
91
|
+
- **Finding Target:** `TG-XXX-HASH` ([Vulnerability Name])
|
|
92
|
+
- **File Affected:** `src/path/to/file.py`
|
|
93
|
+
- **Line Churn:** +[Additions] / -[Deletions] (Ponytail: PASS)
|
|
94
|
+
- **Sensitive Path:** [Yes (Sign-Off Needed) / No (Standard)]
|
|
95
|
+
- **Bundle Path:** `.torusguard/runs/<run_id>/remediation/<finding_id>/`
|
|
96
|
+
- **Status:** READY FOR REVIEW โ run `/torusguard apply` to execute
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Next Steps
|
|
102
|
+
|
|
103
|
+
1. Review proposed diff in `.torusguard/runs/<run_id>/remediation/<finding_id>/patch.diff`.
|
|
104
|
+
2. Run `/torusguard apply` to execute the governed patch with automatic rollback backup.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Baseline project discovery, workspace scaffolding, stack detection, and framework-tailored security rule activation.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
+
version: 1.4.0
|
|
5
|
+
agent: profiler
|
|
6
|
+
lifecycle-phase: Phase 0 (Baseline Setup)
|
|
7
|
+
required-skills:
|
|
8
|
+
- torusguard-init
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .torusguard/scripts/report_sync.py
|
|
11
|
+
- .torusguard/scripts/stack_detect.py
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# /torusguard init โ Project Baseline & Workspace Initialization
|
|
15
|
+
|
|
16
|
+
$ARGUMENTS
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Objective
|
|
21
|
+
Baseline project discovery, workspace scaffolding, stack detection, and security rule activation.
|
|
22
|
+
|
|
23
|
+
Supported CLI flags:
|
|
24
|
+
- `npx torusguard init [--target <dir>]` : Scaffold workspace into specified root directory
|
|
25
|
+
- `npx torusguard init --template <golang|nextjs|fastapi|express|django|react>` : Guide stack configuration explicitly
|
|
26
|
+
- `npx torusguard init --audit` : Run immediate baseline audit post-initialization
|
|
27
|
+
- `npx torusguard init --force` : Force overwrite existing workspace and re-scaffold baseline
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Mandatory Pre-Flight Context Inspection
|
|
32
|
+
|
|
33
|
+
Inspect workspace state before running initialization:
|
|
34
|
+
1. **Config State (`.torusguard/config/torusguard.json`):** Check if workspace is already initialized. If active, prompt before re-writing.
|
|
35
|
+
2. **Project Manifests:** Check root for `package.json`, `manage.py`, `requirements.txt`, `pyproject.toml`, `go.mod`, or `Cargo.toml`.
|
|
36
|
+
3. **Disclosure Policy (`SECURITY.md`):** Check for existing responsible disclosure policy.
|
|
37
|
+
4. **Bootstrapper:** If `.torusguard/` is absent, invoke `python skills/torusguard/bootstrap.py` to unpack offline assets.
|
|
38
|
+
5. **Runtime Preconditions:** Ensure Python 3.10+ is available in the current execution shell.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## When to Use /torusguard init
|
|
43
|
+
|
|
44
|
+
| Trigger Scenario | Recommended Command |
|
|
45
|
+
| :--- | :--- |
|
|
46
|
+
| First-time onboarding in any repository | Run `/torusguard init` |
|
|
47
|
+
| Framework upgrade or major dependency changes | Run `/torusguard init` to refresh tailored rules |
|
|
48
|
+
| Repository already configured | Run `/torusguard audit` |
|
|
49
|
+
| Inspecting existing configuration | Run `/torusguard status` |
|
|
50
|
+
| Testing legal boundaries | Run `/torusguard authorize` |
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Living Report Invariant
|
|
55
|
+
- Provisions baseline `security_report.md` single-source-of-truth ledger.
|
|
56
|
+
- Activates tailored rules across 18 families based on detected stack.
|
|
57
|
+
|
|
58
|
+
## Execution Steps
|
|
59
|
+
|
|
60
|
+
1. **Scaffold Directory Topology:** Verify `.torusguard/` structure (`config/`, `rules/active/`, `runs/`, `scripts/`, `workflows/`, `templates/`, `schemas/`).
|
|
61
|
+
2. **Execute Stack Detection:**
|
|
62
|
+
```bash
|
|
63
|
+
python .torusguard/scripts/stack_detect.py .
|
|
64
|
+
```
|
|
65
|
+
3. **Activate Tailored Rules:** Symlink or copy matching security rules from `.torusguard/rules/` into `.torusguard/rules/active/`.
|
|
66
|
+
4. **Write Configuration (`.torusguard/config/torusguard.json`):**
|
|
67
|
+
Record detected stack, enabled rules count, timestamp, and runtime constraints.
|
|
68
|
+
5. **Verify Initialization:** Assert `.torusguard/config/torusguard.json` and `.torusguard/config/scope.json` exist.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Failure Recovery
|
|
73
|
+
|
|
74
|
+
- **Script Exit 1 (Detection Failed):** Check Python version (`python --version` >= 3.10) and verify read access to root manifests.
|
|
75
|
+
- **Permission Error:** Verify write permissions for `.torusguard/config/` and `.torusguard/rules/active/`.
|
|
76
|
+
- **Missing Directories:** Re-run directory scaffolding if any subfolder creation fails.
|
|
77
|
+
- **Halt Condition:** If root directory is empty, halt and prompt user to open the project root.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Hallucination Guard
|
|
82
|
+
|
|
83
|
+
- โ Never invent framework dependencies not present in `package.json` or `requirements.txt`.
|
|
84
|
+
- โ Never overwrite an existing `.torusguard/config/scope.json` containing authorized domains.
|
|
85
|
+
- โ
Always execute `.torusguard/scripts/stack_detect.py` to ground detected technologies.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Output Card Format
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
### ๐ก๏ธ TorusGuard Workspace Initialization
|
|
93
|
+
- **Primary Framework:** [Detected Stack or None]
|
|
94
|
+
- **Components:** [Backend / Frontend / Database]
|
|
95
|
+
- **Active Rules:** [Count] rules enabled in `.torusguard/rules/active/`
|
|
96
|
+
- **Config:** `.torusguard/config/torusguard.json` generated
|
|
97
|
+
- **Scope Template:** `.torusguard/config/scope.json` ready
|
|
98
|
+
- **Status:** READY โ run `/torusguard audit` to scan codebase
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Next Steps
|
|
104
|
+
|
|
105
|
+
1. Run `/torusguard authorize` to define allowed target URLs and legal scan boundaries.
|
|
106
|
+
2. Run `/torusguard audit` to execute the baseline static security audit.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Targeted differential AST re-scan, fix closure verification, and regression state machine transitions.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
+
version: 1.3.6
|
|
5
|
+
agent: reviewer
|
|
6
|
+
lifecycle-phase: Phase 6 (Targeted Recheck & Verification)
|
|
7
|
+
required-skills:
|
|
8
|
+
- torusguard-recheck
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .torusguard/scripts/recheck_runner.py
|
|
11
|
+
- .torusguard/scripts/report_sync.py
|
|
12
|
+
- .torusguard/scripts/run_manager.py
|
|
13
|
+
- .torusguard/scripts/finding_scorer.py
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# /torusguard recheck โ Targeted Differential Recheck & Regression Audit
|
|
17
|
+
|
|
18
|
+
$ARGUMENTS
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Objective
|
|
23
|
+
Targeted differential AST re-scan, fix closure verification, and regression state transitions.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Mandatory Pre-Flight Context Inspection
|
|
28
|
+
|
|
29
|
+
Inspect applied patch history and target file scope before re-checking:
|
|
30
|
+
1. **Applied Patch Record:** Verify `apply-log.json` or modified file list exists in the active run.
|
|
31
|
+
2. **Scope Limitation:** Restrict differential scan strictly to modified files to conserve token budget.
|
|
32
|
+
3. **Rollback Availability:** Confirm `.bak` snapshot exists in `pre_apply/` in case regression is detected.
|
|
33
|
+
4. **4-State Transition Engine:** Prepare to transition findings to `Fixed`, `Partially Fixed`, `Not Fixed`, or `Regression`.
|
|
34
|
+
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
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Living Report Invariant
|
|
52
|
+
- Verified fix closures transition findings in `security_report.md` to `RESOLVED ๐ข`.
|
|
53
|
+
- Regressions transition findings to `REGRESSED โ`.
|
|
54
|
+
|
|
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
|
+
---
|
|
75
|
+
|
|
76
|
+
## Hallucination Guard
|
|
77
|
+
|
|
78
|
+
- โ Never mark a finding as `Fixed` without re-scanning the actual AST of the patched file.
|
|
79
|
+
- โ Never ignore new warnings introduced in modified lines.
|
|
80
|
+
- โ
Always provide before/after line comparisons confirming sink removal.
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Output Card Format
|
|
85
|
+
|
|
86
|
+
```markdown
|
|
87
|
+
### โ
TorusGuard Differential Recheck
|
|
88
|
+
- **Files Re-scanned:** [List of modified files]
|
|
89
|
+
- **Target Finding:** `TG-XXX-HASH`
|
|
90
|
+
- **Result:** [FIXED / REGRESSION / PARTIAL]
|
|
91
|
+
- **Regressions Introduced:** 0
|
|
92
|
+
- **Report:** `.torusguard/runs/<run_id>/recheck-report.md`
|
|
93
|
+
- **Status:** VERIFIED โ ready for `/torusguard report`
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Next Steps
|
|
99
|
+
|
|
100
|
+
1. Run `/torusguard report` to generate executive summary and export OASIS SARIF v2.1.0 data.
|
|
101
|
+
2. Commit the verified patch to version control.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Explore, search, export, and project distilled Golden Fix Recipes in persistent security memory.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
+
version: 1.4.0
|
|
5
|
+
agent: remediator
|
|
6
|
+
lifecycle-phase: Phase 6 (Memory & Recipes)
|
|
7
|
+
required-skills:
|
|
8
|
+
- torusguard-recipes
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .torusguard/scripts/recipes_runner.py
|
|
11
|
+
- .torusguard/scripts/memory_engine.py
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# /torusguard recipes โ Golden Fix Recipe Explorer & Memory Distillation
|
|
15
|
+
|
|
16
|
+
$ARGUMENTS
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Objective
|
|
21
|
+
Inspect, search, export, and project reusable, verified Ponytail remediation code snippets distilled from passing security patches and persistent memory patterns.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Command Flags & Arguments
|
|
26
|
+
|
|
27
|
+
| Mode | Command Syntax | Description |
|
|
28
|
+
| :--- | :--- | :--- |
|
|
29
|
+
| **List Recipes** | `npx torusguard recipes` | List all distilled golden fix recipes with verification counts and churn |
|
|
30
|
+
| **Search Filter** | `npx torusguard recipes --search <query>` | Filter recipes by keyword, rule family (e.g. `TG-SEC`), or language |
|
|
31
|
+
| **Inspect Detail** | `npx torusguard recipes --detail <id>` | View complete unified diff snippet for a specific recipe |
|
|
32
|
+
| **Export Catalog** | `npx torusguard recipes --export <file>` | Export recipes to `.json` or `.md` catalog format |
|
|
33
|
+
| **Apply Preview** | `npx torusguard recipes --apply <id>` | Project recipe diff onto codebase for manual review |
|
|
34
|
+
| **Target Directory** | `npx torusguard recipes --target <dir>` | Specify custom project root directory |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Execution Steps
|
|
39
|
+
|
|
40
|
+
1. **Query Memory Patterns:** Read `.torusguard/memory/patterns.json` for verified `golden_fix_recipe` entries.
|
|
41
|
+
2. **Apply Filter / Search:** Match `--search` query against rule IDs, titles, diffs, and target file types.
|
|
42
|
+
3. **Render 75-Column Cards:** Format recipe cards showing verified counts, rule family, and Ponytail additions/deletions.
|
|
43
|
+
4. **Export / Apply:** If requested, write export file or render projected patch snippet.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Output Card Format
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
### ๐ก๏ธ TorusGuard Golden Fix Recipes
|
|
51
|
+
- **Total Distilled:** [Count] verified recipes
|
|
52
|
+
- **Filter:** [Query or None]
|
|
53
|
+
- **Ponytail Bounds:** All recipes strictly <= 35 additions, <= 25 deletions
|
|
54
|
+
- **Storage:** `.torusguard/memory/patterns.json`
|
|
55
|
+
```
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Executive posture reporting, interactive HTML dashboard generation, directory attack surface heatmap, and OASIS SARIF v2.1.0 structured export.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
4
|
+
version: 2.2.0
|
|
5
|
+
agent: reviewer
|
|
6
|
+
lifecycle-phase: Phase 7 (Reporting & SARIF Export)
|
|
7
|
+
required-skills:
|
|
8
|
+
- torusguard-report
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .torusguard/scripts/html_reporter.py
|
|
11
|
+
- .torusguard/scripts/report_sync.py
|
|
12
|
+
- .torusguard/scripts/sarif_exporter.py
|
|
13
|
+
- .torusguard/scripts/run_manager.py
|
|
14
|
+
- .torusguard/scripts/term_ui.py
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# /torusguard report โ Unified Security Posture Report & SARIF / HTML Export
|
|
18
|
+
|
|
19
|
+
$ARGUMENTS
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Objective
|
|
24
|
+
Generate an executive security posture report, interactive dark-mode HTML dashboard (`report.html`), and schema-compliant OASIS SARIF v2.1.0 log (`results.sarif`) with zero network dependencies.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Dual Mode Execution Syntax
|
|
29
|
+
|
|
30
|
+
| Target Artifact | Mode A: Terminal CLI | Mode B: AI Chat Slash Command | Output Location |
|
|
31
|
+
| :--- | :--- | :--- | :--- |
|
|
32
|
+
| **Interactive HTML Dashboard** | `npx torusguard report --html` | `/torusguard report --html` or `/torusguard-report` | `report.html` (workspace root) + `.torusguard/runs/report-latest.html` |
|
|
33
|
+
| **OASIS SARIF v2.1.0 Log** | `npx torusguard report --sarif` | `/torusguard report --sarif` | `.torusguard/runs/results-latest.sarif` |
|
|
34
|
+
| **Combined (Both)** | `npx torusguard report --html --sarif` | `/torusguard report --html --sarif` | Both `report.html` and `results-latest.sarif` in a single pass |
|
|
35
|
+
| **Custom Path** | `npx torusguard report --html --out <path>` | `/torusguard report --out <path>` | Specified path + latest run mirror |
|
|
36
|
+
| **Monorepo Subproject** | `npx torusguard report --target <dir> --html` | `/torusguard report --target <dir>` | `<dir>/report.html` |
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Mandatory Pre-Flight Context Inspection
|
|
41
|
+
|
|
42
|
+
Inspect run records and reporting parameters before generating release artifacts:
|
|
43
|
+
1. **Active Run Records:** Ensure target run folder or `.torusguard/runs/` contains valid run records.
|
|
44
|
+
2. **Dual-Ledger Ground Truth:** Confirm that `security_report.md` at workspace root is in lockstep with findings.
|
|
45
|
+
3. **SARIF v2.1.0 Schema:** Validate output structure against official OASIS SARIF standard (`sarif-schema-2.1.0.json`).
|
|
46
|
+
4. **Multi-Analysis Category:** Tag static findings under category `torusguard/static` to prevent CI collisions.
|
|
47
|
+
5. **Zero External CDN:** Ensure all icons, gauges, and scripts in `report.html` are 100% self-contained and offline-ready.
|
|
48
|
+
6. **Secret Masking:** Ensure zero unredacted authorization tokens or API keys appear in report text.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Interactive Dashboard Features (v2.2.0)
|
|
53
|
+
|
|
54
|
+
When viewing `report.html` in any browser:
|
|
55
|
+
1. **Safe Defenses vs Harmed Exposure:** Complete Defended Invariants inventory across all 74 rules in 18 architectural families. Clean codebases earn 100/100 (74 Defended, 0 Harmed).
|
|
56
|
+
2. **Directory Attack Surface Heatmap:** Visual directory tree of exposure risk. Clicking any directory card filters the findings table to that specific folder.
|
|
57
|
+
3. **Golden Recipe Explorer:** Distilled, verified fix patterns with before/after code templates and one-click clipboard copying.
|
|
58
|
+
4. **Prescriptive Next Best Defenses:** Stack-aware security recommendations with copyable `npx torusguard harden` commands.
|
|
59
|
+
5. **Client-Side Exporters:** Zero-network buttons to download OASIS SARIF v2.1.0 and CSV records directly from browser memory.
|
|
60
|
+
6. **Multi-Agent AI Prompt Presets:** One-click prompts tailored for Cursor (`.cursorrules`), Claude Code (`CLAUDE.md`), Antigravity, and GitHub Copilot.
|
|
61
|
+
7. **Print & PDF Styling:** Built-in high-contrast `@media print` layout for boardroom and compliance distribution.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Execution Steps
|
|
66
|
+
|
|
67
|
+
1. **Detect Mode & Arguments:**
|
|
68
|
+
- Parse `--html`, `--sarif`, `--out`, `--target`, and `--run` from `$ARGUMENTS`.
|
|
69
|
+
- If no format flag is specified in chat, default to generating the visual HTML dashboard (`report.html`).
|
|
70
|
+
2. **Execute Reporter Scripts:**
|
|
71
|
+
- **For SARIF:**
|
|
72
|
+
```bash
|
|
73
|
+
python .torusguard/scripts/sarif_exporter.py [--output <path>] [--root <target>]
|
|
74
|
+
```
|
|
75
|
+
- **For HTML:**
|
|
76
|
+
```bash
|
|
77
|
+
python .torusguard/scripts/html_reporter.py [--out <path>] [--root <target>]
|
|
78
|
+
```
|
|
79
|
+
3. **Synchronize Dual Ledger:**
|
|
80
|
+
- Verify `security_report.md` matches `report.html` findings and posture score.
|
|
81
|
+
4. **Emit 75-Column Visual Summary Card:**
|
|
82
|
+
- Present markdown output card with direct clickable links to both `report.html` and `security_report.md`.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Output Card Format
|
|
87
|
+
|
|
88
|
+
```markdown
|
|
89
|
+
### ๐ก๏ธ TorusGuard Security Posture Report Emitted
|
|
90
|
+
- **Posture Score:** [Score]/100 ([Status Label])
|
|
91
|
+
- **Invariants Defended:** [N] Defended ยท [M] Harmed (74 Rules)
|
|
92
|
+
- **Living Ledger:** [security_report.md](file:///path/to/security_report.md)
|
|
93
|
+
- **HTML Dashboard:** [report.html](file:///path/to/report.html)
|
|
94
|
+
- **SARIF v2.1.0 Export:** [results-latest.sarif](file:///path/to/results-latest.sarif)
|
|
95
|
+
- **Status:** COMPLETE โ dual-ledger synchronized
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Failure Recovery
|
|
101
|
+
|
|
102
|
+
- **Missing Run Folder:** Auto-discover the latest timestamped run in `.torusguard/runs/`.
|
|
103
|
+
- **Windows File Lock:** `html_reporter.py` uses atomic temporary write swapping with exponential retry.
|
|
104
|
+
- **Missing SARIF Input:** Auto-discovers findings from the latest audit run in `.torusguard/runs/`.
|
|
105
|
+
- **Clean Workspace:** Emits 100/100 posture score with all 74 defended invariants listed.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Read-only diagnostic overview of workspace security posture, active configuration, rules catalog, and run history.
|
|
3
|
+
tools: Read, Grep, Glob, Bash
|
|
4
|
+
version: 1.4.0
|
|
5
|
+
agent: reviewer
|
|
6
|
+
lifecycle-phase: System / Diagnostics
|
|
7
|
+
required-skills:
|
|
8
|
+
- torusguard-status
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .torusguard/scripts/report_sync.py
|
|
11
|
+
- .torusguard/scripts/run_manager.py
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# /torusguard status โ Workspace Security Posture & Diagnostic Overview
|
|
15
|
+
|
|
16
|
+
$ARGUMENTS
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Objective
|
|
21
|
+
Read-only diagnostic overview of workspace security posture, active configuration, and run history.
|
|
22
|
+
|
|
23
|
+
Supported CLI flags:
|
|
24
|
+
- `npx torusguard status [--target <dir>]` : Diagnostic check on specified project directory
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Mandatory Pre-Flight Context Inspection
|
|
29
|
+
|
|
30
|
+
Inspect workspace state and configuration records prior to status display:
|
|
31
|
+
1. **Config State (`.torusguard/config/torusguard.json`):** Confirm workspace initialization and read detected stack.
|
|
32
|
+
2. **Active Rules Directory (`.torusguard/rules/active/`):** Count active rule files.
|
|
33
|
+
3. **Run Folder Ledger (`.torusguard/runs/`):** Check run history and locate latest `manifest.json`.
|
|
34
|
+
4. **Scope Record (`.torusguard/config/scope.json`):** Check whether runtime authorization TTL is active or expired.
|
|
35
|
+
5. **Read-Only Invariant:** Ensure command performs zero file modifications or disk mutations.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## When to Use /torusguard status
|
|
40
|
+
|
|
41
|
+
| Trigger Scenario | Recommended Action |
|
|
42
|
+
| :--- | :--- |
|
|
43
|
+
| Checking workspace configuration and active security posture | Run `/torusguard status` |
|
|
44
|
+
| Reviewing recent audit runs and finding counts | Run `/torusguard status` |
|
|
45
|
+
| Checking active legal scope authorization TTL | Run `/torusguard status` |
|
|
46
|
+
| Initializing workspace for the first time | Run `/torusguard init` |
|
|
47
|
+
| Executing full security scan | Run `/torusguard audit` |
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Living Report Invariant
|
|
52
|
+
- Reads current health score and status breakdown directly from `security_report.md`.
|
|
53
|
+
- Displays 18 rule families and 74 rules in standardized 75-column terminal cards.
|
|
54
|
+
|
|
55
|
+
## Execution Steps
|
|
56
|
+
|
|
57
|
+
1. **Read Configuration:** Load `.torusguard/config/torusguard.json`; extract stack, version, and enabled rule count.
|
|
58
|
+
2. **Enumerate Active Rules:** Count rule files physically present in `.torusguard/rules/active/`.
|
|
59
|
+
3. **Inspect Run History:**
|
|
60
|
+
```bash
|
|
61
|
+
python .torusguard/scripts/run_manager.py list
|
|
62
|
+
```
|
|
63
|
+
4. **Evaluate Scope Expiry:** Parse `.torusguard/config/scope.json`; report if TTL is valid or expired.
|
|
64
|
+
5. **Print Status Overview:** Render complete workspace diagnostic overview card.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Failure Recovery
|
|
69
|
+
|
|
70
|
+
- **Uninitialized Workspace:** If config is missing, prompt user to execute `/torusguard init`.
|
|
71
|
+
- **Zero Runs Found:** Display clean status card noting no historical audit runs exist yet.
|
|
72
|
+
- **Corrupt Config File:** Report parsing error and recommend re-running `/torusguard init`.
|
|
73
|
+
- **Halt Trigger:** Abort command if read access to `.torusguard/` is denied.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Hallucination Guard
|
|
78
|
+
|
|
79
|
+
- โ Never display fabricated finding counts not substantiated by run manifests.
|
|
80
|
+
- โ Never execute modifying shell commands or edit source code during status inspection.
|
|
81
|
+
- โ
Always report factual file counts from `.torusguard/rules/active/` and `.torusguard/runs/`.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Output Card Format
|
|
86
|
+
|
|
87
|
+
```markdown
|
|
88
|
+
### ๐ก๏ธ TorusGuard Workspace Status
|
|
89
|
+
- **Version:** v0.9.2
|
|
90
|
+
- **Framework Detected:** [Stack or None]
|
|
91
|
+
- **Active Rules:** [Count] rules active in `.torusguard/rules/active/`
|
|
92
|
+
- **Total Runs:** [Count] historical runs recorded
|
|
93
|
+
- **Latest Run:** `run-YYYYMMDD-HHMMSS` ([Findings Count] findings)
|
|
94
|
+
- **Scope Status:** [Authorized (TTL Active) / Expired / Unconfigured]
|
|
95
|
+
- **Health Posture:** [GOOD / ACTION NEEDED]
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Next Steps
|
|
101
|
+
|
|
102
|
+
1. Run `/torusguard audit` to scan codebase for security vulnerabilities.
|
|
103
|
+
2. Run `/torusguard authorize` to configure or refresh live target scope.
|