implementing-gcp-vpc-firewall-rules

implementing-gcp-vpc-firewall-rules is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 52 tokens per session (3,237 once invoked), scanned B, original, Apache-2.0.

A guide to configuring and reviewing firewall rules in Google Cloud VPC networks. These rules control which network traffic may enter or leave workloads and can be applied across an organization.

In plain words
What is it for?
Use it to restrict incoming and outgoing traffic, remove unsafe default rules, create network segmentation, and audit firewall behavior in GCP.
Why use it?
It helps prevent overly open network access and limits communication between cloud systems. Flow Logs can show whether the rules are working as intended.

Skill for Claude CodeCodex

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

Good fit Use it to restrict incoming and outgoing traffic, remove unsafe default rules, create network segmentation, and audit firewall behavior in GCP.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xalgorix/xalgorix/implementing-gcp-vpc-firewall-rules
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 implementing-gcp-vpc-firewall-rules
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 implementing-gcp-vpc-firewall-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/implementing-gcp-vpc-firewall-rules/github.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/implementing-gcp-vpc-firewall-rules)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/implementing-gcp-vpc-firewall-rules"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/implementing-gcp-vpc-firewall-rules/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 implementing-gcp-vpc-firewall-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/implementing-gcp-vpc-firewall-rules"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/implementing-gcp-vpc-firewall-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,237 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Server-Side Request Forgery · line 174
    Code accesses a cloud instance metadata endpoint (e.g. 169.254.169.254). A single request can return temporary IAM credentials, making this a high-value SSRF target for credential theft.
    Fix: Remove access to cloud metadata endpoints unless strictly required. If metadata is needed, restrict it (e.g. IMDSv2 with hop limit) and never expose returned credentials.
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.00052 $0.03237
Opus 5 $0.00026 $0.01618
Sonnet 5 $0.00010 $0.00647
Haiku 4.5 $0.00005 $0.00324

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

Security

Grade B, and why

implementing-gcp-vpc-firewall-rules scanned grade B 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 6d 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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

--destination-ranges=169.254.169.254/32,8.8.8.8/32,8.8.4.4/32 \

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

internal/tools/skills/data/cloud-security/implementing-gcp-vpc-firewall-rules/SKILL.md · 328 lines

How it starts

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

Implementing GCP VPC Firewall Rules

When to Use

  • When deploying new GCP workloads that require network-level access controls
  • When auditing existing firewall configurations for overly permissive rules
  • When implementing zero trust network segmentation within GCP VPC networks
  • When responding to Security Command Center findings about open firewall rules
  • When building hierarchical firewall policies across a GCP organization

Do not use for application-layer filtering (use Cloud Armor WAF), for DNS-based filtering (use Cloud DNS response policies), or for VPN/interconnect traffic filtering without understanding that VPC firewall rules apply to traffic within the VPC.

Common Misconfigurations & Verification

  • Restrictive rule outranked by a default-allow: GCP evaluates lowest priority number first. A new deny/tight rule at priority 1000 is overridden by default-allow-internal/default-allow-ssh at lower numbers, or by an allow with a smaller priority value. List and sort by priority and delete the legacy default-allow-* rules after validation.
  • Rule created but disabled: a --disabled rule looks present but enforces nothing. Audit: gcloud compute firewall-rules list --filter="disabled=true".
  • Egress assumed denied: GCP's implied rule allows all egress (priority 65535). Without an explicit deny-all-egress at 65534 plus scoped allows, exfiltration paths stay open.
  • Mutable network tags for sensitive rules: anyone with compute.instances.setTags can attach a tag and inherit an allow rule. Prefer --source-service-accounts/--target-service-accounts for critical paths.
  • Flow logs off: you cannot validate which rule is actually matching or whether deletes are safe without --enable-flow-logs and disposition=DENIED/ALLOWED queries.
gcloud compute firewall-rules list --filter="direction=INGRESS AND sourceRanges=0.0.0.0/0" --sort-by=priority
gcloud compute firewall-rules describe default-allow-ssh --format='value(disabled,priority,sourceRanges.list())'
gcloud logging read 'resource.type="gce_subnetwork" AND jsonPayload.disposition="DENIED"' --limit=20

Read the full file on GitHub · 328 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. 6d ago First seen · 328 lines · 52 tokens per session scan B 413708cd0697

Subscribe to this mod's changes

implementing-gcp-vpc-firewall-rules is a skill published in the GitHub repository xalgorix/xalgorix (971 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 3,237 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (cloud metadata endpoint). 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

implementing-gcp-vpc-firewall-rules

Implementing and auditing GCP VPC firewall rules to enforce network segmentation, restrict ingress and egress traffic, apply hierarchical firewall policies across the organization, and monitor firewall rule effectiveness using VPC Flow Logs.

Njones17/AI-agent-master-cyber-skills-list · 52 tokens

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

cloud-iam-deep

GCP/AWS/Azure cloud exploitation -- Cloud Functions, Firestore, Cloud Run, S3, MinIO, Blob Storage, SA keys.

uphiago/recon-skills · 35 tokens

configuring-identity-aware-proxy-with-google-iap

Configuring Google Cloud Identity-Aware Proxy (IAP) to enforce per-request identity verification for Compute Engine, App Engine, Cloud Run, and GKE services using access levels, context-aware policies, and programmatic access with service accounts.

26zl/cybersec-toolkit · 60 tokens

configuring-pfsense-firewall-rules

Configures pfSense firewall rules, NAT policies, VPN tunnels, and traffic shaping to enforce network segmentation, control traffic flow, and protect internal network zones in enterprise and small-to-medium business environments.

26zl/cybersec-toolkit · 49 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