← Back to SOC feed Coverage →

SuicideScriptR

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-09T11:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversary behavior where malicious scripts execute self-deletion mechanisms to erase forensic artifacts and evade post-incident analysis within Azure Sentinel. Proactively hunting for this pattern is critical because early identification of these “suicide” scripts allows analysts to reconstruct deleted code before it disappears, significantly reducing the window for lateral movement and data exfiltration.

YARA Rule

rule SuicideScriptR
{
	// joanap, joanapCleaner
	meta:
		copyright = "2015 Novetta Solutions"
		author = "Novetta Threat Research & Interdiction Group - trig@novetta.com"

	strings:
		$ = ":R\nIF NOT EXIST %s GOTO E\ndel /a %s\nGOTO R\n:E\ndel /a d.bat"
		
	condition:
		all of them

}

Deployment Notes

This YARA rule can be deployed in the following contexts:

False Positive Guidance

Here are 5 specific false positive scenarios for the SuicideScriptR detection rule in an enterprise environment, including suggested filters and exclusions:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/Operation_Blockbuster/suicidescripts.yara