NotC2: A C2 Channel Built From 4 AWS Services and Bedrock

By 11 min read
NotC2 command and control loop built from AWS SQS, Lambda, SNS and Amazon Bedrock

What if the command-and-control server in a breach was not a server at all, but four ordinary AWS services and a large language model that turns plain English into API calls? That is NotC2, a proof of concept Varonis Threat Labs published in November 2026.

In short: NotC2 is a post-compromise C2 framework that receives commands through Amazon SQS, runs them in AWS Lambda, uses Amazon Bedrock to translate natural-language requests into AWS API calls and sends results out through Amazon SNS, so no traffic ever leaves for an attacker-owned domain.

It needs stolen credentials and it has not been seen in real attacks. But it shows clearly where cloud C2 is heading and which logs defenders need switched on before someone builds the real thing.

What is NotC2?

NotC2 is a research tool written by Or Soria of the Varonis Research Team. Varonis describes it as a C2 framework designed to look like normal AWS activity. Let’s Data Science, which covered the research, dates the Varonis publication to 6 November 2026.

Command and control, or C2, is the channel an attacker uses to send instructions to systems they control and get results back. Traditional C2 runs on attacker infrastructure: a domain, a VPS, a custom protocol. NotC2 replaces all of that with services that already exist in the victim’s AWS account.

The name is a small joke. Varonis explains that “Not” refers to notification, as in Amazon Simple Notification Service (SNS), the service that carries results back to the operator.

What NotC2 is not

NotC2 does not break into AWS accounts and does not exploit an AWS vulnerability. It assumes the attacker already holds AWS credentials. Let’s Data Science makes the same point: it is post-compromise tooling.

That framing matters for severity. NotC2 does not make an account easier to breach. It makes an already breached account easier to operate quietly.

Why does a cloud-native C2 matter now?

Attackers have hidden C2 in trusted services for years. Varonis lists the familiar examples: Telegram and Discord bot APIs, Slack webhooks, Pastebin, GitHub Gists, Google Sheets used as dead drops, and cloud storage such as Amazon S3, Google Drive, OneDrive and Azure Blob Storage.

Two earlier AWS techniques are the closest relatives, according to Varonis. XRayC2, by Dhiraj Mishra, hides commands in AWS X-Ray trace annotations. Rhino Security Labs showed a Cobalt Strike beacon that exchanged tasks and results through S3 objects.

The difference, as Let’s Data Science summarises it, is that earlier AWS tricks used one service at a time. NotC2 runs the entire loop inside AWS: delivery, execution, results and even the operator’s expertise, which now comes from a model.

Stolen cloud keys are already common

The prerequisite is not exotic. Stolen cloud and AI keys are a constant theme in current incidents, as covered in how ARTEX AI agents steal LLM API keys and in the Kubernetes AI agent attacks on Amazon EKS. NotC2 asks what an attacker could do with such keys if they wanted to stay inside the account and avoid external infrastructure.

How does NotC2 work?

NotC2 chains four managed services. Each one does a single job, and none of them is unusual on its own in a busy AWS account.

Six-step NotC2 command loop from an SQS queue through Lambda and Bedrock to an SNS subscriber.
Every hop in the NotC2 loop is a managed AWS service, and Lambda never opens a connection to the operator (data: Varonis Threat Labs).

Amazon SQS: the command inbox

Amazon Simple Queue Service (SQS) is a managed message queue. The operator’s external server drops commands into a queue. Lambda’s native SQS integration, an event source mapping, triggers the function for each new message.

AWS Lambda: the execution engine

AWS Lambda runs code on demand without a server. In NotC2, the function receives the message, asks Bedrock what to do, and makes the AWS API calls. It acts with its execution role’s permissions and nothing more.

Each Lambda invocation is capped at 15 minutes and leaves no long-running process behind. There is no implant sitting on a host waiting to be found.

Amazon Bedrock: the AI interpreter

Amazon Bedrock is AWS’s managed service for calling foundation models. In NotC2 the model receives the operator’s prompt and one generic tool, which Varonis calls execute_aws_operation, taking a service name, an operation and parameters.

The model chooses the service and operation, calls the tool, reads the result and either formats a reply or chains another call. Errors are fed back to the model so it can adjust. Varonis contrasts a short prompt asking for running EC2 instances and their IPs with the much longer equivalent AWS CLI command.

Amazon SNS: the way out

Amazon SNS is a publish and subscribe notification service. Lambda creates or resolves a topic and publishes the output. SNS then delivers it to the operator’s HTTPS endpoint after the subscription is confirmed, and retries failed deliveries under its delivery policy.

This is the design’s quiet trick. Even if Lambda has no internet egress at all, results still leave the account, because SNS is the one delivering them.

Four NotC2 figures: four AWS services, one model tool, 15-minute Lambda runs, zero direct links.
NotC2 needs very little: four services, one generic model tool and short-lived Lambda runs (data: Varonis Threat Labs).

What can an attacker do with NotC2?

