hiding-java-class-file
Description
This query was originally published in the threat analytics report, Adwind utilizes Java for cross-platform impact. Adwind is a remote access tool (RAT) that takes advantage of the cross-platform capabilities of the Java framework. It can check which operating system a target is running and adapt accordingly, allowing it to successfully compromise both Windows and macOS devices. The query below checks for attempts to disguise Java class files (i.e., complied code with a .class extension). Although the behavior detected by this query is typical of attacks that use Adwind malware, unrelated attacks may use the same or similar defense evasion techniques. See Detecting a JAR attachment for an additional query that detects behavior associated with Adwind attacks.
Query · kql
union DeviceFileEvents, DeviceProcessEvents | where ProcessCommandLine has "attrib +h +s +r " and ProcessCommandLine contains ".class"