{
  "attack_id": "matan-claude-code-yes-mode-agents-md-2026-11",
  "status": "catalog_recommendations_not_validated_coverage",
  "stages": [
    {
      "node_id": "plant",
      "profile": "agent-input",
      "title": "Untrusted content enters an agent session",
      "hypothesis": "An agent ingests external content or an untrusted session identifier before a tool action or configuration change outside the approved task.",
      "visibility": "Application / agent audit records",
      "telemetry": [
        "Input provenance, source type and request/session identifier",
        "Captured tool responses or retrieved content where collection is approved",
        "Subsequent tool calls, configuration changes and approval decisions"
      ],
      "investigate": [
        "Join the ingested input to later actions by session or request ID; preserve the original content as evidence.",
        "Compare the resulting action with the approved task and baseline. Receiving suspicious text alone is not successful injection."
      ],
      "limitation": "Requires application instrumentation and a custom field mapping. Input exposure does not prove that the model followed instructions, executed a tool or bypassed approval. Avoid collecting sensitive prompt bodies unless authorized.",
      "queries": {
        "sigma": "title: Hunt - Untrusted content enters an agent session\nid: 2d89d7ae-9d44-4dc6-a95b-f9c8de7b8352\nstatus: experimental\ndescription: An agent ingests external content or an untrusted session\n  identifier before a tool action or configuration change outside the approved\n  task.\nauthor: MagicSword OpenAttacks catalog\ndate: 2026-11-04\nfalsepositives:\n  - Authorized activity matching this broad hunt; baseline and investigate\n    before alerting.\nlevel: low\nlogsource:\n  category: application\n  product: openattacks_audit\n  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,\n    Target and CorrelationId from the required source logs first.\ndetection:\n  selection:\n    EventType:\n      - agent.input.ingest\n      - agent.session.resume\n  condition: selection\n",
        "kql": "// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.\n// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).\n// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.\nOpenAttacksAudit_CL\n| where TimeGenerated > ago(7d)\n| where EventType in (\"agent.input.ingest\", \"agent.session.resume\")\n| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId\n| order by TimeGenerated desc",
        "spl": "sourcetype=\"openattacks:audit\"\nEventType IN (\"agent.input.ingest\", \"agent.session.resume\")\n| table _time EventType Actor Asset Action Target CorrelationId\n| sort - _time"
      },
      "query_scope": "Custom-schema candidate for input exposure only. Map agent.input.ingest and agent.session.resume to your application request and session logs. CorrelationId must link subsequent actions. EventType values are proposed normalization names, not native vendor events.",
      "query_kind": "custom_schema",
      "origin": "catalog_authored",
      "definition_url": "https://github.com/magicsword-io/openattacks/blob/main/detections/agent-input.yaml",
      "query_downloads": {
        "sigma": "/api/detections/agent-input.sigma.yml",
        "kql": "/api/detections/agent-input.kql",
        "spl": "/api/detections/agent-input.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://matanbt.github.io/post/yesmode2026/"
      ],
      "reviewed": "2026-11-04",
      "upstream_matches": []
    },
    {
      "node_id": "score",
      "profile": "agent-input",
      "title": "Untrusted content enters an agent session",
      "hypothesis": "An agent ingests external content or an untrusted session identifier before a tool action or configuration change outside the approved task.",
      "visibility": "Application / agent audit records",
      "telemetry": [
        "Input provenance, source type and request/session identifier",
        "Captured tool responses or retrieved content where collection is approved",
        "Subsequent tool calls, configuration changes and approval decisions"
      ],
      "investigate": [
        "Join the ingested input to later actions by session or request ID; preserve the original content as evidence.",
        "Compare the resulting action with the approved task and baseline. Receiving suspicious text alone is not successful injection."
      ],
      "limitation": "Requires application instrumentation and a custom field mapping. Input exposure does not prove that the model followed instructions, executed a tool or bypassed approval. Avoid collecting sensitive prompt bodies unless authorized.",
      "queries": {
        "sigma": "title: Hunt - Untrusted content enters an agent session\nid: 2d89d7ae-9d44-4dc6-a95b-f9c8de7b8352\nstatus: experimental\ndescription: An agent ingests external content or an untrusted session\n  identifier before a tool action or configuration change outside the approved\n  task.\nauthor: MagicSword OpenAttacks catalog\ndate: 2026-11-04\nfalsepositives:\n  - Authorized activity matching this broad hunt; baseline and investigate\n    before alerting.\nlevel: low\nlogsource:\n  category: application\n  product: openattacks_audit\n  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,\n    Target and CorrelationId from the required source logs first.\ndetection:\n  selection:\n    EventType:\n      - agent.input.ingest\n      - agent.session.resume\n  condition: selection\n",
        "kql": "// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.\n// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).\n// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.\nOpenAttacksAudit_CL\n| where TimeGenerated > ago(7d)\n| where EventType in (\"agent.input.ingest\", \"agent.session.resume\")\n| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId\n| order by TimeGenerated desc",
        "spl": "sourcetype=\"openattacks:audit\"\nEventType IN (\"agent.input.ingest\", \"agent.session.resume\")\n| table _time EventType Actor Asset Action Target CorrelationId\n| sort - _time"
      },
      "query_scope": "Custom-schema candidate for input exposure only. Map agent.input.ingest and agent.session.resume to your application request and session logs. CorrelationId must link subsequent actions. EventType values are proposed normalization names, not native vendor events.",
      "query_kind": "custom_schema",
      "origin": "catalog_authored",
      "definition_url": "https://github.com/magicsword-io/openattacks/blob/main/detections/agent-input.yaml",
      "query_downloads": {
        "sigma": "/api/detections/agent-input.sigma.yml",
        "kql": "/api/detections/agent-input.kql",
        "spl": "/api/detections/agent-input.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://matanbt.github.io/post/yesmode2026/"
      ],
      "reviewed": "2026-11-04",
      "upstream_matches": []
    },
    {
      "node_id": "allow",
      "profile": "unassessed",
      "title": "Stage hunt not mapped yet",
      "hypothesis": "A stage-specific hunt has not been reviewed for this part of the source account.",
      "visibility": "Not assessed",
      "telemetry": [],
      "investigate": [
        "Review the cited behavior, identify the observing party and available logs, then propose and test a hunt."
      ],
      "limitation": "An unmapped stage does not mean it is undetectable or that no behavior occurred. It means this catalog has not supplied a reviewed hunt for it.",
      "queries": null,
      "query_scope": "No query has been reviewed for this stage yet.",
      "query_kind": "gap",
      "origin": "catalog_authored",
      "definition_url": "https://github.com/magicsword-io/openattacks/blob/main/detections/unassessed.yaml",
      "query_downloads": null,
      "validation": "not_assessed",
      "evidence": [
        "https://matanbt.github.io/post/yesmode2026/"
      ],
      "reviewed": null,
      "upstream_matches": []
    },
    {
      "node_id": "bypass",
      "profile": "credentials",
      "title": "Sensitive store access → credential use",
      "hypothesis": "An unexpected process or tool accesses credential stores and is followed by token use or outbound transfer inconsistent with the owner.",
      "visibility": "Defender-side logs where collected",
      "telemetry": [
        "File-read / API access telemetry for relevant secret stores",
        "Process identity and command lines",
        "Identity, token and outbound-network audit logs"
      ],
      "investigate": [
        "Identify the actor, process and exact store touched, then pivot to token use from new devices or infrastructure.",
        "Correlate reads with egress and rotate affected credentials after confirming exposure."
      ],
      "limitation": "Defender DeviceFileEvents is not a general file-read audit trail. Collect suitable object-access, EDR or application logs; legitimate developer tools also read secrets.",
      "queries": {
        "sigma": "title: Hunt - Sensitive store access → credential use\nid: 46c46c62-2d83-4198-a8bf-d6637094527b\nstatus: experimental\ndescription: An unexpected process or tool accesses credential stores and is\n  followed by token use or outbound transfer inconsistent with the owner.\nauthor: MagicSword OpenAttacks catalog\ndate: 2026-10-23\nfalsepositives:\n  - Authorized activity matching this broad hunt; baseline and investigate\n    before alerting.\nlevel: low\nlogsource:\n  category: application\n  product: openattacks_audit\n  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,\n    Target and CorrelationId from the required source logs first.\ndetection:\n  selection:\n    EventType:\n      - secret.read\n      - credential.store.read\n  condition: selection\n",
        "kql": "// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.\n// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).\n// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.\nOpenAttacksAudit_CL\n| where TimeGenerated > ago(7d)\n| where EventType in (\"secret.read\", \"credential.store.read\")\n| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId\n| order by TimeGenerated desc",
        "spl": "sourcetype=\"openattacks:audit\"\nEventType IN (\"secret.read\", \"credential.store.read\")\n| table _time EventType Actor Asset Action Target CorrelationId\n| sort - _time"
      },
      "query_scope": "Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.",
      "query_kind": "custom_schema",
      "origin": "catalog_authored",
      "definition_url": "https://github.com/magicsword-io/openattacks/blob/main/detections/credentials.yaml",
      "query_downloads": {
        "sigma": "/api/detections/credentials.sigma.yml",
        "kql": "/api/detections/credentials.kql",
        "spl": "/api/detections/credentials.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://matanbt.github.io/post/yesmode2026/"
      ],
      "reviewed": "2026-10-23",
      "upstream_matches": []
    }
  ],
  "attack_flow": {
    "nodes": [
      {
        "id": "plant",
        "title": "One line in AGENTS.md",
        "description": "The repository's AGENTS.md closes the user_claude_md tag and tells the classifier to score severity from 0 to 10.",
        "kind": "access",
        "source_urls": [
          "https://matanbt.github.io/post/yesmode2026/"
        ]
      },
      {
        "id": "score",
        "title": "Sonnet 5 scores under 10",
        "description": "Auto Mode sends the file to Sonnet 5. In the tests every injected score came back between 0 and 10.",
        "kind": "ai",
        "source_urls": [
          "https://matanbt.github.io/post/yesmode2026/"
        ]
      },
      {
        "id": "allow",
        "title": "Claude Code allows scores under 25",
        "description": "The client treats the 0-10 score as below the threshold of 25 and runs the tool call, including hard_deny commands.",
        "kind": "execution",
        "source_urls": [
          "https://matanbt.github.io/post/yesmode2026/"
        ]
      },
      {
        "id": "bypass",
        "title": "Denied commands still run",
        "description": "End-to-end sessions then read a local .env, disabled git TLS verification, or followed a malicious skill. Clean sessions blocked the same commands.",
        "kind": "impact",
        "source_urls": [
          "https://matanbt.github.io/post/yesmode2026/"
        ]
      }
    ],
    "edges": [
      {
        "source": "plant",
        "target": "score"
      },
      {
        "source": "score",
        "target": "allow"
      },
      {
        "source": "allow",
        "target": "bypass"
      }
    ]
  }
}