In the Varonis demonstration, NotC2 enumerated EC2 instances, DynamoDB tables, relational and NoSQL databases and Lambda functions. Prompts as vague as asking what the identity has access to were enough to start reconnaissance.

Varonis also warns that, given the permissions, an operator could remotely delete all S3 buckets or EC2 instances. The ceiling is set entirely by the IAM role, not by the tool. Varonis calls the result, functionally, a backdoor with an AI assistant.

Why the AI layer matters

The model removes the need to know AWS well. Let’s Data Science notes that this lowers the skill needed for post-compromise reconnaissance. An operator who cannot write a correct describe-instances filter can still ask for the answer in plain English.

What permissions does NotC2 need?

This is the most useful part of the research for defenders, because every permission is a place to block or alert.

Phase Permissions Varonis lists Why it is needed
Deployment sqs:CreateQueue, lambda:CreateFunction, lambda:CreateEventSourceMapping, iam:PassRole Build the queue, the function and the trigger, and attach an existing role
Deployment (optional) IAM role and policy management Only if no suitable execution role already exists
Runtime (queue) sqs:ReceiveMessage, sqs:DeleteMessage, sqs:GetQueueAttributes Read and clear commands
Runtime (results) sns:CreateTopic, sns:ListSubscriptionsByTopic, sns:Subscribe, sns:Publish Create the exit channel and send output
Runtime (AI) bedrock:InvokeModel Ask the model to translate prompts
Runtime (targets) Any action on target services, for example s3:ListAllMyBuckets Do the actual reconnaissance or damage

Varonis notes that attackers would likely reuse existing roles rather than create new ones, and that enumeration tools such as Pacu from Rhino Security Labs can find suitable roles if the identity has List-type permissions.

Who is affected and how do you check exposure?

Any AWS account where a compromised identity can create Lambda functions and pass roles is a candidate. Accounts that already use Bedrock are a better fit, because Bedrock calls are less likely to stand out there.

To check exposure, review three things:

  • Who can deploy: which users and roles hold lambda:CreateFunction, lambda:CreateEventSourceMapping and iam:PassRole together.
  • Which roles can talk to Bedrock: every role with bedrock:InvokeModel, and whether each one has a business reason.
  • Who can create external subscriptions: identities allowed to call sns:Subscribe with HTTP or HTTPS endpoints.

Let’s Data Science adds that teams using Bedrock should review how it is wired to Lambda, SQS and SNS, since that combination is exactly what NotC2 assembles.

How do you detect NotC2?

Network detection is mostly blind here. Varonis says the usual indicators, such as suspicious domains, unknown IPs, custom protocols and beaconing patterns, largely disappear when every request is signed HTTPS to AWS.

Detection has to move to the control plane and to relationships between services.

Log sources to enable

Varonis names five sources that still carry signal:

  1. CloudTrail management events, on by default, which record resource creation such as queues, functions, event source mappings and subscriptions.
  2. CloudTrail data events, which must be configured explicitly.
  3. Lambda execution logs.
  4. SNS delivery-status logs, which show where messages went.
  5. Bedrock model invocation logging, the only source of prompt-level visibility. Varonis says prompts are not captured in standard CloudTrail events.

A key caveat from Varonis: CloudTrail redacts SQS and SNS message content. You can see that a message was sent, not what it said.

Behaviours to alert on

Varonis recommends three detections, in rough order of strength:

  • Anomalous SNS subscriptions. A subscription created by a Lambda execution role that points to an external HTTP or HTTPS endpoint, especially a destination never used before.
  • Unusual Bedrock activity. A spike in InvokeModel or Converse calls from a Lambda role, especially one that has never used Bedrock, and stronger still if the role then touches unrelated services.
  • Sequence correlation. An SQS message from an unexpected source, then a Lambda run, Bedrock activity, downstream API calls and an SNS publish to an external subscriber, all linked to the same queue, function and topic within a short window.
Five-event detection sequence linking an SQS message, Lambda, Bedrock, API calls and external SNS delivery.
No single event is suspicious; the chain of five tied to the same resources is the detection (data: Varonis Threat Labs).

ATT&CK mapping

Varonis does not publish MITRE ATT&CK IDs. Based on the behaviour described, the closest fits are Web Service (T1102) for C2 over a legitimate service and Cloud Service Discovery (T1526) for the reconnaissance. Treat this mapping as our reading, not the vendor’s.

The general approach of hunting for machine-speed chains rather than single events is the same one described in how to detect AI agent attacks.

How do you mitigate NotC2-style C2?

Varonis puts it simply: block any one link and the chain fails. In priority order:

  1. Restrict iam:PassRole and Lambda creation. Limit who can create functions and event source mappings and pass roles to them. This stops deployment.
  2. Control external SNS subscriptions. Restrict who can create HTTP or HTTPS subscriptions and allow only approved destinations. This closes the exit.
  3. Scope Bedrock access. Grant bedrock:InvokeModel only to roles that need it, and enable model invocation logging where Bedrock is in use.
  4. Shrink Lambda execution roles. A role that can only touch its own resources limits what any hijacked function can reach.
  5. Limit Lambda egress anyway. Varonis notes egress controls alone do not stop NotC2, since SNS does the delivery, but they still block simpler relays.
  6. Protect the keys that start it all. Disable unused access keys, rotate keys and require MFA, the same basics Qualys recommends against HazyBeacon.

