Cis Azure Database 5.3
DevOps & Securitycis-azure-database-5.3Cis Azure Database 5.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 MySQL
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
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-5.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-5-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.
5.3 Ensure 'Public Network Access' is 'Disabled' for Azure Database for MySQL (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 MySQL 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
Audit from Azure Portal
- From
Azure Database for MySQLselect the database you wish to audit. - In the left column expand
> Settings. - Select
Networking. - Ensure that Public network access is
not selected.
Audit from PowerShell
- Run the following command with the identifying details for your subscription.
Get-AzMySqlFlexibleServer -name <servername> -ResourceGroupName <resourcegroupname> | Select-Object -property NetworkPublicNetworkAccess
- Ensure that Public network access is
Disabled.
Audit From Azure Policy
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the associated Policy definition in Azure.
If referencing a printed copy, you can search Policy IDs from this URL: https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
- Policy ID:
c9299215-ae47-4f50-9c54-8a392f68a052- Name: 'Public network access should be disabled for MySQL flexible servers'
Expected Result
Public network access should be Disabled for the Azure Database for MySQL server.
Remediation
Remediate from Azure Portal
- From
Azure Database for MySQLselect the database you wish to audit. - In the left column expand
> Settings. - Select
Networking. - Uncheck the checkbox under
Public Access.
Default Value
Unless specified at resource creation, Azure Database for MySQL by default allows public network access, but authenticates requests.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 4.4 Implement and Manage a Firewall on Servers | X | X | X |
| v7 | 9.4 Apply Host-based Firewalls or Port Filtering | X | X | X |