# IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner

> Scans IAM policy JSON locally for wildcard grants and over-broad resource scopes, and rewrites them down to the actions and ARNs actually used - as a reviewable diff, not an applied change.

IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner is a subscription AI agent skill on Agensi by AllAccessData, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5/mo (subscription, cancel anytime)
- Creator: [AllAccessData](https://www.agensi.io/creators/allaccessdata)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/iamshield-aws-gcp-iam-wildcard-privilege-pruner
- Tags: security, devops-cloud, legal-compliance

## About this skill

**IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner** `"Action": "*"` gets written during an incident at 2am and stays for three years. This finds those and proposes what should replace them.

Built for DevOps, SRE and security teams tightening cloud permissions. Runs on Claude, Codex, Hermes, Gemini, and GPT-4 and any framework that loads a SKILL.md.

What's included:
* **Wildcard detection:** action and resource wildcards found across your policy set, ranked by what they actually grant rather than by how they look.
* **Scoped rewrites:** policies narrowed to the specific actions and resource ARNs in use, written out as JSON you can diff and review.
* **Local analysis:** the AWS policy validator and JSON parsing run on your machine. Your policy documents do not leave it, which matters because a policy set is a map of your infrastructure.
* **Reviewable output:** a proposed policy and the reasoning per change, not an applied modification.
* Credentials are read from environment variables and never printed or stored.

**Treat every pruned policy as a production change, because that is what it is.**

_A policy derived from observed usage covers only the code paths that ran during the observation window. The access that breaks is the quarterly billing job, the disaster recovery runbook, the backup restore nobody has needed since last year, and the break-glass role you hope never to use. Collect usage over a long window - ninety days is a reasonable floor, and longer if you have annual processes - and never prune the emergency access role to match its usage, because its usage is zero by design._

_One analysis limit worth understanding: effective permissions are not what a single policy document says. They are the intersection of identity policies, permission boundaries, service control policies, session policies and resource policies, with condition keys on top. A policy that reads as alarmingly broad may already be constrained by an SCP, and one that reads as tight may be widened by a resource policy granting cross-account access. Confirm with IAM Access Analyzer or the policy simulator against the real account before you conclude anything from the JSON alone._

_Roll out in stages, keep the previous version, and have a path to restore access quickly when something you did not predict stops working._

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner skill from Agensi" and describe your task.
3. Subscribe on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner do?

Scans IAM policy JSON locally for wildcard grants and over-broad resource scopes, and rewrites them down to the actions and ARNs actually used - as a reviewable diff, not an applied change.

### Which AI agents support IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner?

Connect your AI agent to Agensi through MCP, then ask it to use IAMShield: AWS/GCP IAM Wildcard & Privilege Pruner on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
