Skip to content

feat(query): implements "Beta - Recovery Services Vault Without Immutability"#7850

Merged
cx-andre-pereira merged 4 commits into
masterfrom
AST-120698_72_ensure_immutability_for_recovery_services_vaults
Dec 12, 2025
Merged

feat(query): implements "Beta - Recovery Services Vault Without Immutability"#7850
cx-andre-pereira merged 4 commits into
masterfrom
AST-120698_72_ensure_immutability_for_recovery_services_vaults

Conversation

@cx-andre-pereira

@cx-andre-pereira cx-andre-pereira commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

Reason for Proposed Changes

  • Currently there is no query to ensure that resources of type "azurerm_recovery_services_vault" do not set the "immutability" field to Disabled

  • Quoting CIS_Microsoft_Azure_Storage_Services_Benchmark_v1.0.0 page 83: "Enabling the immutable vault ensures that backup data is protected from unauthorized or accidental deletion. By locking the setting and making it irreversible, malicious actors are prevented from disabling the setting and deleting backups."

Proposed Changes

  • Implemented the missing query.
  • The query will flag any "azurerm_recovery_services_vault" resource that sets "immutability" to Disabled, or does not set the field since it is disabled by default.

I submit this contribution under the Apache-2.0 license.

@github-actions github-actions Bot added feature New feature query New query feature labels Nov 14, 2025
@github-actions

github-actions Bot commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

kics-logo

KICS version: v2.1.17

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 0
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 47
Queries failed to execute placeholder 0
Execution time placeholder 0

@github-actions github-actions Bot added terraform Terraform query azure PR related with Azure Cloud labels Nov 14, 2025
@cx-andre-pereira cx-andre-pereira marked this pull request as ready for review November 14, 2025 14:20
@cx-andre-pereira cx-andre-pereira requested a review from a team as a code owner November 14, 2025 14:20

@cx-eduardo-semanas cx-eduardo-semanas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cx-eduardo-semanas cx-eduardo-semanas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cx-andre-pereira cx-andre-pereira merged commit 854c0be into master Dec 12, 2025
29 checks passed
@cx-andre-pereira cx-andre-pereira deleted the AST-120698_72_ensure_immutability_for_recovery_services_vaults branch December 12, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure PR related with Azure Cloud feature New feature query New query feature terraform Terraform query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants