Subscribe to the Non-Human & AI Identity Journal

When does cloud service access become a command-and-control risk?

Cloud service access becomes C2 risk when an attacker can use legitimate reads and writes to pass instructions, receive output, or maintain session state. That happens when permissions are broad enough to support bidirectional exchange, especially with storage services, URL-based access, or reusable object paths. The question is whether the access can be turned into communication.

Why This Becomes a Command-and-Control Channel

Cloud service access crosses into command-and-control risk when it supports two-way exchange, not just data retrieval. A storage bucket, shared object path, or URL-based access pattern can let an attacker place instructions, retrieve results, and preserve state without opening a classic beaconing channel. That makes the cloud service part of the attack infrastructure, not just a victim system. The practical concern is not whether the service is “sensitive” in the abstract, but whether it can carry commands, output, or session continuity.

This is why NHI governance matters: identities with broad read/write permissions can become invisible operators inside normal business traffic. The same pattern shows up in real incidents such as the Codefinger AWS S3 ransomware attack and the Snowflake breach, where legitimate access paths were abused for malicious outcomes. NIST’s NIST Cybersecurity Framework 2.0 remains useful here because it pushes teams to manage identity, access, and recovery as a system rather than treating storage permissions as a narrow admin concern. In practice, many security teams discover C2 behavior only after the cloud service has already been used as the message bus.

How Legitimate Cloud Access Gets Turned Into C2

Attackers prefer cloud services that already blend into normal operations. Object storage, shared folders, signed URLs, and API-driven file exchanges are attractive because they are hard to distinguish from routine application activity. If an attacker can write a file, poll for updates, or read a response from the same object path, the channel can support tasking, output collection, and state tracking. That is enough for C2 even when no malware domain, rogue IP, or obvious callback exists.

Current guidance suggests thinking in terms of capability rather than service type. The deciding factor is whether access permits bidirectional communication, persistence, or indirect synchronization. The Ultimate Guide to NHIs — Key Challenges and Risks covers how over-permissioned machine access expands attack paths, while the 52 NHI Breaches Analysis shows how often identity misuse becomes the enabling condition. The 2024 ESG report from Oasis Security & ESG found that 72% of organisations have experienced or suspect a breach of non-human identities, which reinforces a simple operational lesson: the channel often exists because identity scope was broader than the business function required.

  • Limit write access to objects or paths that do not need to carry instructions.
  • Separate control data from ordinary business data where possible.
  • Shorten session lifetimes so stored state cannot be reused indefinitely.
  • Monitor for repeated poll, fetch, and overwrite patterns that resemble task-and-response traffic.

These controls tend to break down in event-driven serverless workflows because legitimate automation can look identical to C2 polling at the network layer.

Where the Edge Cases Create False Confidence

Tighter storage and API controls often increase operational overhead, so organisations have to balance detection value against developer friction and automation latency. That tradeoff is real, especially when cloud services are used for integrations, CI/CD, or distributed jobs that already depend on write-back behavior.

There is no universal standard for every edge case, but the practical test is consistent: if access can pass instructions, return output, or maintain a durable exchange state, treat it as potential C2 until proven otherwise. URL-based object sharing, pre-signed links, and reusable paths are especially risky because they can hide the exchange inside normal request flows. The OWASP NHI Top 10 helps frame these misuse paths, and OWASP’s OWASP Non-Human Identity Top 10 is useful for mapping the identity side of the problem. For organisations with autonomous software or AI agents, this risk becomes sharper because the agent may legitimately read, write, and retain state across multiple tool calls, making intent harder to infer from any single transaction.

Practitioners should therefore review cloud permissions as communication capability, not just data access. If an identity can exchange instructions and responses through a service, then the service has become part of the adversary’s command path. That is the point at which a normal access design becomes a containment problem.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Broad NHI permissions can enable malicious use of normal cloud access paths.
NIST CSF 2.0 PR.AC-4 Least-privilege access is central when cloud permissions become C2 channels.
NIST AI RMF Autonomous systems can turn ordinary cloud access into stateful command exchange.

Assess whether AI or automated workloads can use cloud services to store state, issue tasks, or return results.