GraphStrike: Using Microsoft Graph API to Make Beacon Traffic Disappear
By Red Siege | January 22, 2024
By: Alex Reid, Current Red Siege Intern

We at Red Siege are proud to introduce GraphStrike: a tool suite for use with Cobalt Strike that enables Beacons to use Microsoft Graph API for HTTPS C2 communications. All implant traffic will route through graph.microsoft.com and become very difficult to identify as Beacon uses legitimate methods to interact with Microsoft Cloud resources.
In the offensive security world, when evasion is brought up it is usually in the context of Anti-Virus (AV) or Endpoint Detection and Response (EDR). Host-based detections remain the chief concern for most offensive security engineers when designing malware or other tooling, but organizations are increasingly complementing their security stacks with mature network-based detection capabilities. Network evasion isn’t a new concept, with the commercial Command and Control (C2) software Cobalt Strike adding functionality to customize the appearance of its network traffic in 2014. In the intervening years however, the capability and fidelity of network-based monitoring and detection mechanisms have progressed to now present a real challenge during offensive operations.
Advanced Persistent Threats (APTs) and other real-world threat actors have also taken notice, increasingly turning to commercial third-party services like Slack, Discord, Google Drive, and Telegram to smuggle their C2 traffic out of a compromised network without detection. Legitimate services are incredibly attractive for C2 purposes, with aggressors able to abuse their reputation to blend in and avoid scrutiny. While the options are myriad, Microsoft services are particularly attractive targets due to how ubiquitous the use of programs like Microsoft Teams, Outlook, and OneDrive is. To make things easier, all of these services can be accessed and manipulated via Microsoft Graph API. From Microsoft:
Microsoft Graph is a RESTful web API that enables you to access Microsoft Cloud service resources.
APTs have been observed deploying malware that uses Graph API for C2 in campaigns over the past several years. Examples include:
Network traffic addressed to Microsoft owned domains and IPs is extremely unlikely to draw attention, and it can be very difficult to distinguish legitimate usage of Graph API within a network from illegitimate. As offensive security professionals we are in the business of adversary emulation, but implementing third-party services for C2 can be challenging, both from a technical standpoint as well as in regards to time and resources. To address these challenges and enable authorized red teams to easily bring advanced adversarial tradecraft to the table, Red Siege is pleased to announce the release of GraphStrike.
GraphStrike is a tool suite for use with Cobalt Strike that enables Beacons to use Graph API for HTTPS C2 communications. It includes a provisioner to easily set up required assets, both locally and in Azure, with the only real prerequisite being a Microsoft tenant with a SharePoint site:

After completing setup and importing a single Cobalt Strike aggressor script, Beacons generated by the Cobalt Strike Team Server will send all C2 traffic to graph.microsoft.com. This can be seen in the following image (you’ll need to zoom in):

Depicted is a Wireshark capture showing a DNS request for graph.microsoft.com and an answer containing the corresponding IP. An HTTPS connection is then initiated to that IP, and using Process Explorer we can see that the GraphStrike.exe process initiated and holds this connection. In the bottom left of the image, a screen capture from Cobalt Strike shows a Beacon calling out from the GraphStrike.exe process and confirms that the connection seen in Wireshark belongs to the implant.
GraphStrike supports almost all native Cobalt Strike capabilities and aims to make the use of Graph API for authorized red team engagements simple, reliable, and effective.
A developer blog post detailing the design process and technical details of GraphStrike may be found at GraphStrike: Anatomy of Offensive Tool Development
GraphStrike is available for download here.

Certifications:
OSCP, OSEP, and RTJC
Related Stories
View MoreBy Red Siege | October 5, 2026
by Stuart Rorer Most weeks, the tests I run are fairly routine: web applications, externals, and internals with a tight scope. But mobile application assessments have a way of getting […]
Learn MoreBy Red Siege | October 1, 2026
by Mike Saunders The AWS ReadOnlyAccess policy might be providing more access than you’re intending to grant. On a recent assessment, we observed widespread use of IAM roles with the […]
Learn MoreBy Red Siege | September 24, 2026
As proud sponsors of Wild West Hackin’ Fest, Red Siege is heading back to Deadwood! WWHF is always a big one for us, and this year we’re bringing training, talks, […]
Learn More