Concrete signature match: Trojan - Appears legitimate but performs malicious actions for VBScript platform, family AgentTesla
This is a concrete detection of the AgentTesla information-stealing Trojan, delivered via a VBScript file. The malware is designed to steal credentials and other sensitive data by hooking system functions and using common system utilities for execution. It also creates scheduled tasks to maintain persistence on the compromised machine.
Relevant strings associated with this threat: - IHMVB.My (PEHSTR) - CompareString (PEHSTR_EXT) - CompareMethod (PEHSTR_EXT) 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) No specific strings found for this threat
rule Trojan_MSIL_AgentTesla_BC_2147758507_0
{
meta:
author = "threatcheck.sh"
detection_name = "Trojan:MSIL/AgentTesla.BC!MTB"
threat_id = "2147758507"
type = "Trojan"
platform = "MSIL: .NET intermediate language scripts"
family = "AgentTesla"
severity = "Critical"
info = "MTB: Microsoft Threat Behavior"
signature_type = "SIGNATURE_TYPE_PEHSTR"
threshold = "3"
strings_accuracy = "High"
strings:
$x_1_1 = "IHMVB.My" ascii //weight: 1
$x_1_2 = "C116CFCD5F95FD7E94993F490F21111BF17DB9FD240788F7024CCBFA45B63E0C" ascii //weight: 1
$x_1_3 = "$e4076bfd-a50e-4244-9f1a-9b7df0ed5202" ascii //weight: 1
condition:
(filesize < 20MB) and
(all of ($x*))
}71a9ff27e61eb20f7ff682a892b2ebe794404febc59df035e4720559f16f0b70Isolate the endpoint from the network immediately. Perform a full antivirus scan to remove the threat. Reset all user passwords and credentials that were used or stored on the device, as they are likely compromised. Investigate the initial access vector and check for persistence mechanisms like scheduled tasks.