{
  "schemaVersion": 1,
  "benchmarkName": "Pallos controlled security benchmark",
  "manifestVersion": "pallos-proof-v1",
  "manifestHash": "8be3f5f88dcc82ef90490806534e7941fb77aff96ade173aa8470194e8bd1df9",
  "scannerVersion": "2026.10.06.2",
  "scannerHashes": {
    "code-scanner.ts": "a6ab64a6d4066585f59d7ef2c783a30cc20ad361781f97ba9cf64a8487ee3557",
    "code-evaluation.ts": "3cd930c1d7a4de4f4edbbd762c0d1bb195c2416f05eafd4c463cab155b59b656",
    "dependency-scanner.ts": "fe1a6f8aad345446366bde9bf347e4183c92eeb4f72e6fba7c7f4ff5201e4397",
    "supported-controls.ts": "b4cab8443c706301165901c6a61568296d98051ba0986ce04c483f6c9ca54219",
    "finding-identity.ts": "12e0814015a7b1325a7626a4359febd072f2f5fd3a8b8ede7def5ca5948c53ef",
    "scanner-version.ts": "cf3de5c45336eb727997426d6e3817bf00da4fc121867015e242941123bba76e"
  },
  "runDate": "2026-10-07T23:43:09.719Z",
  "mode": "live-provider-and-source-check",
  "providerSnapshot": {
    "version": "osv-capture-2026-10-07",
    "sha256": "9bb755d4fbb2475581dcd06c4c12520e37174ffaf788386984556f02b307041f",
    "captures": [
      {
        "request": {
          "queries": [
            {
              "package": {
                "ecosystem": "npm",
                "name": "lodash"
              },
              "version": "4.17.20"
            }
          ]
        },
        "capturedAt": "2026-10-07T23:36:11.029Z",
        "provider": "https://api.osv.dev/v1/querybatch"
      },
      {
        "request": {
          "queries": [
            {
              "package": {
                "ecosystem": "npm",
                "name": "lodash"
              },
              "version": "4.18.1"
            }
          ]
        },
        "capturedAt": "2026-10-07T23:36:11.187Z",
        "provider": "https://api.osv.dev/v1/querybatch"
      }
    ]
  },
  "expectationPolicy": "Human-authored source expectations. knownSupport never changes risk into not-applicable. Correct safe cases mean no false alarm for this example, not verified runtime protection.",
  "cases": [
    {
      "id": "secret-literal",
      "name": "Server-secret-shaped literal",
      "benchmark": "Pallos target-stack v1",
      "category": "Secrets",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "src/server/config.ts",
        "fixture": "fixtures/target-stack/secret-literal.txt",
        "sha256": "7f48d6ace261e74f3c15dbc39fa2c3a633a2ae9b3ad3ca09addd5dc3e983e2ca"
      },
      "why": "Flag credential-shaped text without claiming it is an active credential.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "secret-openai",
        "check": "committed-secrets",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "Flag credential-shaped text without claiming it is an active credential.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "This deliberately synthetic string is not usable. Format matching should remain a review signal.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "7f48d6ace261e74f3c15dbc39fa2c3a633a2ae9b3ad3ca09addd5dc3e983e2ca",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "secret-openai",
            "title": "OpenAI-style API key appears in source code",
            "severity": "critical",
            "category": "Secrets",
            "file_path": "src/server/config.ts",
            "line_number": 1,
            "evidence": "A value matching openai-style api key was detected on line 1. The value was redacted and was not saved.",
            "explanation": "This text matches a credential format. Pallos did not validate whether it is active; if it is real, repository readers could copy and use it.",
            "suggested_fix": "Revoke and rotate the credential, move the replacement into server-only environment storage, and remove it from repository history.",
            "source_hash": "7f48d6ace261e74f3c15dbc39fa2c3a633a2ae9b3ad3ca09addd5dc3e983e2ca",
            "confidence": "needs_review",
            "dimensions": [
              "safety",
              "privacy"
            ],
            "code_excerpt": null,
            "logical_target": "0f7e358043d8f31bcb51d238892b1ef2481d4b3bb9c76d137940dc107225792b:occurrence:0",
            "context_hash": "a752ed14812d737eb5ebde1605f87e5fc4edf4d7b1ce510d535071ab8950c6e2",
            "fingerprint": "dbd1d35b031f68c610c52f5638922869051b01da650ec4d70e9e4af2e78858d4"
          }
        ],
        "evaluations": [
          {
            "rule": "committed-secrets",
            "target": "src/server/config.ts",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "A value matching openai-style api key was detected on line 1. The value was redacted and was not saved."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": "critical",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "public-key",
      "name": "Public Supabase anon key",
      "benchmark": "Pallos target-stack v1",
      "category": "Secrets",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/client.ts",
        "fixture": "fixtures/target-stack/public-key.txt",
        "sha256": "d951d92b202a5cff0025d5a3e85529f802e5938f05708c1edec868d695fc673b"
      },
      "why": "Do not flag an intentionally public anon-key reference as a server credential.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "secret-",
        "check": "committed-secrets",
        "minimumConfidence": null,
        "knownSupport": true,
        "description": "Do not flag an intentionally public anon-key reference as a server credential.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "A public key does not prove deployed RLS is safe.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "d951d92b202a5cff0025d5a3e85529f802e5938f05708c1edec868d695fc673b",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "committed-secrets",
            "target": "app/client.ts",
            "applicability": "applicable",
            "evaluatedStatus": "passed",
            "evidence": [
              "No supported credential-shaped text pattern matched in this file. Negative pattern check only, not proof of protection."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": null,
            "confidence": "high"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "missing-auth",
      "name": "Missing authentication",
      "benchmark": "Pallos target-stack v1",
      "category": "Authentication",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/projects/route.ts",
        "fixture": "fixtures/target-stack/missing-auth.txt",
        "sha256": "de7844a85317d4164a755a102180e19d4347040fee39a3deda96078471eefb72"
      },
      "why": "Identify the missing identity denial before reading private projects.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "authentication-",
        "check": "ownership-validation",
        "minimumConfidence": "needs_review",
        "knownSupport": false,
        "description": "Identify the missing identity denial before reading private projects.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "General route authentication analysis is not currently supported.",
        "Static review of this target only; runtime safety is not established.",
        "General object ownership and cross-file authorization analysis is not implemented. An identity lookup alone does not verify ownership."
      ],
      "regressionClassification": "Missed",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "de7844a85317d4164a755a102180e19d4347040fee39a3deda96078471eefb72",
      "classification": "Missed",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "ownership-validation",
            "target": "app/api/projects/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "could_not_verify",
            "evidence": [],
            "missingControls": [
              "Supported object-ownership analysis"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "General object ownership and cross-file authorization analysis is not implemented. An identity lookup alone does not verify ownership."
            ],
            "severity": null,
            "confidence": "could_not_verify"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "safe-auth",
      "name": "Fail-closed authentication",
      "benchmark": "Pallos target-stack v1",
      "category": "Authentication",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/projects/route.ts",
        "fixture": "fixtures/target-stack/safe-auth.txt",
        "sha256": "07b5ca667a346460ab8600422748351190c41fd53a3d58ed4e979dc23bd32e13"
      },
      "why": "Do not falsely flag the direct fail-closed identity guard.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "authentication-",
        "check": "ownership-validation",
        "minimumConfidence": null,
        "knownSupport": false,
        "description": "Do not falsely flag the direct fail-closed identity guard.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "This narrow false-positive case is not a positive authentication assurance check."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "07b5ca667a346460ab8600422748351190c41fd53a3d58ed4e979dc23bd32e13",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "missing-admin",
      "name": "Missing admin authorization",
      "benchmark": "Pallos target-stack v1",
      "category": "Authorization",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/admin/users/route.ts",
        "fixture": "fixtures/target-stack/missing-admin.txt",
        "sha256": "b878d2ab26c0c7450873f42917e9c7766034371f117dea4f144edb8b575ae847"
      },
      "why": "Report missing non-admin denial before the privileged operation.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "admin-route-authorization",
        "check": "admin-authorization",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "Report missing non-admin denial before the privileged operation.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Only ordered direct guards in the same handler are supported.",
        "Static review of this target only; runtime safety is not established.",
        "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "b878d2ab26c0c7450873f42917e9c7766034371f117dea4f144edb8b575ae847",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "admin-route-authorization",
            "title": "Admin route needs explicit authorization review",
            "severity": "high",
            "category": "Access",
            "file_path": "app/api/admin/users/route.ts",
            "line_number": 1,
            "evidence": "GET: no supported ordered guard pair; ReturnStatement reached before verified denial. Missing supported controls: Non-admin denial before processing.",
            "context": {
              "observations": [
                "GET: no supported ordered guard pair; ReturnStatement reached before verified denial."
              ],
              "path": [],
              "limitations": [
                "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
              ]
            },
            "explanation": "Being signed in does not automatically make a user an administrator.",
            "suggested_fix": "Verify the user on the server, enforce an explicit admin permission, and deny access by default.",
            "source_hash": "b878d2ab26c0c7450873f42917e9c7766034371f117dea4f144edb8b575ae847",
            "confidence": "needs_review",
            "dimensions": [
              "safety",
              "privacy"
            ],
            "code_excerpt": "   1  export async function GET() { const user = await getUser(); if (!user) return new Response('Denied',{status:401}); return Response.json(await db.from('users').select('*')); }\n   2  ",
            "logical_target": "route-controls:occurrence:0",
            "context_hash": "ebf9c9339554a34c95e6d6b164798e9413861e21305750cab6b4c2eb94b8339e",
            "fingerprint": "08ce5b9441c7e6144de099168dcfec2fbe907152c2586b1dd945cbab01705b9c"
          }
        ],
        "evaluations": [
          {
            "rule": "admin-authorization",
            "target": "app/api/admin/users/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "GET: no supported ordered guard pair; ReturnStatement reached before verified denial. Missing supported controls: Non-admin denial before processing."
            ],
            "missingControls": [
              "Non-admin denial before processing"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
            ],
            "severity": "high",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "safe-admin",
      "name": "Supported admin authorization",
      "benchmark": "Pallos target-stack v1",
      "category": "Authorization",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/admin/users/route.ts",
        "fixture": "fixtures/target-stack/safe-admin.txt",
        "sha256": "a04b8df962655e4a86cae57c5700e16305f6010fe746b3120c4768a9b2d14837"
      },
      "why": "Recognize the supported identity denial followed by non-admin denial.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "admin-route-authorization",
        "check": "admin-authorization",
        "minimumConfidence": null,
        "knownSupport": true,
        "description": "Recognize the supported identity denial followed by non-admin denial.",
        "requireSupportedPass": true,
        "requiredAdvisory": null
      },
      "limitations": [
        "Runtime and imported authorization systems are outside this case.",
        "Static review of this target only; runtime safety is not established.",
        "Direct source guard ordering only; identity-provider behavior and runtime authorization were not verified."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "a04b8df962655e4a86cae57c5700e16305f6010fe746b3120c4768a9b2d14837",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "admin-authorization",
            "target": "app/api/admin/users/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "passed",
            "evidence": [
              "GET: missing identity returns 401; a non-admin role returns 403 before subsequent processing."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Direct source guard ordering only; identity-provider behavior and runtime authorization were not verified."
            ],
            "severity": null,
            "confidence": "high"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "missing-owner",
      "name": "Missing ownership validation",
      "benchmark": "Pallos target-stack v1",
      "category": "Ownership",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/projects/route.ts",
        "fixture": "fixtures/target-stack/missing-owner.txt",
        "sha256": "4067bfbaf7631b716fec57348ffd6777d2ac793d65b37396a5489ec8bb1d5b99"
      },
      "why": "Flag deletion by supplied ID without checking the authenticated owner.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "ownership-",
        "check": "ownership-validation",
        "minimumConfidence": "needs_review",
        "knownSupport": false,
        "description": "Flag deletion by supplied ID without checking the authenticated owner.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "General ownership analysis is unsupported; lack of a finding must be visible as a miss.",
        "Static review of this target only; runtime safety is not established.",
        "General object ownership and cross-file authorization analysis is not implemented. An identity lookup alone does not verify ownership."
      ],
      "regressionClassification": "Missed",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "4067bfbaf7631b716fec57348ffd6777d2ac793d65b37396a5489ec8bb1d5b99",
      "classification": "Missed",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "ownership-validation",
            "target": "app/api/projects/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "could_not_verify",
            "evidence": [],
            "missingControls": [
              "Supported object-ownership analysis"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "General object ownership and cross-file authorization analysis is not implemented. An identity lookup alone does not verify ownership."
            ],
            "severity": null,
            "confidence": "could_not_verify"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "safe-owner",
      "name": "Ownership-scoped deletion",
      "benchmark": "Pallos target-stack v1",
      "category": "Ownership",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/projects/route.ts",
        "fixture": "fixtures/target-stack/safe-owner.txt",
        "sha256": "2560994f3834afb77fa4d0b83edc44ae5dcf8e33f71db0b771efca747b959ca5"
      },
      "why": "Do not flag this direct owner-scoped deletion.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "ownership-",
        "check": "ownership-validation",
        "minimumConfidence": null,
        "knownSupport": false,
        "description": "Do not flag this direct owner-scoped deletion.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Pallos cannot positively establish general ownership safety; this tests false positives only.",
        "Static review of this target only; runtime safety is not established.",
        "General object ownership and cross-file authorization analysis is not implemented. An identity lookup alone does not verify ownership."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "2560994f3834afb77fa4d0b83edc44ae5dcf8e33f71db0b771efca747b959ca5",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "ownership-validation",
            "target": "app/api/projects/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "could_not_verify",
            "evidence": [],
            "missingControls": [
              "Supported object-ownership analysis"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "General object ownership and cross-file authorization analysis is not implemented. An identity lookup alone does not verify ownership."
            ],
            "severity": null,
            "confidence": "could_not_verify"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "broad-rls",
      "name": "Broad anonymous write RLS",
      "benchmark": "Pallos target-stack v1",
      "category": "Supabase / RLS",
      "technology": "SQL / Supabase",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "supabase/migrations/policies.sql",
        "fixture": "fixtures/target-stack/broad-rls.txt",
        "sha256": "8c249d81a7d4bf3f70124db9f12394b4daf402e220d628b560d7817a6917831d"
      },
      "why": "Flag unrestricted anonymous writes as a policy review signal.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "supabase-permissive-policy",
        "check": "supabase-rls",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "Flag unrestricted anonymous writes as a policy review signal.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Static SQL does not establish deployed grants, policy combinations or effective access.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "8c249d81a7d4bf3f70124db9f12394b4daf402e220d628b560d7817a6917831d",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "supabase-permissive-policy",
            "title": "Supabase policy allows every row",
            "severity": "high",
            "category": "Database",
            "file_path": "supabase/migrations/policies.sql",
            "line_number": 1,
            "evidence": "A policy uses an unconditional true expression near line 1.",
            "explanation": "An unconditional policy can expose or modify rows across users unless another control narrows access.",
            "suggested_fix": "Scope the policy to auth.uid(), a workspace membership, or another verified ownership condition and test with two accounts.",
            "source_hash": "8c249d81a7d4bf3f70124db9f12394b4daf402e220d628b560d7817a6917831d",
            "confidence": "needs_review",
            "dimensions": [
              "safety",
              "privacy"
            ],
            "code_excerpt": "   1  alter table public.projects enable row level security;\n   2  create policy broad_write on public.projects for all to anon using (true) with check (true);\n   3  ",
            "logical_target": "3472133a1ebc74577a5a90c6bcf9ee5ed95d7365eb33c4246e1744de394b423a:occurrence:0",
            "context_hash": "143704884594c3ac43ae202ba83a82799f63835bf93db3cc70650637b986724a",
            "fingerprint": "68de556c908c8002205982a429d078763002a67f67e0933a7f137cec26cc7d37"
          }
        ],
        "evaluations": [
          {
            "rule": "supabase-rls",
            "target": "supabase/migrations/policies.sql",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "A policy uses an unconditional true expression near line 1."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": "high",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "safe-rls",
      "name": "Owner-scoped RLS",
      "benchmark": "Pallos target-stack v1",
      "category": "Supabase / RLS",
      "technology": "SQL / Supabase",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "supabase/migrations/policies.sql",
        "fixture": "fixtures/target-stack/safe-rls.txt",
        "sha256": "c39f6f7b6bfbda2feac95cb0e81df92ad98cf293555899dd1463f974429c0752"
      },
      "why": "Do not flag the owner-scoped policy as unrestricted.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "supabase-permissive-policy",
        "check": "supabase-rls",
        "minimumConfidence": null,
        "knownSupport": false,
        "description": "Do not flag the owner-scoped policy as unrestricted.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Positive verification of effective deployed RLS is not supported.",
        "Static review of this target only; runtime safety is not established.",
        "No supported positive control evaluation exists for this target. Absence of a finding is not a pass."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "c39f6f7b6bfbda2feac95cb0e81df92ad98cf293555899dd1463f974429c0752",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "supabase-rls",
            "target": "supabase/migrations/policies.sql",
            "applicability": "applicable",
            "evaluatedStatus": "could_not_verify",
            "evidence": [],
            "missingControls": [
              "Supported positive control evaluation"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "No supported positive control evaluation exists for this target. Absence of a finding is not a pass."
            ],
            "severity": null,
            "confidence": "could_not_verify"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "missing-webhook",
      "name": "Unverified Stripe webhook",
      "benchmark": "Pallos target-stack v1",
      "category": "Stripe",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/webhooks/stripe/route.ts",
        "fixture": "fixtures/target-stack/missing-webhook.txt",
        "sha256": "57f7d1d60c28e6a8a989bbccd060d9834851f490c86861a1d8c24b119371f36c"
      },
      "why": "Flag missing raw-body signature verification before processing.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "stripe-webhook-signature",
        "check": "webhook-signatures",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "Flag missing raw-body signature verification before processing.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "A source review cannot test deployed signing-secret configuration.",
        "Static review of this target only; runtime safety is not established.",
        "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "57f7d1d60c28e6a8a989bbccd060d9834851f490c86861a1d8c24b119371f36c",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "stripe-webhook-signature",
            "title": "Stripe webhook does not show signature verification",
            "severity": "high",
            "category": "Webhooks",
            "file_path": "app/api/webhooks/stripe/route.ts",
            "line_number": 1,
            "evidence": "Pallos could not verify a supported raw-body/signature/secret verification sequence before event processing.",
            "context": {
              "observations": [
                "POST: no supported verification-before-processing sequence."
              ],
              "path": [],
              "limitations": [
                "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
              ]
            },
            "explanation": "Without signature verification, an attacker can send forged events to the webhook endpoint.",
            "suggested_fix": "Read the raw request body and verify the stripe-signature header with Stripe webhooks.constructEvent before processing the event.",
            "source_hash": "57f7d1d60c28e6a8a989bbccd060d9834851f490c86861a1d8c24b119371f36c",
            "confidence": "needs_review",
            "dimensions": [
              "safety",
              "reliability"
            ],
            "code_excerpt": "   1  export async function POST(request: Request) { const event = await request.json(); await processEvent(event); return Response.json({ok:true}); }\n   2  ",
            "logical_target": "route-controls:occurrence:0",
            "context_hash": "0545dc25079d7bc9affc9d6c57f592cc8fc16575428d55042e9fadb814dd1a01",
            "fingerprint": "b7c47dc6a2ed4b9fe880be061a38c5359ba99e207dafb239df31ebc8c59569f5"
          }
        ],
        "evaluations": [
          {
            "rule": "webhook-signatures",
            "target": "app/api/webhooks/stripe/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "Pallos could not verify a supported raw-body/signature/secret verification sequence before event processing."
            ],
            "missingControls": [
              "Raw payload, signature and endpoint secret verified before trusted event processing"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
            ],
            "severity": "high",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "safe-webhook",
      "name": "Supported Stripe verification",
      "benchmark": "Pallos target-stack v1",
      "category": "Stripe",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/webhooks/stripe/route.ts",
        "fixture": "fixtures/target-stack/safe-webhook.txt",
        "sha256": "8a6854dddf10d4da5cb93d7f87fe1917d370efeb0fa247ee6b0835822890fa7d"
      },
      "why": "Recognize raw-body verification with a server secret before processing, failing closed.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "stripe-webhook-signature",
        "check": "webhook-signatures",
        "minimumConfidence": null,
        "knownSupport": true,
        "description": "Recognize raw-body verification with a server secret before processing, failing closed.",
        "requireSupportedPass": true,
        "requiredAdvisory": null
      },
      "limitations": [
        "Only the direct supported verification sequence is asserted.",
        "Static review of this target only; runtime safety is not established.",
        "Direct Stripe SDK source pattern only; deployed secret value, provider identity and runtime reachability were not verified."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "8a6854dddf10d4da5cb93d7f87fe1917d370efeb0fa247ee6b0835822890fa7d",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "webhook-signatures",
            "target": "app/api/webhooks/stripe/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "passed",
            "evidence": [
              "POST: Stripe constructEvent verifies the raw body, signature and endpoint secret before subsequent processing."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Direct Stripe SDK source pattern only; deployed secret value, provider identity and runtime reachability were not verified."
            ],
            "severity": null,
            "confidence": "high"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "unsafe-boundary",
      "name": "Server key referenced in client code",
      "benchmark": "Pallos target-stack v1",
      "category": "Next.js boundary",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/client.ts",
        "fixture": "fixtures/target-stack/unsafe-boundary.txt",
        "sha256": "6b8f569208afcd8c693ce4926bb717781715cf9159ec8d7150d654b6114de31b"
      },
      "why": "Flag a service-role reference inside a client module.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "supabase-service-role-client",
        "check": "client-secret-boundary",
        "minimumConfidence": "high",
        "knownSupport": true,
        "description": "Flag a service-role reference inside a client module.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "This tests a visible reference, not whether a deployed bundle actually contains a key.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "6b8f569208afcd8c693ce4926bb717781715cf9159ec8d7150d654b6114de31b",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "supabase-service-role-client",
            "title": "Supabase privileged key referenced in client code",
            "severity": "critical",
            "category": "Boundaries",
            "file_path": "app/client.ts",
            "line_number": 2,
            "evidence": "A client module references a Supabase service-role or secret key name on line 2. No credential value was saved.",
            "explanation": "Client code is delivered to browsers. A privileged database key there can bypass Row Level Security.",
            "suggested_fix": "Move privileged Supabase operations into server-only code and expose only the minimum authenticated operation to the client.",
            "source_hash": "6b8f569208afcd8c693ce4926bb717781715cf9159ec8d7150d654b6114de31b",
            "confidence": "high",
            "dimensions": [
              "safety",
              "privacy"
            ],
            "code_excerpt": "   1  'use client';\n   2  export const key = [REDACTED];\n   3  ",
            "logical_target": "1f5bd7c74b00f663f0189145543b54670dc8701cdb0377168a5739be6955ef0b:occurrence:0",
            "context_hash": "eaa847fe3dc2fb8068e5576f9558f8cd9f4bfcab1936df49829200b400b7e4db",
            "fingerprint": "5b5aeee1b04ad586e77e6c2c6239c098519eddb951b3c8b31b5956873a4ef2e5"
          }
        ],
        "evaluations": [
          {
            "rule": "client-secret-boundary",
            "target": "app/client.ts",
            "applicability": "applicable",
            "evaluatedStatus": "finding",
            "evidence": [
              "A client module references a Supabase service-role or secret key name on line 2. No credential value was saved."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": "critical",
            "confidence": "high"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "safe-client",
      "name": "Safe client configuration",
      "benchmark": "Pallos target-stack v1",
      "category": "Next.js boundary",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/client.ts",
        "fixture": "fixtures/target-stack/safe-client.txt",
        "sha256": "3a1848443957cf2c951286272b7853f64f2a6dcf56e8cb30b2122b6ec6326f52"
      },
      "why": "Do not flag public configuration as a privileged client secret.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "supabase-service-role-client",
        "check": "client-secret-boundary",
        "minimumConfidence": null,
        "knownSupport": true,
        "description": "Do not flag public configuration as a privileged client secret.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Public configuration does not establish authorization or RLS.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "3a1848443957cf2c951286272b7853f64f2a6dcf56e8cb30b2122b6ec6326f52",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "client-secret-boundary",
            "target": "app/client.ts",
            "applicability": "applicable",
            "evaluatedStatus": "passed",
            "evidence": [
              "No supported client-secret reference pattern matched in this file. Negative pattern check only, not proof of protection."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": null,
            "confidence": "high"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "affected-dependency",
      "name": "Affected locked lodash",
      "benchmark": "Pallos target-stack v1",
      "category": "Dependencies",
      "technology": "npm",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "package-lock.json",
        "fixture": "fixtures/target-stack/affected-dependency.txt",
        "sha256": "362b43b6f00ae7d029072cbe18025f614ade22af7cdf130b3b5809679bc088c9"
      },
      "why": "Report at least GHSA-29mw-wpgm-hmr9 for locked lodash 4.17.20.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "dependency-advisory:",
        "check": "dependency-advisories",
        "minimumConfidence": "high",
        "knownSupport": true,
        "description": "Report at least GHSA-29mw-wpgm-hmr9 for locked lodash 4.17.20.",
        "requireSupportedPass": false,
        "requiredAdvisory": "GHSA-29mw-wpgm-hmr9"
      },
      "limitations": [
        "Advisory matching does not prove runtime reachability.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "362b43b6f00ae7d029072cbe18025f614ade22af7cdf130b3b5809679bc088c9",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "fingerprint": "2270da59b817467a063f138a7fe59424d3c7089562047dfda32685d211e34e01",
            "rule_id": "dependency-advisory:GHSA-29mw-wpgm-hmr9",
            "title": "lodash 4.17.20 has a published advisory",
            "severity": "medium",
            "confidence": "high",
            "dimensions": [
              "safety"
            ],
            "category": "Dependencies",
            "file_path": "package-lock.json",
            "line_number": null,
            "evidence": "GHSA-29mw-wpgm-hmr9 applies to the locked lodash 4.17.20 package version.",
            "explanation": "A public vulnerability database reports that this locked dependency version is affected.",
            "suggested_fix": "Review the advisory, upgrade to a patched version, run the application test suite, and confirm whether the vulnerable code path is reachable.",
            "code_excerpt": null,
            "source_hash": "362b43b6f00ae7d029072cbe18025f614ade22af7cdf130b3b5809679bc088c9"
          },
          {
            "fingerprint": "2054c2060f265317be441f19e02f5984c35a861aec174f3454bdc35005c082a5",
            "rule_id": "dependency-advisory:GHSA-35jh-r3h4-6jhm",
            "title": "lodash 4.17.20 has a published advisory",
            "severity": "medium",
            "confidence": "high",
            "dimensions": [
              "safety"
            ],
            "category": "Dependencies",
            "file_path": "package-lock.json",
            "line_number": null,
            "evidence": "GHSA-35jh-r3h4-6jhm applies to the locked lodash 4.17.20 package version.",
            "explanation": "A public vulnerability database reports that this locked dependency version is affected.",
            "suggested_fix": "Review the advisory, upgrade to a patched version, run the application test suite, and confirm whether the vulnerable code path is reachable.",
            "code_excerpt": null,
            "source_hash": "362b43b6f00ae7d029072cbe18025f614ade22af7cdf130b3b5809679bc088c9"
          },
          {
            "fingerprint": "e25a6dd52e53b74701388558a021e86cb9c35a60d1228ce9babaf33706ab685c",
            "rule_id": "dependency-advisory:GHSA-f23m-r3pf-42rh",
            "title": "lodash 4.17.20 has a published advisory",
            "severity": "medium",
            "confidence": "high",
            "dimensions": [
              "safety"
            ],
            "category": "Dependencies",
            "file_path": "package-lock.json",
            "line_number": null,
            "evidence": "GHSA-f23m-r3pf-42rh applies to the locked lodash 4.17.20 package version.",
            "explanation": "A public vulnerability database reports that this locked dependency version is affected.",
            "suggested_fix": "Review the advisory, upgrade to a patched version, run the application test suite, and confirm whether the vulnerable code path is reachable.",
            "code_excerpt": null,
            "source_hash": "362b43b6f00ae7d029072cbe18025f614ade22af7cdf130b3b5809679bc088c9"
          },
          {
            "fingerprint": "a867d91ae38a9d64771c71830df9c0c5de188462e1c33f131d0f7f35ac2d46e1",
            "rule_id": "dependency-advisory:GHSA-r5fr-rjxr-66jc",
            "title": "lodash 4.17.20 has a published advisory",
            "severity": "medium",
            "confidence": "high",
            "dimensions": [
              "safety"
            ],
            "category": "Dependencies",
            "file_path": "package-lock.json",
            "line_number": null,
            "evidence": "GHSA-r5fr-rjxr-66jc applies to the locked lodash 4.17.20 package version.",
            "explanation": "A public vulnerability database reports that this locked dependency version is affected.",
            "suggested_fix": "Review the advisory, upgrade to a patched version, run the application test suite, and confirm whether the vulnerable code path is reachable.",
            "code_excerpt": null,
            "source_hash": "362b43b6f00ae7d029072cbe18025f614ade22af7cdf130b3b5809679bc088c9"
          },
          {
            "fingerprint": "694f7c560fad6d0f9c12905a312ca83cf112dec8b8926087e620e7d87bea920f",
            "rule_id": "dependency-advisory:GHSA-xxjr-mmjv-4gpg",
            "title": "lodash 4.17.20 has a published advisory",
            "severity": "medium",
            "confidence": "high",
            "dimensions": [
              "safety"
            ],
            "category": "Dependencies",
            "file_path": "package-lock.json",
            "line_number": null,
            "evidence": "GHSA-xxjr-mmjv-4gpg applies to the locked lodash 4.17.20 package version.",
            "explanation": "A public vulnerability database reports that this locked dependency version is affected.",
            "suggested_fix": "Review the advisory, upgrade to a patched version, run the application test suite, and confirm whether the vulnerable code path is reachable.",
            "code_excerpt": null,
            "source_hash": "362b43b6f00ae7d029072cbe18025f614ade22af7cdf130b3b5809679bc088c9"
          }
        ],
        "evaluations": [
          {
            "rule": "dependency-advisories",
            "target": "package-lock.json",
            "applicability": "applicable",
            "evaluatedStatus": "finding",
            "evidence": [
              "GHSA-29mw-wpgm-hmr9 applies to the locked lodash 4.17.20 package version.",
              "GHSA-35jh-r3h4-6jhm applies to the locked lodash 4.17.20 package version.",
              "GHSA-f23m-r3pf-42rh applies to the locked lodash 4.17.20 package version.",
              "GHSA-r5fr-rjxr-66jc applies to the locked lodash 4.17.20 package version.",
              "GHSA-xxjr-mmjv-4gpg applies to the locked lodash 4.17.20 package version."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": "medium",
            "confidence": "high"
          }
        ],
        "dependencyChecked": true,
        "dependencyProvider": {
          "mode": "live",
          "request": {
            "queries": [
              {
                "package": {
                  "ecosystem": "npm",
                  "name": "lodash"
                },
                "version": "4.17.20"
              }
            ]
          },
          "response": {
            "results": [
              {
                "vulns": [
                  {
                    "id": "GHSA-29mw-wpgm-hmr9",
                    "modified": "2025-09-29T21:12:31.102523Z"
                  },
                  {
                    "id": "GHSA-35jh-r3h4-6jhm",
                    "modified": "2026-09-10T03:49:04.067984Z"
                  },
                  {
                    "id": "GHSA-f23m-r3pf-42rh",
                    "modified": "2026-09-10T03:50:44.050013Z"
                  },
                  {
                    "id": "GHSA-r5fr-rjxr-66jc",
                    "modified": "2026-09-10T03:51:02.970455Z"
                  },
                  {
                    "id": "GHSA-xxjr-mmjv-4gpg",
                    "modified": "2026-09-10T03:50:33.722177Z"
                  }
                ]
              }
            ]
          },
          "capturedAt": "2026-10-07T23:43:09.958Z",
          "responseHash": "2510d172ff32d2bdf452cc82d9991972eab53c0b024accfb355f1f533d9db81f"
        }
      }
    },
    {
      "id": "safe-dependency",
      "name": "No advisory for locked lodash",
      "benchmark": "Pallos target-stack v1",
      "category": "Dependencies",
      "technology": "npm",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "package-lock.json",
        "fixture": "fixtures/target-stack/safe-dependency.txt",
        "sha256": "35bb8856d4667755181281e6b2b73448b82f0495eb58781a57428f3bbefcb04b"
      },
      "why": "Return no advisory for lodash 4.18.1 in the pinned provider snapshot.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "dependency-advisory:",
        "check": "dependency-advisories",
        "minimumConfidence": null,
        "knownSupport": true,
        "description": "Return no advisory for lodash 4.18.1 in the pinned provider snapshot.",
        "requireSupportedPass": true,
        "requiredAdvisory": null
      },
      "limitations": [
        "No returned advisory is not proof that a dependency is vulnerability-free.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "35bb8856d4667755181281e6b2b73448b82f0495eb58781a57428f3bbefcb04b",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [
          {
            "rule": "dependency-advisories",
            "target": "package-lock.json",
            "applicability": "applicable",
            "evaluatedStatus": "passed",
            "evidence": [
              "The supported locked dependency set was checked against the advisory provider; no advisory was returned."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": null,
            "confidence": "high"
          }
        ],
        "dependencyChecked": true,
        "dependencyProvider": {
          "mode": "live",
          "request": {
            "queries": [
              {
                "package": {
                  "ecosystem": "npm",
                  "name": "lodash"
                },
                "version": "4.18.1"
              }
            ]
          },
          "response": {
            "results": [
              {}
            ]
          },
          "capturedAt": "2026-10-07T23:43:10.070Z",
          "responseHash": "a0460b2895f6918d679db4ec8ceaa94dc85b501d9060c02839d05e919aac5e31"
        }
      }
    },
    {
      "id": "risky-workflow",
      "name": "Privileged PR-head checkout",
      "benchmark": "Pallos target-stack v1",
      "category": "GitHub Actions",
      "technology": "YAML / GitHub Actions",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": ".github/workflows/ci.yml",
        "fixture": "fixtures/target-stack/risky-workflow.txt",
        "sha256": "cc0d71d420131472eecb1c0ac3db369d52848511b82d383f0791a4e6848fef66"
      },
      "why": "Flag PR-head checkout in a privileged pull_request_target workflow.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "workflow-untrusted-checkout",
        "check": "workflow-untrusted-checkout",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "Flag PR-head checkout in a privileged pull_request_target workflow.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Effective permissions and execution still require review.",
        "Static review of this target only; runtime safety is not established."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "cc0d71d420131472eecb1c0ac3db369d52848511b82d383f0791a4e6848fef66",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "workflow-untrusted-checkout",
            "title": "Privileged workflow checks out pull-request code",
            "severity": "high",
            "confidence": "needs_review",
            "category": "GitHub workflow",
            "file_path": ".github/workflows/ci.yml",
            "line_number": 1,
            "evidence": "A pull_request_target workflow references the pull request head during checkout.",
            "explanation": "Code from a pull request may run with the base repository's privileges. Effective permissions and subsequent execution need review.",
            "suggested_fix": "Use pull_request with read-only permissions for untrusted code, or keep privileged workflows separate from pull-request code execution.",
            "source_hash": "cc0d71d420131472eecb1c0ac3db369d52848511b82d383f0791a4e6848fef66",
            "dimensions": [
              "safety"
            ],
            "code_excerpt": "   1  name: unsafe-preview\n   2  on: pull_request_target\n   3  permissions: write-all\n   4  jobs:",
            "logical_target": "ec6d1d858a479776c0f64c44396981926c592ed9952123514d2c4406b7d9e723:occurrence:0",
            "context_hash": "bd01d879e44e6f7724de5e8f6698f4631589aa66e6003df7afb5934d3d8f5bb6",
            "fingerprint": "b499d69d99591670440583c5ed0bc0ac97f198a0c64c62bc9abea63b081c95a8"
          }
        ],
        "evaluations": [
          {
            "rule": "workflow-untrusted-checkout",
            "target": ".github/workflows/ci.yml",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "A pull_request_target workflow references the pull request head during checkout."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established."
            ],
            "severity": "high",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "safe-workflow",
      "name": "Read-only untrusted PR workflow",
      "benchmark": "Pallos target-stack v1",
      "category": "GitHub Actions",
      "technology": "YAML / GitHub Actions",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": ".github/workflows/ci.yml",
        "fixture": "fixtures/target-stack/safe-workflow.txt",
        "sha256": "cb4aaa87fb2985eaace0e80bc13f5a521cd88796f8a65782c2a7878dd0c15a0e"
      },
      "why": "Do not flag read-only pull_request CI as privileged PR-head execution.",
      "expected": {
        "kind": "safe",
        "rulePrefix": "workflow-untrusted-checkout",
        "check": "workflow-untrusted-checkout",
        "minimumConfidence": null,
        "knownSupport": true,
        "description": "Do not flag read-only pull_request CI as privileged PR-head execution.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Workflow checks are narrow pattern analysis, not supply-chain certification."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "cb4aaa87fb2985eaace0e80bc13f5a521cd88796f8a65782c2a7878dd0c15a0e",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [],
        "evaluations": [],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "header-only-stripe",
      "name": "Counterexample: header-only Stripe",
      "benchmark": "Pallos target-stack v1",
      "category": "Stripe",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/webhooks/stripe/route.ts",
        "fixture": "fixtures/target-stack/header-only-stripe.txt",
        "sha256": "45b69cca572f32913fcb341fd5695beda09e00f38f61f006b2ccb1e880385f18"
      },
      "why": "A signature header read alone must not pass verification.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "stripe-webhook-signature",
        "check": "webhook-signatures",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "A signature header read alone must not pass verification.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "This previously reproduced counterexample guards against keyword-only passes.",
        "Static review of this target only; runtime safety is not established.",
        "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "45b69cca572f32913fcb341fd5695beda09e00f38f61f006b2ccb1e880385f18",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "stripe-webhook-signature",
            "title": "Stripe webhook does not show signature verification",
            "severity": "high",
            "category": "Webhooks",
            "file_path": "app/api/webhooks/stripe/route.ts",
            "line_number": 1,
            "evidence": "Pallos could not verify a supported raw-body/signature/secret verification sequence before event processing.",
            "context": {
              "observations": [
                "POST: no supported verification-before-processing sequence."
              ],
              "path": [],
              "limitations": [
                "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
              ]
            },
            "explanation": "Without signature verification, an attacker can send forged events to the webhook endpoint.",
            "suggested_fix": "Read the raw request body and verify the stripe-signature header with Stripe webhooks.constructEvent before processing the event.",
            "source_hash": "45b69cca572f32913fcb341fd5695beda09e00f38f61f006b2ccb1e880385f18",
            "confidence": "needs_review",
            "dimensions": [
              "safety",
              "reliability"
            ],
            "code_excerpt": "   1  export async function POST(request: Request) { const signature = request.headers.get('stripe-signature'); const event = await request.json(); await processEvent(event); return Response.json({signature}); }\n   2  ",
            "logical_target": "route-controls:occurrence:0",
            "context_hash": "4a98c14c4ccbf464ca2e2d89c29e76da2df349812fc14915d729149a7f95eded",
            "fingerprint": "b7c47dc6a2ed4b9fe880be061a38c5359ba99e207dafb239df31ebc8c59569f5"
          }
        ],
        "evaluations": [
          {
            "rule": "webhook-signatures",
            "target": "app/api/webhooks/stripe/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "Pallos could not verify a supported raw-body/signature/secret verification sequence before event processing."
            ],
            "missingControls": [
              "Raw payload, signature and endpoint secret verified before trusted event processing"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
            ],
            "severity": "high",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "inverted-role",
      "name": "Counterexample: inverted admin denial",
      "benchmark": "Pallos target-stack v1",
      "category": "Authorization",
      "technology": "Next.js / TypeScript",
      "source": {
        "repository": "Pallos-owned local fixture",
        "version": "target-stack-v1",
        "file": "app/api/admin/users/route.ts",
        "fixture": "fixtures/target-stack/inverted-role.txt",
        "sha256": "4460717188d7a2ce1a58030580727b2943b99aacdd190a99adb882fe5c8b39ea"
      },
      "why": "Denying administrators while allowing ordinary users must not pass.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "admin-route-authorization",
        "check": "admin-authorization",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "Denying administrators while allowing ordinary users must not pass.",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "A role comparison is not sufficient; denial direction matters.",
        "Static review of this target only; runtime safety is not established.",
        "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "4460717188d7a2ce1a58030580727b2943b99aacdd190a99adb882fe5c8b39ea",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "admin-route-authorization",
            "title": "Admin route needs explicit authorization review",
            "severity": "high",
            "category": "Access",
            "file_path": "app/api/admin/users/route.ts",
            "line_number": 1,
            "evidence": "GET: no supported ordered guard pair; IfStatement reached before verified denial. Missing supported controls: Non-admin denial before processing.",
            "context": {
              "observations": [
                "GET: no supported ordered guard pair; IfStatement reached before verified denial."
              ],
              "path": [],
              "limitations": [
                "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
              ]
            },
            "explanation": "Being signed in does not automatically make a user an administrator.",
            "suggested_fix": "Verify the user on the server, enforce an explicit admin permission, and deny access by default.",
            "source_hash": "4460717188d7a2ce1a58030580727b2943b99aacdd190a99adb882fe5c8b39ea",
            "confidence": "needs_review",
            "dimensions": [
              "safety",
              "privacy"
            ],
            "code_excerpt": "   1  export async function GET() { const user = await getUser(); if (!user) return new Response('Denied',{status:401}); if (user.role === 'admin') return new Response('Denied',{status:403}); return Response.json({privateData:[REDACTED]; }\n   2  ",
            "logical_target": "route-controls:occurrence:0",
            "context_hash": "3eae6b188f6b810bd8a5d4bb6457f7c68795ad2bd1724e38618f7671d3612da0",
            "fingerprint": "08ce5b9441c7e6144de099168dcfec2fbe907152c2586b1dd945cbab01705b9c"
          }
        ],
        "evaluations": [
          {
            "rule": "admin-authorization",
            "target": "app/api/admin/users/route.ts",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "GET: no supported ordered guard pair; IfStatement reached before verified denial. Missing supported controls: Non-admin denial before processing."
            ],
            "missingControls": [
              "Non-admin denial before processing"
            ],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Only direct, fail-closed guards in the same handler are supported; imported helpers and runtime behavior were not verified."
            ],
            "severity": "high",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "juice-captcha",
      "name": "Juice Shop: constrained arithmetic eval",
      "benchmark": "OWASP Juice Shop pinned cases",
      "category": "Dynamic execution",
      "technology": "TypeScript / Express",
      "source": {
        "repository": "https://github.com/juice-shop/juice-shop",
        "version": "1618a611b173b4bf114028e6e02549950606e29d",
        "file": "routes/captcha.ts",
        "fixture": "fixtures/juice-shop/captcha.ts.txt",
        "sha256": "b48ecb634f38f033ce1331148a2a0c1dc24aecd3a01e72c773fd74b716cf17e1",
        "url": "https://github.com/juice-shop/juice-shop/blob/1618a611b173b4bf114028e6e02549950606e29d/routes/captcha.ts"
      },
      "why": "Fixed operators and generated numbers should not be presented like stronger user-derived flow.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "dynamic-code-execution",
        "check": "dynamic-execution",
        "minimumConfidence": "needs_review",
        "knownSupport": true,
        "description": "Constrained arithmetic deserves at most a low-impact review signal, not a high-confidence injection claim.",
        "allowedSeverities": [
          "low"
        ],
        "maximumConfidence": "needs_review",
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Static source at a pinned commit; runtime challenge configuration and exploitability are not tested.",
        "Static review of this target only; runtime safety is not established.",
        "Single-file source analysis; runtime reachability and external sanitizers were not verified."
      ],
      "regressionClassification": "Partial",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "b48ecb634f38f033ce1331148a2a0c1dc24aecd3a01e72c773fd74b716cf17e1",
      "classification": "Partial",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "dynamic-code-execution",
            "context": {
              "observations": [
                "No user-controlled origin was established in this file.",
                "The expression uses generated numbers and a fixed operator list."
              ],
              "path": [],
              "limitations": [
                "Single-file source analysis; runtime reachability and external sanitizers were not verified."
              ]
            },
            "title": "Dynamic code execution needs review",
            "severity": "medium",
            "confidence": "needs_review",
            "category": "Injection",
            "file_path": "routes/captcha.ts",
            "line_number": 22,
            "evidence": "eval() or new Function() appears on line 22 with expression as its input.",
            "explanation": "This file appears to build the expression from generated numbers and a fixed operator list. Pallos did not find an obvious user-controlled source for this call in the same file, so this remains a review signal rather than a confirmed vulnerability.",
            "suggested_fix": "Replace dynamic execution with a small parser or an explicit allowlist. If the call is intentionally limited, keep that constraint visible and test that outside input cannot change the expression.",
            "source_hash": "b48ecb634f38f033ce1331148a2a0c1dc24aecd3a01e72c773fd74b716cf17e1",
            "dimensions": [
              "safety"
            ],
            "code_excerpt": "  19      const secondOperator = operators[Math.floor((Math.random() * 3))]\n  20  \n  21      const expression = firstTerm.toString() + firstOperator + secondTerm.toString() + secondOperator + thirdTerm.toString()\n  22      const answer = eval(expression).toString() // eslint-disable-line no-eval\n  23  \n  24      const captcha = {\n  25        captchaId,",
            "logical_target": "78ec5c846fe31f64b3e55e1dcad89f6f30a1784a9197e33f2ea50e9d9c2eb4d1:occurrence:0",
            "context_hash": "194169e875df4c82e7dce0b2b1efbffe511d5404d21d18ed2747dc5fa8176bab",
            "fingerprint": "07584e5e28c676d4b7da24acc6a0f86151994bdfeb5c71dd31dc40af4557438a"
          }
        ],
        "evaluations": [
          {
            "rule": "dynamic-execution",
            "target": "routes/captcha.ts",
            "applicability": "applicable",
            "evaluatedStatus": "needs_review",
            "evidence": [
              "eval() or new Function() appears on line 22 with expression as its input."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Single-file source analysis; runtime reachability and external sanitizers were not verified."
            ],
            "severity": "medium",
            "confidence": "needs_review"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    },
    {
      "id": "juice-user-profile",
      "name": "Juice Shop: user-derived dynamic execution",
      "benchmark": "OWASP Juice Shop pinned cases",
      "category": "Dynamic execution",
      "technology": "TypeScript / Express",
      "source": {
        "repository": "https://github.com/juice-shop/juice-shop",
        "version": "1618a611b173b4bf114028e6e02549950606e29d",
        "file": "routes/userProfile.ts",
        "fixture": "fixtures/juice-shop/userProfile.ts.txt",
        "sha256": "07251f3d0dd9f4c530da60e3911091d8ff1bded650f72c31cbee499093979b39",
        "url": "https://github.com/juice-shop/juice-shop/blob/1618a611b173b4bf114028e6e02549950606e29d/routes/userProfile.ts"
      },
      "why": "A training-challenge branch derives code from a user username before eval.",
      "expected": {
        "kind": "risk",
        "rulePrefix": "dynamic-code-execution",
        "check": "dynamic-execution",
        "minimumConfidence": "high",
        "knownSupport": true,
        "description": "Identify source-level user-derived flow with stronger confidence and a concrete fix direction; do not claim runtime exploitability.",
        "allowedSeverities": [
          "high"
        ],
        "maximumConfidence": null,
        "requireSupportedPass": false,
        "requiredAdvisory": null
      },
      "limitations": [
        "Static source at a pinned commit; runtime challenge configuration and exploitability are not tested.",
        "Static review of this target only; runtime safety is not established.",
        "Single-file source analysis; runtime reachability and external sanitizers were not verified."
      ],
      "regressionClassification": "Correct",
      "runDate": "2026-10-07T23:43:09.719Z",
      "scannerVersion": "2026.10.06.2",
      "contentHash": "07251f3d0dd9f4c530da60e3911091d8ff1bded650f72c31cbee499093979b39",
      "classification": "Correct",
      "accessError": null,
      "actual": {
        "findings": [
          {
            "rule_id": "dynamic-code-execution",
            "context": {
              "observations": [
                "A visible user-derived assignment reaches the execution argument.",
                "Dynamic execution is present in source."
              ],
              "path": [
                "user.username",
                "username",
                "code",
                "eval(code)"
              ],
              "limitations": [
                "Single-file source analysis; runtime reachability and external sanitizers were not verified."
              ]
            },
            "title": "User-derived value reaches dynamic code execution",
            "severity": "high",
            "confidence": "high",
            "category": "Injection",
            "file_path": "routes/userProfile.ts",
            "line_number": 65,
            "evidence": "eval() or new Function() appears on line 65 with code as its input.",
            "explanation": "A value derived from user data appears to reach this code-execution call. Replace this path rather than evaluating account data as code; confirm the exact runtime path before treating impact as proven.",
            "suggested_fix": "Remove eval-like execution from this path. Treat usernames and other stored account fields as data; parse the needed value with a narrow, non-executable format instead.",
            "source_hash": "07251f3d0dd9f4c530da60e3911091d8ff1bded650f72c31cbee499093979b39",
            "dimensions": [
              "safety"
            ],
            "code_excerpt": "  62            if (!code) {\n  63              throw new Error('Username is null')\n  64            }\n  65            username = eval(code) // eslint-disable-line no-eval\n  66          } catch (err) {\n  67            username = '\\\\' + username\n  68          }",
            "logical_target": "e1856ebd7c79554ddc61a332c34142c7ca99a969953a7c1301c7e8098383d7b7:occurrence:0",
            "context_hash": "c356246489b05a681cfa6f1d642b98f2b324c074d171b6fc3d1cc3b882cc39d3",
            "fingerprint": "c917baf481b9051a9f587bb1d777a5935e865317592977d0b5ea06fcb1f001a5"
          }
        ],
        "evaluations": [
          {
            "rule": "dynamic-execution",
            "target": "routes/userProfile.ts",
            "applicability": "applicable",
            "evaluatedStatus": "finding",
            "evidence": [
              "eval() or new Function() appears on line 65 with code as its input."
            ],
            "missingControls": [],
            "limitations": [
              "Static review of this target only; runtime safety is not established.",
              "Single-file source analysis; runtime reachability and external sanitizers were not verified."
            ],
            "severity": "high",
            "confidence": "high"
          }
        ],
        "dependencyChecked": null,
        "dependencyProvider": null
      }
    }
  ],
  "summary": {
    "Correct": 19,
    "Partial": 1,
    "Missed": 2,
    "False positive": 0,
    "Could not test": 0
  }
}
