aws-security-audit

Audits AWS accounts for IAM, network, encryption, and logging misconfigurations using AWS CLI commands.

Updated Sep 20, 2024
One-click install
npx skills add https://github.com/AnasIsmai1/dotfiles --skill aws-security-audit-anasismai1
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aws-security-audit
Source: https://github.com/AnasIsmai1/dotfiles/tree/main/claude/.claude/skills/security/aws-security-audit
Command: npx skills add https://github.com/AnasIsmai1/dotfiles --skill aws-security-audit-anasismai1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3.

What problem does it solve? Manually checking an AWS account for security misconfigurations across IAM, networking, storage, and logging services is slow and error-prone. This Skill provides ready-to-run audit commands and scripts that surface vulnerabilities like open security groups, unencrypted volumes, and users without MFA. ## Core Features & Use Cases - IAM Security Checks: Detect users without MFA, stale access keys, unused accounts, and overly permissive policies. - Network & Data Protection Audits: Find security groups open to 0.0.0.0/0, public S3 buckets, unencrypted EBS volumes and RDS instances, and public RDS snapshots. - Logging & Compliance Reporting: Verify CloudTrail, AWS Config, VPC Flow Logs, and S3 access logging, with findings mapped to CIS, PCI-DSS, and HIPAA controls plus prioritized remediation guidance. - Use Case: Before a compliance review, run the comprehensive audit script to generate a report of misconfigurations, then use the remediation priority list to fix critical issues like public snapshots and disabled CloudTrail first. ## Quick Start Ask the AI to run a comprehensive security audit on your AWS account and report any misconfigurations with remediation priorities.

Frequently Asked Questions about aws-security-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit AWS security misconfigurations from the command line?▼

Use AWS CLI queries to check IAM credential reports, security group rules, encryption flags on EBS and RDS, and CloudTrail status. This Skill provides ready-made commands for each category plus a combined bash script that generates a full audit report.

How to find security groups open to 0.0.0.0/0 in AWS?▼

Run aws ec2 describe-security-groups with a JMESPath query filtering IpPermissions for IpRanges where CidrIp equals 0.0.0.0/0. The Skill includes this exact command and returns the group IDs and names in table format.

Does this AWS security audit require special permissions?▼

Yes, the auditing identity needs read-only access to IAM, EC2, S3, RDS, KMS, CloudTrail, and Config services. The AWS-managed SecurityAudit and ViewOnlyAccess policies typically provide sufficient permissions for these checks.

Can AWS security audit results map to compliance frameworks?▼

Yes, the findings map to CIS AWS Foundations Benchmark controls, PCI-DSS requirements 1, 2, 8, and 10, and HIPAA access, audit, and encryption controls. Each check corresponds to specific compliance items for reporting.

What are the limitations of CLI-based AWS security audits?▼

CLI audits capture a point-in-time snapshot and only cover the services explicitly queried. They do not replace continuous monitoring tools like AWS Security Hub, and results still require environment-specific validation and expert review before remediation.