Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d9114ab8d8fac64b…

MALICIOUS

Office (OLE)

82.5 KB Created: 2015-08-13 09:32:00 Authoring application: Microsoft Office Word First seen: 2015-09-17
MD5: 584db4212da6129c9506a4dc24a92490 SHA-1: 102556f3c0d07720ea5df1fcadb56277e0af230a SHA-256: d9114ab8d8fac64b6ef04f183bb16223365bb94ed9deedcf1ccc908a93c5ee64
110 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information

The sample is a malicious Office document containing VBA macros. The 'SE_ENABLE_LURE' heuristic indicates a common tactic of prompting the user to enable content. The 'OLE_VBA_PCODE_AUTOEXEC_EXEC' heuristic confirms that a VBA auto-execute function ('Auto_Open') is present and attempts execution via 'CreateObject'. The 'Hameleon' VBA subroutine appears to delete document content and modify font colors, likely as a distraction or to reveal further malicious content after macros are enabled. The use of 'Environ()' suggests potential interaction with environment variables.

Heuristics 6

  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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.
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Goabc = Environ(sps)
  • 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.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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://ns.adobe.com/xap/1.0/ In document text (OLE body)
    • 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://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/rights/In document text (OLE body)
    • http://www.iec.chIn 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) 1044 bytes
SHA-256: 7b5a6ed32c2dcfb21430b2370c28ffea1b96e27077297b415954ce55564a8265
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 Hameleon()
Dim ij As Integer
Dim charCount As Integer
charCount = ActiveDocument.Characters.Count - 1
BHDW = "#"
JFQW = "$"
ij = 0
Do While True
    ij = ij + 1
    If (ActiveDocument.Characters(ij) = BHDW) Then
        If (ActiveDocument.Characters(ij - 1) = JFQW) Then
            ActiveDocument.Range(Start:=0, End:=ij).Delete
            ActiveDocument.Range(Start:=0, End:=charCount - ij - 1).Font.ColorIndex = wdBlack
            Exit Do
        End If
    End If
    If (ij = charCount) Then
        Exit Do
    End If
Loop
End Sub

Public Function Goabc(sps As String)
OIQJDWQ = "khjqkjwd ghqwgd "
Goabc = Environ(sps)
End Function












Attribute VB_Name = "Module2"