This hunt hypothesis targets adversaries leveraging malicious Java loader JAR files as the final execution stage of sophisticated phishing campaigns to establish persistence or deliver payloads within the organization’s Azure Sentinel environment. Proactively hunting for these artifacts is essential because they often bypass initial email filters and represent a critical entry point for supply chain attacks that can lead to widespread credential theft or lateral movement if not identified early.
rule MAL_JAVA_Loader_Final_Jar_Aug25 {
meta:
description = "Detects a final Java loader JAR file used in phishing campaigns"
author = "Florian Roth"
reference = "https://www.malwation.com/blog/technical-analysis-of-a-stealth-java-loader-used-in-phishing-campaigns-targeting-turkiye"
date = "2025-08-07"
score = 85
hash1 = "0a7fddd91b332c8daee2c0727b884fc92cfaede02883dbad75f7efc299e884e3"
id = "17894519-060b-5414-8430-d6d025e7db83"
strings:
$s1 = "Obfuscation by Allatori Obfuscator" ascii fullword
$s2 = "MANIFEST.MFM" ascii fullword
$s3 = "GetCpu.classPK" ascii fullword
$s4 = "extra/spreader" ascii fullword
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 4 specific false positive scenarios for the “Detects a final Java loader JAR file used in phishing campaigns” rule, along with recommended filters and exclusions:
Scenario: Automated Build Pipelines Executing Artifact Staging
.jar files containing Java loaders during the deployment of microservices or legacy applications. These agents often run on dedicated build servers where the execution of a loader JAR is part of the standard workflow, not user-initiated phishing activity.java.exe (PID > 1000) running under a specific service account (e.g., svc-jenkins-build) and the host belongs to the “Build-Server” OU. Alternatively, filter by file path if the JAR resides in a known artifact repository directory (e.g., C:\jenkins\workspace\artifacts\).Scenario: Scheduled Enterprise Reporting Jobs
.jar file that matches the detection signature but is benign.