This detection identifies adversaries utilizing legacy FScan tools to conduct network reconnaissance and asset discovery, which often indicates early-stage information gathering or lateral movement preparation. Proactively hunting for this behavior in Azure Sentinel is critical because outdated scanning utilities may lack modern security controls, creating potential entry points for attackers to map the environment before launching more complex attacks.
rule sig_238_fscan {
meta:
description = "Disclosed hacktool set (old stuff) - file fscan.exe"
author = "Florian Roth"
date = "23.11.14"
score = 60
hash = "d5646e86b5257f9c83ea23eca3d86de336224e55"
strings:
$s0 = "FScan v1.12 - Command line port scanner." fullword ascii
$s2 = " -n - no port scanning - only pinging (unless you use -q)" fullword ascii
$s5 = "Example: fscan -bp 80,100-200,443 10.0.0.1-10.0.1.200" fullword ascii
$s6 = " -z - maximum simultaneous threads to use for scanning" fullword ascii
$s12 = "Failed to open the IP list file \"%s\"" fullword ascii
$s13 = "http://www.foundstone.com" fullword ascii
$s16 = " -p - TCP port(s) to scan (a comma separated list of ports/ranges) " fullword ascii
$s18 = "Bind port number out of range. Using system default." fullword ascii
$s19 = "fscan.exe" fullword wide
condition:
4 of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 9 string patterns in its detection logic.
Legitimate Network Discovery by IT Operations
fscan.exe (a popular Chinese network scanning and asset discovery tool) from a dedicated management workstation to audit active hosts, open ports, and patch levels across the corporate LAN. This often occurs during scheduled maintenance windows.Source Host is part of the “IT-Management” security group or the Process Name matches fscan.exe running under a specific service account (e.g., DOMAIN\svc_network_audit).Scheduled Vulnerability Assessment Job
fscan.exe to scan the “Development” subnet for legacy endpoints that lack modern agents, generating a high volume of file access events that mimic tool behavior.Scheduled Task Name (e.g., Nightly_FScan_Audit) and restrict the alert to only trigger if the execution time falls outside the defined maintenance window (e.g., 02:00–04:00 UTC).Endpoint Remediation by Helpdesk Technicians
fscan.exe on user workstations to quickly identify missing patches, unauthorized software, and network connectivity issues. This is often done via RDP sessions where the tool runs interactively rather than as a background service.User Context belongs to the “Helpdesk-Support” group and the `Process