← Back to SOC feed Coverage →

Disclosed hacktool set (old stuff) - file cmd.jsp

yara HIGH 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-29T23:00:00Z · Confidence: medium

Hunt Hypothesis

This rule detects adversaries deploying legacy command-and-control mechanisms via a cmd.jsp web shell to establish persistent access and execute remote commands within the environment. The SOC team should proactively hunt for this artifact in Azure Sentinel because outdated JSP-based tools often contain known vulnerabilities that attackers leverage to maintain stealthy footholds and facilitate lateral movement across cloud resources.

YARA Rule

rule sig_238_cmd_2 {
	meta:
		description = "Disclosed hacktool set (old stuff) - file cmd.jsp"
		author = "Florian Roth"
		date = "23.11.14"
		score = 60
		hash = "be4073188879dacc6665b6532b03db9f87cfc2bb"
	strings:
		$s0 = "Process child = Runtime.getRuntime().exec(" ascii
		$s1 = "InputStream in = child.getInputStream();" fullword ascii
		$s2 = "String cmd = request.getParameter(\"" ascii
		$s3 = "while ((c = in.read()) != -1) {" fullword ascii
		$s4 = "<%@ page import=\"java.io.*\" %>" fullword ascii
	condition:
		all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 5 string patterns in its detection logic.

False Positive Guidance

Here are 5 specific false positive scenarios for the “Disclosed hacktool set (old stuff) - file cmd.jsp” detection rule, including suggested filters and exclusions:

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