雲端安全檢查
security_cloud 模組有 8 項檢查。雲端安全態勢(Azure Resource Graph、Defender for Cloud)及可選的 Wazuh 發現,一律唯讀。Resource Graph 檢查只查看資源的 resource_id(一個資源、一個資源群組或整個訂閱);params.scope = resource 會將該屬性設為必填,params.scope = all 則查看該身份可讀取的每個訂閱。Defender for Cloud 與 Wazuh 需要分別開啟(功能 security.defender、security.wazuh);建議可以隱藏(security.recommendations)。
本頁面在建置文件時由產品的檢查目錄產生,因此規則、間隔及預設嚴重程度一律與你正在閱讀的版本相符。閾值是預設值;實體和資源可以覆蓋這些閾值。
| 檢查 | 間隔 | 預設嚴重性 | 規則 |
|---|---|---|---|
security_cloud.nsg_exposed_portsManagement ports open to the Internet | 900s | critical | warning >= 1 count / critical >= 1 count |
security_cloud.public_storageStorage accounts allowing anonymous blob access or weak transport | 3600s | warning | publicBlob = false, httpsOnly = true, minTls = TLS1_2 |
security_cloud.keyvault_protectionKey Vault purge protection and soft delete | 3600s | warning | purge = true, softDelete = true |
security_cloud.rsv_protectionRecovery Services Vault soft delete and immutability | 3600s | warning | softDelete = Enabled,AlwaysON |
security_cloud.role_assignment_changesRBAC Owner / Contributor assignment changes | 600s | critical | any change |
security_cloud.defender_assessmentsDefender for Cloud recommendations and secure score | 3600s | warning | warning >= 1 count |
security_cloud.wazuh_alertsWazuh alerts (HIDS, FIM, CVE, CIS) | 300s | warning | warning >= 1 count |
security_cloud.platform_imagesPlatform container images and dependencies (CVE scan) | 3600s | warning | warning >= 1 count / critical >= 1 count |
檢查
security_cloud.nsg_exposed_ports
Management ports open to the Internet
- 量度
exposed_rules(count) · 每900s·azure_graph- 規則
warning >= 1 count / critical >= 1 count· 預設嚴重性: critical- 措施
- Find who needs the access. Replace the rule with Azure Bastion, a VPN or Defender for Cloud just-in-time VM access; if a public rule must stay, restrict its source to known addresses. Change the NSG in a change window and confirm the service is still reachable from where it should be.
- 基準
- CIS Microsoft Azure Foundations Benchmark 6.x: never expose 22/3389/1433/5432/5985/5986 to the Internet; use Bastion, a VPN or just-in-time access. · 來源
security_cloud.public_storage
Storage accounts allowing anonymous blob access or weak transport
- 量度
posture· 每3600s·azure_graph- 規則
publicBlob = false, httpsOnly = true, minTls = TLS1_2· 預設嚴重性: warning- 措施
- Check with the application owner that no client reads blobs anonymously (storage metrics show anonymous requests), then set "Allow Blob anonymous access" to Disabled, "Secure transfer required" to Enabled and the minimum TLS version to 1.2 on the account, in a change window.
- 基準
- CIS Azure Foundations 3.x. An unset allowBlobPublicAccess is reported for review (older accounts may still allow it). · 來源
security_cloud.keyvault_protection
Key Vault purge protection and soft delete
- 量度
posture· 每3600s·azure_graph- 規則
purge = true, softDelete = true· 預設嚴重性: warning- 措施
- Enable purge protection on the vault (it cannot be turned off again, and a deleted vault then stays recoverable for its retention period). Plan it with the vault owner, since automation that deletes and recreates vaults with the same name will stop working.
- 基準
- CIS Azure Foundations 8.x. Soft delete can no longer be turned off on new vaults; purge protection is off unless enabled. · 來源
security_cloud.rsv_protection
Recovery Services Vault soft delete and immutability
- 量度
posture· 每3600s·azure_graph- 規則
softDelete = Enabled,AlwaysON· 預設嚴重性: warning- 措施
- Turn soft delete on for the vault (Properties › Security settings) and, for production vaults, consider "always on" soft delete and an immutable vault. Coordinate with the backup owner because deleted backup data is then kept (and billed) for the retention period.
- 基準
- Soft delete protects backups from ransomware deletion; immutability is recommended for production vaults. · 來源
security_cloud.role_assignment_changes
RBAC Owner / Contributor assignment changes
- 量度
assignments· 每600s·azure_graph- 規則
any change· 預設嚴重性: critical- 措施
- Look up the change in the subscription's Activity Log (operation "Create role assignment") to see who made it, and confirm an approved request exists. Remove an unapproved assignment and review the principal's activity; prefer PIM-eligible assignments for Owner. Resolve the event once reviewed.
- 基準
- Owner (8e3af657…) and Contributor (b24988ac…) assignments added or removed raise an event (the first run only records the baseline); the Activity Log names the actor. · 來源
security_cloud.defender_assessments
Defender for Cloud recommendations and secure score
- 量度
unhealthy_assessments(count) · 每3600s·defender- 規則
warning >= 1 count· 預設嚴重性: warning- 措施
- Follow the remediation steps Defender for Cloud gives for the recommendation (shown with the finding), with the owner of the resource and in a change window. Exempt it in Defender, or accept the risk here, when it does not apply.
- 基準
- Category 'recommendation'; hidden when the entity disables recommendations. High severity maps to critical findings. · 來源
security_cloud.wazuh_alerts
Wazuh alerts (HIDS, FIM, CVE, CIS)
- 量度
alerts(count) · 每300s·wazuh- 規則
warning >= 1 count· 預設嚴重性: warning- 措施
- Open the alert in the Wazuh dashboard (agent and rule shown with the finding) and follow the rule's guidance; for a vulnerability, update the package named in the evidence through your patching process. Tune or silence a rule in Wazuh when it is noise.
- 基準
- Rule level 7–11 → warning, 12+ → critical; vulnerabilities Critical → critical, High → warning. Wazuh agents are deployed by NinjaOne, never by the platform. Source can be disabled per entity. · 來源
security_cloud.platform_images
Platform container images and dependencies (CVE scan)
- 量度
critical_cves(count) · 每3600s·manual- 規則
warning >= 1 count / critical >= 1 count· 預設嚴重性: warning- 措施
- Upgrade to the newest release of the platform, which rebuilds the images with fixed packages; if none fixes the vulnerability yet, check whether the affected package is reachable in this deployment and accept the risk with that reason until a release does.
- 基準
- Trivy and pip-audit run in CI; the report is posted to the API and shown as the platform self-check area. · 來源