Skip to main content

 

Splunk Lantern

Investigating suspicious outbound traffic from Azure workloads with Federated Search in Splunk Cloud Platform

Many organizations generate large volumes of Azure virtual network (VNet) flow logs from production workloads, development environments, shared services, and internet-facing applications. These logs are valuable during security investigations because they show Layer 4 network activity across Azure virtual networks, including source and destination IP addresses, ports, protocol, direction, flow state, and byte counts.

VNet flow logs can be too large, too noisy, or too costly to ingest continuously into Splunk Cloud Platform at full fidelity. With Federated Search for Microsoft Azure, security teams can search VNet flow logs stored in Azure Blob Storage or Azure Data Lake Storage directly from Splunk Cloud Platform, without first ingesting all the data into a Splunk index.

This article shows how to investigate suspicious outbound traffic from Azure workloads by running SPL2 searches over Azure VNet flow logs that are stored in Azure Blob Storage.

Scenario

You are a security analyst investigating an alert that indicates a workload in Azure might have communicated with an unusual or suspicious external destination. The alert contains a private IP address, destination IP address, destination port, or time window, but the detailed historical network flow data is stored in Azure Blob Storage.

You want to answer questions such as:

  • Which Azure workloads communicated with the suspicious destination?
  • What destination ports and protocols were used?
  • How much data was sent outbound?
  • Did the behavior involve one workload, one subnet, or multiple virtual networks?
  • Were there repeated outbound connections that could indicate command-and-control activity?
  • Was the traffic allowed, denied, continuing, or terminated?

Federated Search helps you investigate those questions directly against the VNet flow log dataset in Azure Storage. This approach works well when VNet flow logs are retained in Azure Blob Storage or Azure Data Lake Storage and are needed only for occasional investigation, retrospective threat hunting, or compliance-driven lookbacks — for example, to:

  • Investigate suspicious outbound traffic from Azure workloads.
  • Hunt for command-and-control activity.
  • Review historical network activity after an alert.
  • Scope potential data exfiltration.
  • Validate segmentation between Azure subnets.
  • Correlate Azure network evidence with alerts, endpoint events, identity activity, or cloud control plane logs already searchable in Splunk Cloud Platform, without first ingesting all flow logs into Splunk indexes.

If your investigation instead centers on firewall logs retained in cloud object storage, see Hunting threats across Amazon S3-backed firewall logs using Federated Search in Splunk Cloud Platform for a comparable investigative approach in AWS environments.

How Federated Search for Microsoft Azure helps

Federated Search for Microsoft Azure lets you define a federated dataset backed by Azure Blob Storage or Azure Data Lake Storage. After the dataset is configured, you can use SPL2 to search the remote data from Splunk Cloud Platform.

For this use case, VNet flow logs remain in Azure Storage for cost-effective retention, while Splunk Cloud Platform provides the investigation experience. You can search only the relevant time windows, virtual networks, subnets, IP addresses, ports, and flow states needed for the investigation.

Architecture pattern

In this pattern, Azure Network Watcher writes VNet flow logs to Azure Blob Storage. Splunk Cloud Platform connects to the Azure Storage account through a Microsoft Azure connection, and the VNet flow logs are represented as a federated dataset.

The architecture includes:

  • Azure virtual networks generating VNet flow logs.
  • Azure Network Watcher collecting flow records.
  • Azure Blob Storage storing the VNet flow log files.
  • Microsoft Entra ID app registration used by Splunk Cloud Platform to access the storage account.
  • Splunk-native data catalog describing the Azure dataset schema and partitions.
  • Splunk Cloud Platform Federated Search used to run SPL2 searches over the dataset.

The Azure dataset schema and partitioning can be defined manually, pasted as JSON, or inferred with the Splunk crawler. For VNet flow logs, define fields that expose each flow tuple as searchable columns, such as:

  • source IP
  • destination IP
  • destination port
  • direction
  • flow state
  • byte counts
  • virtual network
  • subnet
  • region
  • event date

For more information on the Azure VNet flow log record schema, see Virtual network flow logs.

Example federated dataset

The searches in this article assume that the Azure VNet flow logs are available as a federated dataset named:

~.federated.azure_vnet_flow_logs

The example dataset uses normalized flow-level fields such as:

flow_time
event_date
subscription_id
resource_group
region
vnet
subnet
nic_id
src_ip
dest_ip
src_port
dest_port
protocol
direction
flow_state
flow_encryption
packets_sent
bytes_sent
packets_received
bytes_received
rule
acl_id

Your field names might differ depending on how you define the Azure dataset schema. If your VNet flow logs are stored in raw Azure Network Watcher JSON format, make sure the dataset schema exposes the nested flow tuple values as searchable fields before using the example searches.

How to use Splunk software for this use case

The following searches use SPL2 syntax and query the federated Azure dataset directly. They're presented as one connected investigation path:

  1. Confirm the Azure VNet flow log dataset is searchable.
  2. Identify suspicious outbound traffic from Azure workloads.
  3. Triage a suspicious destination IP address.
  4. Hunt for repeated outbound connections.
  5. Narrow the investigation with partition-aware filters.
  6. Investigate outbound traffic to risky ports.
  7. Review denied outbound connection attempts.

