用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-database-2-7命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-azure-database-2.7 |
| description | Ensure Azure Cache for Redis is Using a Private Link |
| category | cis-azure-database |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","redis","cache"] |
| cis_id | 2.7 |
| cis_benchmark | CIS Microsoft Azure Database Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Private links make resources available via a private endpoint to a network you select. Tunneling between subscriptions, resource groups, without the need for traditional network routing.
Networking communication should be segmented to prevent undesired interception.
If improperly configured network communication between your Azure Cache for Redis and other resources may be interrupted. This is only concerning resources or services being offered to other Azure tenants.
Azure Cache for Redis.Administration menu in the left column.Get-AzPrivateEndpoint -ResourceGroupName <ResourceGroupName> |
Where-Object{
$_.PrivateLinkServiceConnections.PrivateLinkServiceId -eq
<AzureCacheforRedisName>
}
960e650e-9ce3-4316-9590-8ee2c016ca2f - Name: 'Azure Cache for Redis should use private link'At least one private endpoint should be associated with the Azure Cache for Redis instance.
Azure Cache for Redis.Private Endpoints.+ Private Endpoint.Next : Resource >.Connect to an Azure resource in my directory.redisEnterprise.+ Create to create a new one, the select Next.$resourceGroup = "<resourcegroup>"
$virtualNetName = "<virtualnetworkname>"
$subnetName = "<subnetName>"
$redisName = "<rediscachename>"
$privateEndpointName = "<privateendpointname>"
$dnsZoneName = "<dnsfqdn>"
$dnsLinkName = "<redisdnsname>"
# Get existing resources
$vnet = Get-AzVirtualNetwork -Name $virtualNetName -ResourceGroupName $resourceGroup
$subnet = Get-AzVirtualNetworkSubnetConfig -VirtualNetwork $virtualNetName -Name $subnetName
$redis = Get-AzRedisCache -Name $redisName -ResourceGroupName $resourceGroup
# Validate Redis resource ID for Private Endpoint connection
$redisResourceId = $redis.Id
# Link DNS Zone to Virtual Network
$link = New-AzPrivateDnsVirtualNetworkLink `
-ZoneName $dnsZoneName `
-ResourceGroupName $resourceGroup `
-Name $dnsLinkName `
-VirtualNetworkId $vnet.Id `
-EnableRegistration false
# Create the Private Endpoint
$privateLinkConnection = New-AzPrivateLinkServiceConnection `
-Name $privateEndpointName `
-PrivateLinkServiceId $redisResourceId `
-GroupId "redisCache"
$privateEndpoint = New-AzPrivateEndpoint `
-Name $privateEndpointName `
-ResourceGroupName $resourceGroup `
-Location $location `
-Subnet $subnet `
-PrivateLinkServiceConnection $privateLinkConnection
Unless configured at resource creation, by default no private links are used in Azure Cache for Redis.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 12.2 Establish and Maintain a Secure Network Architecture | X | X | |
| v7 | 14.1 Segment the Network Based on Sensitivity | X | X |