# NATS-as-C2: Inside a new technique attackers are using to harvest cloud credentials and AI API keys

DevFeed: [NATS-as-C2: Inside a new technique attackers are using to harvest cloud credentials and AI API keys](<https://devfeed.tech/articles/nats-as-c2-inside-a-new-technique-attackers-are-using-to-harvest-cloud-credentials-and-ai-api-keys-53250.md>)

Original publisher: [Read original article](<https://webflow.sysdig.com/blog/nats-as-c2-inside-a-new-technique-attackers-are-using-to-harvest-cloud-credentials-and-ai-api-keys>)

Author: Michael Clark

Published: 2026-05-14T00:00:00Z

Content type: article

Language: en

Sources: [Sysdig](<https://devfeed.tech/sources/sysdig-blog.md>)

Topics: [C2](<https://devfeed.tech/topics/c2.md>), [Malware](<https://devfeed.tech/topics/malware.md>), [Threat Research](<https://devfeed.tech/topics/threat-research.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [API keys](<https://devfeed.tech/topics/api-keys.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Python](<https://devfeed.tech/topics/python.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Orchestration](<https://devfeed.tech/topics/orchestration.md>)

Tags: [ai-api-keys](<https://devfeed.tech/tags/ai-api-keys.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [botnet-infrastructure](<https://devfeed.tech/tags/botnet-infrastructure.md>), [c2](<https://devfeed.tech/tags/c2.md>), [cloud-credential-theft](<https://devfeed.tech/tags/cloud-credential-theft.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [code](<https://devfeed.tech/tags/code.md>), [command-and-control](<https://devfeed.tech/tags/command-and-control.md>), [credential-harvesting](<https://devfeed.tech/tags/credential-harvesting.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2022-0847](<https://devfeed.tech/tags/cve-2022-0847.md>), [cve-2026-33017](<https://devfeed.tech/tags/cve-2026-33017.md>), [dirtycreds](<https://devfeed.tech/tags/dirtycreds.md>), [dirtypipe](<https://devfeed.tech/tags/dirtypipe.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [falco](<https://devfeed.tech/tags/falco.md>), [flask](<https://devfeed.tech/tags/flask.md>), [go](<https://devfeed.tech/tags/go.md>), [langflow](<https://devfeed.tech/tags/langflow.md>), [langflow-vulnerability](<https://devfeed.tech/tags/langflow-vulnerability.md>), [llmjacking](<https://devfeed.tech/tags/llmjacking.md>), [messaging](<https://devfeed.tech/tags/messaging.md>), [nats-as-c2](<https://devfeed.tech/tags/nats-as-c2.md>), [sysdig](<https://devfeed.tech/tags/sysdig.md>), [sysdig-threat-research](<https://devfeed.tech/tags/sysdig-threat-research.md>), [sysdig-trt](<https://devfeed.tech/tags/sysdig-trt.md>), [threat-research](<https://devfeed.tech/tags/threat-research.md>)

## AI overview

The Sysdig Threat Research Team reports a technique called NATS-as-C2, in which attackers used a NATS messaging server as command-and-control infrastructure during an attempted Langflow exploitation. The operation involved malware, container escape attempts, and a distributed worker pool targeting cloud and AI credentials.

## Source excerpt

Sysdig Threat Research Team (TRT) has identified what appears to be the first published case of a threat actor using a NATS server as command-and-control (C2) infrastructure -- a technique dubbed "NATS-as-C2." Discovered during an investigation into exploitation of CVE-2026-33017 in Langflow, the operation used cloud-native messaging infrastructure, including pub/sub orchestration and durable task queues, to coordinate a distributed credential-hunting worker pool targeting AWS and AI credentials.