OpenParable
Skip to content
← Back to skills

Cis Azure Foundations 6.1.1.7

DevOps & Security
cis-azure-foundations-6.1.1.7

Cis Azure Foundations 6.1.1.7 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 virtual network flow logs are captured and sent to Log Analytics

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/Microsoft_Azure/CIS_Microsoft_Azure_Foundations_Benchmark_v5.0.0/cis-azure-foundations-6.1.1.7/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-azure-foundations-6-1-1-7, 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.

Ensure that virtual network flow logs are captured and sent to Log Analytics

Description

Ensure that virtual network flow logs are captured and fed into a central log analytics workspace.

Rationale

Virtual network flow logs provide critical visibility into traffic patterns. Sending logs to a Log Analytics workspace enables centralized analysis, correlation, and alerting for faster threat detection and response.

Impact

  • Virtual network flow logs are charged per gigabyte of network flow logs collected and come with a free tier of 5 GB/month per subscription.
  • If traffic analytics is enabled with virtual network flow logs, traffic analytics pricing applies at per gigabyte processing rates.
  • The storage of logs is charged separately.

Audit Procedure

Using Azure Portal

  1. Go to Network Watcher.
  2. Under Logs, select Flow logs.
  3. Click Add filter.
  4. From the Filter drop-down menu, select Flow log type.
  5. From the Value drop-down menu, check Virtual network only.
  6. Click Apply.
  7. Ensure that at least one virtual network flow log is listed and is configured to send logs to a Log Analytics Workspace.

Expected Result

At least one virtual network flow log should exist and be configured to send logs to a Log Analytics Workspace with traffic analytics enabled.

Remediation

Remediate from Azure Portal

  1. Go to Network Watcher.
  2. Under Logs, click Flow logs.
  3. Click + Create.
  4. Select a subscription.
  5. Next to Flow log type, select Virtual network.
  6. Click + Select target resource.
  7. Select Virtual network.
  8. Select a virtual network.
  9. Click Confirm selection.
  10. Select a storage account, or create a new storage account.
  11. Set the retention in days for the storage account.
  12. Click Next.
  13. Under Analytics, for Flow logs version, select Version 2.
  14. Check the box next to Enable traffic analytics.
  15. Select a processing interval.
  16. Select a Log Analytics Workspace.
  17. Click Next.
  18. Optionally, add Tags.
  19. Click Review + create.
  20. Click Create.
  21. Repeat steps 1-20 for each subscription or virtual network requiring remediation.

Default Value

By default, virtual network flow logs are not configured.

References

  1. https://learn.microsoft.com/en-us/azure/network-watcher/vnet-flow-logs-overview
  2. https://learn.microsoft.com/en-us/azure/network-watcher/vnet-flow-logs-cli

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v813.6 Collect Network Traffic Flow Logsxx
v712.8 Deploy NetFlow Collection on Networking Boundary Devicesxx

MITRE ATT&CK Mappings

TechniquesTacticsMitigations
M1047

Profile

Level 2 | Manual