{
  "hunt": {
    "meta": {
      "tlp": "clear",
      "hunt": {
        "handoff": "keep-as-periodic-hunt",
        "trigger": "intel-report",
        "methodology": "model-assisted",
        "applicability": "campaign-specific",
        "justification": "A negative result across the estate provides assurance that the OPTIMJACK campaign did not lead to mobile exploit execution or financial data theft within the enterprise, despite the use of trusted CDN infrastructure."
      },
      "name": "OPTIMJACK Third-Party Script Supply Chain Impact",
      "type": "investigation",
      "labels": [
        "hunt",
        "attack.t1195.002",
        "attack.t1190",
        "attack.t1203",
        "collection",
        "execution",
        "initial access"
      ],
      "related": [
        {
          "hunt": "client-side-js-skimming-behavior",
          "reason": "Detecting the actual theft of card data or wallet swapping requires DOM-level monitoring or specialized client-side telemetry not available in these surfaces.",
          "relation": "out-of-scope-alternative"
        }
      ],
      "targets": {
        "web": {
          "name": "Web server / proxy logs",
          "category": "siem",
          "telemetry": [
            "network"
          ]
        },
        "hunter": {
          "name": "Hunt agent",
          "agent": true
        },
        "analyst": {
          "name": "Tier-2 analyst",
          "role": "analyst"
        },
        "endpoint": {
          "name": "Endpoint telemetry (hb_ surfaces)",
          "category": "endpoint",
          "telemetry": [
            "endpoint"
          ]
        }
      },
      "analysis": "This is a hunt because it correlates legitimate activity (CDN usage) with rare malicious follow-on activity across multiple surfaces. A single rule on Optimizely CDN traffic would be far too noisy to be actionable; an analyst must weigh the presence of exploit-kit markers against the CDN interaction to reach a verdict.",
      "coverage": [
        {
          "stage": "malicious-script-distribution",
          "steps": [
            "optimizely-cdn-interaction"
          ],
          "status": "covered"
        },
        {
          "stage": "mobile-exploit-kit-delivery",
          "steps": [
            "exploit-kit-http-traffic",
            "exploit-kit-dns-resolutions"
          ],
          "status": "covered"
        },
        {
          "stage": "vendor-platform-exploitation",
          "reason": "Exploitation of the vendor's internal platform is only visible in the vendor's own logs, not on the customer estate.",
          "status": "out_of_scope"
        },
        {
          "stage": "client-side-financial-collection",
          "reason": "Wallet swapping and card skimming occur within the user's browser memory and are not typically captured in proxy or endpoint process logs unless exfiltration occurs to a known domain.",
          "status": "not_visible"
        }
      ],
      "scenario": {
        "stages": [
          {
            "name": "Vendor Platform Exploitation",
            "slug": "vendor-platform-exploitation",
            "tactic": "initial-access",
            "techniques": [
              "T1190",
              "T1195"
            ],
            "observables": [
              "Optimizely Web Experimentation platform vulnerability",
              "Project JavaScript field modification",
              "Nov 16, 2026"
            ]
          },
          {
            "name": "Malicious Script Distribution",
            "slug": "malicious-script-distribution",
            "tactic": "initial-access",
            "techniques": [
              "T1195.002"
            ],
            "observables": [
              "Optimizely CDN",
              "Legitimate vendor security certificate",
              "Malicious JavaScript snippets",
              "optimizely.com"
            ]
          },
          {
            "name": "Client-Side Financial Collection",
            "slug": "client-side-financial-collection",
            "tactic": "collection",
            "techniques": [
              "T1539",
              "T1557"
            ],
            "observables": [
              "Cryptocurrency wallet address swapping",
              "Payment card skimming",
              "Checkout form data collection"
            ]
          },
          {
            "name": "Mobile Exploit Kit Delivery",
            "slug": "mobile-exploit-kit-delivery",
            "tactic": "execution",
            "techniques": [
              "T1203"
            ],
            "observables": [
              "Coruna exploit kit",
              "DarkSword exploit kit",
              "iOS devices",
              "iPad devices"
            ]
          }
        ],
        "summary": "The OPTIMJACK campaign involved the compromise of Optimizely's Web Experimentation platform to inject malicious JavaScript into the websites of at least 178 organizations. The tampered code, delivered via the vendor's legitimate CDN, was used to skim payment card data, swap cryptocurrency wallet addresses, and deliver mobile exploit kits to iOS users."
      },
      "severity": "high",
      "rationale": "Focus the hunt on administrative and developer workstations first, as these roles often browse technical documentation or platforms that integrate Optimizely tags. Widen the scope to all hosts with external browsing capability if the lead query returns broad results.",
      "guardrails": {
        "claims": "no_unsupported",
        "evidence": "citation_required",
        "telemetry": "untrusted",
        "missing_data": "not_benign"
      },
      "hypothesis": "An adversary has exploited a trusted third-party vendor to distribute malicious JavaScript via their CDN, leading to mobile exploit delivery and credential skimming on internal corporate assets.",
      "parameters": {
        "cdn_domains": {
          "from": {
            "ref": "https://unit42.paloaltonetworks.com/optimjack-supply-chain-attack/",
            "kind": "article",
            "observed": "2026-11-16"
          },
          "type": "list[domain]",
          "default": [
            "cdn.optimizely.com",
            "optimizely.com",
            "logx.optimizely.com"
          ],
          "description": "Legitimate vendor CDN domains that served the malicious script."
        },
        "scope_hosts": {
          "type": "list[host]",
          "default": [],
          "description": "Limit the hunt to specific hosts if needed; leave empty for fleet-wide."
        },
        "lookback_days": {
          "from": {
            "ref": "Standard lookback for recent supply chain compromise",
            "kind": "manual",
            "observed": "2026-11-17"
          },
          "type": "number",
          "default": "14",
          "description": "Days of history to examine."
        }
      },
      "provenance": {
        "authors": [
          {
            "org": "huntbase.io",
            "name": "Huntbase hunt generation"
          }
        ],
        "generated": {
          "by": "huntbase-hunt-generation",
          "from": "https://unit42.paloaltonetworks.com/optimjack-supply-chain-attack/",
          "gates": [
            "dry-run",
            "lint",
            "critic"
          ],
          "model": "hb_google/gemini-3-flash-preview"
        }
      },
      "references": [
        {
          "url": "https://unit42.paloaltonetworks.com/optimjack-supply-chain-attack/",
          "name": "Unit 42 \u2014 OPTIMJACK Supply Chain Attack"
        }
      ],
      "blind_spots": [
        {
          "id": "limited-proxy-visibility",
          "risk": "If the proxy only sees the destination IP/hostname due to encryption, specific exploit kit URI patterns will be missed, leading to false negatives.",
          "stage": "mobile-exploit-kit-delivery",
          "question": "Are the full URL paths for exploit kit requests visible?",
          "requires": "SSL/TLS decryption on the proxy gateway"
        },
        {
          "id": "unmanaged-mobile-exposure",
          "risk": "The attack targets iOS and iPad devices. If these are not managed or do not route traffic through corporate inspection, the actual exploitation stage remains invisible.",
          "stage": "mobile-exploit-kit-delivery",
          "question": "Did the exploit kit successfully execute on personal mobile devices?",
          "requires": "Mobile Device Management (MDM) telemetry"
        }
      ]
    },
    "name": "OPTIMJACK Third-Party Script Supply Chain Impact",
    "description": "This hunt identifies hosts that interacted with the compromised Optimizely CDN infrastructure and subsequently engaged with known mobile exploit kit infrastructure (Coruna or DarkSword). By correlating trusted CDN traffic with rare exploit-delivery signatures across HTTP and DNS telemetry, the hunt uncovers potential data exposure even when delivered from a legitimate, certificate-validated source."
  },
  "nodes": [
    {
      "id": "hypothesis",
      "type": "hypothesis",
      "label": "Hypothesis",
      "config": {
        "tags": [],
        "coverage": [
          {
            "stage": "malicious-script-distribution",
            "steps": [
              "optimizely-cdn-interaction"
            ],
            "status": "covered"
          },
          {
            "stage": "mobile-exploit-kit-delivery",
            "steps": [
              "exploit-kit-http-traffic",
              "exploit-kit-dns-resolutions"
            ],
            "status": "covered"
          },
          {
            "stage": "vendor-platform-exploitation",
            "reason": "Exploitation of the vendor's internal platform is only visible in the vendor's own logs, not on the customer estate.",
            "status": "out_of_scope"
          },
          {
            "stage": "client-side-financial-collection",
            "reason": "Wallet swapping and card skimming occur within the user's browser memory and are not typically captured in proxy or endpoint process logs unless exfiltration occurs to a known domain.",
            "status": "not_visible"
          }
        ],
        "rationale": "An adversary has exploited a trusted third-party vendor to distribute malicious JavaScript via their CDN, leading to mobile exploit delivery and credential skimming on internal corporate assets.",
        "blind_spots": [
          {
            "id": "limited-proxy-visibility",
            "risk": "If the proxy only sees the destination IP/hostname due to encryption, specific exploit kit URI patterns will be missed, leading to false negatives.",
            "stage": "mobile-exploit-kit-delivery",
            "question": "Are the full URL paths for exploit kit requests visible?",
            "requires": "SSL/TLS decryption on the proxy gateway"
          },
          {
            "id": "unmanaged-mobile-exposure",
            "risk": "The attack targets iOS and iPad devices. If these are not managed or do not route traffic through corporate inspection, the actual exploitation stage remains invisible.",
            "stage": "mobile-exploit-kit-delivery",
            "question": "Did the exploit kit successfully execute on personal mobile devices?",
            "requires": "Mobile Device Management (MDM) telemetry"
          }
        ],
        "scoping_notes": "Focus the hunt on administrative and developer workstations first, as these roles often browse technical documentation or platforms that integrate Optimizely tags. Widen the scope to all hosts with external browsing capability if the lead query returns broad results.",
        "beyond_detection": "This is a hunt because it correlates legitimate activity (CDN usage) with rare malicious follow-on activity across multiple surfaces. A single rule on Optimizely CDN traffic would be far too noisy to be actionable; an analyst must weigh the presence of exploit-kit markers against the CDN interaction to reach a verdict."
      }
    },
    {
      "id": "optimizely-cdn-interaction",
      "type": "query",
      "label": "Interactions with Optimizely CDN",
      "config": {
        "dsl": "sqlite",
        "role": "scoping",
        "source": "web",
        "content": "SELECT device_hostname, src_endpoint_ip, url_hostname, url_path, user_agent, MIN(time) AS first_access, MAX(time) AS last_access FROM hb_http_activity WHERE instr(',' || '{{cdn_domains}}' || ',', ',' || LOWER(url_hostname) || ',') > 0 AND time >= datetime('now', '-{{lookback_days}} days') GROUP BY device_hostname, src_endpoint_ip, url_hostname, url_path, user_agent",
        "surface": "hb_http_activity",
        "description": "Identify hosts that interacted with the Optimizely CDN during the vulnerability window to establish a candidate pool for script execution.",
        "expected_signal": "Rows indicating which hosts visited the affected infrastructure. Silence means no recorded interaction with the CDN during the window."
      },
      "parents": [
        {
          "id": "hypothesis"
        }
      ],
      "primitive_config": {
        "dsl": "sqlite",
        "role": "scoping",
        "label": "Interactions with Optimizely CDN",
        "reads": [
          "device_hostname",
          "src_endpoint_ip",
          "url_hostname",
          "url_path",
          "user_agent",
          "time"
        ],
        "source": "hb_http_activity",
        "target": "web",
        "content": "SELECT device_hostname, src_endpoint_ip, url_hostname, url_path, user_agent, MIN(time) AS first_access, MAX(time) AS last_access FROM hb_http_activity WHERE instr(',' || '{{cdn_domains}}' || ',', ',' || LOWER(url_hostname) || ',') > 0 AND time >= datetime('now', '-{{lookback_days}} days') GROUP BY device_hostname, src_endpoint_ip, url_hostname, url_path, user_agent",
        "silence": "not_evidence_of_absence",
        "expected": "Rows indicating which hosts visited the affected infrastructure. Silence means no recorded interaction with the CDN during the window.",
        "verified": "dry-run",
        "verified_at": "2026-11-18"
      }
    },
    {
      "id": "exploit-kit-http-traffic",
      "type": "query",
      "label": "Exploit Kit HTTP Traffic",
      "config": {
        "dsl": "sqlite",
        "role": "triage",
        "source": "web",
        "content": "SELECT device_hostname, src_endpoint_ip, url_full, user_agent, time FROM hb_http_activity WHERE ('{{scope_hosts}}' = '' OR instr(',' || '{{scope_hosts}}' || ',', ',' || device_hostname || ',') > 0) AND (instr(LOWER(url_full), 'coruna') > 0 OR instr(LOWER(url_full), 'darksword') > 0) AND time >= datetime('now', '-{{lookback_days}} days')",
        "surface": "hb_http_activity",
        "description": "Find HTTP requests containing keywords associated with the Coruna and DarkSword exploit kits.",
        "expected_signal": "Presence of exploit kit names in URL paths or hostnames. Silence indicates no clear HTTP markers for these kits were detected."
      },
      "parents": [
        {
          "id": "optimizely-cdn-interaction"
        }
      ],
      "primitive_config": {
        "dsl": "sqlite",
        "role": "triage",
        "label": "Exploit Kit HTTP Traffic",
        "reads": [
          "device_hostname",
          "src_endpoint_ip",
          "url_full",
          "user_agent",
          "time"
        ],
        "source": "hb_http_activity",
        "target": "web",
        "content": "SELECT device_hostname, src_endpoint_ip, url_full, user_agent, time FROM hb_http_activity WHERE ('{{scope_hosts}}' = '' OR instr(',' || '{{scope_hosts}}' || ',', ',' || device_hostname || ',') > 0) AND (instr(LOWER(url_full), 'coruna') > 0 OR instr(LOWER(url_full), 'darksword') > 0) AND time >= datetime('now', '-{{lookback_days}} days')",
        "silence": "not_evidence_of_absence",
        "expected": "Presence of exploit kit names in URL paths or hostnames. Silence indicates no clear HTTP markers for these kits were detected.",
        "verified": "dry-run",
        "verified_at": "2026-11-18"
      }
    },
    {
      "id": "exploit-kit-dns-resolutions",
      "type": "query",
      "label": "Exploit Kit DNS Resolutions",
      "config": {
        "dsl": "sqlite",
        "role": "triage",
        "source": "endpoint",
        "content": "SELECT device_hostname, query_hostname, COUNT(*) AS count, MIN(time) AS first_seen FROM hb_dns_activity WHERE ('{{scope_hosts}}' = '' OR instr(',' || '{{scope_hosts}}' || ',', ',' || device_hostname || ',') > 0) AND (instr(LOWER(query_hostname), 'coruna') > 0 OR instr(LOWER(query_hostname), 'darksword') > 0) AND time >= datetime('now', '-{{lookback_days}} days') GROUP BY device_hostname, query_hostname",
        "surface": "hb_dns_activity",
        "description": "Search DNS history for infrastructure associated with the Coruna and DarkSword kits that may not have full HTTP URL logging.",
        "expected_signal": "DNS resolutions for domains including exploit kit keywords. Silence suggests no resolution of those kit-specific domains occurred."
      },
      "parents": [
        {
          "id": "optimizely-cdn-interaction"
        }
      ],
      "primitive_config": {
        "dsl": "sqlite",
        "role": "triage",
        "label": "Exploit Kit DNS Resolutions",
        "reads": [
          "device_hostname",
          "query_hostname",
          "time"
        ],
        "source": "hb_dns_activity",
        "target": "endpoint",
        "content": "SELECT device_hostname, query_hostname, COUNT(*) AS count, MIN(time) AS first_seen FROM hb_dns_activity WHERE ('{{scope_hosts}}' = '' OR instr(',' || '{{scope_hosts}}' || ',', ',' || device_hostname || ',') > 0) AND (instr(LOWER(query_hostname), 'coruna') > 0 OR instr(LOWER(query_hostname), 'darksword') > 0) AND time >= datetime('now', '-{{lookback_days}} days') GROUP BY device_hostname, query_hostname",
        "silence": "not_evidence_of_absence",
        "expected": "DNS resolutions for domains including exploit kit keywords. Silence suggests no resolution of those kit-specific domains occurred.",
        "verified": "dry-run",
        "verified_at": "2026-11-18"
      }
    },
    {
      "id": "agent-triage",
      "type": "analytic",
      "label": "Weigh CDN and Exploit Evidence",
      "config": {
        "cite": "required",
        "tools": [
          "endpoint",
          "web"
        ],
        "context": [
          "optimizely-cdn-interaction",
          "exploit-kit-http-traffic",
          "exploit-kit-dns-resolutions"
        ],
        "objective": "Determine if any host visiting the Optimizely CDN also shows signs of exploit kit delivery (Coruna/DarkSword) based on the HTTP and DNS telemetry.",
        "description": "Assess whether hosts interacting with the Optimizely CDN subsequently triggered indicators for mobile exploit delivery.",
        "max_iterations": 4,
        "success_criteria": "A per-host verdict of malicious, suspicious, or benign based on the sequence of events."
      },
      "parents": [
        {
          "id": "exploit-kit-http-traffic",
          "kind": "merge"
        },
        {
          "id": "exploit-kit-dns-resolutions",
          "kind": "merge"
        }
      ]
    },
    {
      "id": "route-verdict",
      "type": "checkpoint",
      "label": "Route on Verdict",
      "config": {
        "fuzzy": true,
        "judge": "hunter",
        "question": "the agent-triage identifies at least one host with confirmed exploit kit traffic following a CDN interaction",
        "condition": "the agent-triage identifies at least one host with confirmed exploit kit traffic following a CDN interaction",
        "blind_spot": "limited-proxy-visibility",
        "confidence": "high",
        "description": "Route the hunt to containment if malicious activity is confirmed, or to analyst review if the findings are ambiguous.",
        "checkpoint_type": "mandatory"
      },
      "parents": [
        {
          "id": "agent-triage"
        }
      ]
    },
    {
      "id": "isolate-impacted-host",
      "type": "action",
      "label": "Isolate Impacted Host",
      "config": {
        "target": "endpoint",
        "description": "Prevent potential lateral movement or further data exfiltration from a host showing exploit kit markers.",
        "instructions": "Isolate the host from the network immediately to prevent further exploitation and preserve the state for forensic imaging.",
        "action_approval": "required"
      },
      "parents": [
        {
          "id": "route-verdict",
          "branch": "on_supports"
        }
      ]
    },
    {
      "id": "analyst-investigation",
      "type": "task",
      "label": "Detailed Analyst Investigation",
      "config": {
        "assignee": "analyst",
        "description": "Review the browser history, local storage, and logs on the affected host to confirm the extent of the JS injection impact.",
        "instructions": "Examine the host's browser logs for interaction with 'cdn.optimizely.com' and any subsequent redirects or requests to Coruna/DarkSword infrastructure. Check for signs of payment card data theft or mobile exploit downloads."
      },
      "parents": [
        {
          "id": "route-verdict",
          "branch": "default"
        },
        {
          "id": "route-verdict",
          "branch": "on_unavailable"
        },
        {
          "id": "isolate-impacted-host"
        }
      ]
    },
    {
      "id": "close-out-hunt",
      "type": "task",
      "label": "Close Out Hunt",
      "config": {
        "assignee": "analyst",
        "description": "Record the findings and update the exclusion or detection logic for third-party script monitoring.",
        "instructions": "Document the scope of the investigation, the hosts identified as interacting with the malicious CDN, and whether any compromise was verified. Review segmentation policies for third-party scripts."
      },
      "parents": [
        {
          "id": "route-verdict",
          "branch": "on_refutes"
        },
        {
          "id": "analyst-investigation"
        }
      ]
    }
  ]
}