How does NotC2 compare with other cloud C2 cases?

NotC2 is a research proof of concept, but it sits in a line of real cases where cloud services or AI keys played a part in C2.

Timeline of cloud C2 cases from HazyBeacon in 2025 to the NotC2 proof of concept in 2026.
Cloud services have moved from a hiding place for C2 to the C2 itself (data: Unit 42 via Qualys, Sysdig, Varonis).
  NotC2 HazyBeacon NATS C2 (KeyHunter)
Status Proof of concept In the wild In the wild
Documented by Varonis, Nov 2026 Unit 42, Jul 2025 (per Qualys) Sysdig, May 2026
What is controlled The AWS account itself Windows hosts Credential-harvesting workers
C2 channel SQS in, SNS out Lambda Function URL relay Self-hosted NATS server
AI role Bedrock interprets commands None AWS and AI keys validated, including Bedrock calls
Needs stolen AWS keys Yes Yes, to deploy Lambda No, initial access via Langflow CVE-2026-33017

HazyBeacon

Qualys describes HazyBeacon, tracked as CL-STA-1020, as a Windows backdoor that posts encrypted traffic to a Lambda Function URL, which relays it to the attacker’s real backend. Qualys recommends a service control policy that blocks Function URLs with AuthType: NONE unless approved.

NATS as C2

Sysdig found an operator using a self-hosted NATS messaging server to coordinate workers that scraped and validated AWS and AI API keys. That is not cloud-native C2, but it shows the same target: cloud and Bedrock access. The AdaptixC2 analysis shows the other trend, attackers hiding C2 in GitHub Issues.

Is NotC2 a real threat?

Not today, as far as public reporting shows. No source reports attackers using it, and Varonis does not link public code.

The catch is that nothing in it is hard. Every component is a documented AWS feature, and the AI layer is one generic tool definition. The research is valuable because it writes down the permission list and the log gaps before an attacker does.

What is still unknown?

  • Publication date details. The Varonis page text did not show a date; Let’s Data Science gives 6 November 2026 and its own article is dated 9 November.
  • Cost and speed. Varonis gives no figures for latency, Bedrock cost per command or API call volume.
  • AWS’s view. No source quotes a response from AWS.
  • Native detections. Varonis does not say whether GuardDuty or other AWS-native tools flag any part of the chain.
  • Code availability. No repository is linked, so independent testing has not been reported.

The bottom line

NotC2 shows that a breached AWS account can host its own command channel, with Bedrock as the operator’s assistant and SNS as the exit. It needs stolen credentials and has not been seen in the wild. Lock down iam:PassRole, external SNS subscriptions and Bedrock access now, and turn on the logs that let you see the chain.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

What is NotC2?

NotC2 is a proof-of-concept post-compromise command-and-control framework published by Varonis Threat Labs in November 2026. It uses Amazon SQS, AWS Lambda, Amazon SNS and Amazon Bedrock to send commands into a compromised AWS account and get results out.

Is NotC2 malware used by real attackers?

No public report shows attackers using NotC2. Varonis describes it as its own research proof of concept, and the write-up does not report any in-the-wild use.

Does NotC2 exploit a vulnerability in AWS?

No. NotC2 abuses legitimate AWS features and requires valid AWS credentials with enough permissions. It is a way to operate inside an account that is already compromised, not a way to break in.

Why is NotC2 hard to detect?

All traffic is HTTPS to trusted AWS endpoints signed with valid credentials, Lambda never talks to the operator directly, and Varonis says CloudTrail redacts the content of SQS and SNS messages. Defenders can see that services were used but not what was said.

What does Amazon Bedrock do in NotC2?

Bedrock acts as the command interpreter. The operator writes a request in plain English, and the model translates it into AWS API calls through a single generic tool, chains calls where needed and formats the output.

How do you detect NotC2 in AWS?

Varonis recommends alerting on SNS subscriptions created by Lambda execution roles that point to external HTTPS endpoints, on Bedrock calls from roles with no Bedrock history, and on short sequences linking an SQS message, a Lambda run, Bedrock activity and an external SNS delivery.

Is the NotC2 code public?

The Varonis write-up shows architecture, permissions and a demo video, but it does not link to a public code repository.

How is NotC2 different from HazyBeacon?

HazyBeacon, documented by Unit 42 in 2025, is real malware on Windows hosts that uses an AWS Lambda Function URL as a relay to the attacker's server. NotC2 is a research proof of concept that controls the AWS account itself and keeps the whole loop inside AWS.

Keep reading

NotC2command and controlAWS securityAmazon Bedrockcloud securityred team toolsthreat detection