Skip to content
RCE Write-up Advanced

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

Attackers exploited a vulnerability in Langflow and used a NATS messaging server as command-and-control infrastructure to coordinate a pool of workers hunting for AWS and AI credentials. The text presents this as the first published case of NATS being used this way.

webflow.sysdig.com

Published on webflow.sysdig.com

linkedin

The author, on webflow.sysdig.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an unpatched Langflow instance vulnerable to CVE-2026-33017 allowed the attackers to run their own code, which they then used to reach the messaging infrastructure.

Impact

The operation could harvest AWS and AI API credentials from compromised environments, though the text does not state how many were actually taken.

What the attacker needed

A vulnerable Langflow instance; outbound access to a NATS server

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A command-and-control server is the remote channel an attacker uses to send orders to compromised machines. Here the attackers hid that channel inside NATS, a legitimate messaging system that cloud applications use to pass messages between services, so the traffic looks like normal cloud activity. The compromised machines were then told to search for cloud and AI service credentials.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.