Back to Intelligence

KeyHunter LLM API Key Theft Operation + OpenEMR Mass Exploitation: OTX Pulse Analysis — Enterprise Detection Pack

SA
Security Arsenal Team
December 4, 2026
12 min read

Two fresh OTX pulses paint a picture of a threat landscape increasingly bifurcated between opportunistic credential harvesting against emerging AI infrastructure and industrial-scale vulnerability exploitation against legacy healthcare platforms. Neither campaign relies on bespoke malware — both weaponize misconfiguration, disclosure velocity, and credential reuse. That makes them detectable, if you know where to look.


Threat Summary

Pulse 1 — KeyHunter Operation (leepsmarts): A Chinese-speaking threat actor tracked as leepsmarts executed a multi-vector operation combining LLM API credential theft with academic and financial fraud. The actor scanned misconfigured cloud deployments on Vercel, Netlify, and Railway, harvesting 2,233 API keys for LLM providers (12 confirmed valid at time of analysis). The stolen keys are monetized through resale, direct API abuse, and powering the actor's own fraud tooling — including Telegram bots and cryptocurrency drainers. In parallel, the actor created fraudulent student accounts at 20 universities, including Harvard alumni systems and Stanford application portals, targeting institutions across the US, Argentina, France, Germany, Netherlands, Pakistan, Russia, Saudi Arabia, South Africa, UAE, and Uzbekistan. The operation leverages CVE-2026-41940 to escalate access within vulnerable AI agent frameworks.

Pulse 2 — OpenEMR Under Siege: Following the November 2026 disclosure of 100+ vulnerabilities in OpenEMR — the free EHR platform used by ~100,000 medical providers serving 200+ million patients — attackers began exploitation within 24 hours of CVE assignment. Over a 23-day window, researchers captured 1,000+ attacks against canary instances across Australia, Brazil, Canada, Italy, Japan, Spain, and the UK. Observed tradecraft includes implant droppers, webshell deployment, and credential theft. Key CVEs: CVE-2026-124450, CVE-2026-126443, CVE-2026-124488, CVE-2026-124446, CVE-2026-32238. Staging infrastructure masquerades as legitimate clinic domains hosted on WP Engine (stage.wpengine-*.com) and a fake Microsoft Clarity analytics domain (clarity-ms-analytics.com).

Collective signal: Both campaigns share an objective — credential and identity material at scale — and a method: exploit the gap between disclosure/deployment and defensive response. Healthcare and education, the two most chronically under-resourced sectors, absorb the impact.


Threat Actor / Malware Profile

leepsmarts (KeyHunter Operation)

  • Attribution: Chinese-speaking operator; financially motivated with nation-state-adjacent tooling discipline. Active across Telegram-based C2 and monetization channels.
  • Distribution method: No malware dropper required for initial access. The actor scans public cloud PaaS deployments (Vercel, Netlify, Railway) for exposed environment variables, committed .env files in public repos, and misconfigured serverless functions that leak secrets in build logs or error responses.
  • Payload behavior: Harvested LLM API keys are validated programmatically, then used to (a) power fraudulent student-account creation and application fraud, (b) resell on dark web marketplaces, (c) fuel AI-agent-driven phishing kits. CVE-2026-41940 is exploited against vulnerable AI agent frameworks to pivot from a stolen key into the hosting application context.
  • C2 communication: Telegram Bot API (api.telegram.org) serves as both exfiltration channel and operator interface — blending malicious traffic with legitimate messaging infrastructure. Observed disposable domain: juanwangccbotgithubgithub.com.
  • Persistence: Fraudulent accounts created at target institutions serve as durable access; stolen API keys persist until rotated. No host-level persistence needed — the cloud credential is the persistence.
  • Anti-analysis: Key validation is throttled to avoid provider-side anomaly detection; actor infrastructure rotates across free-tier hosting to burn with zero cost.

