aws-iam-best-practices
Skill by sickn33
Reviews and hardens AWS IAM policies using least privilege principles. Covers overly permissive policies, MFA gaps, access key age, unused roles and sample policy templates.
Install aws-iam-best-practices
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/security/aws-iam-best-practices ~/.claude/skills/aws-iam-best-practicesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/security/aws-iam-best-practices ~/.gemini/antigravity-cli/skills/aws-iam-best-practicesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install aws-iam-best-practices in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
AWS IAM Best Practices is a skill that reviews and hardens IAM policies in AWS, following least privilege principles. It provides AWS CLI and Python snippets to find policies with wildcard actions, inline policies, users without MFA, access keys older than 90 days, unused roles and roles with external trust. It also includes sample policy templates for S3 access, MFA enforcement, time-based access and IP-restricted access.
The source says read-only assessment is the default. Results are recorded as PASS, FAIL, UNKNOWN or NOT-APPLICABLE per control, and errors such as AccessDenied count as UNKNOWN. Commands that change policies, keys or MFA devices require an approved change scope and a rollback plan. It is intended for people who need to review IAM policies, implement least privilege access or harden IAM security.
Written from the project's SKILL.md and checked against it.
What it can do
- Policy reviewFinds policies with wildcard actions and inline policies on users.
- MFA checksLists users without MFA using the IAM credential report.
- Access key reviewFinds access keys older than 90 days and shows key rotation steps.
- Role analysisFinds unused roles and roles with AWS principal trust to check.
- Policy simulationRuns simulate-principal-policy to test permissions for a principal.
- Policy templatesProvides sample JSON policies for S3, MFA, time-based and IP-restricted access.
- Hardening checklistLists user, policy, role, and monitoring hardening items to review.
- Automated hardening scriptProvides a Python boto3 script that reports MFA gaps, old keys and wildcard policies.
What you need
- AWS CLI
- jq
- Bash with GNU date
- Python with boto3 for the automated script
Try asking
- Review my IAM policies for security issues
- Find users without MFA enabled
- Create a least privilege policy for S3 access
Good to know
- Read-only assessment is the default.
- Commands that create MFA devices, change policies or keys require an approved change scope and rollback plan.
- Examples are partial and not certification or complete benchmark implementations.
- Explicit deny policies can lock out API clients and service calls, so test before attaching.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/security/aws-iam-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB
Alternatives to aws-iam-best-practices
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
aws-iam-best-practices: common questions
Does this skill change my IAM configuration?
The source says read-only assessment is the default. Commands that change policies, keys, MFA devices or alarms require an approved change scope and rollback plan.
How are unclear or failed checks reported?
The source says AccessDenied, API errors, missing permissions and unimplemented checks are recorded as UNKNOWN, never PASS.
Which tools does it need?
The source says shell snippets require Bash with GNU date, AWS CLI and jq. The Python script uses boto3.
How do I install aws-iam-best-practices?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is aws-iam-best-practices free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is aws-iam-best-practices safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to aws-iam-best-practices?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
