torusguard 1.3.4 → 1.3.6
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 +66 -63
- package/.torusguard/rules/business-logic/TG-BIZ-001-client-controlled-sensitive-business-value.md +30 -14
- package/.torusguard/rules/business-logic/TG-BIZ-002-replayable-one-time-operation.md +33 -16
- package/.torusguard/rules/business-logic/TG-BIZ-003-missing-workflow-state-validation.md +31 -15
- package/.torusguard/rules/business-logic/TG-BIZ-004-unrestricted-sensitive-business-flow.md +26 -16
- package/.torusguard/rules/cache/TG-CACHE-001-sensitive-response-publicly-cacheable.md +24 -16
- package/.torusguard/rules/cache/TG-CACHE-002-missing-user-cache-isolation.md +32 -18
- package/.torusguard/rules/cache/TG-CACHE-003-sensitive-data-in-url.md +24 -17
- package/.torusguard/rules/csrf/TG-CSRF-001-missing-csrf-protection.md +31 -18
- package/.torusguard/rules/csrf/TG-CSRF-002-unsafe-credentialed-cross-origin-request.md +28 -17
- package/.torusguard/rules/graphql/TG-GQL-002-resolver-missing-authorization.md +33 -17
- package/.torusguard/rules/graphql/TG-GQL-003-unbounded-graphql-pagination-or-batching.md +31 -16
- package/.torusguard/rules/graphql/TG-GQL-004-unnecessary-production-introspection.md +25 -16
- package/.torusguard/rules/secrets/TG-SEC-005-secret-in-git-history.md +24 -19
- package/.torusguard/rules/secrets/TG-SEC-006-secret-in-build-artifact.md +36 -19
- package/.torusguard/rules/secrets/TG-SEC-007-secret-in-test-or-example-fixture.md +21 -16
- package/.torusguard/rules/ssrf/TG-SSRF-002-missing-internal-network-protection.md +45 -18
- package/.torusguard/rules/ssrf/TG-SSRF-003-unsafe-redirect-following.md +20 -16
- package/.torusguard/rules/ssrf/TG-SSRF-004-unbounded-outbound-request.md +28 -19
- package/.torusguard/rules/supply-chain/TG-SUPPLY-001-missing-or-ignored-dependency-lockfile.md +25 -18
- package/.torusguard/rules/supply-chain/TG-SUPPLY-003-unsafe-ci-cd-secret-exposure.md +29 -19
- package/.torusguard/rules/supply-chain/TG-SUPPLY-004-unpinned-ci-action.md +23 -18
- package/.torusguard/rules/supply-chain/TG-SUPPLY-005-unsafe-dependency-install-script.md +23 -18
- package/.torusguard/rules/webhook/TG-WEBHOOK-001-missing-webhook-signature-verification.md +36 -16
- package/.torusguard/rules/webhook/TG-WEBHOOK-002-replayable-webhook.md +26 -17
- package/.torusguard/rules/webhook/TG-WEBHOOK-003-missing-webhook-idempotency.md +30 -16
- package/.torusguard/rules/webhook/TG-WEBHOOK-004-unvalidated-webhook-event-type.md +25 -16
- package/.torusguard/rules/websocket/TG-WS-002-missing-channel-level-authorization.md +28 -17
- package/.torusguard/rules/websocket/TG-WS-003-unvalidated-websocket-message.md +31 -17
- package/.torusguard/rules/websocket/TG-WS-004-unbounded-websocket-connections.md +31 -17
- package/.torusguard/rules_catalog.json +520 -0
- package/.torusguard/runs/report-latest.html +2700 -232
- package/.torusguard/runs/results-latest.sarif +20 -0
- package/.torusguard/runs/run-20260912-214110-audit/findings.json +1256 -0
- package/.torusguard/runs/run-20260912-214110-audit/findings.md +534 -0
- package/.torusguard/runs/run-20260912-214110-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260912-214110-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260912-214813-audit/findings.json +992 -0
- package/.torusguard/runs/run-20260912-214813-audit/findings.md +422 -0
- package/.torusguard/runs/run-20260912-214813-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260912-214813-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-auth-003-49-7c96f3/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-auth-003-49-7c96f3/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-auth-003-49-7c96f3/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-input-003-53-d167b4/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-input-003-53-d167b4/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-input-003-53-d167b4/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-platform-001-12-cf8156/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-platform-001-12-cf8156/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-platform-001-12-cf8156/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-rate-001-26-affcfa/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-rate-001-26-affcfa/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-rate-001-26-affcfa/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-sec-001-9-e22e50/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-sec-001-9-e22e50/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-sec-001-9-e22e50/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-ssrf-004-9-9803ad/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-ssrf-004-9-9803ad/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215555-audit/bundles/bnd-tg-ssrf-004-9-9803ad/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215555-audit/findings.json +530 -0
- package/.torusguard/runs/run-20260912-215555-audit/findings.md +232 -0
- package/.torusguard/runs/run-20260912-215555-audit/manifest.json +13 -0
- package/.torusguard/runs/run-20260912-215555-audit/remediation.md +102 -0
- package/.torusguard/runs/run-20260912-215555-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260912-215731-audit/apply_plan.md +6 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-client-001-7-587129/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-client-001-7-587129/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-client-001-7-587129/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-db-002-9-5f7850/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-db-002-9-5f7850/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-db-002-9-5f7850/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-input-001-27-2486f1/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-input-001-27-2486f1/minimal_patch_plan.md +22 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-input-001-27-2486f1/patch.diff +10 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-input-003-53-d167b4/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-input-003-53-d167b4/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-input-003-53-d167b4/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-001-12-cf8156/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-001-12-cf8156/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-001-12-cf8156/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-002-17-876973/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-002-17-876973/minimal_patch_plan.md +23 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-002-17-876973/patch.diff +11 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-002-5-40c794/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-002-5-40c794/minimal_patch_plan.md +23 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-platform-002-5-40c794/patch.diff +11 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-rate-001-26-affcfa/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-rate-001-26-affcfa/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-rate-001-26-affcfa/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-rate-002-54-0b38d2/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-rate-002-54-0b38d2/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-rate-002-54-0b38d2/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-001-18-a3c1e8/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-001-18-a3c1e8/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-001-18-a3c1e8/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-001-9-e22e50/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-001-9-e22e50/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-001-9-e22e50/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-004-28-a1a0a1/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-004-28-a1a0a1/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-004-28-a1a0a1/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-004-30-00569e/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-004-30-00569e/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-sec-004-30-00569e/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-ssrf-004-9-9803ad/metadata.json +17 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-ssrf-004-9-9803ad/minimal_patch_plan.md +21 -0
- package/.torusguard/runs/run-20260912-215731-audit/bundles/bnd-tg-ssrf-004-9-9803ad/patch.diff +9 -0
- package/.torusguard/runs/run-20260912-215731-audit/diff_summary.md +186 -0
- package/.torusguard/runs/run-20260912-215731-audit/findings.json +497 -0
- package/.torusguard/runs/run-20260912-215731-audit/findings.md +218 -0
- package/.torusguard/runs/run-20260912-215731-audit/manifest.json +14 -0
- package/.torusguard/runs/run-20260912-215731-audit/recheck.md +76 -0
- package/.torusguard/runs/run-20260912-215731-audit/remediation.md +234 -0
- package/.torusguard/runs/run-20260912-215731-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260912-220134-audit/findings.json +68 -0
- package/.torusguard/runs/run-20260912-220134-audit/findings.md +36 -0
- package/.torusguard/runs/run-20260912-220134-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260912-220134-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260912-220200-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260912-220200-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260912-220200-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260912-220200-audit/recheck.md +6 -0
- package/.torusguard/runs/run-20260912-220200-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260912-220227-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260912-220227-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260912-220227-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260912-220227-audit/recheck.md +6 -0
- package/.torusguard/runs/run-20260912-220227-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260918-104221-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260918-104221-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260918-104221-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260918-104221-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260918-104236-audit/findings.json +2314 -0
- package/.torusguard/runs/run-20260918-104236-audit/findings.md +960 -0
- package/.torusguard/runs/run-20260918-104236-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260918-104236-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260918-105723-audit/findings.json +2382 -0
- package/.torusguard/runs/run-20260918-105723-audit/findings.md +960 -0
- package/.torusguard/runs/run-20260918-105723-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260918-105723-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260918-105731-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260918-105731-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260918-105731-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260918-105731-audit/summary.md +5 -0
- package/.torusguard/runs/run-20260918-105940-audit/findings.json +1 -0
- package/.torusguard/runs/run-20260918-105940-audit/findings.md +8 -0
- package/.torusguard/runs/run-20260918-105940-audit/manifest.json +12 -0
- package/.torusguard/runs/run-20260918-105940-audit/summary.md +5 -0
- package/.torusguard/scripts/__pycache__/apply_runner.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/audit_runner.cpython-311.pyc +0 -0
- package/.torusguard/scripts/__pycache__/audit_runner.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/diff_guard.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/finding_scorer.cpython-311.pyc +0 -0
- package/.torusguard/scripts/__pycache__/finding_scorer.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__/memory_engine.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/monorepo_detector.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/recheck_runner.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/report_sync.cpython-311.pyc +0 -0
- package/.torusguard/scripts/__pycache__/report_sync.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/run_manager.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/sarif_exporter.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/stack_detect.cpython-314.pyc +0 -0
- package/.torusguard/scripts/__pycache__/term_ui.cpython-311.pyc +0 -0
- package/.torusguard/scripts/__pycache__/term_ui.cpython-314.pyc +0 -0
- package/.torusguard/scripts/apply_runner.py +389 -377
- package/.torusguard/scripts/audit_runner.py +1513 -653
- package/.torusguard/scripts/finding_scorer.py +14 -2
- package/.torusguard/scripts/harden_runner.py +628 -455
- package/.torusguard/scripts/html_reporter.py +2668 -648
- package/.torusguard/scripts/recheck_runner.py +248 -238
- package/.torusguard/scripts/recipes_runner.py +137 -137
- package/.torusguard/scripts/report_sync.py +719 -0
- package/.torusguard/scripts/sarif_exporter.py +156 -116
- package/.torusguard/scripts/stack_detect.py +44 -2
- package/.torusguard/scripts/term_ui.py +162 -162
- package/.torusguard/skills/torusguard/SKILL.md +75 -72
- package/.torusguard/skills/torusguard-apply/SKILL.md +84 -80
- package/.torusguard/skills/torusguard-audit/SKILL.md +87 -83
- package/.torusguard/skills/torusguard-authorize/SKILL.md +7 -2
- package/.torusguard/skills/torusguard-exploit-check/SKILL.md +7 -2
- package/.torusguard/skills/torusguard-full/SKILL.md +7 -2
- package/.torusguard/skills/torusguard-harden/SKILL.md +98 -94
- package/.torusguard/skills/torusguard-init/SKILL.md +68 -64
- package/.torusguard/skills/torusguard-recheck/SKILL.md +81 -77
- package/.torusguard/skills/torusguard-report/SKILL.md +93 -72
- package/.torusguard/skills/torusguard-status/SKILL.md +62 -58
- package/.torusguard/skills/torusguard-verify/SKILL.md +7 -2
- package/.torusguard/skills/torusguard-web-validate/SKILL.md +7 -2
- package/.torusguard/snapshots/run-20260912-215731-audit/demo/playground/vulnerable_nextjs/actions.ts.bak +24 -0
- package/.torusguard/snapshots/run-20260912-215731-audit/examples/hardened-react-express/server/index.js.bak +121 -0
- package/.torusguard/snapshots/run-20260912-215731-audit/examples/python/fastapi-vuln/main.py.bak +20 -0
- package/.torusguard/snapshots/run-20260912-215731-audit/examples/vulnerable-react-express/client/src/App.jsx.bak +63 -0
- package/.torusguard/snapshots/run-20260912-215731-audit/examples/vulnerable-react-express/client/vite.config.js.bak +12 -0
- package/.torusguard/snapshots/run-20260912-215731-audit/examples/vulnerable-react-express/server/index.js.bak +82 -0
- package/.torusguard/workflows/apply.md +11 -4
- package/.torusguard/workflows/audit.md +7 -1
- package/.torusguard/workflows/authorize.md +2 -1
- package/.torusguard/workflows/exploit-check.md +2 -1
- package/.torusguard/workflows/harden.md +7 -1
- package/.torusguard/workflows/init.md +6 -1
- package/.torusguard/workflows/memory.md +2 -1
- package/.torusguard/workflows/recheck.md +7 -1
- package/.torusguard/workflows/report.md +7 -1
- package/.torusguard/workflows/status.md +6 -1
- package/.torusguard/workflows/verify.md +6 -1
- package/.torusguard/workflows/web-validate.md +2 -1
- package/README.md +476 -345
- package/bin/torusguard.js +586 -545
- package/package.json +1 -1
- package/skills/torusguard/SKILL.md +73 -72
- package/skills/torusguard/bootstrap.py +7 -2
- package/skills/torusguard/payload/.manifest.json +66 -63
- package/skills/torusguard/payload/rules/business-logic/TG-BIZ-001-client-controlled-sensitive-business-value.md +30 -14
- package/skills/torusguard/payload/rules/business-logic/TG-BIZ-002-replayable-one-time-operation.md +33 -16
- package/skills/torusguard/payload/rules/business-logic/TG-BIZ-003-missing-workflow-state-validation.md +31 -15
- package/skills/torusguard/payload/rules/business-logic/TG-BIZ-004-unrestricted-sensitive-business-flow.md +26 -16
- package/skills/torusguard/payload/rules/cache/TG-CACHE-001-sensitive-response-publicly-cacheable.md +24 -16
- package/skills/torusguard/payload/rules/cache/TG-CACHE-002-missing-user-cache-isolation.md +32 -18
- package/skills/torusguard/payload/rules/cache/TG-CACHE-003-sensitive-data-in-url.md +24 -17
- package/skills/torusguard/payload/rules/csrf/TG-CSRF-001-missing-csrf-protection.md +31 -18
- package/skills/torusguard/payload/rules/csrf/TG-CSRF-002-unsafe-credentialed-cross-origin-request.md +28 -17
- package/skills/torusguard/payload/rules/graphql/TG-GQL-002-resolver-missing-authorization.md +33 -17
- package/skills/torusguard/payload/rules/graphql/TG-GQL-003-unbounded-graphql-pagination-or-batching.md +31 -16
- package/skills/torusguard/payload/rules/graphql/TG-GQL-004-unnecessary-production-introspection.md +25 -16
- package/skills/torusguard/payload/rules/secrets/TG-SEC-005-secret-in-git-history.md +24 -19
- package/skills/torusguard/payload/rules/secrets/TG-SEC-006-secret-in-build-artifact.md +36 -19
- package/skills/torusguard/payload/rules/secrets/TG-SEC-007-secret-in-test-or-example-fixture.md +21 -16
- package/skills/torusguard/payload/rules/ssrf/TG-SSRF-002-missing-internal-network-protection.md +45 -18
- package/skills/torusguard/payload/rules/ssrf/TG-SSRF-003-unsafe-redirect-following.md +20 -16
- package/skills/torusguard/payload/rules/ssrf/TG-SSRF-004-unbounded-outbound-request.md +28 -19
- package/skills/torusguard/payload/rules/supply-chain/TG-SUPPLY-001-missing-or-ignored-dependency-lockfile.md +25 -18
- package/skills/torusguard/payload/rules/supply-chain/TG-SUPPLY-003-unsafe-ci-cd-secret-exposure.md +29 -19
- package/skills/torusguard/payload/rules/supply-chain/TG-SUPPLY-004-unpinned-ci-action.md +23 -18
- package/skills/torusguard/payload/rules/supply-chain/TG-SUPPLY-005-unsafe-dependency-install-script.md +23 -18
- package/skills/torusguard/payload/rules/webhook/TG-WEBHOOK-001-missing-webhook-signature-verification.md +36 -16
- package/skills/torusguard/payload/rules/webhook/TG-WEBHOOK-002-replayable-webhook.md +26 -17
- package/skills/torusguard/payload/rules/webhook/TG-WEBHOOK-003-missing-webhook-idempotency.md +30 -16
- package/skills/torusguard/payload/rules/webhook/TG-WEBHOOK-004-unvalidated-webhook-event-type.md +25 -16
- package/skills/torusguard/payload/rules/websocket/TG-WS-002-missing-channel-level-authorization.md +28 -17
- package/skills/torusguard/payload/rules/websocket/TG-WS-003-unvalidated-websocket-message.md +31 -17
- package/skills/torusguard/payload/rules/websocket/TG-WS-004-unbounded-websocket-connections.md +31 -17
- package/skills/torusguard/payload/rules_catalog.json +520 -0
- package/skills/torusguard/payload/scripts/__pycache__/apply_runner.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/audit_runner.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/audit_runner.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/diff_guard.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/diff_guard.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/finding_scorer.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/finding_scorer.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/harden_runner.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/html_reporter.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/html_reporter.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/manifest_builder.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/memory_engine.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/memory_engine.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/monorepo_detector.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/monorepo_detector.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/recheck_runner.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/report_sync.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/report_sync.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/rules_sync.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/run_manager.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/run_manager.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/sarif_exporter.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/stack_detect.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/stack_detect.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/term_ui.cpython-311.pyc +0 -0
- package/skills/torusguard/payload/scripts/__pycache__/term_ui.cpython-314.pyc +0 -0
- package/skills/torusguard/payload/scripts/apply_runner.py +389 -377
- package/skills/torusguard/payload/scripts/audit_runner.py +1513 -653
- package/skills/torusguard/payload/scripts/finding_scorer.py +14 -2
- package/skills/torusguard/payload/scripts/harden_runner.py +628 -455
- package/skills/torusguard/payload/scripts/html_reporter.py +2668 -648
- package/skills/torusguard/payload/scripts/recheck_runner.py +248 -238
- package/skills/torusguard/payload/scripts/recipes_runner.py +137 -137
- package/skills/torusguard/payload/scripts/report_sync.py +719 -0
- package/skills/torusguard/payload/scripts/sarif_exporter.py +156 -116
- package/skills/torusguard/payload/scripts/stack_detect.py +44 -2
- package/skills/torusguard/payload/scripts/term_ui.py +162 -162
- package/skills/torusguard/payload/skills/torusguard/SKILL.md +75 -72
- package/skills/torusguard/payload/skills/torusguard-apply/SKILL.md +84 -80
- package/skills/torusguard/payload/skills/torusguard-audit/SKILL.md +87 -83
- package/skills/torusguard/payload/skills/torusguard-authorize/SKILL.md +7 -2
- package/skills/torusguard/payload/skills/torusguard-exploit-check/SKILL.md +7 -2
- package/skills/torusguard/payload/skills/torusguard-full/SKILL.md +7 -2
- package/skills/torusguard/payload/skills/torusguard-harden/SKILL.md +98 -94
- package/skills/torusguard/payload/skills/torusguard-init/SKILL.md +68 -64
- package/skills/torusguard/payload/skills/torusguard-recheck/SKILL.md +81 -77
- package/skills/torusguard/payload/skills/torusguard-report/SKILL.md +93 -72
- package/skills/torusguard/payload/skills/torusguard-status/SKILL.md +62 -58
- package/skills/torusguard/payload/skills/torusguard-verify/SKILL.md +7 -2
- package/skills/torusguard/payload/skills/torusguard-web-validate/SKILL.md +7 -2
- package/skills/torusguard/payload/workflows/apply.md +11 -4
- package/skills/torusguard/payload/workflows/audit.md +7 -1
- package/skills/torusguard/payload/workflows/authorize.md +2 -1
- package/skills/torusguard/payload/workflows/exploit-check.md +2 -1
- package/skills/torusguard/payload/workflows/harden.md +7 -1
- package/skills/torusguard/payload/workflows/init.md +6 -1
- package/skills/torusguard/payload/workflows/memory.md +2 -1
- package/skills/torusguard/payload/workflows/recheck.md +7 -1
- package/skills/torusguard/payload/workflows/report.md +7 -1
- package/skills/torusguard/payload/workflows/status.md +6 -1
- package/skills/torusguard/payload/workflows/verify.md +6 -1
- package/skills/torusguard/payload/workflows/web-validate.md +2 -1
- package/skills/torusguard-apply/SKILL.md +84 -80
- package/skills/torusguard-audit/SKILL.md +87 -83
- package/skills/torusguard-authorize/SKILL.md +7 -2
- package/skills/torusguard-exploit-check/SKILL.md +7 -2
- package/skills/torusguard-full/SKILL.md +7 -2
- package/skills/torusguard-harden/SKILL.md +98 -94
- package/skills/torusguard-init/SKILL.md +68 -64
- package/skills/torusguard-recheck/SKILL.md +81 -77
- package/skills/torusguard-report/SKILL.md +93 -72
- package/skills/torusguard-status/SKILL.md +62 -58
- package/skills/torusguard-verify/SKILL.md +7 -2
- package/skills/torusguard-web-validate/SKILL.md +7 -2
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"finding_id": "TG-SEC-001-bb5e4b77",
|
|
4
|
+
"rule_id": "TG-SEC-001",
|
|
5
|
+
"title": "Hardcoded Secret or API Key in Tracked Source",
|
|
6
|
+
"description": "Hardcoded JWT signing secret",
|
|
7
|
+
"severity": "Critical",
|
|
8
|
+
"category": "secrets",
|
|
9
|
+
"cluster": "cluster-credentials-exposure",
|
|
10
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
11
|
+
"line_number": 9,
|
|
12
|
+
"matched_text": "JWT_SECRET = 'FAKE_DEMO_JWT_SECRET_NOT_FOR_PRODUCTION'",
|
|
13
|
+
"snippet": "\n// TG-SEC-001: Hardcoded JWT secret\nconst JWT_SECRET = 'FAKE_DEMO_JWT_SECRET_NOT_FOR_PRODUCTION';\n\n// TG-PLATFORM-001: Wildcard CORS with credentials",
|
|
14
|
+
"is_test": false,
|
|
15
|
+
"target": {
|
|
16
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
17
|
+
"start_line": 9,
|
|
18
|
+
"end_line": 9
|
|
19
|
+
},
|
|
20
|
+
"confidence_score": 80,
|
|
21
|
+
"confidence_band": "High Confidence",
|
|
22
|
+
"confidence_factors": {
|
|
23
|
+
"evidence_quality": 35,
|
|
24
|
+
"reproduction_success": 0,
|
|
25
|
+
"independent_confirmations": 5,
|
|
26
|
+
"environmental_clarity": 15,
|
|
27
|
+
"manual_review_status": 0,
|
|
28
|
+
"memory_boost": 25,
|
|
29
|
+
"test_exemption": false,
|
|
30
|
+
"test_deduction": 0,
|
|
31
|
+
"total_score": 80,
|
|
32
|
+
"classification_band": "High Confidence"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"finding_id": "TG-SEC-001-c393d596",
|
|
37
|
+
"rule_id": "TG-SEC-001",
|
|
38
|
+
"title": "Hardcoded Secret or API Key in Tracked Source",
|
|
39
|
+
"description": "Hardcoded credential or API secret string",
|
|
40
|
+
"severity": "Critical",
|
|
41
|
+
"category": "secrets",
|
|
42
|
+
"cluster": "cluster-credentials-exposure",
|
|
43
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
44
|
+
"line_number": 18,
|
|
45
|
+
"matched_text": "password: 'password123'",
|
|
46
|
+
"snippet": "\nconst users = [\n { id: '1', email: 'alice@demo.local', password: 'password123', name: 'Alice' },\n { id: '2', email: 'bob@demo.local', password: 'secret456', name: 'Bob' },\n];",
|
|
47
|
+
"is_test": false,
|
|
48
|
+
"target": {
|
|
49
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
50
|
+
"start_line": 18,
|
|
51
|
+
"end_line": 18
|
|
52
|
+
},
|
|
53
|
+
"confidence_score": 80,
|
|
54
|
+
"confidence_band": "High Confidence",
|
|
55
|
+
"confidence_factors": {
|
|
56
|
+
"evidence_quality": 35,
|
|
57
|
+
"reproduction_success": 0,
|
|
58
|
+
"independent_confirmations": 5,
|
|
59
|
+
"environmental_clarity": 15,
|
|
60
|
+
"manual_review_status": 0,
|
|
61
|
+
"memory_boost": 25,
|
|
62
|
+
"test_exemption": false,
|
|
63
|
+
"test_deduction": 0,
|
|
64
|
+
"total_score": 80,
|
|
65
|
+
"classification_band": "High Confidence"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"finding_id": "TG-DB-002-d9bd69df",
|
|
70
|
+
"rule_id": "TG-DB-002",
|
|
71
|
+
"title": "Privileged Database Credential in Browser Context",
|
|
72
|
+
"description": "Service role key or raw database connection string reference in frontend code",
|
|
73
|
+
"severity": "Critical",
|
|
74
|
+
"category": "database",
|
|
75
|
+
"cluster": "cluster-client-leak",
|
|
76
|
+
"file_path": "demo/playground/vulnerable_nextjs/actions.ts",
|
|
77
|
+
"line_number": 9,
|
|
78
|
+
"matched_text": "SUPABASE_SERVICE_ROLE_KEY",
|
|
79
|
+
"snippet": "\n// Finding 1: TG-CLIENT-001 - Backend admin key exposed in client-accessible code\nexport const SUPABASE_SERVICE_ROLE_KEY = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.demo_secret_token_1234567890\";\n\ninterface UserRecord {",
|
|
80
|
+
"is_test": false,
|
|
81
|
+
"target": {
|
|
82
|
+
"file_path": "demo/playground/vulnerable_nextjs/actions.ts",
|
|
83
|
+
"start_line": 9,
|
|
84
|
+
"end_line": 9
|
|
85
|
+
},
|
|
86
|
+
"confidence_score": 70,
|
|
87
|
+
"confidence_band": "High Confidence",
|
|
88
|
+
"confidence_factors": {
|
|
89
|
+
"evidence_quality": 35,
|
|
90
|
+
"reproduction_success": 0,
|
|
91
|
+
"independent_confirmations": 5,
|
|
92
|
+
"environmental_clarity": 15,
|
|
93
|
+
"manual_review_status": 0,
|
|
94
|
+
"memory_boost": 15,
|
|
95
|
+
"test_exemption": false,
|
|
96
|
+
"test_deduction": 0,
|
|
97
|
+
"total_score": 70,
|
|
98
|
+
"classification_band": "High Confidence"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"finding_id": "TG-SSRF-004-dcf3f71e",
|
|
103
|
+
"rule_id": "TG-SSRF-004",
|
|
104
|
+
"title": "Unbounded Outbound Request Without Timeout",
|
|
105
|
+
"description": "Python requests call without explicit timeout parameter",
|
|
106
|
+
"severity": "Critical",
|
|
107
|
+
"category": "ssrf",
|
|
108
|
+
"cluster": "cluster-ssrf",
|
|
109
|
+
"file_path": "examples/python/fastapi-hardened/main.py",
|
|
110
|
+
"line_number": 30,
|
|
111
|
+
"matched_text": "requests.get(url, timeout=5)",
|
|
112
|
+
"snippet": " if not is_safe_url(url):\n raise HTTPException(status_code=400, detail=\"Invalid destination address\")\n response = requests.get(url, timeout=5)\n return {\"status\": response.status_code, \"content\": response.text}\n",
|
|
113
|
+
"is_test": false,
|
|
114
|
+
"target": {
|
|
115
|
+
"file_path": "examples/python/fastapi-hardened/main.py",
|
|
116
|
+
"start_line": 30,
|
|
117
|
+
"end_line": 30
|
|
118
|
+
},
|
|
119
|
+
"confidence_score": 70,
|
|
120
|
+
"confidence_band": "High Confidence",
|
|
121
|
+
"confidence_factors": {
|
|
122
|
+
"evidence_quality": 35,
|
|
123
|
+
"reproduction_success": 0,
|
|
124
|
+
"independent_confirmations": 5,
|
|
125
|
+
"environmental_clarity": 15,
|
|
126
|
+
"manual_review_status": 0,
|
|
127
|
+
"memory_boost": 15,
|
|
128
|
+
"test_exemption": false,
|
|
129
|
+
"test_deduction": 0,
|
|
130
|
+
"total_score": 70,
|
|
131
|
+
"classification_band": "High Confidence"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"finding_id": "TG-SSRF-004-d8472223",
|
|
136
|
+
"rule_id": "TG-SSRF-004",
|
|
137
|
+
"title": "Unbounded Outbound Request Without Timeout",
|
|
138
|
+
"description": "Python requests call without explicit timeout parameter",
|
|
139
|
+
"severity": "Critical",
|
|
140
|
+
"category": "ssrf",
|
|
141
|
+
"cluster": "cluster-ssrf",
|
|
142
|
+
"file_path": "examples/python/fastapi-vuln/main.py",
|
|
143
|
+
"line_number": 9,
|
|
144
|
+
"matched_text": "requests.get(url)",
|
|
145
|
+
"snippet": "@app.get(\"/fetch\")\ndef fetch_url(url: str):\n response = requests.get(url)\n return {\"status\": response.status_code, \"content\": response.text}\n",
|
|
146
|
+
"is_test": false,
|
|
147
|
+
"target": {
|
|
148
|
+
"file_path": "examples/python/fastapi-vuln/main.py",
|
|
149
|
+
"start_line": 9,
|
|
150
|
+
"end_line": 9
|
|
151
|
+
},
|
|
152
|
+
"confidence_score": 70,
|
|
153
|
+
"confidence_band": "High Confidence",
|
|
154
|
+
"confidence_factors": {
|
|
155
|
+
"evidence_quality": 35,
|
|
156
|
+
"reproduction_success": 0,
|
|
157
|
+
"independent_confirmations": 5,
|
|
158
|
+
"environmental_clarity": 15,
|
|
159
|
+
"manual_review_status": 0,
|
|
160
|
+
"memory_boost": 15,
|
|
161
|
+
"test_exemption": false,
|
|
162
|
+
"test_deduction": 0,
|
|
163
|
+
"total_score": 70,
|
|
164
|
+
"classification_band": "High Confidence"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"finding_id": "TG-INPUT-003-fea9421e",
|
|
169
|
+
"rule_id": "TG-INPUT-003",
|
|
170
|
+
"title": "Unsafe Dynamic Code or HTML Execution",
|
|
171
|
+
"description": "React dangerouslySetInnerHTML rendering raw unescaped HTML",
|
|
172
|
+
"severity": "High",
|
|
173
|
+
"category": "injection",
|
|
174
|
+
"cluster": "cluster-injection",
|
|
175
|
+
"file_path": "examples/vulnerable-react-express/client/src/App.jsx",
|
|
176
|
+
"line_number": 53,
|
|
177
|
+
"matched_text": "dangerouslySetInnerHTML=",
|
|
178
|
+
"snippet": "\n {/* TG-INPUT-003: Unsafe HTML rendering */}\n <div dangerouslySetInnerHTML={{ __html: bio }} />\n\n <button onClick={fetchUser}>Fetch user (IDOR demo)</button>",
|
|
179
|
+
"is_test": false,
|
|
180
|
+
"target": {
|
|
181
|
+
"file_path": "examples/vulnerable-react-express/client/src/App.jsx",
|
|
182
|
+
"start_line": 53,
|
|
183
|
+
"end_line": 53
|
|
184
|
+
},
|
|
185
|
+
"confidence_score": 80,
|
|
186
|
+
"confidence_band": "High Confidence",
|
|
187
|
+
"confidence_factors": {
|
|
188
|
+
"evidence_quality": 35,
|
|
189
|
+
"reproduction_success": 0,
|
|
190
|
+
"independent_confirmations": 5,
|
|
191
|
+
"environmental_clarity": 15,
|
|
192
|
+
"manual_review_status": 0,
|
|
193
|
+
"memory_boost": 25,
|
|
194
|
+
"test_exemption": false,
|
|
195
|
+
"test_deduction": 0,
|
|
196
|
+
"total_score": 80,
|
|
197
|
+
"classification_band": "High Confidence"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"finding_id": "TG-PLATFORM-001-7dd35cb4",
|
|
202
|
+
"rule_id": "TG-PLATFORM-001",
|
|
203
|
+
"title": "Wildcard CORS With Credentials",
|
|
204
|
+
"description": "Wildcard CORS origin configured in Express middleware",
|
|
205
|
+
"severity": "High",
|
|
206
|
+
"category": "platform",
|
|
207
|
+
"cluster": "cluster-auth-bypass",
|
|
208
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
209
|
+
"line_number": 12,
|
|
210
|
+
"matched_text": "cors({ origin: '*'",
|
|
211
|
+
"snippet": "\n// TG-PLATFORM-001: Wildcard CORS with credentials\napp.use(cors({ origin: '*', credentials: true }));\n\n// TG-PLATFORM-004: No explicit JSON body size limit",
|
|
212
|
+
"is_test": false,
|
|
213
|
+
"target": {
|
|
214
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
215
|
+
"start_line": 12,
|
|
216
|
+
"end_line": 12
|
|
217
|
+
},
|
|
218
|
+
"confidence_score": 80,
|
|
219
|
+
"confidence_band": "High Confidence",
|
|
220
|
+
"confidence_factors": {
|
|
221
|
+
"evidence_quality": 35,
|
|
222
|
+
"reproduction_success": 0,
|
|
223
|
+
"independent_confirmations": 5,
|
|
224
|
+
"environmental_clarity": 15,
|
|
225
|
+
"manual_review_status": 0,
|
|
226
|
+
"memory_boost": 25,
|
|
227
|
+
"test_exemption": false,
|
|
228
|
+
"test_deduction": 0,
|
|
229
|
+
"total_score": 80,
|
|
230
|
+
"classification_band": "High Confidence"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"finding_id": "TG-AUTH-003-6a05e509",
|
|
235
|
+
"rule_id": "TG-AUTH-003",
|
|
236
|
+
"title": "Missing Object-Level Authorization (IDOR)",
|
|
237
|
+
"description": "JWT verification missing explicit algorithms restriction parameter",
|
|
238
|
+
"severity": "High",
|
|
239
|
+
"category": "auth",
|
|
240
|
+
"cluster": "cluster-auth-bypass",
|
|
241
|
+
"file_path": "examples/hardened-react-express/server/index.js",
|
|
242
|
+
"line_number": 49,
|
|
243
|
+
"matched_text": "jwt.verify(token, process.env.JWT_SECRET)",
|
|
244
|
+
"snippet": " if (!token) return res.status(401).json({ error: 'Unauthorized' });\n try {\n req.user = jwt.verify(token, process.env.JWT_SECRET);\n next();\n } catch {",
|
|
245
|
+
"is_test": false,
|
|
246
|
+
"target": {
|
|
247
|
+
"file_path": "examples/hardened-react-express/server/index.js",
|
|
248
|
+
"start_line": 49,
|
|
249
|
+
"end_line": 49
|
|
250
|
+
},
|
|
251
|
+
"confidence_score": 70,
|
|
252
|
+
"confidence_band": "High Confidence",
|
|
253
|
+
"confidence_factors": {
|
|
254
|
+
"evidence_quality": 35,
|
|
255
|
+
"reproduction_success": 0,
|
|
256
|
+
"independent_confirmations": 5,
|
|
257
|
+
"environmental_clarity": 15,
|
|
258
|
+
"manual_review_status": 0,
|
|
259
|
+
"memory_boost": 15,
|
|
260
|
+
"test_exemption": false,
|
|
261
|
+
"test_deduction": 0,
|
|
262
|
+
"total_score": 70,
|
|
263
|
+
"classification_band": "High Confidence"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"finding_id": "TG-INPUT-001-c7457f38",
|
|
268
|
+
"rule_id": "TG-INPUT-001",
|
|
269
|
+
"title": "Missing Server-Side Request Validation",
|
|
270
|
+
"description": "Destructuring unvalidated req.body without schema validation",
|
|
271
|
+
"severity": "High",
|
|
272
|
+
"category": "injection",
|
|
273
|
+
"cluster": "cluster-injection",
|
|
274
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
275
|
+
"line_number": 27,
|
|
276
|
+
"matched_text": "const { email, password } = req.body;",
|
|
277
|
+
"snippet": "// TG-AUTH-004: Insecure cookie (no httpOnly/Secure/SameSite)\napp.post('/api/login', (req, res) => {\n const { email, password } = req.body;\n console.log('Login attempt:', { email, password }); // TG-SEC-004\n const user = users.find((u) => u.email === email && u.password === password);",
|
|
278
|
+
"is_test": false,
|
|
279
|
+
"target": {
|
|
280
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
281
|
+
"start_line": 27,
|
|
282
|
+
"end_line": 27
|
|
283
|
+
},
|
|
284
|
+
"confidence_score": 70,
|
|
285
|
+
"confidence_band": "High Confidence",
|
|
286
|
+
"confidence_factors": {
|
|
287
|
+
"evidence_quality": 35,
|
|
288
|
+
"reproduction_success": 0,
|
|
289
|
+
"independent_confirmations": 5,
|
|
290
|
+
"environmental_clarity": 15,
|
|
291
|
+
"manual_review_status": 0,
|
|
292
|
+
"memory_boost": 15,
|
|
293
|
+
"test_exemption": false,
|
|
294
|
+
"test_deduction": 0,
|
|
295
|
+
"total_score": 70,
|
|
296
|
+
"classification_band": "High Confidence"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"finding_id": "TG-RATE-001-dcd0a3c7",
|
|
301
|
+
"rule_id": "TG-RATE-001",
|
|
302
|
+
"title": "Unlimited Authentication Endpoint",
|
|
303
|
+
"description": "Authentication POST endpoint defined without rate-limiting middleware",
|
|
304
|
+
"severity": "High",
|
|
305
|
+
"category": "rate",
|
|
306
|
+
"cluster": "cluster-rate-limiting",
|
|
307
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
308
|
+
"line_number": 26,
|
|
309
|
+
"matched_text": "app.post('/api/login', (",
|
|
310
|
+
"snippet": "// TG-SEC-004: Logs sensitive data\n// TG-AUTH-004: Insecure cookie (no httpOnly/Secure/SameSite)\napp.post('/api/login', (req, res) => {\n const { email, password } = req.body;\n console.log('Login attempt:', { email, password }); // TG-SEC-004",
|
|
311
|
+
"is_test": false,
|
|
312
|
+
"target": {
|
|
313
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
314
|
+
"start_line": 26,
|
|
315
|
+
"end_line": 26
|
|
316
|
+
},
|
|
317
|
+
"confidence_score": 70,
|
|
318
|
+
"confidence_band": "High Confidence",
|
|
319
|
+
"confidence_factors": {
|
|
320
|
+
"evidence_quality": 35,
|
|
321
|
+
"reproduction_success": 0,
|
|
322
|
+
"independent_confirmations": 5,
|
|
323
|
+
"environmental_clarity": 15,
|
|
324
|
+
"manual_review_status": 0,
|
|
325
|
+
"memory_boost": 15,
|
|
326
|
+
"test_exemption": false,
|
|
327
|
+
"test_deduction": 0,
|
|
328
|
+
"total_score": 70,
|
|
329
|
+
"classification_band": "High Confidence"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"finding_id": "TG-PLATFORM-002-1f383dcf",
|
|
334
|
+
"rule_id": "TG-PLATFORM-002",
|
|
335
|
+
"title": "Missing Security Headers",
|
|
336
|
+
"description": "Express application initialized without helmet security headers middleware",
|
|
337
|
+
"severity": "Medium",
|
|
338
|
+
"category": "platform",
|
|
339
|
+
"cluster": "cluster-platform",
|
|
340
|
+
"file_path": "examples/hardened-react-express/server/index.js",
|
|
341
|
+
"line_number": 17,
|
|
342
|
+
"matched_text": "const app = express();",
|
|
343
|
+
"snippet": "}\n\nconst app = express();\nconst PORT = 3001;\nconst isProd = process.env.NODE_ENV === 'production';",
|
|
344
|
+
"is_test": false,
|
|
345
|
+
"target": {
|
|
346
|
+
"file_path": "examples/hardened-react-express/server/index.js",
|
|
347
|
+
"start_line": 17,
|
|
348
|
+
"end_line": 17
|
|
349
|
+
},
|
|
350
|
+
"confidence_score": 70,
|
|
351
|
+
"confidence_band": "High Confidence",
|
|
352
|
+
"confidence_factors": {
|
|
353
|
+
"evidence_quality": 35,
|
|
354
|
+
"reproduction_success": 0,
|
|
355
|
+
"independent_confirmations": 5,
|
|
356
|
+
"environmental_clarity": 15,
|
|
357
|
+
"manual_review_status": 0,
|
|
358
|
+
"memory_boost": 15,
|
|
359
|
+
"test_exemption": false,
|
|
360
|
+
"test_deduction": 0,
|
|
361
|
+
"total_score": 70,
|
|
362
|
+
"classification_band": "High Confidence"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"finding_id": "TG-SEC-004-dbbc17f7",
|
|
367
|
+
"rule_id": "TG-SEC-004",
|
|
368
|
+
"title": "Sensitive Information in Logs",
|
|
369
|
+
"description": "Plaintext credential or token logged to output sink",
|
|
370
|
+
"severity": "Medium",
|
|
371
|
+
"category": "secrets",
|
|
372
|
+
"cluster": "cluster-credentials-exposure",
|
|
373
|
+
"file_path": "examples/vulnerable-react-express/client/src/App.jsx",
|
|
374
|
+
"line_number": 30,
|
|
375
|
+
"matched_text": "console.log('Login token:', data.token, 'config:', clientConfig)",
|
|
376
|
+
"snippet": " const data = await res.json();\n // TG-CLIENT-002: Sensitive console logging\n console.log('Login token:', data.token, 'config:', clientConfig);\n setMessage(JSON.stringify(data));\n }",
|
|
377
|
+
"is_test": false,
|
|
378
|
+
"target": {
|
|
379
|
+
"file_path": "examples/vulnerable-react-express/client/src/App.jsx",
|
|
380
|
+
"start_line": 30,
|
|
381
|
+
"end_line": 30
|
|
382
|
+
},
|
|
383
|
+
"confidence_score": 70,
|
|
384
|
+
"confidence_band": "High Confidence",
|
|
385
|
+
"confidence_factors": {
|
|
386
|
+
"evidence_quality": 35,
|
|
387
|
+
"reproduction_success": 0,
|
|
388
|
+
"independent_confirmations": 5,
|
|
389
|
+
"environmental_clarity": 15,
|
|
390
|
+
"manual_review_status": 0,
|
|
391
|
+
"memory_boost": 15,
|
|
392
|
+
"test_exemption": false,
|
|
393
|
+
"test_deduction": 0,
|
|
394
|
+
"total_score": 70,
|
|
395
|
+
"classification_band": "High Confidence"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"finding_id": "TG-CLIENT-001-1ba4789e",
|
|
400
|
+
"rule_id": "TG-CLIENT-001",
|
|
401
|
+
"title": "Public Production Source Maps",
|
|
402
|
+
"description": "Build config emitting unminified source maps in production output",
|
|
403
|
+
"severity": "Medium",
|
|
404
|
+
"category": "client",
|
|
405
|
+
"cluster": "cluster-client-leak",
|
|
406
|
+
"file_path": "examples/vulnerable-react-express/client/vite.config.js",
|
|
407
|
+
"line_number": 7,
|
|
408
|
+
"matched_text": "sourcemap: true",
|
|
409
|
+
"snippet": "export default defineConfig({\n plugins: [react()],\n build: { sourcemap: true },\n server: {\n port: 5173,",
|
|
410
|
+
"is_test": false,
|
|
411
|
+
"target": {
|
|
412
|
+
"file_path": "examples/vulnerable-react-express/client/vite.config.js",
|
|
413
|
+
"start_line": 7,
|
|
414
|
+
"end_line": 7
|
|
415
|
+
},
|
|
416
|
+
"confidence_score": 70,
|
|
417
|
+
"confidence_band": "High Confidence",
|
|
418
|
+
"confidence_factors": {
|
|
419
|
+
"evidence_quality": 35,
|
|
420
|
+
"reproduction_success": 0,
|
|
421
|
+
"independent_confirmations": 5,
|
|
422
|
+
"environmental_clarity": 15,
|
|
423
|
+
"manual_review_status": 0,
|
|
424
|
+
"memory_boost": 15,
|
|
425
|
+
"test_exemption": false,
|
|
426
|
+
"test_deduction": 0,
|
|
427
|
+
"total_score": 70,
|
|
428
|
+
"classification_band": "High Confidence"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"finding_id": "TG-SEC-004-08753da5",
|
|
433
|
+
"rule_id": "TG-SEC-004",
|
|
434
|
+
"title": "Sensitive Information in Logs",
|
|
435
|
+
"description": "Plaintext credential or token logged to output sink",
|
|
436
|
+
"severity": "Medium",
|
|
437
|
+
"category": "secrets",
|
|
438
|
+
"cluster": "cluster-credentials-exposure",
|
|
439
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
440
|
+
"line_number": 28,
|
|
441
|
+
"matched_text": "console.log('Login attempt:', { email, password })",
|
|
442
|
+
"snippet": "app.post('/api/login', (req, res) => {\n const { email, password } = req.body;\n console.log('Login attempt:', { email, password }); // TG-SEC-004\n const user = users.find((u) => u.email === email && u.password === password);\n if (!user) return res.status(401).json({ error: 'User not found' }); // enumeration",
|
|
443
|
+
"is_test": false,
|
|
444
|
+
"target": {
|
|
445
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
446
|
+
"start_line": 28,
|
|
447
|
+
"end_line": 28
|
|
448
|
+
},
|
|
449
|
+
"confidence_score": 70,
|
|
450
|
+
"confidence_band": "High Confidence",
|
|
451
|
+
"confidence_factors": {
|
|
452
|
+
"evidence_quality": 35,
|
|
453
|
+
"reproduction_success": 0,
|
|
454
|
+
"independent_confirmations": 5,
|
|
455
|
+
"environmental_clarity": 15,
|
|
456
|
+
"manual_review_status": 0,
|
|
457
|
+
"memory_boost": 15,
|
|
458
|
+
"test_exemption": false,
|
|
459
|
+
"test_deduction": 0,
|
|
460
|
+
"total_score": 70,
|
|
461
|
+
"classification_band": "High Confidence"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"finding_id": "TG-RATE-002-d67d7c98",
|
|
466
|
+
"rule_id": "TG-RATE-002",
|
|
467
|
+
"title": "Unlimited Public Write Endpoint",
|
|
468
|
+
"description": "Public submission endpoint defined without rate-limiting or captcha defense",
|
|
469
|
+
"severity": "Medium",
|
|
470
|
+
"category": "rate",
|
|
471
|
+
"cluster": "cluster-rate-limiting",
|
|
472
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
473
|
+
"line_number": 54,
|
|
474
|
+
"matched_text": "app.post('/api/contact', (",
|
|
475
|
+
"snippet": "// TG-INPUT-001: No validation\n// TG-RATE-002: Unlimited contact endpoint\napp.post('/api/contact', (req, res) => {\n res.json({ received: req.body });\n});",
|
|
476
|
+
"is_test": false,
|
|
477
|
+
"target": {
|
|
478
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
479
|
+
"start_line": 54,
|
|
480
|
+
"end_line": 54
|
|
481
|
+
},
|
|
482
|
+
"confidence_score": 70,
|
|
483
|
+
"confidence_band": "High Confidence",
|
|
484
|
+
"confidence_factors": {
|
|
485
|
+
"evidence_quality": 35,
|
|
486
|
+
"reproduction_success": 0,
|
|
487
|
+
"independent_confirmations": 5,
|
|
488
|
+
"environmental_clarity": 15,
|
|
489
|
+
"manual_review_status": 0,
|
|
490
|
+
"memory_boost": 15,
|
|
491
|
+
"test_exemption": false,
|
|
492
|
+
"test_deduction": 0,
|
|
493
|
+
"total_score": 70,
|
|
494
|
+
"classification_band": "High Confidence"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"finding_id": "TG-PLATFORM-002-eef342ec",
|
|
499
|
+
"rule_id": "TG-PLATFORM-002",
|
|
500
|
+
"title": "Missing Security Headers",
|
|
501
|
+
"description": "Express application initialized without helmet security headers middleware",
|
|
502
|
+
"severity": "Medium",
|
|
503
|
+
"category": "platform",
|
|
504
|
+
"cluster": "cluster-platform",
|
|
505
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
506
|
+
"line_number": 5,
|
|
507
|
+
"matched_text": "const app = express();",
|
|
508
|
+
"snippet": "const jwt = require('jsonwebtoken');\n\nconst app = express();\nconst PORT = 3001;\n",
|
|
509
|
+
"is_test": false,
|
|
510
|
+
"target": {
|
|
511
|
+
"file_path": "examples/vulnerable-react-express/server/index.js",
|
|
512
|
+
"start_line": 5,
|
|
513
|
+
"end_line": 5
|
|
514
|
+
},
|
|
515
|
+
"confidence_score": 70,
|
|
516
|
+
"confidence_band": "High Confidence",
|
|
517
|
+
"confidence_factors": {
|
|
518
|
+
"evidence_quality": 35,
|
|
519
|
+
"reproduction_success": 0,
|
|
520
|
+
"independent_confirmations": 5,
|
|
521
|
+
"environmental_clarity": 15,
|
|
522
|
+
"manual_review_status": 0,
|
|
523
|
+
"memory_boost": 15,
|
|
524
|
+
"test_exemption": false,
|
|
525
|
+
"test_deduction": 0,
|
|
526
|
+
"total_score": 70,
|
|
527
|
+
"classification_band": "High Confidence"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
]
|