This detection identifies adversaries conducting network reconnaissance by executing standalone Nmap scans to map host availability and open ports within the environment. A proactive hunt is essential in Azure Sentinel to uncover early-stage threat actors who are gathering infrastructure intelligence before initiating lateral movement or data exfiltration attacks.
rule iKAT_tools_nmap {
meta:
description = "Generic rule for NMAP - based on NMAP 4 standalone"
author = "Florian Roth"
date = "05.11.14"
score = 50
reference = "http://ikat.ha.cked.net/Windows/functions/ikatfiles.html"
hash = "d0543f365df61e6ebb5e345943577cc40fca8682"
strings:
$s0 = "Insecure.Org" fullword wide
$s1 = "Copyright (c) Insecure.Com" fullword wide
$s2 = "nmap" fullword nocase
$s3 = "Are you alert enough to be using Nmap? Have some coffee or Jolt(tm)." ascii
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 4 string patterns in its detection logic.
Here are specific false positive scenarios and corresponding exclusions for the Generic rule for NMAP detection logic:
Scenario: Scheduled Vulnerability Assessment Scans
10.50.10.20 for Nessus) or restricts detection to non-business hours if scans are scheduled overnight.Scenario: IT Admin Network Inventory Audits
svc-netadmin, svc-inventory) and restrict the rule trigger to traffic coming from the “Management VLAN” subnet where admin workstations reside.Scenario: Third-Party Compliance & Penetration Testing
--script vuln, --script discovery) to validate regulatory requirements (e.g., PCI-DSS, SOC2). These scans often mimic external attack patterns.