Azure Security Scanner Skill
Purpose
Automated Azure security configuration scanning and hardening to identify misconfigurations, compliance violations, and security risks across Azure subscriptions and tenants.
Capabilities
Azure Security Center Assessments
- Run Microsoft Defender for Cloud security assessments
- Check secure score and recommendations
- Review security alerts and incidents
- Validate just-in-time VM access
- Check adaptive application controls
- Monitor regulatory compliance dashboards
Azure AD Security Analysis
- Analyze Azure AD conditional access policies
- Check MFA enforcement status
- Review privileged identity management (PIM)
- Identify risky sign-ins and users
- Analyze app registrations and service principals
- Check guest user access configurations
Network Security Group Analysis
- Review NSG rules for overly permissive access
- Check for open management ports (RDP, SSH)
- Validate application security groups
- Review Azure Firewall configurations
- Check DDoS protection status
- Analyze virtual network configurations
Storage Account Security
- Identify publicly accessible storage accounts
- Check encryption configurations (SSE, CMK)
- Review shared access signatures (SAS)
- Validate network access rules
- Check secure transfer requirements
- Review access keys rotation
Key Vault Security
- Check Key Vault access policies
- Validate network restrictions
- Review key expiration policies
- Check certificate configurations
- Verify soft-delete enablement
- Audit secret access patterns
Activity Logging Verification
- Validate Azure Activity Log configuration
- Check diagnostic settings on resources
- Review Log Analytics workspace security
- Verify Azure Monitor alert rules
- Check Azure Sentinel integration
Azure Policy Compliance
- Assess built-in policy compliance
- Check custom policy assignments
- Review policy exemptions
- Validate initiative assignments
- Generate compliance reports
Azure Services Covered
| Category |
Services |
| Identity |
Azure AD, PIM, Conditional Access |
| Compute |
VMs, App Services, Functions, AKS |
| Storage |
Storage Accounts, Blobs, Files |
| Database |
SQL Database, Cosmos DB, PostgreSQL |
| Network |
VNets, NSGs, Azure Firewall, WAF |
| Security |
Defender, Key Vault, Sentinel |
| Monitoring |
Monitor, Log Analytics, Application Insights |
Integrations
- Microsoft Defender for Cloud: Cloud security posture management
- Azure Policy: Governance and compliance
- Azure AD: Identity security
- ScoutSuite: Multi-cloud security auditing
- Azure Sentinel: SIEM and SOAR
Target Processes
- Cloud Security Architecture Review
- Compliance Monitoring
- Azure Subscription Hardening
- Security Posture Assessment
Input Schema
{
"type": "object",
"properties": {
"scanType": {
"type": "string",
"enum": ["full", "cis", "pci", "hipaa", "iso27001", "custom"],
"description": "Type of security scan"
},
"subscriptions": {
"type": "array",
"items": { "type": "string" },
"description": "Azure subscription IDs to scan"
},
"resourceGroups": {
"type": "array",
"items": { "type": "string" },
"description": "Specific resource groups to scan"
},
"services": {
"type": "array",
"items": { "type": "string" },
"description": "Specific services to scan"
},
"severityThreshold": {
"type": "string",
"enum": ["critical", "high", "medium", "low"]
},
"complianceFrameworks": {
"type": "array",
"items": {
"type": "string",
"enum": ["CIS", "PCI-DSS", "HIPAA", "ISO27001", "SOC2", "NIST"]
}
},
"includeAzureAD": {
"type": "boolean",
"description": "Include Azure AD security checks"
}
},
"required": ["scanType"]
}
Output Schema
{
"type": "object",
"properties": {
"scanId": {
"type": "string"
},
"scanTimestamp": {
"type": "string",
"format": "date-time"
},
"subscriptionsScanned": {
"type": "array"
},
"secureScore": {
"type": "object",
"properties": {
"current": { "type": "number" },
"max": { "type": "number" },
"percentage": { "type": "number" }
}
},
"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" },
"resourceId": { "type": "string" },
"description": { "type": "string" },
"remediation": { "type": "string" },
"complianceMapping": { "type": "array" }
}
}
},
"azureAdFindings": {
"type": "array"
},
"policyCompliance": {
"type": "object"
},
"recommendations": {
"type": "array",
"items": { "type": "string" }
}
}
}
Usage Example
skill: {
name: 'azure-security-scanner',
context: {
scanType: 'cis',
subscriptions: ['subscription-id-1'],
complianceFrameworks: ['CIS', 'SOC2'],
includeAzureAD: true,
severityThreshold: 'medium'
}
}
1---
2name: azure-security-scanner
3description: Azure security configuration scanning and hardening using Azure Security Center, Azure Policy, and ScoutSuite
4allowed-tools:
5 - Bash
6 - Read
7 - Write
8 - Glob
9 - Grep
10 - WebFetch
11metadata:
12 source: https://skillmd.com/skills/aibot88/azure-security-scanner
13---
14
15# Azure Security Scanner Skill
16
17## Purpose
18
19Automated Azure security configuration scanning and hardening to identify misconfigurations, compliance violations, and security risks across Azure subscriptions and tenants.
20
21## Capabilities
22
23### Azure Security Center Assessments
24- Run Microsoft Defender for Cloud security assessments
25- Check secure score and recommendations
26- Review security alerts and incidents
27- Validate just-in-time VM access
28- Check adaptive application controls
29- Monitor regulatory compliance dashboards
30
31### Azure AD Security Analysis
32- Analyze Azure AD conditional access policies
33- Check MFA enforcement status
34- Review privileged identity management (PIM)
35- Identify risky sign-ins and users
36- Analyze app registrations and service principals
37- Check guest user access configurations
38
39### Network Security Group Analysis
40- Review NSG rules for overly permissive access
41- Check for open management ports (RDP, SSH)
42- Validate application security groups
43- Review Azure Firewall configurations
44- Check DDoS protection status
45- Analyze virtual network configurations
46
47### Storage Account Security
48- Identify publicly accessible storage accounts
49- Check encryption configurations (SSE, CMK)
50- Review shared access signatures (SAS)
51- Validate network access rules
52- Check secure transfer requirements
53- Review access keys rotation
54
55### Key Vault Security
56- Check Key Vault access policies
57- Validate network restrictions
58- Review key expiration policies
59- Check certificate configurations
60- Verify soft-delete enablement
61- Audit secret access patterns
62
63### Activity Logging Verification
64- Validate Azure Activity Log configuration
65- Check diagnostic settings on resources
66- Review Log Analytics workspace security
67- Verify Azure Monitor alert rules
68- Check Azure Sentinel integration
69
70### Azure Policy Compliance
71- Assess built-in policy compliance
72- Check custom policy assignments
73- Review policy exemptions
74- Validate initiative assignments
75- Generate compliance reports
76
77## Azure Services Covered
78
79| Category | Services |
80|----------|----------|
81| Identity | Azure AD, PIM, Conditional Access |
82| Compute | VMs, App Services, Functions, AKS |
83| Storage | Storage Accounts, Blobs, Files |
84| Database | SQL Database, Cosmos DB, PostgreSQL |
85| Network | VNets, NSGs, Azure Firewall, WAF |
86| Security | Defender, Key Vault, Sentinel |
87| Monitoring | Monitor, Log Analytics, Application Insights |
88
89## Integrations
90
91- **Microsoft Defender for Cloud**: Cloud security posture management
92- **Azure Policy**: Governance and compliance
93- **Azure AD**: Identity security
94- **ScoutSuite**: Multi-cloud security auditing
95- **Azure Sentinel**: SIEM and SOAR
96
97## Target Processes
98
99- Cloud Security Architecture Review
100- Compliance Monitoring
101- Azure Subscription Hardening
102- Security Posture Assessment
103
104## Input Schema
105
106```json
107{
108 "type": "object",
109 "properties": {
110 "scanType": {
111 "type": "string",
112 "enum": ["full", "cis", "pci", "hipaa", "iso27001", "custom"],
113 "description": "Type of security scan"
114 },
115 "subscriptions": {
116 "type": "array",
117 "items": { "type": "string" },
118 "description": "Azure subscription IDs to scan"
119 },
120 "resourceGroups": {
121 "type": "array",
122 "items": { "type": "string" },
123 "description": "Specific resource groups to scan"
124 },
125 "services": {
126 "type": "array",
127 "items": { "type": "string" },
128 "description": "Specific services to scan"
129 },
130 "severityThreshold": {
131 "type": "string",
132 "enum": ["critical", "high", "medium", "low"]
133 },
134 "complianceFrameworks": {
135 "type": "array",
136 "items": {
137 "type": "string",
138 "enum": ["CIS", "PCI-DSS", "HIPAA", "ISO27001", "SOC2", "NIST"]
139 }
140 },
141 "includeAzureAD": {
142 "type": "boolean",
143 "description": "Include Azure AD security checks"
144 }
145 },
146 "required": ["scanType"]
147}
148```
149
150## Output Schema
151
152```json
153{
154 "type": "object",
155 "properties": {
156 "scanId": {
157 "type": "string"
158 },
159 "scanTimestamp": {
160 "type": "string",
161 "format": "date-time"
162 },
163 "subscriptionsScanned": {
164 "type": "array"
165 },
166 "secureScore": {
167 "type": "object",
168 "properties": {
169 "current": { "type": "number" },
170 "max": { "type": "number" },
171 "percentage": { "type": "number" }
172 }
173 },
174 "summary": {
175 "type": "object",
176 "properties": {
177 "totalChecks": { "type": "integer" },
178 "passed": { "type": "integer" },
179 "failed": { "type": "integer" },
180 "warnings": { "type": "integer" }
181 }
182 },
183 "findingsBySeverity": {
184 "type": "object",
185 "properties": {
186 "critical": { "type": "integer" },
187 "high": { "type": "integer" },
188 "medium": { "type": "integer" },
189 "low": { "type": "integer" }
190 }
191 },
192 "findings": {
193 "type": "array",
194 "items": {
195 "type": "object",
196 "properties": {
197 "checkId": { "type": "string" },
198 "severity": { "type": "string" },
199 "service": { "type": "string" },
200 "resourceId": { "type": "string" },
201 "description": { "type": "string" },
202 "remediation": { "type": "string" },
203 "complianceMapping": { "type": "array" }
204 }
205 }
206 },
207 "azureAdFindings": {
208 "type": "array"
209 },
210 "policyCompliance": {
211 "type": "object"
212 },
213 "recommendations": {
214 "type": "array",
215 "items": { "type": "string" }
216 }
217 }
218}
219```
220
221## Usage Example
222
223```javascript
224skill: {
225 name: 'azure-security-scanner',
226 context: {
227 scanType: 'cis',
228 subscriptions: ['subscription-id-1'],
229 complianceFrameworks: ['CIS', 'SOC2'],
230 includeAzureAD: true,
231 severityThreshold: 'medium'
232 }
233}
234```