Detecting Misconfigured Azure Storage
Overview
Cybersecurity skill for detecting misconfigured azure storage. Follows industry best practices and security standards.
When to Use
Trigger phrases:
"detecting misconfigured azure storage"
"Detecting misconfigured Azure Storage accounts including publicly accessible blo"
When performing a security audit of Azure Storage accounts across subscriptions
When responding to Microsoft Defender for Storage alerts about anonymous access or data exfiltration
When compliance requires verification of encryption, network restrictions, and access logging
When investigating potential data exposure through publicly accessible blob containers
When onboarding Azure subscriptions and establishing storage security baselines
Do not use for Azure SQL or Cosmos DB security auditing (use dedicated database security tools), for real-time threat detection on storage operations (use Defender for Storage), or for Azure Files or Data Lake Gen2 specific auditing without adapting the checks.
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- Azure CLI installed and authenticated (
az login) with Reader and Storage Account Contributor roles
- Az PowerShell module installed for advanced queries (
Install-Module Az.Storage)
- Microsoft Defender for Storage enabled for threat detection
- Access to Azure Resource Graph for cross-subscription queries
- ScoutSuite or Prowler Azure provider for automated assessment
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Define Detection Scope — Identify the specific misconfigured azure storage techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.
- Collect Baseline Data — Gather historical logs and establish normal behavior patterns for misconfigured azure storage.
- Build Detection Queries — Write detection rules, Sigma rules, or SIEM queries targeting misconfigured azure storage indicators.
- Execute Hunts — Run queries against the collected data, starting with broad filters and narrowing down.
- Triage Results — Investigate alerts, filter false positives, and validate findings against known-good behavior.
- Document Findings — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.
Tools
- SIEM Platform — Central log aggregation and query execution
- Sigma Rules — Vendor-agnostic detection rule format
- MITRE ATT&CK Navigator — Technique mapping and coverage analysis
Process
- Reconnaissance — Gather target information, identify attack surface, enumerate services
- Analysis/Exploitation — Execute the technique, analyze results, document findings
- Reporting — Document IOCs, write findings, provide remediation recommendations
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: detecting-misconfigured-azure-storage3description: Use when detecting misconfigured Azure Storage accounts including publicly4 accessible blob containers, missing encryption settings, overly permissive SAS tokens,5 disabled logging, and network access violations using Azure CLI, PowerShell, and6 Microsoft Defender for Storage. . Use when working with detecting misconfigured7 azure storage.8domain: cybersecurity9tags:10- cloud-security11- azure12- storage-security13- blob-storage14- sas-tokens15- data-protection16subdomain: cloud-security17version: '1.0'18author: oyi7719license: Apache-2.020nist_ai_rmf:21- MEASURE-2.722- MAP-5.123- MANAGE-2.424atlas_techniques:25- AML.T007026- AML.T006627- AML.T008228nist_csf:29- PR.IR-0130- ID.AM-0831- GV.SC-0632- DE.CM-0133category: cybersecurity34metadata:35 source: https://skillmd.com/skills/oyi77/detecting-misconfigured-azure-storage36---3738# Detecting Misconfigured Azure Storage3940## Overview4142Cybersecurity skill for detecting misconfigured azure storage. Follows industry best practices and security standards.4344## When to Use45**Trigger phrases:**46- "detecting misconfigured azure storage"47- "Detecting misconfigured Azure Storage accounts including publicly accessible blo"484950- When performing a security audit of Azure Storage accounts across subscriptions51- When responding to Microsoft Defender for Storage alerts about anonymous access or data exfiltration52- When compliance requires verification of encryption, network restrictions, and access logging53- When investigating potential data exposure through publicly accessible blob containers54- When onboarding Azure subscriptions and establishing storage security baselines5556**Do not use** for Azure SQL or Cosmos DB security auditing (use dedicated database security tools), for real-time threat detection on storage operations (use Defender for Storage), or for Azure Files or Data Lake Gen2 specific auditing without adapting the checks.575859## When NOT to Use6061- When you lack proper authorization for testing62- For production systems without change management63- When the task requires legal or compliance expertise beyond technical scope646566## Prerequisites6768- Azure CLI installed and authenticated (`az login`) with Reader and Storage Account Contributor roles69- Az PowerShell module installed for advanced queries (`Install-Module Az.Storage`)70- Microsoft Defender for Storage enabled for threat detection71- Access to Azure Resource Graph for cross-subscription queries72- ScoutSuite or Prowler Azure provider for automated assessment7374## Workflow7576```python77# Example: IOC detection78import re7980IOC_PATTERNS = {81 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",82 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",83 "hash_md5": r"\b[a-f0-9]{32}\b",84 "hash_sha256": r"\b[a-f0-9]{64}\b",85}8687def extract_iocs(text: str) -> dict:88 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}89```90911. **Define Detection Scope** — Identify the specific misconfigured azure storage techniques or indicators to hunt. Map to MITRE ATT&CK tactics/techniques where applicable.922. **Collect Baseline Data** — Gather historical logs and establish normal behavior patterns for misconfigured azure storage.933. **Build Detection Queries** — Write detection rules, Sigma rules, or SIEM queries targeting misconfigured azure storage indicators.944. **Execute Hunts** — Run queries against the collected data, starting with broad filters and narrowing down.955. **Triage Results** — Investigate alerts, filter false positives, and validate findings against known-good behavior.966. **Document Findings** — Record confirmed detections, IOCs, and affected systems. Update detection rules based on findings.9798## Tools99100- **SIEM Platform** — Central log aggregation and query execution101- **Sigma Rules** — Vendor-agnostic detection rule format102- **MITRE ATT&CK Navigator** — Technique mapping and coverage analysis103104105## Process1061071. **Reconnaissance** — Gather target information, identify attack surface, enumerate services1081. **Analysis/Exploitation** — Execute the technique, analyze results, document findings1091. **Reporting** — Document IOCs, write findings, provide remediation recommendations110111## Verification112113- [ ] All misconfigured azure storage procedures executed completely and documented114- [ ] Findings validated against multiple data sources115- [ ] False positives identified and filtered116- [ ] Results documented with evidence and timestamps117- [ ] Recommendations provided with risk-based prioritization118119## Anti-Rationalization Table120121| Rationalization | Reality |122|---|---|123| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |124| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |125| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |