{
  "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
  "version": "2.1.0",
  "runs": [
    {
      "tool": {
        "driver": {
          "name": "keryn-scout",
          "version": "0.5.2",
          "semanticVersion": "0.5.2",
          "informationUri": "https://keryn.dev",
          "rules": [
            {
              "id": "keryn.inv.lib.openai",
              "name": "KerynInvLibOpenai",
              "shortDescription": {
                "text": "References the OpenAI SDK."
              },
              "fullDescription": {
                "text": "References the OpenAI SDK."
              },
              "help": {
                "text": "References the OpenAI SDK.",
                "markdown": "References the OpenAI SDK."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "keryn.inv.lib.vercel-ai",
              "name": "KerynInvLibVercelAi",
              "shortDescription": {
                "text": "References the Vercel AI SDK."
              },
              "fullDescription": {
                "text": "References the Vercel AI SDK."
              },
              "help": {
                "text": "References the Vercel AI SDK.",
                "markdown": "References the Vercel AI SDK."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "keryn.vendor.openai-call-without-moderation-js",
              "name": "KerynVendorOpenaiCallWithoutModerationJs",
              "shortDescription": {
                "text": "The function that calls this OpenAI generation endpoint never calls moderations.create, so harmful or policy-violating input and output reach the model and your users unscreened."
              },
              "fullDescription": {
                "text": "The function that calls this OpenAI generation endpoint never calls moderations.create, so harmful or policy-violating input and output reach the model and your users unscreened. The Moderation endpoint is free; screen user input before the call and model output before it is shown."
              },
              "help": {
                "text": "Call client.moderations.create(input=...) on the user input before this call and on the generated text before returning it, and refuse or fall back when the result is flagged. If moderation runs in shared middleware, suppress this audit there.",
                "markdown": "Call client.moderations.create(input=...) on the user input before this call and on the generated text before returning it, and refuse or fall back when the result is flagged. If moderation runs in shared middleware, suppress this audit there."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "1.0"
              }
            },
            {
              "id": "keryn.vendor.openai-call-without-moderation-py",
              "name": "KerynVendorOpenaiCallWithoutModerationPy",
              "shortDescription": {
                "text": "The function that calls this OpenAI generation endpoint never calls moderations.create, so harmful or policy-violating input and output reach the model and your users unscreened."
              },
              "fullDescription": {
                "text": "The function that calls this OpenAI generation endpoint never calls moderations.create, so harmful or policy-violating input and output reach the model and your users unscreened. The Moderation endpoint is free; screen user input before the call and model output before it is shown."
              },
              "help": {
                "text": "Call client.moderations.create(input=...) on the user input before this call and on the generated text before returning it, and refuse or fall back when the result is flagged. If moderation runs in shared middleware, suppress this audit there.",
                "markdown": "Call client.moderations.create(input=...) on the user input before this call and on the generated text before returning it, and refuse or fall back when the result is flagged. If moderation runs in shared middleware, suppress this audit there."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "1.0"
              }
            },
            {
              "id": "keryn.vendor.openai-chat-without-user-identifier-js",
              "name": "KerynVendorOpenaiChatWithoutUserIdentifierJs",
              "shortDescription": {
                "text": "The OpenAI call carries neither a user nor a safety_identifier parameter, so OpenAI cannot tell your end users apart."
              },
              "fullDescription": {
                "text": "The OpenAI call carries neither a user nor a safety_identifier parameter, so OpenAI cannot tell your end users apart. Those fields are what lets the platform act on one abusive end user instead of your whole organisation when policy-violating prompts arrive. Pass safety_identifier (or user on older endpoints) with a hashed end-user id."
              },
              "help": {
                "text": "Pass safety_identifier: <hashed end-user id> on responses.create and chat.completions.create (user: <hashed id> on endpoints that predate safety_identifier). Hash or tokenise the id; do not send names or emails.",
                "markdown": "Pass safety_identifier: <hashed end-user id> on responses.create and chat.completions.create (user: <hashed id> on endpoints that predate safety_identifier). Hash or tokenise the id; do not send names or emails."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "medium",
                "security-severity": "1.0"
              }
            },
            {
              "id": "keryn.vendor.openai-chat-without-user-identifier-py",
              "name": "KerynVendorOpenaiChatWithoutUserIdentifierPy",
              "shortDescription": {
                "text": "The OpenAI call carries neither a user nor a safety_identifier parameter, so OpenAI cannot tell your end users apart."
              },
              "fullDescription": {
                "text": "The OpenAI call carries neither a user nor a safety_identifier parameter, so OpenAI cannot tell your end users apart. Those fields are what lets the platform act on one abusive end user instead of your whole organisation when policy-violating prompts arrive. Pass safety_identifier (or user on older endpoints) with a hashed end-user id."
              },
              "help": {
                "text": "Pass safety_identifier=<hashed end-user id> on responses.create and chat.completions.create (user=<hashed id> on endpoints that predate safety_identifier). Hash or tokenise the id; do not send names or emails.",
                "markdown": "Pass safety_identifier=<hashed end-user id> on responses.create and chat.completions.create (user=<hashed id> on endpoints that predate safety_identifier). Hash or tokenise the id; do not send names or emails."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "medium",
                "security-severity": "1.0"
              }
            },
            {
              "id": "seceng.edge-ai-route-no-rate-limit",
              "name": "SecengEdgeAiRouteNoRateLimit",
              "shortDescription": {
                "text": "Edge AI route/function lacks visible rate limiting around model calls."
              },
              "fullDescription": {
                "text": "Edge AI route/function lacks visible rate limiting around model calls."
              },
              "help": {
                "text": "Edge AI route/function lacks visible rate limiting around model calls.",
                "markdown": "Edge AI route/function lacks visible rate limiting around model calls."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng.forensics-model-version-missing",
              "name": "SecengForensicsModelVersionMissing",
              "shortDescription": {
                "text": "AI call or model gateway invocation lacks visible model/version/provider capture for forensic reproducibility."
              },
              "fullDescription": {
                "text": "AI call or model gateway invocation lacks visible model/version/provider capture for forensic reproducibility."
              },
              "help": {
                "text": "AI call or model gateway invocation lacks visible model/version/provider capture for forensic reproducibility.",
                "markdown": "AI call or model gateway invocation lacks visible model/version/provider capture for forensic reproducibility."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng.forensics.ai-action-missing-correlation-id",
              "name": "SecengForensicsAiActionMissingCorrelationId",
              "shortDescription": {
                "text": "AI action, tool call, or agent workflow lacks visible correlation/request/trace ID capture."
              },
              "fullDescription": {
                "text": "AI action, tool call, or agent workflow lacks visible correlation/request/trace ID capture."
              },
              "help": {
                "text": "AI action, tool call, or agent workflow lacks visible correlation/request/trace ID capture.",
                "markdown": "AI action, tool call, or agent workflow lacks visible correlation/request/trace ID capture."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng.llm01.missing-safety-sidecar-openai-python",
              "name": "SecengLlm01MissingSafetySidecarOpenaiPython",
              "shortDescription": {
                "text": "OpenAI model call found in a Python file without visible import of guardrails, llm_guard, rebuff, nemoguardrails, or equivalent safety sidecar."
              },
              "fullDescription": {
                "text": "OpenAI model call found in a Python file without visible import of guardrails, llm_guard, rebuff, nemoguardrails, or equivalent safety sidecar."
              },
              "help": {
                "text": "OpenAI model call found in a Python file without visible import of guardrails, llm_guard, rebuff, nemoguardrails, or equivalent safety sidecar.",
                "markdown": "OpenAI model call found in a Python file without visible import of guardrails, llm_guard, rebuff, nemoguardrails, or equivalent safety sidecar."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng.llm01.vercel-ai-sdk-injection",
              "name": "SecengLlm01VercelAiSdkInjection",
              "shortDescription": {
                "text": "Vercel AI SDK accepts a user-role prompt."
              },
              "fullDescription": {
                "text": "Vercel AI SDK accepts a user-role prompt. This is an AI input surface, not evidence of a prompt-injection vulnerability."
              },
              "help": {
                "text": "Vercel AI SDK accepts a user-role prompt. This is an AI input surface, not evidence of a prompt-injection vulnerability.",
                "markdown": "Vercel AI SDK accepts a user-role prompt. This is an AI input surface, not evidence of a prompt-injection vulnerability."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "1.0"
              }
            },
            {
              "id": "seceng.llm04.model-output-xss-js",
              "name": "SecengLlm04ModelOutputXssJs",
              "shortDescription": {
                "text": "seceng.llm04.model-output-xss-js"
              },
              "fullDescription": {
                "text": "seceng.llm04.model-output-xss-js"
              },
              "help": {
                "text": "seceng.llm04.model-output-xss-js",
                "markdown": "seceng.llm04.model-output-xss-js"
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "warning"
              },
              "properties": {
                "security-severity": "5.0"
              }
            },
            {
              "id": "seceng.llm05.inner-html-assignment",
              "name": "SecengLlm05InnerHtmlAssignment",
              "shortDescription": {
                "text": "Assignment to innerHTML or outerHTML may render model, retrieved, or tool output as executable HTML."
              },
              "fullDescription": {
                "text": "Assignment to innerHTML or outerHTML may render model, retrieved, or tool output as executable HTML. Confirm sanitizer use and source trust."
              },
              "help": {
                "text": "Use textContent for plain text. If rich HTML is required, sanitize it before assigning it to innerHTML or outerHTML.",
                "markdown": "Use textContent for plain text. If rich HTML is required, sanitize it before assigning it to innerHTML or outerHTML."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "warning"
              },
              "properties": {
                "tags": [
                  "cwe/CWE-79",
                  "owasp-agentic/ASI05",
                  "owasp-llm/LLM05"
                ],
                "precision": "high",
                "security-severity": "5.0"
              },
              "relationships": [
                {
                  "target": {
                    "id": "CWE-79",
                    "toolComponent": {
                      "name": "cwe"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "ASI05",
                    "toolComponent": {
                      "name": "owasp-agentic"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "LLM05",
                    "toolComponent": {
                      "name": "owasp-llm"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                }
              ]
            },
            {
              "id": "seceng.llm05.marked-html-enabled",
              "name": "SecengLlm05MarkedHtmlEnabled",
              "shortDescription": {
                "text": "Markdown rendering appears to allow raw HTML."
              },
              "fullDescription": {
                "text": "Markdown rendering appears to allow raw HTML. If model or retrieved content reaches this renderer, this can become XSS."
              },
              "help": {
                "text": "Sanitize the HTML produced by Marked before inserting it into the document. Apply the sanitizer after Markdown rendering so it also checks the markup emitted by the renderer.",
                "markdown": "Sanitize the HTML produced by Marked before inserting it into the document. Apply the sanitizer after Markdown rendering so it also checks the markup emitted by the renderer."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "warning"
              },
              "properties": {
                "tags": [
                  "cwe/CWE-79",
                  "owasp-agentic/ASI06",
                  "owasp-llm/LLM05"
                ],
                "precision": "high",
                "security-severity": "5.0"
              },
              "relationships": [
                {
                  "target": {
                    "id": "CWE-79",
                    "toolComponent": {
                      "name": "cwe"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "ASI06",
                    "toolComponent": {
                      "name": "owasp-agentic"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "LLM05",
                    "toolComponent": {
                      "name": "owasp-llm"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                }
              ]
            },
            {
              "id": "seceng.llm05.react-dangerously-set-inner-html",
              "name": "SecengLlm05ReactDangerouslySetInnerHtml",
              "shortDescription": {
                "text": "seceng.llm05.react-dangerously-set-inner-html"
              },
              "fullDescription": {
                "text": "seceng.llm05.react-dangerously-set-inner-html"
              },
              "help": {
                "text": "seceng.llm05.react-dangerously-set-inner-html",
                "markdown": "seceng.llm05.react-dangerously-set-inner-html"
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "warning"
              },
              "properties": {
                "security-severity": "5.0"
              }
            },
            {
              "id": "seceng.llm05.react-dangerously-set-inner-html-unprotected",
              "name": "SecengLlm05ReactDangerouslySetInnerHtmlUnprotected",
              "shortDescription": {
                "text": "seceng.llm05.react-dangerously-set-inner-html-unprotected"
              },
              "fullDescription": {
                "text": "seceng.llm05.react-dangerously-set-inner-html-unprotected"
              },
              "help": {
                "text": "seceng.llm05.react-dangerously-set-inner-html-unprotected",
                "markdown": "seceng.llm05.react-dangerously-set-inner-html-unprotected"
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "warning"
              },
              "properties": {
                "security-severity": "5.0"
              }
            },
            {
              "id": "seceng.llm06.dangerous-tool-without-obvious-approval",
              "name": "SecengLlm06DangerousToolWithoutObviousApproval",
              "shortDescription": {
                "text": "Tool definition exposes a side-effecting capability."
              },
              "fullDescription": {
                "text": "Tool definition exposes a side-effecting capability. Confirm human approval, RBAC, tenant scoping, and audit logging."
              },
              "help": {
                "text": "Tool definition exposes a side-effecting capability. Confirm human approval, RBAC, tenant scoping, and audit logging.",
                "markdown": "Tool definition exposes a side-effecting capability. Confirm human approval, RBAC, tenant scoping, and audit logging."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng.llm10.openai-call-without-max-tokens",
              "name": "SecengLlm10OpenaiCallWithoutMaxTokens",
              "shortDescription": {
                "text": "Model call appears to lack max token budget."
              },
              "fullDescription": {
                "text": "Model call appears to lack max token budget. Confirm bounded output and request budgeting."
              },
              "help": {
                "text": "Model call appears to lack max token budget. Confirm bounded output and request budgeting.",
                "markdown": "Model call appears to lack max token budget. Confirm bounded output and request budgeting."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng.mcp.ts.sse-transport-no-origin-validation",
              "name": "SecengMcpTsSseTransportNoOriginValidation",
              "shortDescription": {
                "text": "SSEServerTransport is created without enableDnsRebindingProtection, so no Origin/Host validation happens, and the legacy HTTP+SSE transport is deprecated."
              },
              "fullDescription": {
                "text": "SSEServerTransport is created without enableDnsRebindingProtection, so no Origin/Host validation happens, and the legacy HTTP+SSE transport is deprecated. Any web page can open the SSE stream on a local server."
              },
              "help": {
                "text": "Migrate to Streamable HTTP, or pass { enableDnsRebindingProtection: true, allowedHosts, allowedOrigins } as the third constructor argument and require authentication.",
                "markdown": "Migrate to Streamable HTTP, or pass { enableDnsRebindingProtection: true, allowedHosts, allowedOrigins } as the third constructor argument and require authentication."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "medium",
                "security-severity": "1.0"
              }
            },
            {
              "id": "seceng.toolauth.audit-missing-for-dangerous-tool",
              "name": "SecengToolauthAuditMissingForDangerousTool",
              "shortDescription": {
                "text": "Dangerous tool/action lacks visible audit event with user, tenant, resource, and action context."
              },
              "fullDescription": {
                "text": "Dangerous tool/action lacks visible audit event with user, tenant, resource, and action context."
              },
              "help": {
                "text": "Dangerous tool/action lacks visible audit event with user, tenant, resource, and action context.",
                "markdown": "Dangerous tool/action lacks visible audit event with user, tenant, resource, and action context."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "low",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng.vercelai.streamtext-tools-without-maxsteps",
              "name": "SecengVercelaiStreamtextToolsWithoutMaxsteps",
              "shortDescription": {
                "text": "Vercel AI SDK streamText uses tools without maxSteps."
              },
              "fullDescription": {
                "text": "Vercel AI SDK streamText uses tools without maxSteps. Tool-enabled agents should bound step count to reduce runaway execution."
              },
              "help": {
                "text": "Vercel AI SDK streamText uses tools without maxSteps. Tool-enabled agents should bound step count to reduce runaway execution.",
                "markdown": "Vercel AI SDK streamText uses tools without maxSteps. Tool-enabled agents should bound step count to reduce runaway execution."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "medium",
                "security-severity": "1.0"
              }
            },
            {
              "id": "seceng/agent_file_write_path_traversal",
              "name": "SecengAgentFileWritePathTraversal",
              "shortDescription": {
                "text": "Agent file write path traversal."
              },
              "fullDescription": {
                "text": "Agent file write path traversal."
              },
              "help": {
                "text": "Add max_tokens or max_completion_tokens to all model API calls. Implement a token budget at the agent/orchestration level and abort loops that exceed the cap. Use rate limiting and cost alerts in the gateway layer. Expected controls: canonicalize, allowed_root, path_clean, deny_dotdot, allowlist, human_approval, dry_run, authorization.",
                "markdown": "Add max_tokens or max_completion_tokens to all model API calls. Implement a token budget at the agent/orchestration level and abort loops that exceed the cap. Use rate limiting and cost alerts in the gateway layer. Expected controls: canonicalize, allowed_root, path_clean, deny_dotdot, allowlist, human_approval, dry_run, authorization."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "warning"
              },
              "properties": {
                "tags": [
                  "cwe/CWE-22",
                  "cwe/CWE-400",
                  "cwe/CWE-73"
                ],
                "precision": "very-high",
                "security-severity": "5.0"
              },
              "relationships": [
                {
                  "target": {
                    "id": "CWE-22",
                    "toolComponent": {
                      "name": "cwe"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "CWE-400",
                    "toolComponent": {
                      "name": "cwe"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "CWE-73",
                    "toolComponent": {
                      "name": "cwe"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                }
              ]
            },
            {
              "id": "seceng/agent_tool_surfaces_found_without_obvious_controls",
              "name": "SecengAgentToolSurfacesFoundWithoutObviousControls",
              "shortDescription": {
                "text": "Agent/tool surfaces found without obvious controls"
              },
              "fullDescription": {
                "text": "Agent/tool surfaces found without obvious controls"
              },
              "help": {
                "text": "Add tool permission reviews and confirmation gates.",
                "markdown": "Add tool permission reviews and confirmation gates."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "very-high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng/ai_gateway",
              "name": "SecengAiGateway",
              "shortDescription": {
                "text": "AI gateway or model endpoint lacks authorization, tenant scope, or rate limits"
              },
              "fullDescription": {
                "text": "AI gateway or model endpoint lacks authorization, tenant scope, or rate limits"
              },
              "help": {
                "text": "Add and verify path-relevant controls before the sink: authentication, authorization, tenant_isolation, rate_limit, quota, audit, provider_key_protection.",
                "markdown": "Add and verify path-relevant controls before the sink: authentication, authorization, tenant_isolation, rate_limit, quota, audit, provider_key_protection."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng/html_render",
              "name": "SecengHtmlRender",
              "shortDescription": {
                "text": "seceng/html_render"
              },
              "fullDescription": {
                "text": "seceng/html_render"
              },
              "help": {
                "text": "seceng/html_render",
                "markdown": "seceng/html_render"
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "warning"
              },
              "properties": {
                "security-severity": "5.0"
              }
            },
            {
              "id": "seceng/llm10_model_call_without_token_cap",
              "name": "SecengLlm10ModelCallWithoutTokenCap",
              "shortDescription": {
                "text": "A model call has no output token limit (unbounded consumption)."
              },
              "fullDescription": {
                "text": "A model call has no output token limit (unbounded consumption)."
              },
              "help": {
                "text": "Add max_tokens or max_completion_tokens to all model API calls. Implement a token budget at the agent/orchestration level and abort loops that exceed the cap. Use rate limiting and cost alerts in the gateway layer.",
                "markdown": "Add max_tokens or max_completion_tokens to all model API calls. Implement a token budget at the agent/orchestration level and abort loops that exceed the cap. Use rate limiting and cost alerts in the gateway layer."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "very-high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng/model_call_without_token_cap",
              "name": "SecengModelCallWithoutTokenCap",
              "shortDescription": {
                "text": "Model call without token cap."
              },
              "fullDescription": {
                "text": "Model call without token cap."
              },
              "help": {
                "text": "Add max_tokens or max_completion_tokens to all model API calls. Implement a token budget at the agent/orchestration level and abort loops that exceed the cap. Use rate limiting and cost alerts in the gateway layer. Expected controls: canonicalize, allowed_root, path_clean, deny_dotdot, allowlist, human_approval, dry_run, authorization.",
                "markdown": "Add max_tokens or max_completion_tokens to all model API calls. Implement a token budget at the agent/orchestration level and abort loops that exceed the cap. Use rate limiting and cost alerts in the gateway layer. Expected controls: canonicalize, allowed_root, path_clean, deny_dotdot, allowlist, human_approval, dry_run, authorization."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "note"
              },
              "properties": {
                "precision": "very-high",
                "security-severity": "2.0"
              }
            },
            {
              "id": "seceng/unfiltered_llm_stream_to_client",
              "name": "SecengUnfilteredLlmStreamToClient",
              "shortDescription": {
                "text": "Model Output Streamed or Rendered as Unsanitized HTML"
              },
              "fullDescription": {
                "text": "Model Output Streamed or Rendered as Unsanitized HTML"
              },
              "help": {
                "text": "Sanitize model output before inserting into HTML sinks. Use DOMPurify or equivalent. Prefer textContent over innerHTML.",
                "markdown": "Sanitize model output before inserting into HTML sinks. Use DOMPurify or equivalent. Prefer textContent over innerHTML."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "error"
              },
              "properties": {
                "tags": [
                  "cwe/CWE-20"
                ],
                "precision": "medium",
                "security-severity": "7.0"
              },
              "relationships": [
                {
                  "target": {
                    "id": "CWE-20",
                    "toolComponent": {
                      "name": "cwe"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                }
              ]
            },
            {
              "id": "vulnfix-ai-ai_js_dangerous_html",
              "name": "VulnfixAiAiJsDangerousHtml",
              "shortDescription": {
                "text": "CWE-79 (insecure-output-handling): Renders raw HTML in React; if it carries LLM/markdown/user output, sanitize (DOMPurify)."
              },
              "fullDescription": {
                "text": "CWE-79 (insecure-output-handling): Renders raw HTML in React; if it carries LLM/markdown/user output, sanitize (DOMPurify)."
              },
              "help": {
                "text": "CWE-79 (insecure-output-handling): Renders raw HTML in React; if it carries LLM/markdown/user output, sanitize (DOMPurify).",
                "markdown": "CWE-79 (insecure-output-handling): Renders raw HTML in React; if it carries LLM/markdown/user output, sanitize (DOMPurify)."
              },
              "helpUri": "https://keryn.dev/rules/",
              "defaultConfiguration": {
                "level": "error"
              },
              "properties": {
                "tags": [
                  "cwe/CWE-79",
                  "owasp-agentic/ASI05",
                  "owasp-llm/LLM05"
                ],
                "precision": "high",
                "security-severity": "8.0"
              },
              "relationships": [
                {
                  "target": {
                    "id": "CWE-79",
                    "toolComponent": {
                      "name": "cwe"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "ASI05",
                    "toolComponent": {
                      "name": "owasp-agentic"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                },
                {
                  "target": {
                    "id": "LLM05",
                    "toolComponent": {
                      "name": "owasp-llm"
                    }
                  },
                  "kinds": [
                    "superset"
                  ]
                }
              ]
            }
          ]
        }
      },
      "columnKind": "utf16CodeUnits",
      "originalUriBaseIds": {
        "SRCROOT": {
          "description": {
            "text": "Root of the scanned source: the folder, archive or export Keryn was run on."
          }
        }
      },
      "automationDetails": {
        "id": "keryn-scout/example-repo/0000000",
        "guid": "4de2c6e2-7e9a-543c-90d1-6377893193dc"
      },
      "taxonomies": [
        {
          "name": "cwe",
          "version": "4",
          "organization": "MITRE",
          "informationUri": "https://cwe.mitre.org/",
          "shortDescription": {
            "text": "Common Weakness Enumeration (ids as the rule author tagged them)"
          },
          "isComprehensive": false,
          "taxa": [
            {
              "id": "CWE-20"
            },
            {
              "id": "CWE-22"
            },
            {
              "id": "CWE-400"
            },
            {
              "id": "CWE-73"
            },
            {
              "id": "CWE-79"
            }
          ]
        },
        {
          "name": "owasp-agentic",
          "version": "2026",
          "organization": "OWASP",
          "informationUri": "https://genai.owasp.org/",
          "shortDescription": {
            "text": "OWASP Top 10 for Agentic Applications 2026 (reference only; not a compliance assessment)"
          },
          "isComprehensive": false,
          "taxa": [
            {
              "id": "ASI05",
              "name": "Unexpected Code Execution",
              "shortDescription": {
                "text": "Unexpected Code Execution"
              }
            },
            {
              "id": "ASI06",
              "name": "Memory and Context Poisoning",
              "shortDescription": {
                "text": "Memory and Context Poisoning"
              }
            }
          ]
        },
        {
          "name": "owasp-llm",
          "version": "2025",
          "organization": "OWASP",
          "informationUri": "https://genai.owasp.org/llm-top-10/",
          "shortDescription": {
            "text": "OWASP Top 10 for LLM Applications 2025 (reference only; not a compliance assessment)"
          },
          "isComprehensive": false,
          "taxa": [
            {
              "id": "LLM05",
              "name": "Improper Output Handling",
              "shortDescription": {
                "text": "Improper Output Handling"
              }
            }
          ]
        }
      ],
      "results": [
        {
          "ruleId": "keryn.inv.lib.openai",
          "level": "note",
          "message": {
            "text": "References the OpenAI SDK."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 1,
                  "startColumn": 1,
                  "endLine": 1,
                  "endColumn": 14,
                  "snippet": {
                    "text": "import openai"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "4f7345b3b7d53bbd2193b5a6c7eadbc14515d784e9879df57c7681debc08d7a5"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "subcategory": "inventory",
            "assertion": "capability",
            "role": "framework"
          },
          "ruleIndex": 0
        },
        {
          "ruleId": "seceng/ai_gateway",
          "level": "note",
          "message": {
            "text": "AI gateway or model endpoint lacks authorization, tenant scope, or rate limits"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 1,
                  "endLine": 11,
                  "endColumn": 1,
                  "snippet": {
                    "text": "The scan identified a candidate AI gateway control gap. Validation should confirm that identity, authorization, tenant scope, quota, and rate limits are enforced before model invocation."
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "1d5227d76b750072ae30951f153df4f3317b38b206bc756840a3e5fe34f576a6"
          },
          "codeFlows": [
            {
              "threadFlows": [
                {
                  "locations": [
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "agent.py",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 7,
                            "startColumn": 1,
                            "endLine": 7,
                            "endColumn": 1
                          }
                        },
                        "message": {
                          "text": "taint source"
                        }
                      }
                    },
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "agent.py",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 11,
                            "startColumn": 1,
                            "endLine": 11,
                            "endColumn": 1,
                            "snippet": {
                              "text": "The scan identified a candidate AI gateway control gap. Validation should confirm that identity, authorization, tenant scope, quota, and rate limits are enforced before model invocation."
                            }
                          }
                        },
                        "message": {
                          "text": "taint sink"
                        }
                      }
                    }
                  ]
                }
              ]
            }
          ],
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "ai_gateway",
            "role": "framework"
          },
          "ruleIndex": 23
        },
        {
          "ruleId": "seceng/model_call_without_token_cap",
          "level": "note",
          "message": {
            "text": "Model call without token cap."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 1,
                  "endLine": 11,
                  "endColumn": 1,
                  "snippet": {
                    "text": "LLM10 P1: sink `client.chat.completions.create(` on line 11 appears without a nearby guard"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "21f8e1dd9989840ad1842d51339a54253e3dadf737926dbd508a509f38c25023"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "model_call_without_token_cap",
            "role": "framework"
          },
          "ruleIndex": 26
        },
        {
          "ruleId": "keryn.vendor.openai-call-without-moderation-py",
          "level": "note",
          "message": {
            "text": "The function that calls this OpenAI generation endpoint never calls moderations.create, so harmful or policy-violating input and output reach the model and your users unscreened. The Moderation endpoint is free; screen user input before the call and model output before it is shown."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 9,
                  "endLine": 11,
                  "endColumn": 63,
                  "snippet": {
                    "text": "client.chat.completions.create(model=\"m\", messages=[])"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "47d97c027ed59a7503642193829f3f44bc9d7c5773ed13a422b3390ceb81badc"
          },
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "vendor_moderation_not_called",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "framework"
          },
          "ruleIndex": 3
        },
        {
          "ruleId": "keryn.vendor.openai-chat-without-user-identifier-py",
          "level": "note",
          "message": {
            "text": "The OpenAI call carries neither a user nor a safety_identifier parameter, so OpenAI cannot tell your end users apart. Those fields are what lets the platform act on one abusive end user instead of your whole organisation when policy-violating prompts arrive. Pass safety_identifier (or user on older endpoints) with a hashed end-user id."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 9,
                  "endLine": 11,
                  "endColumn": 63,
                  "snippet": {
                    "text": "client.chat.completions.create(model=\"m\", messages=[])"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "cedce0da910f3b7876780d19bf39bcb3d6e71bed1ba436f8391d85179db68aed"
          },
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "medium",
            "findingClass": "abuse_identifier_missing",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "framework"
          },
          "ruleIndex": 5
        },
        {
          "ruleId": "seceng.llm01.missing-safety-sidecar-openai-python",
          "level": "note",
          "message": {
            "text": "OpenAI model call found in a Python file without visible import of guardrails, llm_guard, rebuff, nemoguardrails, or equivalent safety sidecar."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 9,
                  "endLine": 11,
                  "endColumn": 63,
                  "snippet": {
                    "text": "client.chat.completions.create(model=\"m\", messages=[])"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "2487b03b3bf22cf24df53dc3e034c091cc73d81e44d2fc2a9976270a834389b8"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "missing_safety_sidecar",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "framework"
          },
          "ruleIndex": 9
        },
        {
          "ruleId": "seceng/agent_tool_surfaces_found_without_obvious_controls",
          "level": "note",
          "message": {
            "text": "Agent/tool surfaces found without obvious controls"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 1,
                  "startColumn": 1,
                  "endLine": 1,
                  "endColumn": 1,
                  "snippet": {
                    "text": "The repo appears to expose tools or function-calling surfaces, but no obvious eval, guardrail, policy, or approval control files were detected."
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "9b51046956403bfe13beea46d932bdbf1aa61aad77d4e531138d928e11458e64"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "agent_tool_surfaces_found_without_obvious_controls",
            "role": "application"
          },
          "ruleIndex": 22
        },
        {
          "ruleId": "seceng.forensics-model-version-missing",
          "level": "note",
          "message": {
            "text": "AI call or model gateway invocation lacks visible model/version/provider capture for forensic reproducibility."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 1,
                  "startColumn": 10,
                  "endLine": 1,
                  "endColumn": 20,
                  "snippet": {
                    "text": "streamText"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "2cdf4755752b6ec94028a8f1eeeb5981d3e84502e9c919b5b7cde0984a49a7c1"
          },
          "relatedLocations": [
            {
              "id": 1,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 16,
                  "endLine": 11,
                  "endColumn": 32
                }
              }
            },
            {
              "id": 2,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 7,
                  "startColumn": 13,
                  "endLine": 7,
                  "endColumn": 23
                }
              }
            },
            {
              "id": 3,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 9,
                  "startColumn": 13,
                  "endLine": 9,
                  "endColumn": 23
                }
              }
            },
            {
              "id": 4,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 13,
                  "endLine": 11,
                  "endColumn": 23
                }
              }
            },
            {
              "id": 5,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 26,
                  "endLine": 13,
                  "endColumn": 42
                }
              }
            },
            {
              "id": 6,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 15,
                  "startColumn": 26,
                  "endLine": 15,
                  "endColumn": 42
                }
              }
            }
          ],
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "missing_model_version_evidence",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 7,
            "role": "application"
          },
          "ruleIndex": 7
        },
        {
          "ruleId": "seceng.forensics.ai-action-missing-correlation-id",
          "level": "note",
          "message": {
            "text": "AI action, tool call, or agent workflow lacks visible correlation/request/trace ID capture."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 1,
                  "startColumn": 10,
                  "endLine": 1,
                  "endColumn": 20,
                  "snippet": {
                    "text": "streamText"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "24c7cc4d56f0f3fa06f9757cbb4b942a2ed2f261edc0eb55a02d635e921be2b3"
          },
          "relatedLocations": [
            {
              "id": 1,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "agent.py",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 16,
                  "endLine": 11,
                  "endColumn": 32
                }
              }
            },
            {
              "id": 2,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 7,
                  "startColumn": 13,
                  "endLine": 7,
                  "endColumn": 23
                }
              }
            },
            {
              "id": 3,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 9,
                  "startColumn": 13,
                  "endLine": 9,
                  "endColumn": 23
                }
              }
            },
            {
              "id": 4,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 13,
                  "endLine": 11,
                  "endColumn": 23
                }
              }
            },
            {
              "id": 5,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 26,
                  "endLine": 13,
                  "endColumn": 42
                }
              }
            },
            {
              "id": 6,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 15,
                  "startColumn": 26,
                  "endLine": 15,
                  "endColumn": 42
                }
              }
            }
          ],
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "missing_ai_correlation_id",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 7,
            "role": "application"
          },
          "ruleIndex": 8
        },
        {
          "ruleId": "keryn.inv.lib.vercel-ai",
          "level": "note",
          "message": {
            "text": "References the Vercel AI SDK."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 1,
                  "startColumn": 29,
                  "endLine": 1,
                  "endColumn": 38,
                  "snippet": {
                    "text": "from \"ai\""
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "399d15051e8ab5166ccf3beb91afe2e17908ce969114db2de27ddbcdb38aa037"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "subcategory": "inventory",
            "assertion": "capability",
            "role": "application"
          },
          "ruleIndex": 1
        },
        {
          "ruleId": "keryn.inv.lib.openai",
          "level": "note",
          "message": {
            "text": "References the OpenAI SDK."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 2,
                  "startColumn": 15,
                  "endLine": 2,
                  "endColumn": 28,
                  "snippet": {
                    "text": "from \"openai\""
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "b829b8ab6c2e808fd2d946e236d7393fd48c6d5ea03d828a3c57d7e393d38ecd"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "subcategory": "inventory",
            "assertion": "capability",
            "role": "application"
          },
          "ruleIndex": 0
        },
        {
          "ruleId": "seceng/model_call_without_token_cap",
          "level": "note",
          "message": {
            "text": "Model call without token cap."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 7,
                  "startColumn": 1,
                  "endLine": 7,
                  "endColumn": 1,
                  "snippet": {
                    "text": "LLM10 P1: sink `streamText(` on line 7 appears without a nearby guard"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "da184b1e5f18400da7613b69ce8ce330c8a2806e56cece89b86a53c2110e942a"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "model_call_without_token_cap",
            "role": "application"
          },
          "ruleIndex": 26
        },
        {
          "ruleId": "seceng/unfiltered_llm_stream_to_client",
          "level": "error",
          "message": {
            "text": "Model Output Streamed or Rendered as Unsanitized HTML"
          },
          "taxa": [
            {
              "id": "CWE-20",
              "toolComponent": {
                "name": "cwe"
              }
            }
          ],
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 7,
                  "startColumn": 1,
                  "endLine": 7,
                  "endColumn": 1,
                  "snippet": {
                    "text": "Model output is streamed directly to a response — ensure downstream rendering sanitizes before injecting into the DOM."
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "61dedc32607fae20a29bad35697c505ba7119b6cd124de61de2c63c8f1e01843"
          },
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 1,
            "proofRung": "pattern",
            "findingClass": "unfiltered_llm_stream_to_client",
            "role": "application"
          },
          "ruleIndex": 27
        },
        {
          "ruleId": "seceng.vercelai.streamtext-tools-without-maxsteps",
          "level": "note",
          "message": {
            "text": "Vercel AI SDK streamText uses tools without maxSteps. Tool-enabled agents should bound step count to reduce runaway execution."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 7,
                  "startColumn": 13,
                  "endLine": 7,
                  "endColumn": 53,
                  "snippet": {
                    "text": "streamText({ model: \"m\", tools: tools })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "fc13e77b21d30aeb4ae4c567c976f94f499862ba17baf36d2c4f53638e4089ca"
          },
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "low",
            "findingClass": "unbounded_ai_tool_steps",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "application"
          },
          "ruleIndex": 20
        },
        {
          "ruleId": "seceng/model_call_without_token_cap",
          "level": "note",
          "message": {
            "text": "Model call without token cap."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 9,
                  "startColumn": 1,
                  "endLine": 9,
                  "endColumn": 1,
                  "snippet": {
                    "text": "LLM10 P1: sink `streamText(` on line 9 appears without a nearby guard"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "978966efa099e28de94ebe915522a7a35b8dfa09978e91eae1f93975da8bb0da"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "model_call_without_token_cap",
            "role": "application"
          },
          "ruleIndex": 26
        },
        {
          "ruleId": "seceng/llm10_model_call_without_token_cap",
          "level": "note",
          "message": {
            "text": "A model call has no output token limit (unbounded consumption)."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 1,
                  "endLine": 11,
                  "endColumn": 1,
                  "snippet": {
                    "text": "LLM10 P1: sink `streamText(` on line 11 appears without a nearby guard"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "491cf64b5e9bbbf9121473699e5f13afe17ee51dec8c0c568cd85ec5d5fd1c92"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "llm10_model_call_without_token_cap",
            "role": "application"
          },
          "ruleIndex": 25
        },
        {
          "ruleId": "seceng.llm01.vercel-ai-sdk-injection",
          "level": "note",
          "message": {
            "text": "Vercel AI SDK accepts a user-role prompt. This is an AI input surface, not evidence of a prompt-injection vulnerability."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 11,
                  "startColumn": 13,
                  "endLine": 11,
                  "endColumn": 88,
                  "snippet": {
                    "text": "streamText({ messages: [{ role: \"user\", content: userText }], model: \"m\" })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "263beac442c43d7961bcafbb552f9658d715b969914eee4208402aae8081b4cb"
          },
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "ai_user_prompt_surface",
            "subcategory": "inventory",
            "assertion": "capability",
            "role": "application"
          },
          "ruleIndex": 10
        },
        {
          "ruleId": "seceng/agent_file_write_path_traversal",
          "level": "warning",
          "message": {
            "text": "Agent file write path traversal."
          },
          "taxa": [
            {
              "id": "CWE-22",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "CWE-400",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "CWE-73",
              "toolComponent": {
                "name": "cwe"
              }
            }
          ],
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 1,
                  "endLine": 13,
                  "endColumn": 1,
                  "snippet": {
                    "text": "LLM10 P1: sink `client.chat.completions.create(` on line 13 appears without a nearby guard"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "dc9c0f2dd746743cfa27fe54474754ff1b22d4aa5298163cb64f7263345bd190"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 1,
            "proofRung": "pattern",
            "findingClass": "agent_file_write_path_traversal",
            "role": "application"
          },
          "ruleIndex": 21
        },
        {
          "ruleId": "seceng/ai_gateway",
          "level": "note",
          "message": {
            "text": "AI gateway or model endpoint lacks authorization, tenant scope, or rate limits"
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 1,
                  "endLine": 13,
                  "endColumn": 1,
                  "snippet": {
                    "text": "The scan identified a candidate AI gateway control gap. Validation should confirm that identity, authorization, tenant scope, quota, and rate limits are enforced before model invocation."
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "853c7c897430ebdfc828eb36b7d3cde5848a31fd28581d24383605e5563d9164"
          },
          "codeFlows": [
            {
              "threadFlows": [
                {
                  "locations": [
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ai_route.ts",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 5,
                            "startColumn": 1,
                            "endLine": 5,
                            "endColumn": 1
                          }
                        },
                        "message": {
                          "text": "taint source"
                        }
                      }
                    },
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ai_route.ts",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 13,
                            "startColumn": 1,
                            "endLine": 13,
                            "endColumn": 1,
                            "snippet": {
                              "text": "The scan identified a candidate AI gateway control gap. Validation should confirm that identity, authorization, tenant scope, quota, and rate limits are enforced before model invocation."
                            }
                          }
                        },
                        "message": {
                          "text": "taint sink"
                        }
                      }
                    }
                  ]
                }
              ]
            }
          ],
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "ai_gateway",
            "role": "application"
          },
          "ruleIndex": 23
        },
        {
          "ruleId": "seceng.edge-ai-route-no-rate-limit",
          "level": "note",
          "message": {
            "text": "Edge AI route/function lacks visible rate limiting around model calls."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 13,
                  "endLine": 13,
                  "endColumn": 79,
                  "snippet": {
                    "text": "await client.chat.completions.create({ model: \"x\", messages: [] })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "bdae3dbfa41e88f5cf622a7f06d38b8514c553499ee61dd57fa035d6d8dc939b"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "edge_ai_missing_rate_limit",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "application"
          },
          "ruleIndex": 6
        },
        {
          "ruleId": "keryn.vendor.openai-call-without-moderation-js",
          "level": "note",
          "message": {
            "text": "The function that calls this OpenAI generation endpoint never calls moderations.create, so harmful or policy-violating input and output reach the model and your users unscreened. The Moderation endpoint is free; screen user input before the call and model output before it is shown."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 19,
                  "endLine": 13,
                  "endColumn": 79,
                  "snippet": {
                    "text": "client.chat.completions.create({ model: \"x\", messages: [] })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "c385147efdfaeca954133fc9e54ddd85ea55200d7356d2e2d6222a874af6eab4"
          },
          "relatedLocations": [
            {
              "id": 1,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 15,
                  "startColumn": 19,
                  "endLine": 15,
                  "endColumn": 71
                }
              }
            }
          ],
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "vendor_moderation_not_called",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 2,
            "role": "application"
          },
          "ruleIndex": 2
        },
        {
          "ruleId": "keryn.vendor.openai-chat-without-user-identifier-js",
          "level": "note",
          "message": {
            "text": "The OpenAI call carries neither a user nor a safety_identifier parameter, so OpenAI cannot tell your end users apart. Those fields are what lets the platform act on one abusive end user instead of your whole organisation when policy-violating prompts arrive. Pass safety_identifier (or user on older endpoints) with a hashed end-user id."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 19,
                  "endLine": 13,
                  "endColumn": 79,
                  "snippet": {
                    "text": "client.chat.completions.create({ model: \"x\", messages: [] })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "1e7069ccb20391ce9257c6ffaa94198665b6826cde4cc1adca00ad84c4f56b1b"
          },
          "relatedLocations": [
            {
              "id": 1,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 15,
                  "startColumn": 19,
                  "endLine": 15,
                  "endColumn": 71
                }
              }
            }
          ],
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "medium",
            "findingClass": "abuse_identifier_missing",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 2,
            "role": "application"
          },
          "ruleIndex": 4
        },
        {
          "ruleId": "seceng.llm10.openai-call-without-max-tokens",
          "level": "note",
          "message": {
            "text": "Model call appears to lack max token budget. Confirm bounded output and request budgeting."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 13,
                  "startColumn": 19,
                  "endLine": 13,
                  "endColumn": 79,
                  "snippet": {
                    "text": "client.chat.completions.create({ model: \"x\", messages: [] })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "e020970d6c3d8dd58aeb99a632cc96c3e8b7487ff6314119c876183ac82c449b"
          },
          "relatedLocations": [
            {
              "id": 1,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 15,
                  "startColumn": 19,
                  "endLine": 15,
                  "endColumn": 71
                }
              }
            }
          ],
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "token_budget_missing",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 2,
            "role": "application"
          },
          "ruleIndex": 17
        },
        {
          "ruleId": "seceng/agent_file_write_path_traversal",
          "level": "warning",
          "message": {
            "text": "Agent file write path traversal."
          },
          "taxa": [
            {
              "id": "CWE-22",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "CWE-400",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "CWE-73",
              "toolComponent": {
                "name": "cwe"
              }
            }
          ],
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 15,
                  "startColumn": 1,
                  "endLine": 15,
                  "endColumn": 1,
                  "snippet": {
                    "text": "LLM10 P1: sink `client.responses.create(` on line 15 appears without a nearby guard"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "91da11f4316f3023693b361fa2e473fe0f36452ab04c08d15e48c32f9022009b"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 1,
            "proofRung": "pattern",
            "findingClass": "agent_file_write_path_traversal",
            "role": "application"
          },
          "ruleIndex": 21
        },
        {
          "ruleId": "seceng/llm10_model_call_without_token_cap",
          "level": "note",
          "message": {
            "text": "A model call has no output token limit (unbounded consumption)."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 23,
                  "startColumn": 1,
                  "endLine": 23,
                  "endColumn": 1,
                  "snippet": {
                    "text": "LLM10 P1: sink `model.generate(` on line 23 appears without a nearby guard"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "4a81f370440b7b6722b9b9e773390fde6745fab156b7917df54bbcd0f8661d88"
          },
          "properties": {
            "gating": false,
            "confidence": "P0",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "llm10_model_call_without_token_cap",
            "role": "application"
          },
          "ruleIndex": 25
        },
        {
          "ruleId": "seceng.llm06.dangerous-tool-without-obvious-approval",
          "level": "note",
          "message": {
            "text": "Tool definition exposes a side-effecting capability. Confirm human approval, RBAC, tenant scoping, and audit logging."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 29,
                  "startColumn": 17,
                  "endLine": 29,
                  "endColumn": 76,
                  "snippet": {
                    "text": "tool({ description: \"send email\", execute: async () => 1 })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "72317894b6265620478b440c1aebd135f4ff7028442370340f765640b55196b5"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "findingClass": "agent_tool_without_approval",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "application"
          },
          "ruleIndex": 16
        },
        {
          "ruleId": "seceng.toolauth.audit-missing-for-dangerous-tool",
          "level": "note",
          "message": {
            "text": "Dangerous tool/action lacks visible audit event with user, tenant, resource, and action context."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ai_route.ts",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 29,
                  "startColumn": 51,
                  "endLine": 29,
                  "endColumn": 58,
                  "snippet": {
                    "text": "execute"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "80dacd5a3c180db9b53195207a043158638a4332fb6dfd683819083da47cb4c9"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "high",
            "findingClass": "dangerous_tool_missing_audit",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "application"
          },
          "ruleIndex": 19
        },
        {
          "ruleId": "vulnfix-ai-ai_js_dangerous_html",
          "level": "error",
          "message": {
            "text": "CWE-79 (insecure-output-handling): Renders raw HTML in React; if it carries LLM/markdown/user output, sanitize (DOMPurify)."
          },
          "taxa": [
            {
              "id": "CWE-79",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "ASI05",
              "toolComponent": {
                "name": "owasp-agentic"
              }
            },
            {
              "id": "LLM05",
              "toolComponent": {
                "name": "owasp-llm"
              }
            }
          ],
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 6,
                  "startColumn": 13,
                  "endLine": 6,
                  "endColumn": 63,
                  "snippet": {
                    "text": "<div dangerouslySetInnerHTML={{ __html: html }} />"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac"
          },
          "codeFlows": [
            {
              "threadFlows": [
                {
                  "locations": [
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ui.tsx",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 4,
                            "startColumn": 1,
                            "endLine": 4,
                            "endColumn": 1,
                            "snippet": {
                              "text": "html"
                            }
                          }
                        },
                        "message": {
                          "text": "taint source"
                        }
                      }
                    },
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ui.tsx",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 6,
                            "startColumn": 13,
                            "endLine": 6,
                            "endColumn": 63,
                            "snippet": {
                              "text": "<div dangerouslySetInnerHTML={{ __html: html }} />"
                            }
                          }
                        },
                        "message": {
                          "text": "taint sink"
                        }
                      }
                    }
                  ]
                }
              ]
            }
          ],
          "relatedLocations": [
            {
              "id": 1,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 8,
                  "startColumn": 13,
                  "endLine": 8,
                  "endColumn": 83
                }
              },
              "message": {
                "text": "vulnfix-ai-ai_js_dangerous_html"
              }
            },
            {
              "id": 2,
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 10,
                  "startColumn": 3,
                  "endLine": 10,
                  "endColumn": 22
                }
              },
              "message": {
                "text": "seceng.llm04.model-output-xss-js"
              }
            }
          ],
          "properties": {
            "gating": true,
            "confidence": "P1",
            "proofLevel": 2,
            "proofRung": "path-in-file",
            "deepCheck": "path",
            "falsePositiveRisk": "medium",
            "findingClass": "model_output_xss",
            "subcategory": "vuln",
            "assertion": "presence",
            "role": "application"
          },
          "ruleIndex": 28
        },
        {
          "ruleId": "seceng.llm05.inner-html-assignment",
          "level": "warning",
          "message": {
            "text": "Assignment to innerHTML or outerHTML may render model, retrieved, or tool output as executable HTML. Confirm sanitizer use and source trust."
          },
          "taxa": [
            {
              "id": "CWE-79",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "ASI05",
              "toolComponent": {
                "name": "owasp-agentic"
              }
            },
            {
              "id": "LLM05",
              "toolComponent": {
                "name": "owasp-llm"
              }
            }
          ],
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 14,
                  "startColumn": 3,
                  "endLine": 14,
                  "endColumn": 43,
                  "snippet": {
                    "text": "el.insertAdjacentHTML(\"beforeend\", html)"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "f1c13928590c3148d0894548d457817226c49e42510b9efdaf77ddd9f6811a08"
          },
          "codeFlows": [
            {
              "threadFlows": [
                {
                  "locations": [
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ui.tsx",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 4,
                            "startColumn": 1,
                            "endLine": 4,
                            "endColumn": 1,
                            "snippet": {
                              "text": "html"
                            }
                          }
                        },
                        "message": {
                          "text": "taint source"
                        }
                      }
                    },
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ui.tsx",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 14,
                            "startColumn": 3,
                            "endLine": 14,
                            "endColumn": 43,
                            "snippet": {
                              "text": "el.insertAdjacentHTML(\"beforeend\", html)"
                            }
                          }
                        },
                        "message": {
                          "text": "taint sink"
                        }
                      }
                    }
                  ]
                }
              ]
            }
          ],
          "properties": {
            "gating": true,
            "confidence": "P1",
            "proofLevel": 2,
            "proofRung": "path-in-file",
            "deepCheck": "path",
            "falsePositiveRisk": "medium",
            "findingClass": "unsafe_html_rendering",
            "subcategory": "vuln",
            "assertion": "presence",
            "role": "application"
          },
          "ruleIndex": 12
        },
        {
          "ruleId": "seceng.llm05.marked-html-enabled",
          "level": "warning",
          "message": {
            "text": "Markdown rendering appears to allow raw HTML. If model or retrieved content reaches this renderer, this can become XSS."
          },
          "taxa": [
            {
              "id": "CWE-79",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "ASI06",
              "toolComponent": {
                "name": "owasp-agentic"
              }
            },
            {
              "id": "LLM05",
              "toolComponent": {
                "name": "owasp-llm"
              }
            }
          ],
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 16,
                  "startColumn": 3,
                  "endLine": 16,
                  "endColumn": 52,
                  "snippet": {
                    "text": "marked.setOptions({ gfm: true, sanitize: false })"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "ff5a126e19946add5d2f52e4b33ab881325fafb7e7342ad075850a19dfc26092"
          },
          "properties": {
            "gating": false,
            "confidence": "P1",
            "proofLevel": 1,
            "proofRung": "pattern",
            "deepCheck": "no-path",
            "falsePositiveRisk": "medium",
            "findingClass": "unsafe_markdown_rendering",
            "subcategory": "vuln",
            "assertion": "presence",
            "role": "application"
          },
          "ruleIndex": 13
        },
        {
          "ruleId": "seceng.llm05.inner-html-assignment",
          "level": "warning",
          "message": {
            "text": "Assignment to innerHTML or outerHTML may render model, retrieved, or tool output as executable HTML. Confirm sanitizer use and source trust."
          },
          "taxa": [
            {
              "id": "CWE-79",
              "toolComponent": {
                "name": "cwe"
              }
            },
            {
              "id": "ASI05",
              "toolComponent": {
                "name": "owasp-agentic"
              }
            },
            {
              "id": "LLM05",
              "toolComponent": {
                "name": "owasp-llm"
              }
            }
          ],
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 18,
                  "startColumn": 3,
                  "endLine": 18,
                  "endColumn": 42,
                  "snippet": {
                    "text": "el.innerHTML = DOMPurify.sanitize(html)"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "f427b43820db7ba61aeafb03a9295b0d70e406061d9b69e298f05acd664ad793"
          },
          "codeFlows": [
            {
              "threadFlows": [
                {
                  "locations": [
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ui.tsx",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 4,
                            "startColumn": 1,
                            "endLine": 4,
                            "endColumn": 1,
                            "snippet": {
                              "text": "html"
                            }
                          }
                        },
                        "message": {
                          "text": "taint source"
                        }
                      }
                    },
                    {
                      "location": {
                        "physicalLocation": {
                          "artifactLocation": {
                            "uri": "ui.tsx",
                            "uriBaseId": "SRCROOT"
                          },
                          "region": {
                            "startLine": 18,
                            "startColumn": 3,
                            "endLine": 18,
                            "endColumn": 42,
                            "snippet": {
                              "text": "el.innerHTML = DOMPurify.sanitize(html)"
                            }
                          }
                        },
                        "message": {
                          "text": "taint sink"
                        }
                      }
                    }
                  ]
                }
              ]
            }
          ],
          "properties": {
            "gating": true,
            "confidence": "P1",
            "proofLevel": 2,
            "proofRung": "path-in-file",
            "deepCheck": "path",
            "falsePositiveRisk": "medium",
            "findingClass": "unsafe_html_rendering",
            "subcategory": "vuln",
            "assertion": "presence",
            "role": "application"
          },
          "ruleIndex": 12
        },
        {
          "ruleId": "seceng.mcp.ts.sse-transport-no-origin-validation",
          "level": "note",
          "message": {
            "text": "SSEServerTransport is created without enableDnsRebindingProtection, so no Origin/Host validation happens, and the legacy HTTP+SSE transport is deprecated. Any web page can open the SSE stream on a local server."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 21,
                  "startColumn": 13,
                  "endLine": 21,
                  "endColumn": 43,
                  "snippet": {
                    "text": "new SSEServerTransport(\"/sse\")"
                  }
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "02965527d17b186658fafeb4d1960d934f2392133eaad6bed2779a0fa5e7be99"
          },
          "properties": {
            "gating": false,
            "confidence": "P2",
            "proofLevel": 0,
            "proofRung": "inventory",
            "falsePositiveRisk": "medium",
            "findingClass": "mcp_transport_exposure",
            "subcategory": "audit",
            "assertion": "absence",
            "occurrences": 1,
            "role": "application"
          },
          "ruleIndex": 18
        },
        {
          "ruleId": "vulnfix-ai-ai_js_dangerous_html",
          "level": "error",
          "message": {
            "text": "CWE-79 (insecure-output-handling): Renders raw HTML in React; if it carries LLM/markdown/user output, sanitize (DOMPurify)."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 8,
                  "startColumn": 13,
                  "endLine": 8,
                  "endColumn": 83
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "1f5d9bd8e498a18222c1053d1a5b3da000c0e6a3dbc7648f04d0b6895f96d9e0"
          },
          "properties": {
            "gating": false,
            "caseId": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "mergedInto": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "proofLevel": 2
          },
          "ruleIndex": 28
        },
        {
          "ruleId": "seceng.llm05.react-dangerously-set-inner-html",
          "level": "warning",
          "message": {
            "text": "Model-controlled, retrieved, or tool-controlled content may be rendered through dangerouslySetInnerHTML. Confirm whether the source is trusted and sanitized."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 6,
                  "startColumn": 13,
                  "endLine": 6,
                  "endColumn": 63
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "6418ae2b1b6a46e42c0bc7b68f97fc0ed551f7a88f87ad4ed6a696482b5edd07"
          },
          "properties": {
            "gating": false,
            "caseId": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "mergedInto": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "proofLevel": 2
          },
          "ruleIndex": 14
        },
        {
          "ruleId": "seceng.llm04.model-output-xss-js",
          "level": "warning",
          "message": {
            "text": "Model-generated output is assigned to a dangerous HTML sink. This allows the model to perform Cross-Site Scripting (XSS)."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 10,
                  "startColumn": 3,
                  "endLine": 10,
                  "endColumn": 22
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "b84a9fbfa1394e9596a7a39cb59c25c46ae765343aa74acf54478356254e03d7"
          },
          "properties": {
            "gating": false,
            "caseId": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "mergedInto": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "proofLevel": 2
          },
          "ruleIndex": 11
        },
        {
          "ruleId": "seceng.llm05.inner-html-assignment",
          "level": "warning",
          "message": {
            "text": "Assignment to innerHTML or outerHTML may render model, retrieved, or tool output as executable HTML. Confirm sanitizer use and source trust."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 10,
                  "startColumn": 3,
                  "endLine": 10,
                  "endColumn": 22
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "01bc58b056d17e4030298c991a8c3cd3fa07bba27c493487e5634fc96c37cce7"
          },
          "properties": {
            "gating": false,
            "caseId": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "mergedInto": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "proofLevel": 2
          },
          "ruleIndex": 12
        },
        {
          "ruleId": "seceng.llm05.react-dangerously-set-inner-html-unprotected",
          "level": "warning",
          "message": {
            "text": "LLM output rendered via dangerouslySetInnerHTML without DOMPurify. High XSS risk."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 6,
                  "startColumn": 13,
                  "endLine": 6,
                  "endColumn": 63
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "004f18f8a3b3ede9421b4641cd61155807618e213097866798b5a3dcfda007ba"
          },
          "properties": {
            "gating": false,
            "caseId": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "mergedInto": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "proofLevel": 2
          },
          "ruleIndex": 15
        },
        {
          "ruleId": "seceng/html_render",
          "level": "warning",
          "message": {
            "text": "Untrusted input reaches HTML rendered in the page (cross-site scripting)."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 8,
                  "startColumn": 1,
                  "endLine": 8,
                  "endColumn": 1
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "fb1415ad090d308d089c3fea217079a8616594378039ab96baea1bd7e6935c71"
          },
          "properties": {
            "gating": false,
            "caseId": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "mergedInto": "fda094fae25a9c9150d9e993ce89bd34d70f35cc6f73a63ca3ace11908e79eac",
            "proofLevel": 2
          },
          "ruleIndex": 24
        },
        {
          "ruleId": "seceng/html_render",
          "level": "warning",
          "message": {
            "text": "Untrusted input reaches HTML rendered in the page (cross-site scripting)."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 14,
                  "startColumn": 1,
                  "endLine": 14,
                  "endColumn": 1
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "9eaeca369de9c5d27ced37e865e11eaf1be1574d3929593707279d7477fbbd77"
          },
          "properties": {
            "gating": false,
            "caseId": "f1c13928590c3148d0894548d457817226c49e42510b9efdaf77ddd9f6811a08",
            "mergedInto": "f1c13928590c3148d0894548d457817226c49e42510b9efdaf77ddd9f6811a08",
            "proofLevel": 2
          },
          "ruleIndex": 24
        },
        {
          "ruleId": "seceng/html_render",
          "level": "warning",
          "message": {
            "text": "Untrusted input reaches HTML rendered in the page (cross-site scripting)."
          },
          "locations": [
            {
              "physicalLocation": {
                "artifactLocation": {
                  "uri": "ui.tsx",
                  "uriBaseId": "SRCROOT"
                },
                "region": {
                  "startLine": 18,
                  "startColumn": 1,
                  "endLine": 18,
                  "endColumn": 1
                }
              }
            }
          ],
          "partialFingerprints": {
            "keryn/fingerprint/v1": "6a961465c7a424db02b706eb8735c1d2a34cc66926f371fcbbcf294ee9d50bc4"
          },
          "properties": {
            "gating": false,
            "caseId": "f427b43820db7ba61aeafb03a9295b0d70e406061d9b69e298f05acd664ad793",
            "mergedInto": "f427b43820db7ba61aeafb03a9295b0d70e406061d9b69e298f05acd664ad793",
            "proofLevel": 2
          },
          "ruleIndex": 24
        }
      ],
      "invocations": [
        {
          "executionSuccessful": true
        }
      ],
      "properties": {
        "keryn:coverage": "1598/1598 rules executed (0 unsupported, 0 partial, 0 timed out); 3 files scanned, 0 skipped; 15 absence findings collapsed into 13 repo-level findings.",
        "keryn:coverageComplete": true,
        "keryn:revision": "0000000",
        "keryn:rules": "0.8.0",
        "keryn:ci": [
          {
            "name": "keryn:ci:policySha256",
            "value": "none"
          },
          {
            "name": "keryn:ci:ruleBundleSha256",
            "value": "sha256:ff505642b502caefa5c56c481db622fd900dcc90a40e3e22f7b3ac3fa0fffab8"
          }
        ]
      }
    }
  ]
}
