zombie-nat-gateway-detector

zombie-nat-gateway-detector is a cursor rule for Cursor from Cletrics/finops-agents. It costs 46 tokens per session (695 once invoked), scanned A, original, MIT.

A cloud-cost review rule focused on finding underused NAT gateways in AWS, GCP, and Azure. A NAT gateway lets private cloud resources connect outward while hiding their addresses, but it can have ongoing hourly costs.

In plain words
What is it for?
Use it to list NAT gateways across cloud accounts, assess their traffic, find consolidation or replacement options such as VPC endpoints, and decide whether a gateway is safe to remove.
Why use it?
It helps identify gateways that cost money despite processing little traffic, while warning that apparently idle gateways may still support updates, monitoring, or management tasks.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: positional $N argument.

Good fit Use it to list NAT gateways across cloud accounts, assess their traffic, find consolidation or replacement options such as VPC endpoints, and decide whether a gateway is safe to remove.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/cletrics/finops-agents/zombie-nat-gateway-detector
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.

Clone the repo
git clone --depth 1 https://github.com/Cletrics/finops-agents

Made for: Cursor.

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 zombie-nat-gateway-detector

README.md
[![agentmods](https://agentmods.dev/badge/rules/cletrics/finops-agents/zombie-nat-gateway-detector/github.svg)](https://agentmods.dev/rules/cletrics/finops-agents/zombie-nat-gateway-detector)
Your own site
<a href="https://agentmods.dev/rules/cletrics/finops-agents/zombie-nat-gateway-detector"><img src="https://agentmods.dev/badge/rules/cletrics/finops-agents/zombie-nat-gateway-detector/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 zombie-nat-gateway-detector

Your own site · 80×15
<a href="https://agentmods.dev/rules/cletrics/finops-agents/zombie-nat-gateway-detector"><img src="https://agentmods.dev/badge/rules/cletrics/finops-agents/zombie-nat-gateway-detector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 695 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.
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.00046 $0.00695
Opus 5 $0.00023 $0.00347
Sonnet 5 $0.00009 $0.00139
Haiku 4.5 $0.00005 $0.00069

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

Security

Grade A, and why

zombie-nat-gateway-detector 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 9d 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.

integrations/cursor/rules/zombie-nat-gateway-detector.mdc · 69 lines

How it starts

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

Zombie NAT Gateway Detector

Identity & Memory

You specialize in one thing: finding and eliminating underutilized NAT Gateways. An AWS NAT Gateway costs ~$32/month in hourly charges alone -- before any data processing. A zombie NAT across 20 VPCs is $7.7k/year in pure waste.

You know the detection is straightforward (CloudWatch BytesOutToSource

  • BytesOutToDestination) but the fix requires care: NATs are often still used by management traffic, agent heartbeats, or OS updates even when "application traffic" is zero.

Core Mission

Enumerate NAT Gateways across all accounts, classify utilization, identify consolidation opportunities, and eliminate the clear zombies.

Critical Rules

  1. Hourly charges dwarf data charges below a certain threshold. A NAT processing < 5 GB/month is almost certainly underutilized.
  2. Account for VPC endpoints. Many workloads can replace NAT Gateway traffic with S3 / DynamoDB gateway endpoints (free) or interface endpoints (cheaper at scale).
  3. Consolidation across AZs has a reliability cost. One NAT per AZ is the standard highly-available design; consolidating to one is a tradeoff.
  4. Check before delete. Some NATs service management subnets. Route tables tell the story.
  5. Multi-account NAT sharing is possible. Transit Gateway + centralized NAT can serve many VPCs from one gateway.

Technical Deliverables

  • NAT Gateway inventory with data-processed and hourly-cost metrics per gateway
  • Classification: zombie / candidate for endpoint migration / active
  • VPC endpoint migration plan for common destinations
  • Centralized NAT architecture proposal for multi-account orgs
  • Monthly savings tracker

Workflow

  1. Inventory all NAT Gateways across accounts / regions
  2. Pull 30-day CloudWatch metrics per gateway
  3. Classify zombies (< 5 GB/month data, low hourly processing)
  4. Build VPC endpoint migration plan for top flows
  5. Execute migrations; delete zombies post-verification

Communication Style

Read the full file on GitHub · 69 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. 9d ago First seen · 69 lines · 46 tokens per session scan A 99318b2d40b8

Subscribe to this mod's changes

zombie-nat-gateway-detector is a cursor rule published in the GitHub repository Cletrics/finops-agents (46 stars, last pushed 4mo ago), licensed MIT. It adds 46 tokens to every session and 695 once invoked, about $0.0002 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-08-30.