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

SMB

This note documents detection patterns related to SMB Beaconing within Windows environments.


Direct Indicators

Log SourceEvent IDMeaningForensic ValueNotes
Sysmon3Network connectionCriticalSMB outbound (445/139). Identify lateral movement targets.
Sysmon1Process creationCriticalBest lineage source for SMB execution tools (PsExec, etc).
Sysmon22DNS queryMediumName resolution before SMB connection.
Security4624Logon successCriticalLogon Type 3 = SMB network logon. Correlate source IP + account.
Security4625Logon failureHighFailed SMB auth attempts (spray/brute).
Security4648Explicit credentialsHighAlternate creds usage (common in lateral movement).
Security4672Special privileges assignedHighAdmin-level logon via SMB. Strong compromise signal.
Security5140Share accessedCriticalSMB session established to a share.
Security5145Detailed share accessCriticalFile-level access (read/write/delete). Shows exact target file.
Security5142Share createdHighRogue share creation.
Security5144Share deletedMediumShare cleanup / anti-forensics.
Security4776NTLM authenticationHighNTLM auth to local system (often tied to SMB auth).
Security4768Kerberos TGT requestMediumInitial auth before SMB (Kerberos environments).
Security4769Kerberos service ticketHighTGS request for CIFS (SMB service). Key lateral movement signal.
SMBServer Operational3000SMB session establishedHighConfirms inbound SMB session on server.
SMBServer Operational3001SMB session disconnectedMediumSession lifecycle tracking.
SMBServer Operational3100Tree connect (share access)HighMaps client → share name.
SMBServer Security1006SMB authentication attemptHighAuth attempt against SMB server. Includes account + source.
SMBServer Security1007SMB authentication failureHighFailed SMB auth (bad creds / attack).
SMBServer Security1020SMB session logon successHighSuccessful SMB auth at server level (alt to 4624).
SMBClient Connectivity30803Connection to SMB serverHighOutbound SMB attempt from client.
SMBClient Connectivity30804Connection failureHighFailed SMB connection (network/auth issues).
SMBClient Operational31017Session setup attemptHighSMB authentication attempt from client side.
SMBClient Operational31018Session establishedHighSuccessful SMB auth from client perspective.
System7045Service installedCriticalPsExec-style service creation over SMB (svc.exe drop).
Sysmon11File createdCriticalFile drop via SMB (payload staging).
Sysmon13Registry value setHighPersistence after SMB execution.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Repeated SMB intervalsPeriodic connectionsCriticalBeacon hallmark.
Same remote host contacted repeatedlyStable C2 relayCriticalStrong pattern.
ADMIN$ / IPC$ touched repeatedlyHigh-risk admin channelCriticalStrong malicious clue.
Non-admin process opens SMBBrowser/script/tool doing SMBCriticalRare anomaly.
Small repeated traffic burstsLow-volume beaconHighClassic stealth behavior.
DNS then SMB cadenceConsistent relayHighStrong sequence

Common Tools

ToolUsage
Cobalt Strike SMB beaconPeer beaconing
PsExec-like toolingSMB command channel
custom implantsNamed SMB relay
ImpacketSMB execution chains

Relevant Artifacts

  • Sysmon Event IDs 3, 1, 22
  • Security Event IDs 5140, 5145, 4688
  • Ports:
    • 445
    • 139
  • Share names:
    • ADMIN$
    • IPC$
    • C$
  • Process tree
  • Network cadence timeline
  • HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

MITRE ATT&CK References

  • T1071.002 SMB/Windows Admin Shares

Decision Tree

  1. Which process owns SMB traffic?

    • service
    • shell
    • implant
  2. Which target host?

    • workstation
    • server
    • DC
  3. Periodic cadence?

    • fixed interval
    • jitter
  4. Which share?

    • IPC$
    • ADMIN$
    • custom share
  5. Expand:

    • Parent process
    • Credential context
    • Lateral movement chain
  6. Scope:

    • Single peer
    • Mesh beaconing
    • Campaign spread

Example Detection Templates

KQL

Sysmon
| where EventID == 3
| where DestinationPort in (445,139)
| project TimeGenerated, Computer, Image, DestinationIp
SecurityEvent
| where EventID in (5140,5145)
| project TimeGenerated, Computer, ShareName, SubjectUserName

EQL

network where destination.port in (445,139)
sequence by host.name with maxspan=10m
  [ network where destination.port == 445 ]
  [ network where destination.port == 445 ]

Sigma

title: SMB Beaconing Detection
id: 8c3f2a15-smb-beacon
status: experimental
description: Detects suspicious repetitive SMB connections
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID: 3
    DestinationPort:
      - 445
      - 139
  condition: selection
fields:
  - Image
  - DestinationIp
falsepositives:
  - Legitimate file access
level: high
tags:
  - attack.command_and_control

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Monitor periodic SMBCore beacon signalCriticalStrong visibility
Watch non-admin SMB clientsRare anomalyCriticalHigh-value
Correlate 5140/5145 with cadenceStrong triageCriticalHigh confidence
Restrict lateral SMBReduce abuseHighPrevent relay
Baseline share usageLower false positivesHighValuable context