{
  "attack_id": "railway-october-ai-key-theft-2026-10",
  "status": "catalog_recommendations_not_validated_coverage",
  "stages": [
    {
      "node_id": "signup",
      "profile": "identity",
      "title": "Credential / session use outside baseline",
      "hypothesis": "Repeated credential attempts or a stolen session are followed by a successful login or resource access inconsistent with the owner.",
      "visibility": "Defender-side logs where collected",
      "telemetry": [
        "Identity / service authentication logs",
        "Device, source-IP and session context",
        "Resource access and token issuance audit"
      ],
      "investigate": [
        "Compare failures, successes and session reuse by account and source; inspect access to new resources.",
        "Check device registration, MFA and credential changes; do not equate travel anomalies with confirmed compromise."
      ],
      "limitation": "Shared infrastructure and legitimate travel create noise. IoT, SharePoint and cloud identity require their own collectors and field mappings.",
      "queries": {
        "sigma": "title: Hunt - Credential / session use outside baseline\nid: 7d73d919-e785-4d40-ab0b-f12949adfaf5\nstatus: experimental\ndescription: Repeated credential attempts or a stolen session are followed by a\n  successful login or resource access 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      - identity.login\n      - identity.token.use\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 (\"identity.login\", \"identity.token.use\")\n| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId\n| order by TimeGenerated desc",
        "spl": "sourcetype=\"openattacks:audit\"\nEventType IN (\"identity.login\", \"identity.token.use\")\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/identity.yaml",
      "query_downloads": {
        "sigma": "/api/detections/identity.sigma.yml",
        "kql": "/api/detections/identity.kql",
        "spl": "/api/detections/identity.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://blog.railway.com/p/incident-report-october-security-incident"
      ],
      "reviewed": "2026-10-23",
      "upstream_matches": []
    },
    {
      "node_id": "build-escape",
      "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://blog.railway.com/p/incident-report-october-security-incident"
      ],
      "reviewed": null,
      "upstream_matches": []
    },
    {
      "node_id": "oidc",
      "profile": "cloud",
      "title": "Unexpected cloud / inference identity use",
      "hypothesis": "A service key or role is used from an unfamiliar origin, gains broader access or causes inference usage outside its established baseline.",
      "visibility": "Defender-side logs where collected",
      "telemetry": [
        "Cloud control-plane and identity audit",
        "AI-service invocation / diagnostic logs when enabled",
        "Usage, quotas, cost and key inventory"
      ],
      "investigate": [
        "Pivot on key ID / principal, source network and user agent, then inspect role changes, token minting and service pivots.",
        "Join inference usage and billing anomalies to the same principal; verify whether the behavior was authorized."
      ],
      "limitation": "Cloud control-plane logs alone may not include model prompts or inference calls. No endpoint policy is claimed to stop cloud-only key misuse.",
      "queries": {
        "sigma": "title: Hunt - Unexpected cloud / inference identity use\nid: afac2e65-c838-485b-a26f-7f175d422f61\nstatus: experimental\ndescription: A service key or role is used from an unfamiliar origin, gains\n  broader access or causes inference usage outside its established baseline.\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      - cloud.credential.use\n      - cloud.role.change\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 (\"cloud.credential.use\", \"cloud.role.change\", \"model.invoke\")\n| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId\n| order by TimeGenerated desc",
        "spl": "sourcetype=\"openattacks:audit\"\nEventType IN (\"cloud.credential.use\", \"cloud.role.change\", \"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/cloud.yaml",
      "query_downloads": {
        "sigma": "/api/detections/cloud.sigma.yml",
        "kql": "/api/detections/cloud.kql",
        "spl": "/api/detections/cloud.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://blog.railway.com/p/incident-report-october-security-incident"
      ],
      "reviewed": "2026-10-23",
      "upstream_matches": []
    },
    {
      "node_id": "decrypt",
      "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://blog.railway.com/p/incident-report-october-security-incident"
      ],
      "reviewed": "2026-10-23",
      "upstream_matches": []
    },
    {
      "node_id": "resale",
      "profile": "exfil",
      "title": "Sensitive data → unusual destination",
      "hypothesis": "Sensitive reads are followed by outbound transfer, a public artifact, or a tool call to a destination outside the approved workflow.",
      "visibility": "Defender-side logs where collected",
      "telemetry": [
        "Sensitive resource access / DLP records",
        "Proxy, egress and cloud upload events",
        "Agent / SaaS audit with correlation IDs"
      ],
      "investigate": [
        "Join the resource read and outbound action by session, identity or process, preserving a bounded time window.",
        "Inspect destination ownership, payload classification and the user's intended action; baseline sanctioned sharing."
      ],
      "limitation": "An outbound connection or high byte count alone is not exfiltration. Encrypted traffic may hide content, and bulk legitimate exports are common.",
      "queries": {
        "sigma": "title: Hunt - Sensitive data → unusual destination\nid: 04b60968-3179-4b1f-ae13-6f57c2446077\nstatus: experimental\ndescription: Sensitive reads are followed by outbound transfer, a public\n  artifact, or a tool call to a destination outside the approved workflow.\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      - data.export\n      - agent.external.send\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 (\"data.export\", \"agent.external.send\")\n| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId\n| order by TimeGenerated desc",
        "spl": "sourcetype=\"openattacks:audit\"\nEventType IN (\"data.export\", \"agent.external.send\")\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/exfil.yaml",
      "query_downloads": {
        "sigma": "/api/detections/exfil.sigma.yml",
        "kql": "/api/detections/exfil.kql",
        "spl": "/api/detections/exfil.spl"
      },
      "validation": "draft",
      "evidence": [
        "https://blog.railway.com/p/incident-report-october-security-incident"
      ],
      "reviewed": "2026-10-23",
      "upstream_matches": []
    }
  ],
  "attack_flow": {
    "nodes": [
      {
        "id": "signup",
        "title": "Dummy account swarm",
        "description": "Signups begin October 18, two days before the build escape.",
        "kind": "access",
        "source_urls": [
          "https://blog.railway.com/p/incident-report-october-security-incident"
        ]
      },
      {
        "id": "build-escape",
        "title": "Break out of the build",
        "description": "At 07:28 UTC on October 20 a build bug yields a credential that Temporal trusts. 353 build histories are read.",
        "kind": "execution",
        "source_urls": [
          "https://blog.railway.com/p/incident-report-october-security-incident"
        ]
      },
      {
        "id": "oidc",
        "title": "OIDC misbinding to a long-lived credential",
        "description": "At 03:26 UTC on October 21 a short-lived cloud credential exposes an SSH key and a long-lived credential on an orchestration machine.",
        "kind": "execution",
        "source_urls": [
          "https://blog.railway.com/p/incident-report-october-security-incident"
        ]
      },
      {
        "id": "decrypt",
        "title": "Decrypt AI provider keys",
        "description": "Regex selection and KMS decrypt in two windows on October 21 expose variables for at most 1.85 percent of workspaces.",
        "kind": "ai",
        "source_urls": [
          "https://blog.railway.com/p/incident-report-october-security-incident"
        ]
      },
      {
        "id": "resale",
        "title": "Stolen usage",
        "description": "Keys show up in coding-agent traffic and training-data collection. Unauthorized spend is about 740,000 dollars.",
        "kind": "impact",
        "source_urls": [
          "https://blog.railway.com/p/incident-report-october-security-incident"
        ]
      }
    ],
    "edges": [
      {
        "source": "signup",
        "target": "build-escape"
      },
      {
        "source": "build-escape",
        "target": "oidc"
      },
      {
        "source": "oidc",
        "target": "decrypt"
      },
      {
        "source": "decrypt",
        "target": "resale"
      }
    ]
  }
}