IAM Permission Drift Audit
Weekly: compare current IAM role assignments to baseline; detect unexpected access escalations or permission creep; alert with remediation steps.
Overview
**What it does**: Weekly schedule → query cloud IAM current permissions (AWS IAM roles/policies, GCP service accounts, Azure Entra) → compare to baseline/RBAC policy → code detects drift (service account has role not in baseline, principal granted overly-permissive policy) → LLM analyzes: who has unexpected access, risk level, likely cause (manual grant, config error, service account sprawl) → Slack to #security-alerts with violations and remediation. **Setup (4 steps)**: 1. Configure cloud IAM: AWS (IAM API), GCP (IAM API), Azure (Entra API) 2. Define RBAC baseline: expected role mappings (owner=admin, engineer=EC2+RDS read, dev=sandbox-only) 3. Set critical resources: which resources trigger high-severity alerts (prod databases, payment systems) 4. Configure Slack channel: #security-alerts **Apps/nodes**: Schedule, HTTP request (IAM API), code node (drift comparison), Claude/OpenAI (analysis), Slack. **Credentials required**: Cloud IAM API key, OpenAI account, Slack workspace. **Difficulty**: Medium | **Setup time**: 10 minutes. **Business outcome**: Permission creep caught weekly → access ↑ controlled, least-privilege ↑ enforced, compliance audits ↑ pass, security ↑.
What's included
Inside this workflow
Quickstart
- 01
Download the JSON
With an active Library Pass, download the workflow file right from this page or your dashboard.
- 02
Import into n8n
Choose Import from File and select the downloaded JSON. The full agent graph appears, ready to configure.
- 03
Plug in credentials
Each integration node prompts for credentials on first run. The setup guide lists every credential the agent expects.
- 04
Activate and test
Run once with sample input, confirm the expected output, then flip the activate toggle.
Frequently Asked Questions
How do I import this workflow into n8n?
What credentials do I need to provide?
Are the credentials included in the JSON file?
Can I edit or customize the workflow after importing?
What n8n version is required?
What if something breaks after I import it?
Can I use this workflow for my customers or business?
Will the workflow receive updates?
Do I need n8n Pro or a paid plan?
Can I ask for a custom workflow?
Reviews (0)
No reviews yet. Be the first.
Sign in to leave a review.
Included with any pass
This agent — and every other in the library — comes with a Library Pass. One pass, the whole catalog.
Get a Library Pass- Every agent in the library
- All new releases while active
- Unlimited downloads
- Commercial-use license
- Priority email support
- 30-day money-back guarantee
More in Security & IAM
Cloud Compliance Audit Report
Monthly: compile cloud resource audit logs, detect anomalies (unusual access, unencrypted data, public resources), generate compliance report — save to secure store, notify compliance team.
Console Login Anomaly Alert
Real-time: detect suspicious console login patterns (off-hours, new location, failed logins, root account); escalate to security team.
Security Group Firewall Change Alert
Real-time: detect overly-permissive security group rules (0.0.0.0/0 on port 22/3306/5432); flag for review and suggest remediation.