detecting-compromised-cloud-credentials

Detect compromised cloud credentials across AWS, Azure, and GCP using GuardDuty, Entra ID, and SCC findings.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill detecting-compromised-cloud-credentials
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: detecting-compromised-cloud-credentials
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/cloud-security/detecting-compromised-cloud-credentials
Command: npx skills add https://github.com/xalgord/xalgorix --skill detecting-compromised-cloud-credentials

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stolen cloud credentials are often abused silently for weeks before anyone notices. This Skill gives security teams a concrete workflow to detect credential compromise across AWS, Azure, and GCP by querying GuardDuty findings, Entra ID sign-in logs, and GCP audit logs for anomalous API activity, impossible travel, and credential abuse indicators.

Core Features & Use Cases

  • Multi-cloud detection queries: Ready-to-run AWS CLI, Azure Graph API, and gcloud commands that surface GuardDuty findings, risky sign-ins, Tor/anonymous IP usage, and suspicious service account key creation.
  • Cross-cloud correlation: A Python SIEM script that detects impossible travel and credential stuffing patterns by correlating identity events across providers.
  • Containment runbook: Step-by-step response commands to deactivate access keys, revoke sessions, force password resets, and disable service accounts.
  • Use Case: After GuardDuty flags a console login from an unusual country, use this Skill to trace all actions by the compromised user, check for persistence artifacts like new access keys, and execute containment across all three clouds.

Quick Start

Investigate whether the IAM user '[email protected]' shows signs of credential compromise across our AWS, Azure, and GCP environments over the past 7 days.

Frequently Asked Questions about detecting-compromised-cloud-credentials

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect compromised AWS credentials with GuardDuty?

Query GuardDuty for finding types like UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration, MaliciousIPCaller, and ConsoleLoginSuccess.B using the list-findings API. Include both OutsideAWS and InsideAWS exfiltration variants, since attackers proxying through another AWS account only trigger the InsideAWS variant.

How to detect impossible travel sign-ins in Azure Entra ID?

Query the Microsoft Graph signIns endpoint filtering on riskLevelDuringSignIn or riskEventTypes_v2 for anonymized IP addresses. Note that risk-based detections require an Entra ID P2 license; without it, risk fields return empty and the queries silently produce no results.

Why does my GCP service account abuse query return no results?

GCP Data Access audit logs (DATA_READ/ADMIN_READ) are disabled by default per service, so queries on service account principal emails see nothing. Enable Data Access audit logging for the relevant services before trusting an empty result set.

What should I do after confirming a cloud credential compromise?

Immediately deactivate access keys, revoke all active sessions, and force a password reset with MFA re-enrollment. Changing the password alone is insufficient because existing access keys and issued tokens remain valid until explicitly revoked or denied by policy.

What are the limitations of impossible travel detection?

A simple unique-IP-count heuristic misses low-and-slow abuse through a single residential proxy and false-positives on corporate NAT or VPN egress. Tune detection by allowlisting known corporate egress and VPN CIDR ranges before relying on the alerts.