gcp-audit-logs
Skill by sickn33
gcp-audit-logs configures Google Cloud Audit Logs for compliance, security investigation and operational monitoring. It covers log routing, BigQuery analysis and alerting for GCP activity.
Install gcp-audit-logs
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/gcp-audit-logs ~/.claude/skills/gcp-audit-logsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/gcp-audit-logs ~/.gemini/antigravity-cli/skills/gcp-audit-logsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
gcp-audit-logs is an agent skill that guides the setup of Google Cloud Audit Logs for compliance, security investigation and operational monitoring. It describes the four audit log types (admin activity, data access, system event and policy denied) and shows gcloud commands to enable data access logs at organization or project level.
It also covers log sinks that export audit logs to BigQuery, Cloud Storage and Pub/Sub, sample Cloud Logging queries, BigQuery analysis queries for IAM changes, deletions and service account key creation, and log-based metrics for alerting. The source says to confirm scope first, preserve existing IAM policy bindings, and verify sink delivery with approved test operations. It is aimed at security and cloud operations teams running compliance reviews on GCP.
Written from the project's SKILL.md and checked against it.
What it can do
- Audit log typesExplains admin activity, data access, system event and policy denied logs.
- Data access loggingShows how to enable ADMIN_READ, DATA_READ and DATA_WRITE audit configs.
- Log sinksCreates sinks to BigQuery, a Cloud Storage archive and a Pub/Sub topic.
- Logging queriesProvides gcloud logging read queries for IAM changes, deletions and data access.
- BigQuery analysisProvides SQL for destructive operations, IAM changes and failed operations.
- Log-based metricsCreates log-based metrics for IAM policy and firewall rule changes.
What you need
- Google Cloud organization or projects with audit log access
- Google Cloud CLI (gcloud, bq and gsutil)
- BigQuery for exported audit log analysis
- Cloud Storage and Pub/Sub if using those sinks
Try asking
- Set up audit log sinks from my GCP organization to BigQuery
- Write a query to find IAM policy changes in the last 7 days
- Show service account key creation events from the last 90 days
Good to know
- The source says to apply controls through your own change process.
- SQL examples assume date-sharded export tables and must be adapted to the real schema.
- Alerting needs a log-based metric and a Monitoring policy built separately.
- Data access logs must be explicitly enabled and can be costly at high volume.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/gcp-audit-logs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md16 KB -
references/details.md3 KB
Alternatives to gcp-audit-logs
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
gcp-audit-logs: common questions
Does this skill change GCP settings by itself?
The source provides gcloud, bq and gsutil commands that modify IAM policies, sinks and storage. It says to confirm scope and preserve existing bindings before applying them.
Which audit log types does it cover?
It covers admin activity, data access, system event and policy denied logs. It notes which are always on and which must be enabled.
Where can audit logs be exported?
The source shows sinks to BigQuery, a Cloud Storage archive with a 7-year retention setting, and a Pub/Sub topic for SIEM streaming.
How do I install gcp-audit-logs?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gcp-audit-logs free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gcp-audit-logs safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gcp-audit-logs?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
