{
  "attack_id": "promptflux-gtig-2025-06",
  "status": "catalog_recommendations_not_validated_coverage",
  "stages": [
    {
      "node_id": "step-1",
      "profile": "unobserved",
      "title": "No source-backed runtime hunt yet",
      "hypothesis": "The supplied account does not establish a deployed victim-side behavior for this stage.",
      "visibility": "Not established",
      "telemetry": [],
      "investigate": [
        "Obtain a source-backed procedure and identify which party could observe it before drafting a detection."
      ],
      "limitation": "Marketing claims, unknown steps and unconfirmed deployments are not detection coverage. No rule is generated for this stage.",
      "note": "The supplied account leaves this stage unestablished. Obtain a source-backed procedure before proposing a runtime query.",
      "queries": null,
      "query_scope": "No runtime query: the available evidence does not establish one.",
      "query_kind": "gap",
      "origin": "catalog_authored",
      "definition_url": "https://github.com/magicsword-io/openattacks/blob/main/detections/unobserved.yaml",
      "query_downloads": null,
      "validation": "not_applicable",
      "evidence": [
        "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
      ],
      "reviewed": null,
      "upstream_matches": []
    },
    {
      "node_id": "step-2",
      "profile": "model-network",
      "title": "Unexpected process → model service",
      "hypothesis": "An unexpected script, implant or local model client communicates with a model service near command execution, collection or file modification.",
      "visibility": "Defender-side logs where collected",
      "telemetry": [
        "Per-process network / DNS records",
        "AI-service request logs where available",
        "Process and file behavior on the calling host"
      ],
      "investigate": [
        "Join the network connection to the process tree and the actions before and after the response.",
        "Compare with approved AI integrations; inspect local model listeners for PoCs that do not use a hosted API."
      ],
      "limitation": "Connecting to a legitimate model domain does not establish malicious use or reveal returned code. Local / in-process models can evade network-only hunts.",
      "queries": {
        "sigma": "title: Hunt - Unexpected process → model service\nid: 8560daf7-ecd1-4f2b-ad09-b794bb56a394\nstatus: experimental\ndescription: An unexpected script, implant or local model client communicates\n  with a model service near command execution, collection or file modification.\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      - model.connection\n      - model.invoke\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 (\"model.connection\", \"model.invoke\")\n| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId\n| order by TimeGenerated desc",
        "spl": "sourcetype=\"openattacks:audit\"\nEventType IN (\"model.connection\", \"model.invoke\")\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/model-network.yaml",
      "query_downloads": {
        "sigma": "/api/detections/model-network.sigma.yml",
        "kql": "/api/detections/model-network.kql",
        "spl": "/api/detections/model-network.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
      ],
      "reviewed": "2026-10-23",
      "upstream_matches": []
    },
    {
      "node_id": "step-3",
      "profile": "windows-shell",
      "title": "Suspicious Windows script execution",
      "hypothesis": "A script host or shell runs encoded content, a remote URL, or inline script syntax, then downloads or launches a payload.",
      "visibility": "Defender-side logs where collected",
      "telemetry": [
        "Windows process creation: Sysmon Event 1 or Defender DeviceProcessEvents",
        "PowerShell script-block logging when enabled",
        "Download / network and installer events"
      ],
      "investigate": [
        "Follow the parent and child process tree and recover the script or URL from logs without executing it.",
        "Correlate the payload's signer/hash, persistence, and network activity; baseline approved automation."
      ],
      "limitation": "Encoded commands and remote administration can be legitimate. This does not cover every script host, in-process execution, or non-Windows branch.",
      "queries": {
        "sigma": "title: Hunt - Suspicious Windows script execution\nid: 2bb88802-9f03-4d99-a192-fe44c9484e8b\nstatus: experimental\ndescription: A script host or shell runs encoded content, a remote URL, or\n  inline script syntax, then downloads or launches a payload.\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: process_creation\n  product: windows\ndetection:\n  selection:\n    Image|endswith:\n      - \\powershell.exe\n      - \\pwsh.exe\n      - \\mshta.exe\n      - \\wscript.exe\n      - \\cscript.exe\n    CommandLine|contains:\n      - -enc\n      - http\n      - FromBase64String\n      - \"javascript:\"\n      - \"vbscript:\"\n  condition: selection\n",
        "kql": "// Draft hunt; requires Defender for Endpoint process telemetry for this OS.\nDeviceProcessEvents\n| where Timestamp > ago(7d)\n| where FileName in~ (\"powershell.exe\", \"pwsh.exe\", \"mshta.exe\", \"wscript.exe\", \"cscript.exe\")\n| where ProcessCommandLine contains \"-enc\" or ProcessCommandLine contains \"http\" or ProcessCommandLine contains \"FromBase64String\" or ProcessCommandLine contains \"javascript:\" or ProcessCommandLine contains \"vbscript:\"\n| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, SHA1\n| order by Timestamp desc",
        "spl": "sourcetype=\"XmlWinEventLog:Microsoft-Windows-Sysmon/Operational\" EventCode=1\nImage IN (\"*\\\\powershell.exe\", \"*\\\\pwsh.exe\", \"*\\\\mshta.exe\", \"*\\\\wscript.exe\", \"*\\\\cscript.exe\")\nCommandLine IN (\"*-enc*\", \"*http*\", \"*FromBase64String*\", \"*javascript:*\", \"*vbscript:*\")\n| table _time host User Image CommandLine ParentImage ParentCommandLine\n| sort - _time"
      },
      "query_scope": "Windows process candidates. Sigma uses normalized process_creation fields; KQL requires Defender for Endpoint; SPL requires the Sysmon XML sourcetype. Tune collectors, fields and baselines before use.",
      "query_kind": "native",
      "origin": "catalog_authored",
      "definition_url": "https://github.com/magicsword-io/openattacks/blob/main/detections/windows-shell.yaml",
      "query_downloads": {
        "sigma": "/api/detections/windows-shell.sigma.yml",
        "kql": "/api/detections/windows-shell.kql",
        "spl": "/api/detections/windows-shell.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
      ],
      "reviewed": "2026-10-23",
      "upstream_matches": [],
      "control": {
        "title": "Restrict script / execution utilities",
        "action": "Use MagicSword to review and enforce a policy restricting unneeded Windows script hosts, shells or installer utilities identified in this branch.",
        "scope": "Windows VBScript execution. The analyzed sample's self-update function was commented out; blocking it is not proof of stopping an active self-rewrite chain.",
        "limitation": "Policy opportunity, not tested incident coverage. Requires enrolled Windows devices, a policy covering the actual executable, and enforcement. Audit mode records decisions without blocking; allowed tools and in-process / cloud actions can remain reachable.",
        "url": "https://www.magicsword.io/use-cases/application-control?utm_source=openattacks&utm_medium=referral&utm_content=stage-control"
      }
    },
    {
      "node_id": "step-4",
      "profile": "unobserved",
      "title": "No source-backed runtime hunt yet",
      "hypothesis": "The supplied account does not establish a deployed victim-side behavior for this stage.",
      "visibility": "Not established",
      "telemetry": [],
      "investigate": [
        "Obtain a source-backed procedure and identify which party could observe it before drafting a detection."
      ],
      "limitation": "Marketing claims, unknown steps and unconfirmed deployments are not detection coverage. No rule is generated for this stage.",
      "note": "The supplied account leaves this stage unestablished. Obtain a source-backed procedure before proposing a runtime query.",
      "queries": null,
      "query_scope": "No runtime query: the available evidence does not establish one.",
      "query_kind": "gap",
      "origin": "catalog_authored",
      "definition_url": "https://github.com/magicsword-io/openattacks/blob/main/detections/unobserved.yaml",
      "query_downloads": null,
      "validation": "not_applicable",
      "evidence": [
        "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
      ],
      "reviewed": null,
      "upstream_matches": []
    }
  ],
  "attack_flow": {
    "nodes": [
      {
        "id": "step-1",
        "title": "Initial delivery is not established",
        "description": "The analyzed VBScript includes a decoy installer, but the initial route is unknown.",
        "kind": "unknown",
        "source_urls": [
          "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
        ]
      },
      {
        "id": "step-2",
        "title": "Thinking Robot queries Gemini",
        "description": "A hard-coded key supports requests for VBScript evasion rewrites.",
        "kind": "ai",
        "source_urls": [
          "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
        ]
      },
      {
        "id": "step-3",
        "title": "Dropper contains a rewrite workflow",
        "description": "The analyzed sample contains code for self-modification.",
        "kind": "execution",
        "source_urls": [
          "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
        ]
      },
      {
        "id": "step-4",
        "title": "Self-update is commented out",
        "description": "Startup persistence and removable-drive spread are intended behavior; the analyzed rewrite function was not active.",
        "kind": "unknown",
        "source_urls": [
          "https://cloud.google.com/blog/topics/threat-intelligence/threat-actor-usage-of-ai-tools/"
        ]
      }
    ],
    "edges": [
      {
        "source": "step-1",
        "target": "step-2"
      },
      {
        "source": "step-2",
        "target": "step-3"
      },
      {
        "source": "step-3",
        "target": "step-4"
      }
    ]
  }
}