Skip to content

Azure Network Watcher (Virtual Network Flow Logs)

Overview

Azure Network Watcher provide insights into the traffic flowing within and out of your Azure Virtual Network. Virtual Network flow logs capture detailed information about allowed and denied network traffic, helping to enhance security and network monitoring. Sending flow logs to Sekoia.io will allow you to detect threats from the IP traffic, thanks to daily contextualized and actionable cyber threat indicators.

Warning

Important note - This format is currently in beta. We highly value your feedback to improve its performance.

  • Vendor: Microsoft Azure
  • Supported environment: SaaS
  • Detection based on: Telemetry
  • Supported application or feature: Host network interface, Netflow/Enclave netflow, Network device logs, Network protocol analysis

Configure

Register Insights provider

  1. Log into Azure console
  2. In the search bar, enter Subscriptions

Subscriptions

  1. Click your subscription

Single Subscription

  1. On the left panel, go to Settings > Resource providers

Resource Providers

  1. Search the Insight providers, select microsoft.insights and click Register

Microsoft Insights

Create a new flow log

  1. Go to Network Watcher
  2. On the left panel, go to Logs > Flow Logs
  3. Click + Create

Create Flow Log

  1. Select the subscription to associate to the flow log
  2. Select Virtual network as the Flow log type
  3. Select a target resource
  4. Select a existing storage account or create a new one. If you need to create a new storage account, we recommend creating a StorageV2 account kind.

Storage Account

  1. Enter a retention period for the logs
  2. Click Review + create

Review + Create

  1. In the review, Click Create

Create

Get the credentials

  1. Go to your storage account
  2. Go to Data storage > container and copy the name of your new container (insight-logs-flowlogflowevent)

Container

  1. Go to Data storage > Access Key
  2. Copy the storage account name and the key

Access Key

Create the intake

Go to the intake page and create a new intake from the format Azure Network Watcher Flow Logs.

Raw Events Samples

In this section, you will find examples of raw logs as generated natively by the source. These examples are provided to help integrators understand the data format before ingestion into Sekoia.io. It is crucial for setting up the correct parsing stages and ensuring that all relevant information is captured.

{
    "time": "2025-04-30T09:07:40.986182+00:00",
    "flowLogVersion": 4,
    "flowLogGUID": "flowLogGUID1",
    "macAddress": "112233445566",
    "operationName": "FlowLogFlowEvent",
    "aclID": "aclID1",
    "rule": "DefaultRule_AllowInternetOutBound",
    "flow.0": "1663146003599,1.2.3.4,192.0.2.180,23956,443,6,O,B,NX,0,0,0,0"
}
{
    "time": "2025-04-30T09:07:40.986182+00:00",
    "flowLogVersion": 4,
    "flowLogGUID": "flowLogGUID1",
    "macAddress": "112233445566",
    "operationName": "FlowLogFlowEvent",
    "aclID": "aclID1",
    "rule": "DefaultRule_AllowInternetOutBound",
    "flow.0": "1663146003606,1.2.3.4,192.0.2.180,23956,443,6,O,E,NX,3,767,2,1580"
}
{
    "time": "2025-04-30T09:07:40.986182+00:00",
    "flowLogVersion": 4,
    "flowLogGUID": "flowLogGUID1",
    "macAddress": "112233445566",
    "operationName": "FlowLogFlowEvent",
    "aclID": "aclID2",
    "rule": "BlockHighRiskTCPPortsFromInternet",
    "flow.0": "1663145998065,8.7.6.5,1.2.3.4,55188,22,6,I,D,NX,0,0,0,0"
}
{
    "time": "2025-04-30T09:07:40.986182+00:00",
    "flowLogVersion": 4,
    "flowLogGUID": "flowLogGUID1",
    "macAddress": "112233445566",
    "operationName": "FlowLogFlowEvent",
    "aclID": "aclID2",
    "rule": "BlockHighRiskTCPPortsFromInternet",
    "flow.0": "1663146005503,2.3.4.5,1.2.3.4,35276,119,6,I,D,NX,0,0,0,0"
}
{
    "time": "2025-04-30T09:07:40.986182+00:00",
    "flowLogVersion": 4,
    "flowLogGUID": "flowLogGUID1",
    "macAddress": "112233445566",
    "operationName": "FlowLogFlowEvent",
    "aclID": "aclID2",
    "rule": "Internet",
    "flow.0": "1663145989563,3.4.5.6,1.2.3.4,50557,44357,6,I,D,NX,0,0,0,0"
}
{
    "time": "2025-04-30T09:07:40.986182+00:00",
    "flowLogVersion": 4,
    "flowLogGUID": "flowLogGUID1",
    "macAddress": "112233445566",
    "operationName": "FlowLogFlowEvent",
    "aclID": "aclID2",
    "rule": "Internet",
    "flow.0": "1663145989679,1.2.3.81,1.2.3.4,62797,35945,6,I,D,NX,0,0,0,0"
}

