用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-compute-2-1-18命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-azure-compute-2.1.18 |
| description | Ensure app is integrated with a virtual network |
| category | cis-azure-compute |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","app-service","vnet-integration","virtual-network","network-security"] |
| cis_id | 2.1.18 |
| cis_benchmark | CIS Microsoft Azure Compute Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Integrate App Service apps with a virtual network to enable access to resources in or through a non-internet-routable virtual network.
Integrate App Service apps with a virtual network for increased security and control.
Additional configuration may be required to ensure that traffic is routed properly.
App Services.Settings, click Networking.Outbound traffic configuration, next to Virtual network integration, ensure that a virtual network and subnet name are displayed.Run the following command to list apps:
az webapp list
For each app, run the following command to get the virtual network subnet ID:
az webapp show --resource-group <resource-group-name> --name <app-name> --query "virtualNetworkSubnetId"
Ensure that a virtual network subnet ID is returned.
Run the following command to list apps:
Get-AzWebApp
Run the following command to get the app in a resource group with a given name:
$app = Get-AzWebapp -ResourceGroupName <resource-group-name> -Name <app-name>
Run the following command to get the virtual network subnet ID:
$app.virtualNetworkSubnetId
Ensure that a virtual network subnet ID is returned. Repeat for each app.
A virtual network subnet ID should be returned, indicating the app is integrated with a virtual network.
App Services.Settings, click Networking.Outbound traffic configuration, next to Virtual network integration, click Not configured.Add virtual network integration.New connectionConnect.For each app requiring remediation, run the following command to integrate with a virtual network:
az webapp vnet-integration add --resource-group <resource-group-name> --name <app-name> --vnet <virtual-network-name> --subnet <subnet-name>
For each app requiring remediation, run the following commands to integrate with a virtual network:
Prepare parameters:
$siteName = '<app-name>'
$vNetResourceGroupName = '<virtual-network-resource-group-name>'
$appResourceGroupName = '<app-resource-group-name>'
$vNetName = '<virtual-network-name>'
$integrationSubnetName = '<subnet-name>'
$vNetSubscriptionId = '<subscription-guid>'
Check if the subnet is delegated to Microsoft.Web/serverFarms:
$vnet = Get-AzVirtualNetwork -Name $vNetName -ResourceGroupName $vNetResourceGroupName
$subnet = Get-AzVirtualNetworkSubnetConfig -Name $integrationSubnetName -VirtualNetwork $vnet
Get-AzDelegation -Subnet $subnet
Add delegation:
$subnet = Add-AzDelegation -Name "myDelegation" -ServiceName "Microsoft.Web/serverFarms" -Subnet $subnet
Set-AzVirtualNetwork -VirtualNetwork $vnet
Configure virtual network integration:
$subnetResourceId = "/subscriptions/$vNetSubscriptionId/resourceGroups/$vNetResourceGroupName/providers/Microsoft.Network/virtualNetworks/$vNetName/subnets/$integrationSubnetName"
$app = Get-AzResource -ResourceType Microsoft.Web/sites -ResourceGroupName $appResourceGroupName -ResourceName $siteName
$app.Properties.virtualNetworkSubnetId = $subnetResourceId
$app.Properties.vnetRouteAllEnabled = 'true'
$app | Set-AzResource -Force
By default, virtual network integration is not configured.
Level 1 | Automated