CTI · reviewed · 2026-08-28
Hackers Target LiteLLM, RAGFlow and Kestra AI Infrastructure to Steal API Keys and Mine Crypto
Actors
Unknown
Malware / tools
—
Campaigns
AI infrastructure targeting
CVEs
CVE-2026-42271CVE-2026-48710
Victim sectors
AItechnology
Geography
—
MITRE ATT&CK
Indicators
No curated indicators tied to this case.
Detections
Detection content derived from this case analysis. Status: experimental — not validated against live telemetry.
Sigma raw
title: AI Infrastructure Compromise - Environment Variable Exfiltration
id: e7a1b4c6-9c5f-4e0d-cf8a-4f6c1e3d5a7b
status: experimental
description: Detects potential compromise of AI gateway infrastructure (LiteLLM, RAGFlow, Kestra) through environment variable harvesting from /proc/1/environ and anomalous database access patterns. Based on Microsoft and GBHackers reporting on AI infrastructure targeting campaigns.
references:
- https://cyberpress.org/hackers-target-litellm-ragflow-kestra-ai
- https://www.microsoft.com/en-us/security/blog/ai-infrastructure-targeting
author: Tia N. List
date: 2026-08-28
tags:
- attack.t1190
- attack.t1552
- attack.t1041
logsource:
category: process_creation
product: linux
detection:
selection_environ_access:
EventID: 1
CommandLine|contains:
- '/proc/1/environ'
- 'cat /proc/1/environ'
- 'strings /proc/1/environ'
selection_env_harvest:
EventID: 1
CommandLine|contains:
- 'OPENAI_API_KEY'
- 'ANTHROPIC_API_KEY'
- 'LITELLM_MASTER_KEY'
- 'AZURE_API_KEY'
- 'GEMINI_API_KEY'
- 'DATABASE_URL'
selection_db_access:
EventID: 1
CommandLine|contains:
- 'psql'
- 'pg_dump'
- 'SELECT * FROM model_config'
- 'SELECT * FROM virtual_key'
- 'litelimit.postgresql'
condition: selection_environ_access or selection_env_harvest or selection_db_access
falsepositives:
- Legitimate AI platform administration
- Authorized database maintenance operations
level: critical
Splunk SPL raw
# hackers-target-litellm-ragflow-and-kestra-ai-infrastructure-to-s — Splunk SPL variant (derived from hackers-target-litellm-ragflow-and-kestra-ai-infrastructure-to-s.sigma via sigma convert)
# source-sha256: f7279eea52dbd7c3941331efa962c4ec758492bfcb82dbecf1fa9276fb0a7b93 v1
(EventCode=1 CommandLine IN ("*/proc/1/environ*", "*cat /proc/1/environ*", "*strings /proc/1/environ*")) OR (EventCode=1 CommandLine IN ("*OPENAI_API_KEY*", "*ANTHROPIC_API_KEY*", "*LITELLM_MASTER_KEY*", "*AZURE_API_KEY*", "*GEMINI_API_KEY*", "*DATABASE_URL*")) OR (EventCode=1 CommandLine IN ("*psql*", "*pg_dump*", "*SELECT * FROM model_config*", "*SELECT * FROM virtual_key*", "*litelimit.postgresql*"))
KQL (Sentinel / Defender) raw
# hackers-target-litellm-ragflow-and-kestra-ai-infrastructure-to-s — KQL variant (derived from hackers-target-litellm-ragflow-and-kestra-ai-infrastructure-to-s.sigma via sigma convert)
# source-sha256: f7279eea52dbd7c3941331efa962c4ec758492bfcb82dbecf1fa9276fb0a7b93 v1
(EventID == 1 and (CommandLine contains "/proc/1/environ" or CommandLine contains "cat /proc/1/environ" or CommandLine contains "strings /proc/1/environ")) or (EventID == 1 and (CommandLine contains "OPENAI_API_KEY" or CommandLine contains "ANTHROPIC_API_KEY" or CommandLine contains "LITELLM_MASTER_KEY" or CommandLine contains "AZURE_API_KEY" or CommandLine contains "GEMINI_API_KEY" or CommandLine contains "DATABASE_URL")) or (EventID == 1 and (CommandLine contains "psql" or CommandLine contains "pg_dump" or (CommandLine contains "SELECT " and CommandLine contains " FROM model_config") or (CommandLine contains "SELECT " and CommandLine contains " FROM virtual_key") or CommandLine contains "litelimit.postgresql"))