<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: implementing-c2-over-cloud-services
description: >-
  Implement C2 channels over legitimate cloud services including Azure, AWS, Google Drive, Slack, and Teams to blend command traffic with normal business communications.
domain: cybersecurity
subdomain: c2-frameworks
tags:
  - cloud-c2
  - azure
  - aws
  - saas-abuse
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1102"]
  frameworks: ["MITRE ATT&CK"]
  tools: ["azure-functions", "aws-lambda", "slack-api"]
---

# Implementing C2 Over Cloud Services

## Overview

Implement C2 channels over legitimate cloud services including Azure, AWS, Google Drive, Slack, and Teams to blend command traffic with normal business communications.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `azure-functions` | Security tooling |
| `aws-lambda` | Security tooling |
| `slack-api` | Security tooling |
| Cloud service accounts, API credentials, C2 framework with cloud support | Environment requirement |

## Quick Reference

```bash
# Quick start commands
node scripts/agent.js --help
node scripts/agent.js configure --service azure-functions --region eastus
```

## Workflow

### Step 1: Configure Cloud Channel

```bash
node scripts/agent.js configure --service azure-functions --region eastus
```

### Step 2: Deploy Cloud Relay

```bash
node scripts/agent.js deploy --service azure-functions --function-name relay
```

### Step 3: Test C2 Comms

```bash
node scripts/agent.js test --service azure-functions --beacon-interval 60
```

## Detection

```yaml
title: C2 Over Cloud Services Detection
id: f59cb4d6-234c-45d3-b456-a377d68f8758
status: experimental
description: Detects suspicious activity related to implementing c2 over cloud services techniques in c2 frameworks context
logsource:
  category: network_connection
  product: windows
detection:
  selection:
    DestinationPort: 443
    Initiated: "true"
  condition: selection
level: high
tags:
  - attack.t1102
  - attack.command_and_control
falsepositives:
  - Authorized penetration testing tools during scheduled assessments
```


**Detection Opportunities**

| Indicator | Source | Detection Logic |
|---|---|---|
| C2 Over Cloud Services Detection | windows/network_connection | Sigma rule (high) |
| ATT&CK Coverage | MITRE ATT&CK | T1102 |

## Verification

- **Verify cloud channel**: `node scripts/agent.js verify --service azure-functions`
- **Confirm C2 comms**: `node scripts/agent.js test --service azure-functions --beacon-interval 60`

## References

- MITRE ATT&CK: T1102
- Frameworks: MITRE ATT&CK
- Tools: azure-functions, aws-lambda, slack-api
