detecting-compromised-cloud-credentials

detecting-compromised-cloud-credentials is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 55 tokens per session (3,759 once invoked), scanned A, original, Apache-2.0.

A security procedure for finding stolen or misused cloud credentials across AWS, Azure, and Google Cloud. It examines unusual API actions, locations, resource creation, and alerts from cloud security services.

In plain words
What is it for?
Use it to investigate unfamiliar cloud activity, exposed credentials, credential stuffing, brute-force attempts, and the scope of a confirmed compromise.
Why use it?
It helps determine whether an identity has been compromised and how far the attacker used it. It also covers cases where normal location or login checks may miss abuse.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate unfamiliar cloud activity, exposed credentials, credential stuffing, brute-force attempts, and the scope of a confirmed compromise.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xalgorix/xalgorix/detecting-compromised-cloud-credentials
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xalgorix/xalgorix --skill detecting-compromised-cloud-credentials
Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for detecting-compromised-cloud-credentials

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/detecting-compromised-cloud-credentials.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/detecting-compromised-cloud-credentials)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/detecting-compromised-cloud-credentials"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/detecting-compromised-cloud-credentials.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,759 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.03759
Opus 5 $0.00028 $0.01879
Sonnet 5 $0.00011 $0.00752
Haiku 4.5 $0.00006 $0.00376

Measured 4d ago against content hash b8470eb4cf69, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

detecting-compromised-cloud-credentials scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

internal/tools/skills/data/cloud-security/detecting-compromised-cloud-credentials/SKILL.md · 351 lines

How it starts

The opening of the file, as written. The whole thing — 351 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Detecting Compromised Cloud Credentials

When to Use

  • When investigating alerts about unusual cloud API activity from unfamiliar locations
  • When building detection rules for credential theft and abuse across cloud environments
  • When responding to notifications from cloud providers about exposed credentials
  • When monitoring for credential stuffing or brute force attacks against cloud identities
  • When assessing the scope of a credential compromise after initial detection

Do not use for preventing credential compromise (use MFA, credential rotation, and secrets management), for detecting application-level credential theft (use application security monitoring), or for endpoint credential harvesting detection (use EDR tools).

Detection Gaps & Validation

False-negatives that hide a live credential compromise:

  • Instance-credential exfil has two variants. UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS flips to .InsideAWS when the attacker proxies through another AWS account — include both in finding-criteria or you miss the AWS-internal pivot.
  • Federated/SSO console logins may not populate responseElements.ConsoleLogin == "Success"; the signal lands in additionalEventData / AssumeRoleWithSAML instead, so a ConsoleLogin-only query misses SSO accounts.
  • Azure riskLevelDuringSignIn requires Entra ID P2. Without P2, riskEventTypes_v2 is empty and every risk query returns zero — a silent dead rule, not a clean tenant.
  • GCP service-account key usage needs Data Access audit logs (DATA_READ/ADMIN_READ) explicitly enabled per service — off by default, so principalEmail:*.iam.gserviceaccount.com queries see nothing.
  • The unique_ips > 3 impossible-travel heuristic misses low-and-slow single-residential-proxy abuse and false-positives on NAT/VPN.

Validate: confirm CloudTrail, SigninLogs, and GCP audit logs each return rows for the last 24h before trusting "no findings"; FP-tune impossible travel by allowlisting corporate egress and VPN CIDRs.

Read the full file on GitHub · 351 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 351 lines · 55 tokens per session scan A b8470eb4cf69

Subscribe to this mod's changes

detecting-compromised-cloud-credentials is a skill published in the GitHub repository xalgorix/xalgorix (958 stars, last pushed yesterday), licensed Apache-2.0. It adds 55 tokens to every session and 3,759 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

auditing-gcp-iam-permissions

Auditing Google Cloud Platform IAM permissions to identify overly permissive bindings, primitive role usage, service account key proliferation, and cross-project access risks using gcloud CLI, Policy Analyzer, and IAM Recommender.

26zl/cybersec-toolkit · 51 tokens

detecting-aws-cloudtrail-anomalies

Detect unusual API call patterns in AWS CloudTrail logs using boto3, statistical baselining, and behavioral analysis to identify credential compromise, privilege escalation, and unauthorized resource access.

adriannoes/awesome-agentic-ai · 45 tokens

analyzing-azure-activity-logs-for-threats

Use when queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative operations, impossible travel, privilege escalation, and resource modifications. Builds KQL queries for threat hunting in Azure environments. Use when investigating suspicious Azure tenant activity…

oyi77/1ai-skills · 70 tokens

analyzing-kubernetes-audit-logs

Parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat detection rules from audit event patterns. Use when investigating Kubernetes cluster compromise or building k8s-specific SIEM detection rules.

26zl/cybersec-toolkit · 71 tokens

analyzing-cloud-storage-access-patterns

Detect abnormal access patterns in AWS S3, GCS, and Azure Blob Storage by analyzing CloudTrail Data Events, GCS audit logs, and Azure Storage Analytics. Identifies after-hours bulk downloads, access from new IP addresses, unusual API calls (GetObject spikes), and potential data exfiltration using statistical baselines…

26zl/cybersec-toolkit · 79 tokens

auditing-terraform-infrastructure-for-security

Auditing Terraform infrastructure-as-code for security misconfigurations using Checkov, tfsec, Terrascan, and OPA/Rego policies to detect overly permissive IAM policies, public resource exposure, missing encryption, and insecure defaults before cloud deployment.

26zl/cybersec-toolkit · 59 tokens