Skip to content

Conversation

@cx-andre-pereira
Copy link
Contributor

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

Reason for Proposed Changes

  • Currently there is no query to ensure that resources of type "azurerm_recovery_services_vault" set the "public_network_access_enabled" field to false.

  • Quoting CIS_Microsoft_Azure_Storage_Services_Benchmark_v1.0.0 page 94: "Disable public network access on Recovery Services vaults to prevent exposure to the internet and reduce the risk of unauthorized access. Use private endpoints and Azure Role-Based Access Control (RBAC) to securely manage access within trusted networks." and "Disabling public network access improves security by ensuring that a Recovery Services vault is not exposed on the public internet.".

Proposed Changes

  • Implemented the missing query.
  • The query will flag any "azurerm_recovery_services_vault" resource that sets "public_network_access_enabled" to true, or do not set the field since it is enabled 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
Copy link
Contributor

kics-logo

KICS version: v2.1.13

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 15:01
@cx-andre-pereira cx-andre-pereira requested a review from a team as a code owner November 14, 2025 15:01
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.

1 participant