Google Threat Intelligence Group (GTIG) and Mandiant, operating with international partners, last week concluded a coordinated takedown of a persistent cyber-espionage campaign targeting government and telecommunications infrastructure across four continents. Attribution points to UNC2814, a suspected People’s Republic of China-nexus threat actor operational since at least 2017, with 53 confirmed victims across 42 nations and suspected compromise indicators across an additional 20 countries.

Abuse of Legitimate Cloud Infrastructure for C2

Rather than exploiting software vulnerabilities, UNC2814’s defining technical approach was the weaponization of legitimate SaaS APIs to blend command-and-control traffic into ordinary cloud service communications. The centerpiece of this methodology was GRIDTIDE, a custom C-based backdoor that co-opted the Google Sheets API as a bidirectional C2 channel. Operators wrote instructions directly into designated spreadsheet cells, and the implant continuously polled those cells for tasking hence effectively converting a cloud productivity service into an operational relay that generated no network signatures distinguishable from legitimate Google API traffic.

Deep Dive: Technical Specifications

GRIDTIDE employed several layered mechanisms to maintain persistence and evade detection:

  • Encryption: AES-128 in CBC mode, using a locally stored 16-byte key.
  • Credential Handling: Legitimate Google Service Account credentials were embedded within the malware’s encrypted configuration data.
  • Evasion: All transmitted data was encoded in URL-safe Base64 to bypass network-layer inspection filters.
  • Operational Rhythm: The malware maintained a continuous polling loop against designated Google Sheet cells, awaiting incoming operator instructions.

Standard Malware Workflow:

  1. Decrypt configuration files retrieved from Google Drive.
  2. Authenticate to the target spreadsheet using the embedded service account credentials.
  3. Flush existing cell contents via the batchClear API method to initialize a clean communication session.
  4. Enumerate and collect metadata about the compromised host.
  5. Write host data to the spreadsheet and enter the polling loop awaiting operator commands.

Discovery and Initial Access

The investigation originated from anomalous behavior detected on a CentOS Linux server via Google Security Operations (SecOps). The malicious binary had been staged at /var/tmp/xapt, a filename deliberately chosen to impersonate the APT package manager, and had already achieved root-level execution (uid=0).

Persistence and Lateral Movement

Following initial compromise, UNC2814 moved laterally through the network via SSH and existing service accounts, deliberately avoiding the introduction of novel external tooling in favor of living-off-the-land (LotL) binaries to minimize detection surface. Persistence mechanisms included:

  • Installation of a systemd service unit at /etc/systemd/system/xapt.service.
  • Relocation of the malware binary to /usr/sbin/xapt.
  • Use of nohup to decouple the process from terminal sessions, ensuring survival across reboots and logouts.

As an additional operational security layer, the group deployed SoftEther VPN Bridge tool maintained in their arsenal for approximately eight years to tunnel outbound traffic through an encrypted channel.

Strategic Targeting: Data of Interest

GRIDTIDE was deliberately scoped against systems handling sensitive PII. Targeted data categories included:

  • Full legal names and national identification numbers.
  • Contact details and birth records.
  • Voter registration data.

This targeting profile is consistent with PRC-linked telecom-focused intrusions, where the primary operational objective is monitoring of specific individuals through Call Detail Records (CDRs) and SMS metadata accessed via lawful intercept infrastructure.

Command Architecture and Spreadsheet Layout

GRIDTIDE’s C2 command syntax followed a structured four-field format: <type>-<id>-<arg1>-<arg2>.

Command Type Meaning Functionality
C (Client) Operator Instruction Execute Base64-encoded Bash commands, Upload, or Download
S (Server) Malware Response Status updates and operation success confirmations

Spreadsheet Cell Layout:

  • Cell A1: Primary polling cell for commands and status updates.
  • Cells A2-An: Used for staging fragmented file transfer data.
  • Cell V1: Holds host-specific metadata for the infected machine.

Takedown Operations

GTIG executed a multi-tiered disruption operation:

  • Account & Project Termination: All attacker-controlled Google Cloud projects and service accounts were deleted, immediately severing active C2 connectivity for all deployed GRIDTIDE implants.
  • Infrastructure Seizure: Attacker-controlled domains were disabled or sinkholed.
  • Victim Notification: Affected organizations received direct outreach and remediation support.
  • Defense Strengthening: New detection signatures and public Indicators of Compromise (IOCs) were released to aid the broader security community in identifying residual infections.

Assessment

The scope of this operation that spanning over 70 countries when suspected cases are included is reflecting significant adversary resources and long-term strategic patience. While the infrastructure takedown represents a meaningful operational setback, UNC2814’s sustained focus on telecommunications targets makes infrastructure reconstitution under revised TTPs a probable near-term development.

References