1. Confirm the Azure VNet flow log dataset is searchable

Start by confirming that the federated dataset is available and returning expected fields.

| from ~.federated.azure_vnet_flow_logs
| fields flow_time, event_date, region, vnet, subnet, src_ip, dest_ip, src_port, dest_port, protocol, direction, flow_state, bytes_sent, bytes_received, rule
| head 100

This search verifies that Splunk Cloud Platform can query the Azure Storage-backed dataset and that the schema exposes the fields needed for investigation.

2. Identify suspicious outbound traffic from Azure workloads

Look for outbound flows from Azure private IP addresses to external destinations, then sort by outbound byte volume.

| from ~.federated.azure_vnet_flow_logs
| WHERE direction="O" AND (flow_state="C" OR flow_state="E")
| stats count() AS flows, sum(bytes_sent) AS bytes_sent, sum(packets_sent) AS packets_sent BY src_ip, dest_ip, dest_port, protocol, vnet, subnet, region
| sort - bytes_sent

Use this search when you need to quickly identify top outbound talkers. High outbound byte counts do not prove data exfiltration, but they can help prioritize which workloads and destinations to investigate first.

3. Triage a suspicious destination IP address

If an alert provides a suspicious destination IP address, search the VNet flow logs for Azure workloads that communicated with it.

| from ~.federated.azure_vnet_flow_logs
| WHERE dest_ip="203.0.113.50" AND direction="O"
| stats count() AS flows, sum(bytes_sent) AS bytes_sent, sum(bytes_received) AS bytes_received BY event_date, src_ip, src_port, dest_ip, dest_port, protocol, flow_state, vnet, subnet, rule
| sort event_date, - flows

This helps identify the source workload, destination port, protocol, flow state, and amount of traffic associated with the suspicious destination.

4. Hunt for repeated outbound connections

Repeated low-volume outbound connections to the same destination can indicate beaconing or command-and-control behavior. Use this search to identify repeated outbound flows by source, destination, and port.

| from ~.federated.azure_vnet_flow_logs
| WHERE direction="O" AND (flow_state="C" OR flow_state="E")
| stats count() AS flow_count, sum(bytes_sent) AS bytes_sent, min(flow_time) AS first_seen, max(flow_time) AS last_seen BY src_ip, dest_ip, dest_port, protocol, vnet, subnet
| WHERE flow_count > 20
| sort - flow_count

Tune the flow count threshold based on your environment. For example, production services might naturally create many repeated flows, while a rarely used administrative subnet might warrant a lower threshold.

5. Narrow the investigation with partition-aware filters

When VNet flow logs are partitioned by date, region, virtual network, or subscription, use those fields early in the search to reduce the amount of scanned data.

| from ~.federated.azure_vnet_flow_logs
| WHERE event_date="2026-05-13" AND region="eastus" AND vnet="prod-vnet-01"
| stats count() AS flows, sum(bytes_sent) AS bytes_sent, sum(bytes_received) AS bytes_received BY subnet, src_ip, dest_ip, dest_port, protocol, direction, flow_state
| sort - bytes_sent

Partition-aware filtering is especially important for high-volume flow logs because it limits the amount of Azure Storage data that Splunk Cloud Platform needs to scan.

6. Investigate outbound traffic to risky ports

Search for outbound traffic to ports commonly associated with remote administration, tunneling, or unusual external access.

| from ~.federated.azure_vnet_flow_logs
| WHERE direction="O" AND (dest_port=22 OR dest_port=3389 OR dest_port=445 OR dest_port=5985 OR dest_port=5986 OR dest_port=1433 OR dest_port=3306 OR dest_port=5432)
| stats count() AS flows, sum(bytes_sent) AS bytes_sent BY src_ip, dest_ip, dest_port, protocol, flow_state, vnet, subnet, region
| sort - flows

This search can help identify workloads making unexpected outbound connections to administrative, database, or file-sharing ports.

7. Review denied outbound connection attempts

Denied outbound flows can show blocked malware callbacks, misconfigured workloads, or attempted policy violations.

| from ~.federated.azure_vnet_flow_logs
| WHERE direction="O" AND flow_state="D"
| stats count() AS denied_flows BY src_ip, dest_ip, dest_port, protocol, vnet, subnet, rule, acl_id
| sort - denied_flows

Use the rule and acl_id fields to identify which network security rule or security admin rule evaluated the traffic.

Next steps

After identifying suspicious outbound traffic, continue the investigation by correlating the network evidence with other data sources in Splunk Cloud Platform, such as:

  • Microsoft Entra ID sign-in logs
  • Azure Activity logs
  • Microsoft Defender alerts
  • Endpoint detection and response data
  • Vulnerability or asset inventory data
  • Firewall, proxy, or DNS logs

For example, after identifying a suspicious source IP address, pivot to endpoint telemetry to determine the workload owner, running processes, recent authentication activity, and whether other alerts occurred around the same time.

You might also find the following resources useful for implementing the guidance in this article: