Back to all lessons
Awareness Lessons
4 months ago

HollowGraph Malware Hijacks Microsoft 365 Calendars for Stealthy C&C

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

HollowGraph demonstrates a sophisticated living-off-the-land technique by abusing trusted Microsoft 365 infrastructure — specifically the Graph API and calendar events — to blend malicious command-and-control traffic with legitimate business activity, making traditional network-based detection extremely difficult. By encoding tasking instructions and exfiltrated data into future-dated calendar events, attackers exploit the implicit trust organizations place in Microsoft's cloud services. The secondary DNS tunneling channel further deepens the attack's resilience, ensuring persistence even if the calendar-based channel is disrupted. This matters because most organizations lack fine-grained visibility into API-level activity within their Microsoft 365 tenants, leaving a critical blind spot that adversaries can exploit for extended dwell time.

Tactical Insight

Immediate actions

  • Enable Microsoft 365 Unified Audit Logging and alert on anomalous Graph API calls, especially calendar read/write operations from non-human service accounts.
  • Review and revoke unnecessary OAuth application permissions granted to third-party apps accessing Microsoft 365 via the Graph API.
  • Deploy DNS filtering and monitoring to detect and block DNS tunneling patterns on all endpoints and network egress points.

Long-term improvements

  • Implement a Zero Trust application access model by enforcing least-privilege OAuth scopes and requiring admin consent for all Graph API permissions.
  • Establish a formal cloud API usage baseline so that deviations in Microsoft 365 calendar or mailbox API activity trigger automated alerts.
  • Integrate Microsoft 365 audit logs into your SIEM platform to correlate calendar-based anomalies with endpoint and network telemetry.

Detection measures

  • Build detection rules specifically targeting high-frequency or off-hours calendar event creation/modification by service principals or compromised user accounts.
  • Use Microsoft Defender for Cloud Apps (MCAS) to enforce anomaly detection policies on Microsoft 365 API activity and flag data exfiltration patterns.
  • Conduct regular threat hunting exercises focused on abuse of trusted cloud APIs as C&C channels, referencing current adversary TTPs from MITRE ATT&CK.

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.