← Back to SOC feed Coverage →

Linux hack tools - file pscan2

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-07-30T23:00:00Z · Confidence: medium

Hunt Hypothesis

This detection rule identifies the presence of the pscan2 file on Linux systems, which often indicates an adversary deploying network scanning or reconnaissance tools to map internal infrastructure and discover vulnerable hosts. A SOC team should proactively hunt for this artifact in Azure Sentinel because early identification of such diagnostic utilities can reveal initial footholds established by attackers before they escalate to more aggressive lateral movement or data exfiltration phases.

YARA Rule

rule LinuxHacktool_eyes_pscan2 {
	meta:
		description = "Linux hack tools - file pscan2"
		author = "Florian Roth"
		reference = "not set"
		date = "2015/01/19"
		hash = "56b476cba702a4423a2d805a412cae8ef4330905"
	strings:
		$s0 = "# pscan completed in %u seconds. (found %d ips)" fullword ascii
		$s1 = "Usage: %s <b-block> <port> [c-block]" fullword ascii
		$s3 = "%s.%d.* (total: %d) (%.1f%% done)" fullword ascii
		$s8 = "Invalid IP." fullword ascii
		$s9 = "# scanning: " fullword ascii
		$s10 = "Unable to allocate socket." fullword ascii
	condition:
		2 of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 6 string patterns in its detection logic.

References

False Positive Guidance

Here are 4 specific false positive scenarios for the Linux hack tools - file pscan2 detection rule, including suggested filters and exclusions:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/TOOLKIT_THOR_HackTools.yar