← Back to SOC feed Coverage →

Detects scheduled tasks that execute Java JAR files, which is suspicious but not necessarily malicious

yara HIGH signature-base
florian-roth
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 signature-base →
Retrieved: 2026-08-06T23:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt hypothesis targets adversaries leveraging Windows Scheduled Tasks to persistently execute Java JAR files, a technique often used to establish long-term footholds or deliver custom payloads while blending with legitimate application activity. Proactively hunting for this behavior in Azure Sentinel is critical because the execution of JAR files via scheduled tasks represents a high-fidelity indicator that can distinguish sophisticated lateral movement or persistence strategies from routine operational noise, enabling early detection before broader compromise occurs.

YARA Rule

rule SUSP_Scheduled_Task_Java_JAR_Aug25 {
   meta:
      description = "Detects scheduled tasks that execute Java JAR files, which is suspicious but not necessarily malicious"
      author = "Florian Roth"
      date = "2025-08-07"
      score = 60
      reference = "Internal Research"
      hash = "7c5999082d9c5f3dd342ca05191311ddd1e24ba7675d1e9763fb4d962be3a933"
      id = "b06df47a-529f-54d0-86ce-6739d45b4837"
   strings:
      $a0 = "<Task version=" wide
      $a1 = "xmlns=\"http://schemas.microsoft.com/windows/" wide

      $sa1 = "java.exe</Command>" wide
      $sa2 = "javaw.exe</Command>" wide

      $sb1 = "<Arguments>-jar " wide
   condition:
      uint16(0) == 0xfeff
      and filesize < 500KB
      and all of ($a*)
      and 1 of ($sa*)
      and 1 of ($sb*)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 5 string patterns in its detection logic.

References

False Positive Guidance

Here are 5 specific false positive scenarios for the rule “Detects scheduled tasks that execute Java JAR files,” along with suggested filters or exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/mal_soupdealer_java_aug25.yar