Back to all lessons
Awareness Lessons
4 months ago

HollowGraph Malware Abuses Microsoft Graph API for Covert C2 via Calendar Events

Written by AI from the linked story. Not reviewed by an editor. How this works

HollowGraph exploits legitimate Microsoft 365 infrastructure — specifically Graph API calendar events — to blend malicious command-and-control traffic with normal business communications, making it extremely difficult to detect through traditional network monitoring. This 'living-off-trusted-services' technique means perimeter defenses and signature-based tools are largely blind to the threat, as the malicious traffic appears indistinguishable from routine Microsoft 365 activity. The use of DNS tunneling for credential updates adds a secondary covert channel, compounding detection difficulty. Organizations that lack deep behavioral monitoring of Microsoft 365 API activity and outbound DNS patterns are particularly exposed. This attack underscores why defenders must treat trusted cloud platforms as potential attack surfaces, not inherently safe channels.

Tactical Insight

Immediate actions

  • Audit and restrict OAuth application permissions in Microsoft 365 to enforce least-privilege access to Graph API scopes, especially calendar read/write.
  • Enable Microsoft Defender for Cloud Apps (or equivalent CASB) to alert on anomalous Graph API usage patterns, including unusual calendar event creation or modification volumes.
  • Block or inspect DNS-over-HTTPS and flag anomalous DNS query volumes from endpoints that may indicate tunneling activity.

Long-term improvements

  • Implement Conditional Access policies that restrict Microsoft 365 access to managed, compliant devices and known geographic regions to reduce the attack surface for compromised mailboxes.
  • Deploy a SIEM with Microsoft 365 unified audit log ingestion and build detection rules specifically targeting Graph API calls from non-standard user agents or service accounts.
  • Establish a baseline of normal Microsoft Graph API activity per user and alert on statistical deviations that may indicate automated malware-driven interactions.

Detection measures

  • Hunt for calendar events containing encoded or encrypted payloads by monitoring the Graph API `/events` endpoint for unusually large or structured event bodies.
  • Correlate Microsoft 365 sign-in logs with endpoint telemetry to identify accounts accessing Graph API from systems that do not match the user's typical behavior profile.
  • Subscribe to Microsoft threat intelligence feeds and integrate IoCs related to Cavern framework activity into your SIEM and EDR platforms.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.