Windows Security Log: Metasploit SMB NTLM Logon (4624/4625, 4776)

Detects Metasploit-linked NTLM SMB authentication activity using Windows 4624/4625 and 4776 with 16-char workstation names.

FreeReviewedSigma · High · v2
Product
windows
Service
security
Author
Chakib Gzenayi (@Chak092), Hosni Mribah (SigmaHQ), DRL 1.1
Published
2020-05-06
Updated
2026-07-31
title: "Windows Security Log: Metasploit SMB NTLM Logon (4624/4625, 4776)"
id: a1d3ad5a-81e4-42c3-bae5-be84bd8f7b3f
status: test
description: Identifies failed (4625) and successful (4624) network logons using NTLM over SMB associated with 16-character alphanumeric workstation names, alongside corresponding 4776 authentication attempts. This matters because Metasploit-style SMB authentication activity can be part of lateral movement. The rule relies on Windows Security events 4624/4625 with LogonType 3 and AuthenticationPackageName=NTLM, and 4776 entries that share matching workstation naming patterns.
references:
  - https://github.com/rapid7/metasploit-framework/blob/1416b5776d963f21b7b5b45d19f3e961201e0aed/lib/rex/proto/smb/client.rb
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/security/win_security_metasploit_authentication.yml
author: Chakib Gzenayi (@Chak092), Hosni Mribah, Huntrule Team
date: 2020-05-06
modified: 2024-01-25
tags:
  - attack.lateral-movement
  - attack.t1021.002
logsource:
  product: windows
  service: security
detection:
  selection1:
    EventID:
      - 4625
      - 4624
    LogonType: 3
    AuthenticationPackageName: NTLM
    WorkstationName|re: ^[A-Za-z0-9]{16}$
  selection2:
    EventID: 4776
    Workstation|re: ^[A-Za-z0-9]{16}$
  condition: 1 of selection*
falsepositives:
  - Linux hostnames composed of 16 characters.
level: high
license: DRL-1.1
related:
  - id: 72124974-a68b-4366-b990-d30e0b2a190d
    type: derived