OpenEMR Exploitation Cluster (Actor Unknown)

  • Distribution method: Direct exploitation of unpatched, internet-facing OpenEMR instances within 24 hours of CVE publication — classic disclosure-window exploitation, likely automated via scan-and-exploit pipelines.
  • Payload behavior: Implant droppers deployed post-exploitation write PHP webshells into the OpenEMR webroot, followed by credential theft from sites/default/sqlconf.php and database credential stores.
  • C2 communication: Staging hostnames spoof legitimate clinic properties (stage.wpengine-parlaclinic.com, stage.wpengine-gastro.org, stage.wpengine-myloenergy.com) and a typosquatted analytics domain (clarity-ms-analytics.com) designed to blend with Microsoft Clarity telemetry in proxy logs.
  • Persistence: PHP webshells in the webroot; secondary implants establish outbound beacons. Expect scheduled tasks or cron entries on compromised Linux hosts to re-fetch payloads.
  • Anti-analysis: Exploit traffic is spread across 1,000+ events over 23 days to stay under volumetric thresholds; C2 domains are registered to look like existing customer infrastructure.

IOC Analysis

The pulse indicator set is infrastructure-dominant — domains and hostnames rather than hashes — reflecting that these campaigns live in the network layer, not on disk.

IndicatorTypeCampaignOperationalization
juanwangccbotgithubgithub.comDomainKeyHunterDNS sinkhole + proxy block; hunt for historical resolution in DNS logs
stage.wpengine-parlaclinic.comHostnameOpenEMRBlock at egress; alert on any TLS SNI match
stage.wpengine-myloenergy.comHostnameOpenEMRBlock at egress; retro-hunt 23 days of proxy data
stage.wpengine-gastro.orgHostnameOpenEMRBlock at egress; check web server logs for reverse-connect evidence
wpengine-parlaclinic.com / wpengine-myloenergy.com / wpengine-gastro.orgDomainOpenEMRBlock apex + wildcard subdomains
clarity-ms-analytics.comDomainOpenEMRBlock; note it is NOT legitimate clarity.ms — alert on any process resolving it
fedfxt5vxs5chrec7cnvgt.clarity-ms-analytics.comHostnameOpenEMRHigh-entropy subdomain indicates DGA-like or per-victim C2 token — prioritize for beacon detection
CVE-2026-41940CVEKeyHunterInventory AI agent frameworks; patch or isolate
CVE-2026-124450 / 124488 / 124446 / 126443 / 32238CVEOpenEMREmergency patch all internet-facing OpenEMR; assume breach on unpatched instances

SOC operationalization guidance:

  • Feed domains/hostnames into DNS firewall, secure web gateway, and EDR custom IOC lists with minimum 90-day retroactive hunt windows.
  • The clarity-ms-analytics.com typosquat will evade naive domain allowlists — validate that your telemetry pipelines distinguish it from legitimate *.clarity.ms.
  • CVEs are the durable signal: vulnerability scanners should flag OpenEMR instances immediately; any unpatched instance exposed to the internet should be treated as presumed compromised and triaged for webshells before patching (patching first destroys forensic evidence).
  • For KeyHunter: query cloud provider audit logs (Vercel/Netlify/Railway) for unauthorized environment-variable reads and anomalous API key usage patterns against your LLM provider billing endpoints.

Detection Engineering

YAML
---
title: Suspicious LLM API Key Access or Telegram Bot Exfiltration
description: Detects non-standard processes communicating with LLM provider APIs or the Telegram Bot API, consistent with leepsmarts KeyHunter operation credential validation and exfiltration
status: experimental
logsource:
    category: network_connection
    product: windows
detection:
    selection_llm:
        DestinationHostname|contains:
            - 'api.openai.com'
            - 'api.anthropic.com'
            - 'generativelanguage.googleapis.com'
            - 'api.mistral.ai'
    selection_telegram:
        DestinationHostname: 'api.telegram.org'
    filter_legit:
        Image|endswith:
            - '\msedge.exe'
            - '\chrome.exe'
            - '\firefox.exe'
    condition: (selection_llm or selection_telegram) and not filter_legit
