Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / NETWORK

Outbound

This note documents detection patterns related to Suspicious Outbound Connections within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Sysmon3Network connectionCriticalPrimary host-level evidence for outbound connections.
Security5156Windows Filtering Platform allowed connectionCriticalNative network permit telemetry.
Sysmon1Process creationCriticalRequired to identify initiating process.
Security4688Process creationHighSupports parent-child correlation.
Sysmon22DNS queryCriticalResolves outbound destinations before connection.
PowerShell4104Script block loggingCriticalCaptures script-based outbound activity.
Firewall LogsN/ANetwork egress recordHighUseful for destination validation.
EDR TelemetryN/AProcess-network lineageCriticalHighest-value full process-to-network mapping.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Rare external IPUnusual destination not seen in baselineCriticalStrong IOC candidate.
Process without network baselineBinary normally offline starts outbound trafficCriticalHigh anomaly value.
LOLBIN outboundpowershell, rundll32, certutil, mshtaCriticalStrong attacker pattern.
Post-execution beaconConnection follows suspicious child processCriticalCommon C2 behavior.
DNS burst then connectionMultiple lookups before egressHighDiscovery / failover logic.
Temp binary connects outAppData / Temp process egressCriticalStrong malware indicator.
SYSTEM process outbound to rare hostService context beaconHighImportant for persistence hunts.

Common Tools

ToolUsage
PowerShellWeb requests / beaconing
curl.exeFile transfer / beacon
certutil.exeDownload / callback
bitsadmin.exeBackground transfer
mshta.exeRemote script retrieval
rundll32.exeNetwork-enabled DLL execution
custom implantC2 traffic
browser engine abuseHidden outbound retrieval

Relevant Artifacts

  • Sysmon Event IDs 3, 22, 1
  • Security Event IDs 5156, 4688
  • PowerShell 4104
  • Firewall logs
  • DNS cache
  • Prefetch for initiating binary
  • Amcache for executable
  • ShimCache historical traces
  • EDR network graph
  • MFT / USN if payload preceded beacon

MITRE ATT&CK References

  • T1071 Application Layer Protocol
  • T1105 Ingress Tool Transfer
  • T1041 Exfiltration Over C2 Channel
  • T1571 Non-Standard Port

Decision Tree

  1. Which process connected outbound?

    • Image path
    • Parent process
  2. Destination trusted?

    • Domain
    • IP reputation
    • ASN
  3. Timing suspicious?

    • Immediately after execution
    • Repeating interval
    • Delayed beacon
  4. Port expected?

    • 80/443
    • Non-standard
    • Rare service
  5. Expand:

    • DNS lookups
    • Child processes
    • Download / exfil chain
  6. Scope:

    • Single host
    • Lateral beaconing
    • Shared IOC

Example Detection Templates

KQL

Sysmon
| where EventID == 3
| project TimeGenerated, Computer, Image, DestinationIp, DestinationPort, Protocol
Sysmon
| where EventID == 3
| where Image has_any ("powershell.exe","cmd.exe","rundll32.exe","certutil.exe","mshta.exe")
| project TimeGenerated, Computer, Image, DestinationIp, DestinationPort

EQL

network where process.name in ("powershell.exe","rundll32.exe","certutil.exe","mshta.exe")
sequence by host.name with maxspan=5m
  [ process where process.name != null ]
  [ network where destination.ip != null ]

Sigma

title: Suspicious Outbound Connection
id: b5f9d117-outbound-detection
status: experimental
description: Detects suspicious outbound traffic from common attacker processes
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID: 3
    Image|endswith:
      - '\powershell.exe'
      - '\rundll32.exe'
      - '\certutil.exe'
      - '\mshta.exe'
  condition: selection
fields:
  - Image
  - DestinationIp
  - DestinationPort
falsepositives:
  - Administrative downloads
level: high
tags:
  - attack.command_and_control

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Sysmon network loggingEnable Event 3CriticalCore outbound visibility
DNS loggingRetain resolution telemetryCriticalEnables domain correlation
Egress filteringRestrict outbound destinationsHighReduces beacon success
LOLBIN monitoringAlert on network-capable binariesCriticalHigh attacker overlap
EDR lineage retentionPreserve network ancestryCriticalEssential for triage