AWS Security Scanner Skill
Purpose
Automated AWS security configuration scanning and hardening to identify misconfigurations, compliance violations, and security risks across AWS accounts and organizations.
Capabilities
Prowler Security Assessments
- Run comprehensive Prowler security scans
- Execute CIS AWS Foundations Benchmark checks
- Run AWS Well-Architected security pillar assessments
- Check PCI DSS, HIPAA, GDPR compliance
- Generate multi-format reports (HTML, CSV, JSON)
IAM Security Analysis
- Analyze IAM policies for over-permissive access
- Check for unused credentials and access keys
- Identify IAM users without MFA
- Review cross-account access configurations
- Detect privilege escalation paths
- Analyze service control policies (SCPs)
S3 Bucket Security
- Identify publicly accessible buckets
- Check bucket encryption configurations
- Review bucket policies and ACLs
- Verify access logging enabled
- Check for sensitive data exposure
- Validate versioning and replication
Network Security Analysis
- Review security group configurations
- Analyze Network ACLs
- Check VPC flow log enablement
- Identify public-facing resources
- Validate VPC endpoint configurations
- Check for overly permissive rules
Encryption Verification
- Verify EBS volume encryption
- Check RDS encryption settings
- Validate S3 encryption configurations
- Review KMS key policies
- Check secrets manager configurations
- Verify certificate validity
Logging and Monitoring
- Validate CloudTrail configuration
- Check CloudWatch log retention
- Verify GuardDuty enablement
- Review Security Hub findings
- Check Config rule compliance
- Validate alarm configurations
Compliance Mapping
- Map findings to CIS Benchmarks
- Generate SOC 2 evidence
- Track PCI DSS compliance
- Document HIPAA controls
- Map to NIST frameworks
AWS Services Covered
| Category |
Services |
| Identity |
IAM, SSO, Organizations |
| Compute |
EC2, Lambda, ECS, EKS |
| Storage |
S3, EBS, EFS, Glacier |
| Database |
RDS, DynamoDB, Redshift |
| Network |
VPC, CloudFront, Route53 |
| Security |
Security Hub, GuardDuty, KMS |
| Monitoring |
CloudTrail, CloudWatch, Config |
Integrations
- Prowler: Open-source AWS security tool
- AWS Security Hub: Centralized security findings
- AWS Config: Configuration compliance
- AWS CloudTrail: API activity logging
- AWS GuardDuty: Threat detection
- AWS IAM Access Analyzer: Access analysis
Target Processes
- Cloud Security Architecture Review
- Compliance Monitoring
- Security Posture Assessment
- AWS Account Hardening
Input Schema
{
"type": "object",
"properties": {
"scanType": {
"type": "string",
"enum": ["full", "cis", "pci", "hipaa", "gdpr", "custom"],
"description": "Type of security scan"
},
"awsAccounts": {
"type": "array",
"items": { "type": "string" },
"description": "AWS account IDs to scan"
},
"regions": {
"type": "array",
"items": { "type": "string" },
"description": "AWS regions to scan"
},
"services": {
"type": "array",
"items": { "type": "string" },
"description": "Specific services to scan"
},
"severityThreshold": {
"type": "string",
"enum": ["critical", "high", "medium", "low", "informational"]
},
"complianceFrameworks": {
"type": "array",
"items": {
"type": "string",
"enum": ["CIS", "PCI-DSS", "HIPAA", "GDPR", "SOC2", "NIST"]
}
},
"excludeChecks": {
"type": "array",
"items": { "type": "string" },
"description": "Check IDs to exclude"
}
},
"required": ["scanType"]
}
Output Schema
{
"type": "object",
"properties": {
"scanId": {
"type": "string"
},
"scanTimestamp": {
"type": "string",
"format": "date-time"
},
"accountsScanned": {
"type": "array"
},
"regionsScanned": {
"type": "array"
},
"summary": {
"type": "object",
"properties": {
"totalChecks": { "type": "integer" },
"passed": { "type": "integer" },
"failed": { "type": "integer" },
"warnings": { "type": "integer" }
}
},
"findingsBySeverity": {
"type": "object",
"properties": {
"critical": { "type": "integer" },
"high": { "type": "integer" },
"medium": { "type": "integer" },
"low": { "type": "integer" }
}
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"checkId": { "type": "string" },
"severity": { "type": "string" },
"service": { "type": "string" },
"region": { "type": "string" },
"resourceId": { "type": "string" },
"description": { "type": "string" },
"remediation": { "type": "string" },
"complianceMapping": { "type": "array" }
}
}
},
"complianceStatus": {
"type": "object"
},
"recommendations": {
"type": "array",
"items": { "type": "string" }
},
"reportPaths": {
"type": "object",
"properties": {
"html": { "type": "string" },
"csv": { "type": "string" },
"json": { "type": "string" }
}
}
}
}
Usage Example
skill: {
name: 'aws-security-scanner',
context: {
scanType: 'cis',
awsAccounts: ['123456789012'],
regions: ['us-east-1', 'us-west-2'],
complianceFrameworks: ['CIS', 'SOC2'],
severityThreshold: 'medium'
}
}
1---
2name: aws-security-scanner
3description: AWS security configuration scanning and hardening using Prowler, Security Hub, and AWS Config
4allowed-tools:
5 - Bash
6 - Read
7 - Write
8 - Glob
9 - Grep
10 - WebFetch
11metadata:
12 source: https://skillmd.com/skills/aibot88/aws-security-scanner
13---
14
15# AWS Security Scanner Skill
16
17## Purpose
18
19Automated AWS security configuration scanning and hardening to identify misconfigurations, compliance violations, and security risks across AWS accounts and organizations.
20
21## Capabilities
22
23### Prowler Security Assessments
24- Run comprehensive Prowler security scans
25- Execute CIS AWS Foundations Benchmark checks
26- Run AWS Well-Architected security pillar assessments
27- Check PCI DSS, HIPAA, GDPR compliance
28- Generate multi-format reports (HTML, CSV, JSON)
29
30### IAM Security Analysis
31- Analyze IAM policies for over-permissive access
32- Check for unused credentials and access keys
33- Identify IAM users without MFA
34- Review cross-account access configurations
35- Detect privilege escalation paths
36- Analyze service control policies (SCPs)
37
38### S3 Bucket Security
39- Identify publicly accessible buckets
40- Check bucket encryption configurations
41- Review bucket policies and ACLs
42- Verify access logging enabled
43- Check for sensitive data exposure
44- Validate versioning and replication
45
46### Network Security Analysis
47- Review security group configurations
48- Analyze Network ACLs
49- Check VPC flow log enablement
50- Identify public-facing resources
51- Validate VPC endpoint configurations
52- Check for overly permissive rules
53
54### Encryption Verification
55- Verify EBS volume encryption
56- Check RDS encryption settings
57- Validate S3 encryption configurations
58- Review KMS key policies
59- Check secrets manager configurations
60- Verify certificate validity
61
62### Logging and Monitoring
63- Validate CloudTrail configuration
64- Check CloudWatch log retention
65- Verify GuardDuty enablement
66- Review Security Hub findings
67- Check Config rule compliance
68- Validate alarm configurations
69
70### Compliance Mapping
71- Map findings to CIS Benchmarks
72- Generate SOC 2 evidence
73- Track PCI DSS compliance
74- Document HIPAA controls
75- Map to NIST frameworks
76
77## AWS Services Covered
78
79| Category | Services |
80|----------|----------|
81| Identity | IAM, SSO, Organizations |
82| Compute | EC2, Lambda, ECS, EKS |
83| Storage | S3, EBS, EFS, Glacier |
84| Database | RDS, DynamoDB, Redshift |
85| Network | VPC, CloudFront, Route53 |
86| Security | Security Hub, GuardDuty, KMS |
87| Monitoring | CloudTrail, CloudWatch, Config |
88
89## Integrations
90
91- **Prowler**: Open-source AWS security tool
92- **AWS Security Hub**: Centralized security findings
93- **AWS Config**: Configuration compliance
94- **AWS CloudTrail**: API activity logging
95- **AWS GuardDuty**: Threat detection
96- **AWS IAM Access Analyzer**: Access analysis
97
98## Target Processes
99
100- Cloud Security Architecture Review
101- Compliance Monitoring
102- Security Posture Assessment
103- AWS Account Hardening
104
105## Input Schema
106
107```json
108{
109 "type": "object",
110 "properties": {
111 "scanType": {
112 "type": "string",
113 "enum": ["full", "cis", "pci", "hipaa", "gdpr", "custom"],
114 "description": "Type of security scan"
115 },
116 "awsAccounts": {
117 "type": "array",
118 "items": { "type": "string" },
119 "description": "AWS account IDs to scan"
120 },
121 "regions": {
122 "type": "array",
123 "items": { "type": "string" },
124 "description": "AWS regions to scan"
125 },
126 "services": {
127 "type": "array",
128 "items": { "type": "string" },
129 "description": "Specific services to scan"
130 },
131 "severityThreshold": {
132 "type": "string",
133 "enum": ["critical", "high", "medium", "low", "informational"]
134 },
135 "complianceFrameworks": {
136 "type": "array",
137 "items": {
138 "type": "string",
139 "enum": ["CIS", "PCI-DSS", "HIPAA", "GDPR", "SOC2", "NIST"]
140 }
141 },
142 "excludeChecks": {
143 "type": "array",
144 "items": { "type": "string" },
145 "description": "Check IDs to exclude"
146 }
147 },
148 "required": ["scanType"]
149}
150```
151
152## Output Schema
153
154```json
155{
156 "type": "object",
157 "properties": {
158 "scanId": {
159 "type": "string"
160 },
161 "scanTimestamp": {
162 "type": "string",
163 "format": "date-time"
164 },
165 "accountsScanned": {
166 "type": "array"
167 },
168 "regionsScanned": {
169 "type": "array"
170 },
171 "summary": {
172 "type": "object",
173 "properties": {
174 "totalChecks": { "type": "integer" },
175 "passed": { "type": "integer" },
176 "failed": { "type": "integer" },
177 "warnings": { "type": "integer" }
178 }
179 },
180 "findingsBySeverity": {
181 "type": "object",
182 "properties": {
183 "critical": { "type": "integer" },
184 "high": { "type": "integer" },
185 "medium": { "type": "integer" },
186 "low": { "type": "integer" }
187 }
188 },
189 "findings": {
190 "type": "array",
191 "items": {
192 "type": "object",
193 "properties": {
194 "checkId": { "type": "string" },
195 "severity": { "type": "string" },
196 "service": { "type": "string" },
197 "region": { "type": "string" },
198 "resourceId": { "type": "string" },
199 "description": { "type": "string" },
200 "remediation": { "type": "string" },
201 "complianceMapping": { "type": "array" }
202 }
203 }
204 },
205 "complianceStatus": {
206 "type": "object"
207 },
208 "recommendations": {
209 "type": "array",
210 "items": { "type": "string" }
211 },
212 "reportPaths": {
213 "type": "object",
214 "properties": {
215 "html": { "type": "string" },
216 "csv": { "type": "string" },
217 "json": { "type": "string" }
218 }
219 }
220 }
221}
222```
223
224## Usage Example
225
226```javascript
227skill: {
228 name: 'aws-security-scanner',
229 context: {
230 scanType: 'cis',
231 awsAccounts: ['123456789012'],
232 regions: ['us-east-1', 'us-west-2'],
233 complianceFrameworks: ['CIS', 'SOC2'],
234 severityThreshold: 'medium'
235 }
236}
237```