用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-foundations-7-8命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-azure-foundations-7.8 |
| description | Ensure virtual network flow log retention days is >= 90 |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","networking","nsg"] |
| cis_id | 7.8 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | ["cis-azure-foundations-7.5","cis-azure-foundations-7.6"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure that virtual network flow logs are retained for greater than or equal to 90 days.
Virtual network flow logs provide critical visibility into traffic patterns. Logs can be used to check for anomalies and give insight into suspected breaches.
Network Watcher.Logs, select Flow logs.Add filter.Filter drop-down menu, select Flow log type.Value drop-down menu, check Virtual network only.Apply.Storage Account, ensure that Retention days is set to 0, 90, or a number greater than 90. If Retention days is set to 0, the logs are retained indefinitely with no retention policy.Run the following command to list network watchers:
az network watcher list
Run the following command to list the name and retention policy of flow logs in a network watcher:
az network watcher flow-log list --location <location> --query [*].[name,retentionPolicy]
For each flow log, ensure that days is set to 0, 90, or a number greater than 90. If days is set to 0, the logs are retained indefinitely with no retention policy.
Repeat for each network watcher.
All virtual network flow logs should have retention days set to (indefinite) or days.
0>= 90Network Watcher.Logs, select Flow logs.Add filter.Filter drop-down menu, select Flow log type.Value drop-down menu, check Virtual network only.Apply.Storage Account, set Retention days to 0, 90, or a number greater than 90. If Retention days is set to 0, the logs are retained indefinitely with no retention policy.Run the following command update the retention policy for a flow log in a network watcher, setting retention to 0, 90, or a number greater than 90:
az network watcher flow-log update --location <location> --name <flow-log> --retention <number-of-days>
Repeat for each virtual network flow log requiring remediation.
When a virtual network flow log is created using the Azure CLI, retention days is set to 0 by default. When creating via the Azure Portal, retention days must be specified by the creator.
As network security group flow logs are on the retirement path, Azure recommends migrating to virtual network flow logs.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 8.3 Ensure Adequate Audit Log Storage | x | x | x |
| v8 | 8.10 Retain Audit Logs | x | x | |
| v7 | 6.4 Ensure adequate storage for logs | x | x |
| Techniques / Sub-techniques | Tactics | Mitigations |
|---|---|---|
| M1047 |
Level 2 | Automated