Skip to content

feat(scanner): add AZ-XXX-000/AZ-XXX-000 Trusted Launch and Managed Identity rules #269

Description

@parthrohit22

Rule 1: VM Trusted Launch not enabled

  • Rule ID: AZ-XXX-000
  • Severity: MEDIUM
  • Category: Compute
  • Frameworks: CIS / NIST / ISO 27001

What it detects: Generation 2 VMs where Trusted Launch (Secure Boot and vTPM) is not enabled.

Detection logic: Check security_profile.security_type == "TrustedLaunch" and that both
uefi_settings.secure_boot_enabled and uefi_settings.v_tpm_enabled are true. Skip
(NOT_APPLICABLE) Generation 1 VMs, which don't support Trusted Launch.

Why it matters: Without Secure Boot and vTPM, malicious or unsigned code can run during boot and
persist beneath the OS, evading OS-level antimalware and EDR entirely.

Remediation: Portal (VM > Configuration > Security type), or
az vm update --security-type TrustedLaunch --enable-secure-boot true --enable-vtpm true
(requires a restart; only supported VM sizes/images).

Test plan (Rule 1 only)

  • Tested against a real Azure free trial subscription
  • Compliant case returns no findings
  • Non-compliant case returns correct finding
  • Gen1 VMs correctly return NOT_APPLICABLE for the Trusted Launch rule, not a false finding
  • CLI playbook written and tested
  • All four compliance framework JSONs updated

Coordination

The originally-scoped "VM without Managed Identity" rule (Rule 2) has been removed from this
issue to avoid overlapping the enterprise identity work. The Trusted Launch rule (Rule 1) above
is the sole remaining scope of this issue. The VM Managed Identity rule is now tracked within the
enterprise identity packs — #254 (App Identity/OAuth), #258 (Privileged Access/Identity), and the
closed #193 (Managed Identity pack) — and should be picked up as part of that pack rather than as
a standalone rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuePerfect for first time contributorsnew-ruleAdding a new misconfiguration scan rulepriority: mediumShould be fixed soon but not blocking

    Type

    No type

    Projects

    Status
    🔨 In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions