Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Attacks/Breaches

8/17/2011
03:17 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%

APT Attackers Hiding In Plain Sight

Researchers detail how these persistent attackers employ HTML comments, other benign-looking methods to do their dirty work -- and keep a low profile

Ever wonder exactly why cyberespionage attackers can be so difficult to detect? These so-called advanced persistent threat (APT) attackers increasingly are camouflaging their activities by using tools that exist in the targeted host, operating via commonly used network ports, and even hiding their command-and-control (C&C) communications within HTML comments.

"They're hiding in plain sight," says Shawn Bracken, chief scientist at HBGary, who studies these attacks firsthand in forensic investigations. "It really harkens back to their sophistication in being aware of behavioral blocking and analysis [that organizations] are using."

Rather than making any moves that could trigger an alarm or raise suspicion because it's out of the norm, these attackers instead just try to blend in. "The tools they are installing are specifically installed not to run afoul of the IPS [intrusion prevention system]. They use legitimate, published APIs and make a special effort not to do things out of the ordinary."

That means using real systems admin tools resident in the targeted operating system, and increasingly using HTML comments for their C&C. There are at least three APT groups, including the ones behind the Operation Shady RAT campaign, using that technique to conceal their communications. "You can't block [all] websites that contain comments," Bracken says.

Joe Stewart, director of malware research for Dell SecureWorks Counter Threat Unit, says the use of encrypted HTML comments on Web pages has been part of APT-type attacks for some time. "This is a technique which has been used for several years, and security researchers who have been following APT activity, I believe, have been aware of it for several years," Stewart says. "Knowledge of the HTML comments can be used to help detect APT traffic, however, only for the specific malware using specific HTML comments and their respective formats."

It works like this: The attackers exploit a Web server somewhere on the Internet or a social network site, such as a blogging site. The attacker then tucks his encoded instructions as a hidden comment on that website, and the RAT regularly checks the page.

"We've seen two scenarios -- a compromised Web server that a hacker will penetrate into, using SQL injection, for example, and then hide his comments on that server," says Greg Hoglund, CEO of HBGary.

The RAT has a hard-coded DNS name in it to connect to, which is then altered to match the IP address of the infected site. "So the RAT makes the outbound connection and grabs the instructions," he says.

The second scenario is where attackers use a legitimate social media or application site, such as Google BlogSpot, to host their hidden instructions in an HTML comment, Hoglund says. Those instructions are often configuration instructions, such as ordering a machine to connect to a specific machine in the victim's network and leave open a TCP connection. That provides the attacker with an interactive link to the machine, "and he gets command-line access," Hoglund says.

Even the remote access tools are purposely not stealthy: "They don't appear to be armored for anti-forensics," Hoglund says. "They make it look like a normal piece of software."

So if you can find the HMTL comments, you can figure out on which machines the RAT is installed, he says. But there are also likely more RATs in the network, Hoglund says.

HBGary's blog post on APT attackers employing HTML commands is here.

Have a comment on this story? Please click "Add Your Comment" below. If you'd like to contact Dark Reading's editors directly, send us a message.

Kelly Jackson Higgins is the Executive Editor of Dark Reading. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Threaded  |  Newest First  |  Oldest First
Why Cyber-Risk Is a C-Suite Issue
Marc Wilczek, Digital Strategist & CIO Advisor,  11/12/2019
DevSecOps: The Answer to the Cloud Security Skills Gap
Lamont Orange, Chief Information Security Officer at Netskope,  11/15/2019
Attackers' Costs Increasing as Businesses Focus on Security
Robert Lemos, Contributing Writer,  11/15/2019
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
Navigating the Deluge of Security Data
In this Tech Digest, Dark Reading shares the experiences of some top security practitioners as they navigate volumes of security data. We examine some examples of how enterprises can cull this data to find the clues they need.
Flash Poll
Rethinking Enterprise Data Defense
Rethinking Enterprise Data Defense
Frustrated with recurring intrusions and breaches, cybersecurity professionals are questioning some of the industrys conventional wisdom. Heres a look at what theyre thinking about.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2014-5118
PUBLISHED: 2019-11-18
A Security Bypass Vulnerability exists in TBOOT before 1.8.2 in the boot loader module when measuring commandline parameters.
CVE-2019-12422
PUBLISHED: 2019-11-18
Apache Shiro before 1.4.2, when using the default "remember me" configuration, cookies could be susceptible to a padding attack.
CVE-2012-4441
PUBLISHED: 2019-11-18
Cross-site Scripting (XSS) in Jenkins main before 1.482 and LTS before 1.466.2 allows remote attackers to inject arbitrary web script or HTML in the CI game plugin.
CVE-2019-10764
PUBLISHED: 2019-11-18
In elliptic-php versions priot to 1.0.6, Timing attacks might be possible which can result in practical recovery of the long-term private key generated by the library under certain conditions. Leakage of a bit-length of the scalar during scalar multiplication is possible on an elliptic curve which m...
CVE-2019-19117
PUBLISHED: 2019-11-18
/usr/lib/lua/luci/controller/admin/autoupgrade.lua on PHICOMM K2(PSG1218) V22.5.9.163 devices allows remote authenticated users to execute any command via shell metacharacters in the cgi-bin/luci autoUpTime parameter.