SAAS C2
TELEGRAM
GITHUB
DEAD DROP
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting C2 over Legitimate Services

When C2 rides Slack, Telegram or GitHub, you cannot just block the domain — your business uses it too. Detection shifts to who, which process, and how.

Scroll

Attackers increasingly use trusted web services as C2 dead-drops and channels: Telegram bots, Slack/Discord webhooks, GitHub repos and Gists, Dropbox/Google Drive and Pastebin (T1102). The destinations are reputable, so detection moves to context: which process is calling the API, from which host, and whether the pattern looks like automation rather than a human.

Signals at a Glance

Service abuseSignalATT&CK
Telegram bot API from non-browser processapi.telegram.org calls by odd processT1102.002
Slack/Discord webhook from a server/workstationhooks.slack.com / discord webhook egressT1102.002
GitHub/Gist dead-drop pollingPeriodic raw.githubusercontent fetchesT1102.001
Dropbox/Drive API by unexpected processcontent.dropboxapi.com by non-sync appT1102.002
Pastebin raw polling on a schedulepastebin.com/raw beaconingT1102.001

Process and Host Context

The key question is not the destination but the caller. A workstation's browser talking to Telegram is normal; powershell.exe or an unknown binary doing it is not. Join egress to the originating process via EDR:

// KQL: non-browser process reaching common C2-capable SaaS APIs
DeviceNetworkEvents
| where RemoteUrl has_any ("api.telegram.org","hooks.slack.com","discord.com/api/webhooks",
                          "raw.githubusercontent.com","pastebin.com/raw","content.dropboxapi.com")
| where InitiatingProcessFileName !in~ ("chrome.exe","msedge.exe","firefox.exe","slack.exe","teams.exe")
| summarize hits=count(), urls=make_set(RemoteUrl, 5)
          by DeviceName, InitiatingProcessFileName, bin(Timestamp, 1h)
| where hits > 5

Automation vs Human

Vetted sources

You generally cannot block these domains, so lean on EDR process-to-network joins, beacon-timing on SaaS egress and secret-scanning for bot tokens/webhook URLs. SigmaHQ has rules for suspicious processes contacting messaging APIs. Baseline which processes legitimately use each service in your environment.

Build Detections That Fire

Mjolnir Security helps blue teams turn threat intelligence into high-fidelity detections across endpoint, network, identity and cloud telemetry.

Detection EngineeringManaged Detection & ResponseThreat HuntingIncident ResponsePurple Teaming
  • Detection Engineering We build and tune detections mapped to ATT&CK from your own telemetry.
  • Threat Hunting as a Service Hypothesis-driven hunts for the behaviours on this page.
  • 24/7 Incident Response Containment when a detection fires. Call +1 833 403 5875.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026