maxwellokumu/okaudit-claude-skills / identity-access/access-review
iam-access-review
VerifiedAnalyse IAM policies for excessive permissions, wildcards, admin-equivalent actions, missing conditions, and inline policies. Use this skill for access review and least-privilege analysis.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 2.3 KB |
| SKILL.md | skill md | 1.7 KB |
| main.py | script | 19.6 KB |
| sample_input/iam_policy.json | config | 2.1 KB |
| skill.yaml | config | 1.0 KB |
README.md
View on GitHub# access-review
Analyse IAM policies for excessive permissions, wildcard actions, admin-equivalent
privileges, missing conditions, and inline policy usage. Supports local file analysis,
live AWS IAM, and Azure role assignments.
---
## Purpose
- Flags `Action: "*"` and other wildcard patterns
- Detects admin-equivalent actions (`iam:*`, `s3:Delete*`, `ec2:Terminate*`, etc.)
- Identifies resource wildcards combined with write/delete actions
- Highlights sensitive actions granted without MFA or IP conditions
- Flags inline policies as higher-risk than managed policies
---
## Requirements
```bash
pip install python-dotenv boto3 msal
```
---
## Usage
```bash
# Local mode — analyse a JSON policy file
python main.py --input sample_input/iam_policy.json
# Local mode — pipe raw JSON string
python main.py --input '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"*","Resource":"*"}]}'
# AWS mode — fetch live IAM policies
python main.py --mode aws
# AWS mode — dry run with sample data (no credentials needed)
python main.py --mode aws --dry-run
# Azure mode — fetch live role assignments
python main.py --mode azure
# Azure mode — dry run with sample data
python main.py --mode azure --dry-run
```
---
## Sample Output (truncated)
```markdown
# IAM Access Review Report
**Date:** 2025-07-01
**Mode:** local
**Policies Reviewed:** 3
**Total Findings:** 5
## Executive Summary
| Severity | Count |
|----------|-------|
| 🚨 Critical | 1 |
| 🔴 High | 2 |
| 🟠 Medium | 1 |
| 🟡 Low | 1 |
## Findings
| Policy Name | Issue | Severity | Recommendation |
|-------------|-------|----------|----------------|
| `AdminWildcardPolicy` | Wildcard action '*' grants unrestricted permissions | 🚨 Critical | Replace wildcard... |
```
---
## Input Format (Local Mode)
Accepts AWS IAM policy document format:
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:*"],
"Resource": "*"
}
]
}
```
Or a list of wrapped policies:
```json
[
{
"PolicyName": "MyPolicy",
"PolicyType": "managed",
"Document": { "Version": "2012-10-17", "Statement": [...] }
}
]
```
---
## Environment Variables (Cloud Modes)
See `.env.example` in the repo root. AWS mode uses `AWS_*` vars; Azure mode uses `AZURE_*` vars.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |