Concrete signature match: Trojan - Appears legitimate but performs malicious actions for 64-bit Windows platform, family Amadey
This is a concrete detection of Trojan:Win64/Amadey.AMA!MTB, a sophisticated 64-bit Amadey botnet variant. It leverages machine learning behavioral analysis and employs advanced techniques like process injection/hooking, and living-off-the-land binaries (mshta, regsvr32, rundll32, PowerShell, BITS) for execution, persistence, and evasion, posing a critical threat to system integrity and data.
Relevant strings associated with this threat: - !#HSTR:StringCodeForMshta.A!pli (PEHSTR_EXT) - !#HSTR:StringCodeForHooking.C!pli (PEHSTR_EXT) - !#HSTR:StringCodeForHooking.D!pli (PEHSTR_EXT) - !#HSTR:StringCodeForHooking.L!pli (PEHSTR_EXT) - !#HSTR:StringCodeForHooking.O!pli (PEHSTR_EXT) - !#HSTR:StringCodeForRegsvr32.A!pli (PEHSTR_EXT) - !#HSTR:StringCodeForRundll32.A!pli (PEHSTR_EXT) - rundll32 (PEHSTR_EXT) - !#HSTR:StringCodeForBITSJobs.A!pli (PEHSTR_EXT) - !#HSTR:StringCodeForPowerShell.G!pli (PEHSTR_EXT) - !#HSTR:StringCodeForScheduledTask.A!pli (PEHSTR_EXT) - !#HSTR:StringCodeForDataEncoding.D!pli (PEHSTR_EXT) - !#HSTR:StringCodeForHooking.J!pli (PEHSTR_EXT) - !#HSTR:StringCodeForHooking.K!pli (PEHSTR_EXT) - !#HSTR:StringCodeForRemoteFileCopy.B!pli (PEHSTR_EXT) - !#HSTR:ExecutionGuardrails (PEHSTR_EXT) - !#HSTR:StringCodeForFileDeletion.A!pli (PEHSTR_EXT) - !#HSTR:StringCodeForHooking.M!pli (PEHSTR_EXT) - !#HSTR:StringCodeForNetshHelperDLL.A!pli (PEHSTR_EXT) - !#HSTR:StringCodeForRemoteServices.A!pli (PEHSTR_EXT)
rule Trojan_Win64_Amadey_AMA_2147947183_0
{
meta:
author = "threatcheck.sh"
detection_name = "Trojan:Win64/Amadey.AMA!MTB"
threat_id = "2147947183"
type = "Trojan"
platform = "Win64: Windows 64-bit platform"
family = "Amadey"
severity = "Critical"
info = "MTB: Microsoft Threat Behavior"
signature_type = "SIGNATURE_TYPE_PEHSTR_EXT"
threshold = "3"
strings_accuracy = "Low"
strings:
$x_2_1 = {48 98 48 01 d0 0f b6 00 32 45 20 89 c1 48 8b 55 28 8b 45 fc 48 98 48 01 d0 88 08 8b 4d fc} //weight: 2, accuracy: High
$x_1_2 = {48 98 48 01 d0 88 08 8b 4d fc 48 63 c1 48 69 c0 ?? ?? ?? ?? 48 c1 e8 20 48 89 c2 89 c8 c1 f8 1f 29 c2 89 d0 01 c0 01 d0 29 c1 89 ca 85 d2} //weight: 1, accuracy: Low
condition:
(filesize < 20MB) and
(all of ($x*))
}5dd299f67b1c5651f3d6b8e420efdd09e0cbc4c221fee6097865868c08fde903Immediately isolate the affected system to prevent further compromise. Perform a full system scan with updated antivirus/EDR, remove all detected components, and investigate for persistence mechanisms (e.g., scheduled tasks), lateral movement, or additional malware payloads. Ensure systems are patched, and implement application whitelisting and network segmentation.