This rule detects the presence of the Chinese MilkT port scanner, which adversaries often utilize to map network topology and identify vulnerable entry points for lateral movement. A SOC team should proactively hunt for this activity in Azure Sentinel because early identification of such reconnaissance tools allows for immediate threat containment before attackers can exploit discovered assets or establish persistent footholds within the environment.
rule CN_Hacktool_MilkT_Scanner {
meta:
description = "Detects a chinese Portscanner named MilkT"
author = "Florian Roth"
score = 60
date = "12.10.2014"
strings:
$s0 = "Bf **************" ascii fullword
$s1 = "forming Time: %d/" ascii
$s2 = "KERNEL32.DLL" ascii fullword
$s3 = "CRTDLL.DLL" ascii fullword
$s4 = "WS2_32.DLL" ascii fullword
$s5 = "GetProcAddress" ascii fullword
$s6 = "atoi" ascii fullword
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 7 string patterns in its detection logic.
Scenario: Automated Vulnerability Management Scans
192.168.10.50-55) and restrict alerts to only trigger outside of defined maintenance windows (e.g., 02:00–04:00).Scenario: Third-Party Cloud Security Posture Management
10.240.x.x), and verify the process name against a whitelist of known cloud agents like wiz-agent or cortex-xsoar.Scenario: Internal Network Discovery and Asset Inventory Jobs