gcp-credentials-audit

gcp-credentials-audit is a skill for Claude Code, Codex from shivamsriva31093/gcp-ironclad. It costs 61 tokens per session (5,568 once invoked), scanned A, original, MIT.

A read-only audit of API keys and user-managed service-account keys across accessible Google Cloud projects. It classifies the keys by security risk and writes the results as JSON.

In plain words
What is it for?
Use it to inventory Google Cloud credentials, review recent-use signals, classify risks, and optionally compare inventories for coverage.
Why use it?
It shows which cloud credentials exist and which may be exposed or insufficiently restricted, without changing cloud settings.

Skill for Claude CodeCodex

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

Good fit Use it to inventory Google Cloud credentials, review recent-use signals, classify risks, and optionally compare inventories for coverage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shivamsriva31093/gcp-ironclad/gcp-credentials-audit
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 shivamsriva31093/gcp-ironclad --skill gcp-credentials-audit
Clone the repo
git clone --depth 1 https://github.com/shivamsriva31093/gcp-ironclad

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 gcp-credentials-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/shivamsriva31093/gcp-ironclad/gcp-credentials-audit/github.svg)](https://agentmods.dev/skills/shivamsriva31093/gcp-ironclad/gcp-credentials-audit)
Your own site
<a href="https://agentmods.dev/skills/shivamsriva31093/gcp-ironclad/gcp-credentials-audit"><img src="https://agentmods.dev/badge/skills/shivamsriva31093/gcp-ironclad/gcp-credentials-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gcp-credentials-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/shivamsriva31093/gcp-ironclad/gcp-credentials-audit"><img src="https://agentmods.dev/badge/skills/shivamsriva31093/gcp-ironclad/gcp-credentials-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00061 $0.05568
Opus 5 $0.00030 $0.02784
Sonnet 5 $0.00012 $0.01114
Haiku 4.5 $0.00006 $0.00557

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

Security

Grade A, and why

gcp-credentials-audit scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

RESP=$(curl -s -G "https://monitoring.googleapis.com/v3/projects/${P}/timeSeries" \
skills/gcp-credentials-audit/SKILL.md · 355 lines

How it starts

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

GCP Credentials Audit (READ-ONLY)

Overview

Walks every GCP project the caller can access, lists every API key and every user-managed service-account key, and classifies each by risk. Writes the result as JSON to the session directory. Does not mutate cloud state.

When to Use

  • Triggered by the gcp-ironclad driver as Phase 1a.
  • Or invoked standalone when you want only the audit, without applying any controls.

Inputs

  • SESSION_DIR env var: path to the session directory created by the driver (e.g. /tmp/gcp-ironclad/2026-05-25T10-30-00Z/). If invoked standalone, default to /tmp/gcp-ironclad/standalone-$(date -u +%Y-%m-%dT%H-%M-%SZ)/.
  • LOOKBACK_DAYS env var (optional): how many days back to look for last-used signal. Default 30.
  • AUDIT_VERIFY_PARITY env var (optional): when 1, also runs the per-project loop over CAI-covered projects and diffs the inventories to prove parity (see "Parity mode"). Off by default.

Outputs

Writes ${SESSION_DIR}/audit.json matching output.schema.json in this skill's directory.

Risk classification

Class Trigger
CRITICAL API key with restrictions = NONE (fully unrestricted)
HIGH API key restricted to a service the project has never used; SA with ≥3 user-managed keys; SA key older than 365 days
MEDIUM API key created >180 days ago AND last-used >90 days ago; SA key older than 90 days
LOW API key restricted to ≤1 service and used within the last 30 days
INFO Google-managed keys (Firebase browser keys, default compute SAs, firebase-adminsdk-fbsvc@*)

Execution

Step A: Establish session directory

SESSION_DIR="${SESSION_DIR:-/tmp/gcp-ironclad/standalone-$(date -u +%Y-%m-%dT%H-%M-%SZ)}"
mkdir -p "${SESSION_DIR}/raw"
echo "SESSION_DIR=${SESSION_DIR}"

Step B: Discover projects (from driver scope or standalone), then derive the CAI query scopes and the number→id map.

# Project list (from driver scope, or discover standalone)
if [ -f "${SESSION_DIR}/scope.json" ]; then
  cp "${SESSION_DIR}/scope.json" "${SESSION_DIR}/scope.local.json"
else
  gcloud projects list --format=json > "${SESSION_DIR}/raw-projects.json"
  jq -n --slurpfile p "${SESSION_DIR}/raw-projects.json" '{projects:$p[0]}' \
    > "${SESSION_DIR}/scope.local.json"
fi
jq -r '.projects[].projectId' "${SESSION_DIR}/scope.local.json" > "${SESSION_DIR}/projects.txt"

# Derivations for the CAI fast path:
#  - projnum-to-id.json : project NUMBER -> projectId (CAI returns numbers)
#  - cai-scopes.txt     : distinct org/folder scopes to query
#  - uncovered.txt      : starts with parent-less (standalone) projects; the
#                         fast path appends projects whose scope query failed
jq '[.projects[] | select(.projectNumber) | {(.projectNumber): .projectId}] | add // {}' \
  "${SESSION_DIR}/scope.local.json" > "${SESSION_DIR}/projnum-to-id.json"
jq -r '.projects[] | select(.parent) | "\(.parent.type)s/\(.parent.id)"' \
  "${SESSION_DIR}/scope.local.json" | sort -u > "${SESSION_DIR}/cai-scopes.txt"
jq -r '.projects[] | select(.parent|not) | .projectId' \
  "${SESSION_DIR}/scope.local.json" > "${SESSION_DIR}/uncovered.txt"

echo "projects=$(wc -l < "${SESSION_DIR}/projects.txt") scopes=$(wc -l < "${SESSION_DIR}/cai-scopes.txt") standalone=$(wc -l < "${SESSION_DIR}/uncovered.txt")"

Read the full file on GitHub · 355 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 355 lines · 61 tokens per session scan A bd59f53f1cd3

Subscribe to this mod's changes

gcp-credentials-audit is a skill published in the GitHub repository shivamsriva31093/gcp-ironclad (24 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 5,568 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

finops-expert

Expert-level cloud financial operations, cost optimization, and cloud economics. Use when the user mentions cloud cost, optimization, cloud economics, or AWS cost, or when the task involves FinOps Fundamentals, Cost Management, FinOps Practices, or Cost Visibility.

personamanagmentlayer/pcl · 55 tokens

gcp-expert

Expert-level Google Cloud Platform, services, and cloud architecture. Use when the user mentions Google Cloud, Cloud Functions, BigQuery, or Firestore.

personamanagmentlayer/pcl · 35 tokens

recipes

Use when a user states a FinOps outcome rather than a tool. Route to one recipe card, then hand off: bill jump → explain-period-change (DIGEST preview); marketplace → marketplace-spend; K8s namespace → namespace-cost; credits runway → provider-credits; GCP spend CUD leftover → gcp-spend-cud; BigQuery warehouse →…

costory-io/costory-finops-mcp-skills · 223 tokens

aegisops-ai

/aegisops-ai — Autonomous Governance Orchestrator workflow skill. Use this skill when the user needs Autonomous DevSecOps & FinOps Guardrails. Orchestrates Gemini 3 Flash to audit Linux Kernel patches, Terraform cost drifts, and K8s compliance and the operator should preserve the upstream workflow, copied support…

diegosouzapw/awesome-omni-skills · 81 tokens

google-agents-cli-deploy

This skill should be used when the user wants to "deploy an agent", "deploy my ADK agent", "set up CI/CD", "configure secrets", "troubleshoot a deployment", or needs guidance on Agent Runtime, Cloud Run, or GKE deployment targets, or binding an agent to an Agent Gateway. Covers deployment workflows, service accounts…

google/agents-cli · 153 tokens

infrastructure

A guide for cloud-native infrastructure: software and configuration used to run applications in containers and manage cloud resources. It covers Kubernetes, Helm, Kustomize, GitOps tools such as ArgoCD and Flux, and infrastructure-as-code tools such as Terraform and Pulumi.

fengshao1227/ccg-workflow · 65 tokens