Detection section

The following section provides information for those who wish to learn more about the detection capabilities enabled by collecting this intake. It includes details about the built-in rule catalog, event categories, and ECS fields extracted from raw events. This is essential for users aiming to create custom detection rules, perform hunting activities, or pivot in the events page.

No related built-in rules was found. This message is automatically generated.

Event Categories

The following table lists the data source offered by this integration.

Data Source Description
Host network interface None
Netflow/Enclave netflow None
Network device logs None
Network protocol analysis None

In details, the following table denotes the type of events produced by this integration.

Name Values
Kind ``
Category network
Type ``

Transformed Events Samples after Ingestion

This section demonstrates how the raw logs will be transformed by our parsers. It shows the extracted fields that will be available for use in the built-in detection rules and hunting activities in the events page. Understanding these transformations is essential for analysts to create effective detection mechanisms with custom detection rules and to leverage the full potential of the collected data.

{
    "message": "{\"time\":\"2025-04-30T09:07:40.986182+00:00\",\"flowLogVersion\":4,\"flowLogGUID\":\"flowLogGUID1\",\"macAddress\":\"112233445566\",\"operationName\":\"FlowLogFlowEvent\",\"aclID\":\"aclID1\",\"rule\":\"DefaultRule_AllowInternetOutBound\",\"flow.0\":\"1663146003599,1.2.3.4,192.0.2.180,23956,443,6,O,B,NX,0,0,0,0\"}",
    "event": {
        "category": [
            "network"
        ],
        "code": "FlowLogFlowEvent",
        "type": [
            "start"
        ]
    },
    "@timestamp": "2022-09-14T09:00:03.599000Z",
    "action": {
        "properties": {
            "FlowEncryption": "NX",
            "OperationName": "FlowLogFlowEvent"
        },
        "target": "network-traffic"
    },
    "destination": {
        "address": "192.0.2.180",
        "bytes": 0,
        "ip": "192.0.2.180",
        "packets": 0,
        "port": 443
    },
    "network": {
        "direction": "outbound",
        "iana_number": "6"
    },
    "observer": {
        "mac": "112233445566"
    },
    "related": {
        "ip": [
            "1.2.3.4",
            "192.0.2.180"
        ]
    },
    "rule": {
        "name": "DefaultRule_AllowInternetOutBound"
    },
    "source": {
        "address": "1.2.3.4",
        "bytes": 0,
        "ip": "1.2.3.4",
        "packets": 0,
        "port": 23956
    }
}
{
    "message": "{\"time\":\"2025-04-30T09:07:40.986182+00:00\",\"flowLogVersion\":4,\"flowLogGUID\":\"flowLogGUID1\",\"macAddress\":\"112233445566\",\"operationName\":\"FlowLogFlowEvent\",\"aclID\":\"aclID1\",\"rule\":\"DefaultRule_AllowInternetOutBound\",\"flow.0\":\"1663146003606,1.2.3.4,192.0.2.180,23956,443,6,O,E,NX,3,767,2,1580\"}",
    "event": {
        "category": [
            "network"
        ],
        "code": "FlowLogFlowEvent",
        "type": [
            "end"
        ]
    },
    "@timestamp": "2022-09-14T09:00:03.606000Z",
    "action": {
        "properties": {
            "FlowEncryption": "NX",
            "OperationName": "FlowLogFlowEvent"
        },
        "target": "network-traffic"
    },
    "destination": {
        "address": "192.0.2.180",
        "bytes": 1580,
        "ip": "192.0.2.180",
        "packets": 2,
        "port": 443
    },
    "network": {
        "direction": "outbound",
        "iana_number": "6"
    },
    "observer": {
        "mac": "112233445566"
    },
    "related": {
        "ip": [
            "1.2.3.4",
            "192.0.2.180"
        ]
    },
    "rule": {
        "name": "DefaultRule_AllowInternetOutBound"
    },
    "source": {
        "address": "1.2.3.4",
        "bytes": 767,
        "ip": "1.2.3.4",
        "packets": 3,
        "port": 23956
    }
}
{
    "message": "{\"time\":\"2025-04-30T09:07:40.986182+00:00\",\"flowLogVersion\":4,\"flowLogGUID\":\"flowLogGUID1\",\"macAddress\":\"112233445566\",\"operationName\":\"FlowLogFlowEvent\",\"aclID\":\"aclID2\",\"rule\":\"BlockHighRiskTCPPortsFromInternet\",\"flow.0\":\"1663145998065,8.7.6.5,1.2.3.4,55188,22,6,I,D,NX,0,0,0,0\"}",
    "event": {
        "category": [
            "network"
        ],
        "code": "FlowLogFlowEvent",
        "type": [
            "denied"
        ]
    },
    "@timestamp": "2022-09-14T08:59:58.065000Z",
    "action": {
        "properties": {
            "FlowEncryption": "NX",
            "OperationName": "FlowLogFlowEvent"
        },
        "target": "network-traffic"
    },
    "destination": {
        "address": "1.2.3.4",
        "bytes": 0,
        "ip": "1.2.3.4",
        "packets": 0,
        "port": 22
    },
    "network": {
        "direction": "inbound",
        "iana_number": "6"
    },
    "observer": {
        "mac": "112233445566"
    },
    "related": {
        "ip": [
            "1.2.3.4",
            "8.7.6.5"
        ]
    },
    "rule": {
        "name": "BlockHighRiskTCPPortsFromInternet"
    },
    "source": {
        "address": "8.7.6.5",
        "bytes": 0,
        "ip": "8.7.6.5",
        "packets": 0,
        "port": 55188
    }
}
{
    "message": "{\"time\":\"2025-04-30T09:07:40.986182+00:00\",\"flowLogVersion\":4,\"flowLogGUID\":\"flowLogGUID1\",\"macAddress\":\"112233445566\",\"operationName\":\"FlowLogFlowEvent\",\"aclID\":\"aclID2\",\"rule\":\"BlockHighRiskTCPPortsFromInternet\",\"flow.0\":\"1663146005503,2.3.4.5,1.2.3.4,35276,119,6,I,D,NX,0,0,0,0\"}",
    "event": {
        "category": [
            "network"
        ],
        "code": "FlowLogFlowEvent",
        "type": [
            "denied"
        ]
    },
    "@timestamp": "2022-09-14T09:00:05.503000Z",
    "action": {
        "properties": {
            "FlowEncryption": "NX",
            "OperationName": "FlowLogFlowEvent"
        },
        "target": "network-traffic"
    },
    "destination": {
        "address": "1.2.3.4",
        "bytes": 0,
        "ip": "1.2.3.4",
        "packets": 0,
        "port": 119
    },
    "network": {
        "direction": "inbound",
        "iana_number": "6"
    },
    "observer": {
        "mac": "112233445566"
    },
    "related": {
        "ip": [
            "1.2.3.4",
            "2.3.4.5"
        ]
    },
    "rule": {
        "name": "BlockHighRiskTCPPortsFromInternet"
    },
    "source": {
        "address": "2.3.4.5",
        "bytes": 0,
        "ip": "2.3.4.5",
        "packets": 0,
        "port": 35276
    }
}
{
    "message": "{\"time\":\"2025-04-30T09:07:40.986182+00:00\",\"flowLogVersion\":4,\"flowLogGUID\":\"flowLogGUID1\",\"macAddress\":\"112233445566\",\"operationName\":\"FlowLogFlowEvent\",\"aclID\":\"aclID2\",\"rule\":\"Internet\",\"flow.0\":\"1663145989563,3.4.5.6,1.2.3.4,50557,44357,6,I,D,NX,0,0,0,0\"}",
    "event": {
        "category": [
            "network"
        ],
        "code": "FlowLogFlowEvent",
        "type": [
            "denied"
        ]
    },
    "@timestamp": "2022-09-14T08:59:49.563000Z",
    "action": {
        "properties": {
            "FlowEncryption": "NX",
            "OperationName": "FlowLogFlowEvent"
        },
        "target": "network-traffic"
    },
    "destination": {
        "address": "1.2.3.4",
        "bytes": 0,
        "ip": "1.2.3.4",
        "packets": 0,
        "port": 44357
    },
    "network": {
        "direction": "inbound",
        "iana_number": "6"
    },
    "observer": {
        "mac": "112233445566"
    },
    "related": {
        "ip": [
            "1.2.3.4",
            "3.4.5.6"
        ]
    },
    "rule": {
        "name": "Internet"
    },
    "source": {
        "address": "3.4.5.6",
        "bytes": 0,
        "ip": "3.4.5.6",
        "packets": 0,
        "port": 50557
    }
}
{
    "message": "{\"time\":\"2025-04-30T09:07:40.986182+00:00\",\"flowLogVersion\":4,\"flowLogGUID\":\"flowLogGUID1\",\"macAddress\":\"112233445566\",\"operationName\":\"FlowLogFlowEvent\",\"aclID\":\"aclID2\",\"rule\":\"Internet\",\"flow.0\":\"1663145989679,1.2.3.81,1.2.3.4,62797,35945,6,I,D,NX,0,0,0,0\"}",
    "event": {
        "category": [
            "network"
        ],
        "code": "FlowLogFlowEvent",
        "type": [
            "denied"
        ]
    },
    "@timestamp": "2022-09-14T08:59:49.679000Z",
    "action": {
        "properties": {
            "FlowEncryption": "NX",
            "OperationName": "FlowLogFlowEvent"
        },
        "target": "network-traffic"
    },
    "destination": {
        "address": "1.2.3.4",
        "bytes": 0,
        "ip": "1.2.3.4",
        "packets": 0,
        "port": 35945
    },
    "network": {
        "direction": "inbound",
        "iana_number": "6"
    },
    "observer": {
        "mac": "112233445566"
    },
    "related": {
        "ip": [
            "1.2.3.4",
            "1.2.3.81"
        ]
    },
    "rule": {
        "name": "Internet"
    },
    "source": {
        "address": "1.2.3.81",
        "bytes": 0,
        "ip": "1.2.3.81",
        "packets": 0,
        "port": 62797
    }
}

Extracted Fields

The following table lists the fields that are extracted, normalized under the ECS format, analyzed and indexed by the parser. It should be noted that infered fields are not listed.

Name Type Description
@timestamp date Date/time when the event originated.
action.properties.FlowEncryption keyword
action.properties.OperationName keyword
action.target keyword
destination.bytes long Bytes sent from the destination to the source.
destination.ip ip IP address of the destination.
destination.packets long Packets sent from the destination to the source.
destination.port long Port of the destination.
event.category keyword Event category. The second categorization field in the hierarchy.
event.code keyword Identification code for this event.
network.iana_number keyword IANA Protocol Number.
observer.mac keyword MAC addresses of the observer.
rule.name keyword Rule name
source.bytes long Bytes sent from the source to the destination.
source.ip ip IP address of the source.
source.packets long Packets sent from the source to the destination.
source.port long Port of the source.

For more information on the Intake Format, please find the code of the Parser, Smart Descriptions, and Supported Events here.

Further Readings