
GCP Service Account Key Abuse: IAM Privilege Escalation
A developer committed a GCP service account JSON key to a public repository and an attacker found it within hours. Work the GCP Cloud Audit Logs to trace how the leaked credential was turned into a full IAM privilege escalation and a bulk download of the production secrets vault.
Start this operation
Investigation Tasks
Complete each task by investigating alerts and submitting your findings.
Locate where the credential surfaced
15Before the cloud logs show any attacker activity, a monitoring system flagged a problem. Identify the GCP service account whose JSON key was found exposed in a public code repository.
Confirm the stolen key identifier
15GCP service account JSON files contain a key_id field alongside the private key. Identify the specific key_id that was leaked and subsequently used by the attacker.
Trace the initial external operator
20The SA key was activated from outside the corporate network. Find the external IP address from which the attacker first generated a GCP access token using the leaked credential.
Reconstruct the escalation event
25After enumerating IAM state, the attacker performed a critical privileged operation on the project itself rather than on the service account. Identify the GCP Cloud Audit Log method that describes modifying a project's IAM policy.
Name the attacker's foothold identity
20The SetIamPolicy event added a new principal to the project. Identify the service account the attacker placed into a privileged role on the project.
Identify the primary data target
20After establishing elevated access, the attacker turned to data. Identify the Cloud Storage bucket they enumerated and downloaded objects from first.
Map the credential access technique
20The initial access in this incident did not involve a password spray, phishing email, or software exploit. It relied on a credential that was already public. Identify the MITRE ATT&CK sub-technique that describes harvesting credentials from files.
7 tasks · 135 points total
Training Tools
Cloud Console
Cloud infrastructure logs
SIEM Console
Log analysis & SPL queries
Skills You'll Build
Requires foundational alert triage skills. Multiple data sources to correlate.
Prerequisites
- Basic understanding of security alerts
- Familiarity with Cloud concepts
- Familiarity with SIEM concepts
Ready to investigate?
More Operations
View allPAN-OS GlobalProtect: Command Injection (CVE-2024-3400)
An internet-facing Palo Alto Networks firewall published its GlobalProtect VPN portal to the world, and an unauthenticated command-injection flaw turned a single crafted request into code execution on the appliance. The attacker validated the bug with a zero-byte canary, stole the firewall's running configuration, dropped a python implant that takes commands from the device's own error log, and pivoted off the box into the domain controller. Reconstruct the chain from the firewall system, GlobalProtect, and perimeter traffic logs.
Microsoft 365 BEC: Malicious Inbox Rules
An adversary-in-the-middle phishing kit steals an AP manager's Microsoft 365 session token, bypassing MFA. The actor creates hidden inbox rules to collect mail and suppress replies, then hijacks a live vendor payment thread to redirect a six-figure wire transfer. Work the Entra sign-in audit, Exchange Online rule events, and email evidence to reconstruct the chain.
Exposed Kubernetes API: Cryptojacking the Cluster
Three EKS worker nodes started pegging their CPUs overnight. The Kubernetes API server was reachable from the internet with anonymous access enabled, and an automated attacker used it to deploy a privileged DaemonSet on every node, escape the container to the host, drop a Monero miner, and steal the node IAM credentials. Work the cluster audit log, host records, perimeter egress, and CloudTrail to reconstruct the full intrusion chain.