用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-compute-15-7命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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-15.7 |
| description | Ensure Diagnostics settings logs for Batch accounts are enabled |
| category | cis-azure-compute |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","batch"] |
| cis_id | 15.7 |
| cis_benchmark | CIS Microsoft Azure Compute Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Azure Batch resource logs give important operational data such as job scheduling, pool management, and node communication. Having these logs enabled is necessary for monitoring, troubleshooting, and compliance auditing.
Enable resource logging for:
Costs for monitoring varies with Log Volume and storage destination. Not every resource needs to have logging enabled. It is important to determine the security classification of the data being processed by the given resource and adjust the logging based on which events need to be tracked. This is typically determined by governance and compliance requirements.
Retention is not addressed in this recommendation and should be considered depending on the needs of your organization. A 30-day minimum is recommended and longer may be required depending on the security or compliance framework your organization is following.
https://portal.azure.comBatch AccountsFor each Batch account perform the following:
Monitoring section and click on Diagnostic settingsIf no named Diagnostic setting exists in the table, the configuration fails this audit procedure.
Review the named Diagnostics settings in the table to ensure that the following categories are enabled:
Ensure that each is configured to send to a valid destination:
az batch account list --query "[].id" | xargs -I {} az monitor diagnostic-settings list --resource {} --query "value[].{account:{split('/')[8]}, name:name, enabled:logs[?enabled]}" -o tsv
Get-AzBatchAccount | ForEach-Object {
$settings = Get-AzDiagnosticSetting -ResourceId $_.Id
[PSCustomObject]@{
AccountName = $_.AccountName
HasDiagnostics = ($settings -ne $null)
LogsEnabled = ($settings.Logs | Where-Object Enabled).Count -gt 0
}
}
Each Batch account should have Diagnostic settings configured with ServiceLog and AuditLog categories enabled, sending to at least one valid destination (Log Analytics workspace, Storage account, or Event Hub).
https://portal.azure.comBatch AccountsFor each Batch account perform the following:
Monitoring section and click on Diagnostic settings+Add diagnostic settingSaveaz monitor diagnostic-settings create \
--name "<batch_logs_name>" \
--resource $(az batch account show --name <batch_account_name> --resource-group <resource_group_name> --query id -o tsv) \
--logs '[{"category": "AuditLog", "enabled": true}, {"category": "ServiceLog", "enabled": true}]' \
--workspace $(az monitor log-analytics workspace show --resource-group <resource_group_name> --name <workspace_name> --query id -o tsv) \
$batchAccountId = (Get-AzBatchAccount -AccountName "<batch_account_name>" -ResourceGroupName "<resource_group_name>").Id
New-AzDiagnosticSetting -Name "BatchLogs" -ResourceId $batchAccountId -Log @(@{Category="AuditLog";Enabled=$true}, @{Category="ServiceLog";Enabled=$true}) -WorkspaceId (Get-AzOperationalInsightsWorkspace -Name "<workspace_name>").ResourceId
Resource logs are not configured by default.
Level 1 | Automated