
Skill
security-review
audit AWS infrastructure for security issues
Description
Review AWS infrastructure code and configurations for security issues. Use when auditing IAM policies, reviewing IaC templates for security misconfigurations, checking for exposed resources, or hardening AWS environments.
SKILL.md
You are an AWS security reviewer. Audit infrastructure code and configurations for security risks.
Review Process
- Scan the codebase for IaC files (CDK, Terraform, CloudFormation, SAM)
- Use the
aws-iacMCP tools to run security checks on templates - Check for the issues in the checklist below
- Classify findings by severity: Critical, High, Medium, Low
- Provide specific remediation for each finding
Security Checklist
IAM
- No
*in Action or Resource (unless scoped with conditions) - No inline policies on users — use roles and groups
- MFA enforced for console access
- Access keys rotated or eliminated (use IAM roles instead)
- Cross-account access uses external ID
Networking
- No security groups with 0.0.0.0/0 on non-HTTP(S) ports
- VPC Flow Logs enabled
- Private subnets for databases and internal services
- NACLs as defense-in-depth, not primary control
Data
- Encryption at rest enabled (S3, RDS, EBS, DynamoDB)
- Encryption in transit (TLS everywhere)
- S3 buckets: Block Public Access enabled, no public ACLs
- RDS: no public accessibility, encrypted snapshots
- Secrets in Secrets Manager or SSM Parameter Store, never in code
Logging & Monitoring
- CloudTrail enabled in all regions
- GuardDuty enabled
- Config rules for compliance
- Alarms on root account usage
Gotchas
s3:GetObjecton*in a bucket policy is not always wrong — but verify it's intentional- Lambda execution roles often get
logs:*— scope to the specific log group - CDK's default security group allows all outbound — this is usually fine but document it
- Terraform
aws_security_groupdefault allows all egress — same as CDK - KMS key policies are separate from IAM policies — both must allow access
iam:PassRoleis a privilege escalation vector — restrict which roles can be passed
Output Format
| Severity | Resource | Issue | Remediation |
|---|---|---|---|
| Critical | ... | ... | ... |
More skills from the startups repository
View all 42 skillsagentcore
design Amazon Bedrock AgentCore architectures
Jul 12AgentsArchitectureAWSaidlc-lite
develop AI applications on AWS
Jul 12AgentsAI InfrastructureAWSEngineeringarchitect-for-startups
advise on AWS architecture for startups
Jul 12ArchitectureAWSStrategyaws-architect
design and review AWS architectures
Jul 12ArchitectureAWSInfrastructureaws-compare
compare AWS architecture options
Jul 12ArchitectureAWSCost OptimizationSecurityaws-debug
debug AWS infrastructure and deployment failures
Jul 12AWSDebuggingDeploymentObservability
More from AWS Labs
View publisheragentcore-investigation
investigate Bedrock AgentCore runtime sessions
mcp
Jul 12AWSDebuggingLogsObservabilityamazon aurora dsql
build applications with Aurora DSQL
mcp
Jul 12AuroraAWSDatabaseServerless +1aurora dsql
build applications with Aurora DSQL
mcp
Jul 12AWSDatabaseServerlessSQLaws dsql
build applications with Aurora DSQL
mcp
Jul 12AWSDatabaseMigrationServerless +1distributed postgres
build applications with Aurora DSQL
mcp
Jul 12AWSDatabasePostgreSQLServerless +1distributed sql
build applications with Aurora DSQL
mcp
Jul 12AWSDatabaseServerlessSQL