OpenParable
Skip to content
← Back to skills

Cis Azure Database 6.3

DevOps & Security
cis-azure-database-6.3

Cis Azure Database 6.3 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ensure 'Public Network Access' is 'Disabled' for Azure Database for PostgreSQL

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/Microsoft_Azure/CIS_Microsoft_Azure_Database_Services_Benchmark_v2.0.0/cis-azure-database-6.3/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-azure-database-6-3, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

6.3 Ensure 'Public Network Access' is 'Disabled' for Azure Database for PostgreSQL (Automated)

Profile Applicability

  • Level 2

Description

Setting public networks to disabled prevents requests from the public internet.

Rationale

Disabling public network access prevents Azure Database for PostgreSQL servers from communicating with the public internet and requires the use of Private endpoints for granular network control and segmentation.

Impact

Disabling 'Public Network Access' forces the requirement of the use of Private Endpoints for network connectivity which will require some additional consideration from a network architecture perspective and will introduce cost based on the inbound/outbound data being processed by the Private Endpoint.

Audit Procedure

Audit from Azure Portal

  1. From Azure Database for PostgreSQL select the database you wish to audit.
  2. In the left column expand > Settings.
  3. Select Networking.
  4. Ensure that Public network access is not selected.

Audit from PowerShell

Run the following command with the identifying details for your subscription:

Get-AzPostgreSqlFlexibleServer -name <servername> -ResourceGroupName <resourcegroupname> | Select-Object -property NetworkPublicNetworkAccess

Ensure that Public network access is Disabled.

Audit from Azure Policy

Policy ID: b52376f7-9612-48a1-81cd-1f0e2bc4b3e5 Name: 'Public network access should be disabled for PostgreSQL flexible servers'

Expected Result

Public network access should be Disabled.

Remediation

Remediate from Azure Portal

  1. From Azure Database for PostgreSQL select the database you wish to audit.
  2. In the left column expand > Settings.
  3. Select Networking.
  4. Uncheck/deselect the Public network access option.
  5. Click Save.

Remediate from PowerShell

Update-AzPostgreSqlFlexibleServer -name <servername> -ResourceGroupName <resourcegroupname> -PublicNetworkAccess "Disabled"

Default Value

By default, Public network access is enabled for Azure Database for PostgreSQL.

References

  1. https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-networking

Profile

  • Level 2