You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Static websites** are served from the special `$web` container over a region-specific endpoint such as `https://<account>.z13.web.core.windows.net/`.
71
+
- The `$web` container may report `publicAccess: null` via the blob API, but files are still reachable through the static site endpoint, so dropping config/IaC artifacts there can leak secrets.
72
+
- Quick audit workflow:
73
+
74
+
```bash
75
+
# Identify storage accounts with static website hosting enabled
76
+
az storage blob service-properties show --account-name <acc-name> --auth-mode login
77
+
# Enumerate containers (including $web) and their public flags
78
+
az storage container list --account-name <acc-name> --auth-mode login
79
+
# List files served by the static site even when publicAccess is null
80
+
az storage blob list --container-name '$web' --account-name <acc-name> --auth-mode login
-**Locate storage accounts** that can expose data: `az storage account list | jq -r '.[] | select(.properties.allowBlobPublicAccess==true) | .name'`. If `allowBlobPublicAccess` is `false` you cannot turn containers public.
71
88
-**Inspect risky accounts** to confirm the flag and other weak settings: `az storage account show --name <acc> --query '{allow:properties.allowBlobPublicAccess, minTls:properties.minimumTlsVersion}'`.
0 commit comments