falsepositives:
    - Developer workstations with legitimate API integrations
level: high
tags:
    - attack.exfiltration
    - attack.t1567
    - attack.t1552
---
title: OpenEMR Webshell Deployment in Webroot
description: Detects PHP file writes to OpenEMR installation directories by web server processes, indicating webshell deployment following CVE exploitation
status: experimental
logsource:
    category: file_event
    product: linux
detection:
    selection_path:
        TargetFilename|contains:
            - '/var/www/html/openemr/'
            - '/var/www/openemr/'
            - '/sites/default/'
    selection_ext:
        TargetFilename|endswith:
            - '.php'
            - '.phtml'
            - '.phar'
    selection_parent:
        ProcessName|in:
            - 'apache2'
            - 'httpd'
            - 'nginx'
            - 'php-fpm'
    filter_known:
        TargetFilename|contains:
            - '/interface/'
            - '/src/'
    condition: selection_path and selection_ext and selection_parent and not filter_known
falsepositives:
    - Legitimate OpenEMR updates or module installations
level: critical
tags:
    - attack.persistence
    - attack.t1505.003
    - attack.t1190
---
title: KeyHunter Cloud PaaS Secret Harvesting via Environment Enumeration
description: Detects process enumeration of environment variables and access to .env files commonly targeted to steal LLM API keys from Vercel/Netlify/Railway deployments
status: experimental
logsource:
    category: process_creation
    product: windows
detection:
    selection_cmd:
        CommandLine|contains:
            - 'printenv'
            - 'Get-ChildItem env:'
            - 'gci env:'
            - '.env'
            - 'OPENAI_API_KEY'
            - 'ANTHROPIC_API_KEY'
    selection_parent:
        ParentImage|endswith:
            - '\node.exe'
            - '\python.exe'
            - '\powershell.exe'
            - '\cmd.exe'
    condition: selection_cmd and selection_parent
falsepositives:
    - CI/CD pipelines and developer debugging
level: medium
tags:
    - attack.credential_access
    - attack.t1552.001
    - attack.discovery
date: 2026/12/05
KQL — Microsoft Sentinel / Defender
// Hunt for KeyHunter + OpenEMR campaign infrastructure and behavior — 30 day window
let keyhunter_iocs = dynamic(["juanwangccbotgithubgithub.com"]);
let openemr_iocs = dynamic([
    "stage.wpengine-parlaclinic.com", "stage.wpengine-myloenergy.com",
    "stage.wpengine-gastro.org", "clarity-ms-analytics.com",
    "fedfxt5vxs5chrec7cnvgt.clarity-ms-analytics.com",
    "wpengine-parlaclinic.com", "wpengine-myloenergy.com", "wpengine-gastro.org"
]);
let llm_endpoints = dynamic(["api.openai.com", "api.anthropic.com", "generativelanguage.googleapis.com"]);
union isfuzzy=true
    (DeviceNetworkEvents
    | where TimeGenerated > ago(30d)
    | where RemoteUrl has_any (keyhunter_iocs) or RemoteUrl has_any (openemr_iocs)
    | project TimeGenerated, DeviceName, InitiatingProcessFileName, RemoteUrl, RemoteIP, ActionType, Campaign="IOC Match"),
    (DeviceNetworkEvents
    | where TimeGenerated > ago(30d)
    | where RemoteUrl == "api.telegram.org"
    | where InitiatingProcessFileName !in~ ("msedge.exe","chrome.exe","firefox.exe","Telegram.exe")
    | project TimeGenerated, DeviceName, InitiatingProcessFileName, RemoteUrl, RemoteIP, ActionType, Campaign="Telegram Exfil Suspect"),
    (DeviceNetworkEvents
    | where TimeGenerated > ago(30d)
    | where RemoteUrl has_any (llm_endpoints)
    | where InitiatingProcessFileName in~ ("powershell.exe","cmd.exe","python.exe","node.exe","curl.exe","wget.exe")
    | summarize Connections=count(), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated)
        by DeviceName, InitiatingProcessFileName, RemoteUrl, RemoteIP
    | extend Campaign="LLM API Key Validation Suspect"),
    (DeviceProcessEvents
    | where TimeGenerated > ago(30d)
    | where ProcessCommandLine has_any (".env", "OPENAI_API_KEY", "ANTHROPIC_API_KEY", "printenv", "Get-ChildItem env:")
    | project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, Campaign="Secret Enumeration")
| sort by TimeGenerated desc
PowerShell
# KeyHunter + OpenEMR IOC Hunt Script — run elevated on suspect hosts
# Checks: webshell artifacts, C2 connections, exposed secrets, suspicious scheduled tasks

Write-Host "=== Security Arsenal: KeyHunter / OpenEMR Hunt ===" -ForegroundColor Cyan
$findings = @()

# 1. Check for active/recent connections to campaign C2 infrastructure
$c2Hosts = @("juanwangccbotgithubgithub.com","clarity-ms-analytics.com",
             "wpengine-parlaclinic.com","wpengine-myloenergy.com","wpengine-gastro.org")
Write-Host "`n[1] Checking DNS cache and connections for campaign C2..." -ForegroundColor Yellow
$dns = Get-DnsClientCache -ErrorAction SilentlyContinue | Where-Object {
    $name = $_.Name; $c2Hosts | Where-Object { $name -like "*$_*" } }
if ($dns) { $findings += "DNS C2 HIT"; $dns | Format-Table Name, Data -AutoSize }

$conns = Get-NetTCPConnection -State Established -ErrorAction SilentlyContinue |
    Where-Object { $_.RemotePort -in 443,8443 } |
    ForEach-Object { $r = (Resolve-DnsName $_.RemoteAddress -ErrorAction SilentlyContinue).NameHost
        [PSCustomObject]@{RemoteIP=$_.RemoteAddress; Host=$r; PID=$_.OwningProcess} } |
    Where-Object { $h = $_.Host; $c2Hosts | Where-Object { $h -like "*$_*" } }
if ($conns) { $findings += "ACTIVE C2 CONNECTION"; $conns | Format-Table -AutoSize }

# 2. Hunt for webshells in common OpenEMR / web root paths (IIS + mounted Linux paths)
Write-Host "`n[2] Scanning web roots for recently written PHP/ASPX webshells..." -ForegroundColor Yellow
$webRoots = @("C:\inetpub\wwwroot","C:\xampp\htdocs","C:\wamp64\www","/var/www/html")
foreach ($root in $webRoots) {
    if (Test-Path $root) {
        Get-ChildItem $root -Recurse -Include *.php,*.phtml,*.aspx,*.ashx -ErrorAction SilentlyContinue |
            Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-45) } |
            ForEach-Object {
                $c = Get-Content $_.FullName -Raw -ErrorAction SilentlyContinue
                if ($c -match "eval\(|base64_decode|shell_exec|passthru|system\(|assert\(") {
                    $findings += "WEBSHELL SUSPECT: $($_.FullName)"
                    Write-Host "  [!] $($_.FullName) — $($_.LastWriteTime)" -ForegroundColor Red } } } }

# 3. Check for exposed LLM API keys in environment and common .env locations
Write-Host "`n[3] Checking for exposed LLM API keys (KeyHunter target material)..." -ForegroundColor Yellow
$envKeys = Get-ChildItem env: -ErrorAction SilentlyContinue |
    Where-Object { $_.Name -match "OPENAI|ANTHROPIC|GEMINI|MISTRAL|AZURE_OPENAI" }
if ($envKeys) { Write-Host "  [*] LLM keys present in environment — verify deployment is hardened:" -ForegroundColor Magenta
    $envKeys | ForEach-Object { Write-Host "      $($_.Name)" } }

# 4. Scheduled tasks / persistence check
Write-Host "`n[4] Reviewing scheduled tasks for suspicious persistence..." -ForegroundColor Yellow
Get-ScheduledTask | Where-Object { $_.State -ne "Disabled" } | ForEach-Object {
    $a = $_.Actions | Where-Object { $_.Execute -match "powershell|cmd|wscript|curl|node|php" }
    if ($a -and $a.Arguments -match "http|base64|-enc|downloadstring") {
        $findings += "SUSPICIOUS TASK: $($_.TaskName)"
        Write-Host "  [!] $($_.TaskName) -> $($a.Execute) $($a.Arguments)" -ForegroundColor Red } }

# 5. Telegram API usage from non-standard processes
Write-Host "`n[5] Checking prefetch/recent process evidence for Telegram API abuse..." -ForegroundColor Yellow
Get-NetTCPConnection -ErrorAction SilentlyContinue | Where-Object RemotePort -eq 443 |
    Select-Object -ExpandProperty OwningProcess -Unique | ForEach-Object {
        $p = Get-Process -Id $_ -ErrorAction SilentlyContinue
        if ($p.Name -match "powershell|python|node|curl") {
            Write-Host "  [*] Scripting process with HTTPS egress: $($p.Name) (PID $_) — validate against api.telegram.org" -ForegroundColor Magenta } }

Write-Host "`n=== Hunt Complete ===" -ForegroundColor Cyan
if ($findings) { Write-Host "FINDINGS:" -ForegroundColor Red; $findings | ForEach-Object { Write-Host "  - $_" } }
else { Write-Host "No high-confidence indicators found. Review manual-validation items above." -ForegroundColor Green }

Response Priorities

Immediate (0–4 hours)

  • Block all IOC domains and hostnames at DNS, proxy, and EDR layers, including wildcard subdomain coverage for wpengine-*.com/org and clarity-ms-analytics.com.
  • Isolate any internet-facing unpatched OpenEMR instance and treat as presumed compromised — image before patching.
  • Rotate all LLM API keys stored in Vercel, Netlify, Railway, or committed to repositories. Audit LLM provider usage logs for anomalous spend or unfamiliar source IPs.
  • Hunt for the Telegram exfil and webshell Sigma detections across the last 30 days.

24 Hours

  • Identity verification sweep: KeyHunter is credential-harvesting and account-fraud focused — force password resets for any account associated with exposed .env material; review new account creation at education/finance-facing portals for fraudulent student or applicant profiles.
  • Revoke and reissue any API keys showing validation attempts from unknown infrastructure; enable per-key rate limiting and IP allowlisting where providers support it.
  • Forensically triage any OpenEMR host with outbound connections to the staged clinic domains — extract webroot file timelines, sqlconf.php access logs, and cron entries.

1 Week

  • Architecture hardening — secrets: Move all LLM/cloud credentials into a managed secrets vault (never environment variables on PaaS free tiers); enable secret scanning (GitHub Advanced Security, trufflehog) in CI/CD with push-time blocking.
  • Architecture hardening — healthcare edge: Place OpenEMR behind a WAF with virtual patching rules for CVE-2026-124450/124488/124446/126443/32238; segment EHR infrastructure from general user VLANs; disable direct internet exposure where VPN/Zero Trust access is feasible.
  • Disclosure-window playbook: The 24-hour exploit turnaround on OpenEMR CVEs is now the baseline. Build an emergency-patch SLA for internet-facing healthcare/education assets, with compensating controls (WAF rules, egress lockdown) for systems that cannot patch immediately.
  • Deploy the detection content above into production and backtest against 90 days of retained network telemetry.

Related Resources

Security Arsenal Incident Response Managed SOC & MDR Services AlertMonitor Threat Detection From The Dark Side Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.