Attackers Use 'Well-Known' Hidden HTTPS Directory to Spread Ransomware & Phishing Pages

Researchers from security firm Zscaler's ThreatLabZ found themselves looking at WordPress and Joomla sites that were serving Shade/Troldesh ransomware (which has been known since 2014), backdoors, redirectors and a variety of phishing pages.

Larry Loeb, Blogger, Informationweek

April 5, 2019

2 Min Read

Researchers from security firm Zscaler's ThreatLabZ found themselves lately looking at WordPress and Joomla sites that were serving Shade/Troldesh ransomware (which has been known since 2014), backdoors, redirectors and a variety of phishing pages. Both of these content management systems (CMS) have recently had a rough month from a security standpoint, with discovered threats originating from plugins, themes and extensions.

ThreatLabZ observed vulnerable WordPress versions from 4.8.9 to 5.1.1.

The researchers found that the attackers were using a "well-known" hidden directory present on HTTPS websites for storing and distributing Shade ransomware and phishing pages. They were hiding attack components right under the noses of sysadmins.

The hidden /.well-known/ directory mechanism is a URI prefix for locations defined by the Internet Engineering Task Force (IETF). The administrators of HTTPS websites that use Automatic Certificate Management Environment (ACME) for managing SSL certificates will place a unique token inside the /.well-known/acme-challenge/ or /.well-known/pki-validation/ directories to validate their claim of ownership of that domain.

The SSL's CA will give a specific code to the site's admins which they will put in this particular directory. The CA then looks for it to be present there, establishing that the site belongs to whom they think it does. It's like a multi-factor authorization scheme for HTTPS sites.

But attackers have been putting their own stuff in there as well. This works well for the attacker since the directory is already present on most HTTPS sites. It is also hidden, increasing the survivability of the malicious content since it may just be ignored by routine scans.

For Shade/Troldesh ransomware, Zscaler found that every compromised site had three types of files: HTML, ZIP and EXE (.jpg). The HTML files were used to redirect the downloading of ZIP files, the ZIP files contained JavaScript and the EXE (.jpg) files were the actual Shade ransomware.

The activated malware uses a TOR client to connect to its command and control (C&C) server and will encrypt (with AES-256 in CBC mode with two different keys) both the content and name of targeted files. Phishing pages in the SSL-validated hidden directories were also observed. They are spoofing Office 365, Microsoft, DHL, Dropbox, Bank of America, Yahoo, Gmail, along with some others.

The obvious mitigation here is to upgrade/patch WordPress so an attacker can not get in and place their files. But if a site has already been compromised, paying attention to these hidden directories may be the only way to clean out an established malware infestation.

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Read more about:

Security Now

About the Author

Larry Loeb

Blogger, Informationweek

Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek. He has written a book on the Secure Electronic Transaction Internet protocol. His latest book has the commercially obligatory title of Hack Proofing XML. He's been online since uucp "bang" addressing (where the world existed relative to !decvax), serving as editor of the Macintosh Exchange on BIX and the VARBusiness Exchange. His first Mac had 128 KB of memory, which was a big step up from his first 1130, which had 4 KB, as did his first 1401. You can e-mail him at [email protected].

Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.

You May Also Like


More Insights