Vulnerabilities / Threats
3/26/2013
01:56 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%
Repost This

Honeypot Stings Attackers With Counterattacks

Researchers test the controversial concept of hacking back and gathering intelligence on attackers

A Russian researcher who built an aggressive honeypot to test the ability to hack back at attackers mostly ensnared fellow white hat researchers, script kiddies, and some of his friends in his experiment—but he discovered that he had also counterattacked the desktop of an intelligence agency in a nation formerly part of the Soviet Union.

Alexey Sintsov, a security researcher and co-founder of DefCon Russia, ran an experimental homegrown "aggressive" honeypot from the second quarter of 2011 through the third quarter of 2012 on the DefCon Russia website he manages in anticipation of the site being targeted by attackers. Turns out that it's not only easy to build a honeypot that attacks back, Sintsov says, but it was also relatively simple to gather the attackers' network adapter settings, trace routes, and login names.

"When you start a site about IT security, you should be ready, that [a] big part of people will try to hack you. Not because they are evil guys or black hats, just because they can," Sintsov says. "My thought was like, 'Okay, it will be fun to play with them in a new game they do not expect'" and to test the theory of "reverse-penetration," he says.

"Actually, it was awareness testing for [the] community. It was interesting to find that attackers do not expect reverse attacks on themselves," he says.

The honeypot—which is no longer active--basically installed a backdoor agent via Java applet and exploited JSONP hijacking vulnerabilities in two email services.

[Georgia's CERT tricks alleged Russian hacker with phony file, records him via his computer, and ID's him. See Say 'Cheese': Georgian Nation Makes Offense Its Defense.]

The trap was specifically set for SQL injection attacks. Sintsov used two basic lures for potential attackers on the site: a PHP-based honeypot server that included a social engineering element and an automated attack that grabbed the attackers' email addresses if he or she used two Russian email services, mail.ru and yandex.ru, exploiting now-patched vulnerabilities in those services.

The PHP portion included a field for "members" to enter their "secret code" to enter the "private zone," he explains. "So it's a good idea to try a SQL injection attack" there, he says of the lure.

"My script had [a] few checks for some patterns, and when a SQL injection attempt was detected, the script [threw the] Java applet, 'GUI for member zona. Welcome,'" he says. The Java applet then installed a backdoor on the attacker's Windows machine, he says.

While it is possible to grab the attackers' internal IP addresses and resources, scan for his files, BSSIDs, and make audio and video recordings from his laptop, among other things with the attacking honeypot, Sintsov didn't go that far because that would be considered over the top in the information security industry, he says.

"It was fun when you got your friends' logins, e-mails and PC names. Or it is always a pleasure to see how [an] antivirus vendor runs your software on their VMware. For script kiddies, it was predictable," he says. "But some attacks and results [were] really unexpected, like reverse-penetrated [a] desktop that belong [to an] intelligence service of one of ex-USSR republic" nations, he says.

Sintsov says he later learned that the intel agent's workstation had likely been compromised and used as a cover for another attacker. He and his team found the hacker's "nickname" as well.

They also spotted SQL injection attempts from an external IP address of Russia's Ministry of Defense, but luckily, those "attackers" didn't run his backdoor for some reason, possibly because they were on a non-Windows machine, he says.

But aggressive and offensive honeypots are a controversial concept and the legal ramifications are tricky. Sintsov, who presented his honeypot experiment findings at Black Hat Europe this month in Amsterdam, says the legal issues are up for interpretation. The Java applet and email grabber were housed in a "private zone" on the website, for example, so why would the honeypot operator be at fault if someone hacked into that area and ran something—a SQL injection attack, he says.

And what about when an attacker breaks into the area of the site with the binary/backdoor and downloads that backdoor? "This page is defended with a password and I do not ask visitors to enter this page. Even more, I have a message that it is [a] forbidden zone, please enter the password or go away. But someone hacks us and downloaded this backdoor," he says. "I am not a law guy, but think that it can be [an] interesting discussion."

Still, Sintsov admits running an aggressive honeypot that attacks back at attackers would be difficult for a typical enterprise to justify. "But if we can exclude law questions, I think it is a good thing to try for the oil sector or smart grid," he says.

In his research paper (PDF) on the experiment, Sintsov explains it this way: "Obviously, reverse penetration has a number of moral, ethical and legal issues. However, it can be applied with a sufficiently high efficiency for detection and identification of attackers, at least against those who are not careful enough to expect a counterattack. I think that these methods can be used for protection at the state level and, probably, already exist these days."

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 Senior Editor at DarkReading.com. 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 Magazine, ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Drew Conry-Murray
50%
50%
Drew Conry-Murray,
User Rank: Ninja
4/1/2013 | 9:30:57 PM
re: Honeypot Stings Attackers With Counterattacks
An interesting reserach project, but I wouldn't recommend this approach for enterprises.

Drew Conry-Murray
Editor, Network Computing
nobiz
50%
50%
nobiz,
User Rank: Apprentice
3/27/2013 | 9:14:29 PM
re: Honeypot Stings Attackers With Counterattacks
This article is may attract a lot of comments from a lot of people who are not lawyers and do not know the law.

They may have entertainment value, but that's all.

If you really want to know what the law says, talk to a lawyer.
TSRL
50%
50%
TSRL,
User Rank: Apprentice
3/27/2013 | 4:04:56 PM
re: Honeypot Stings Attackers With Counterattacks
It is normally illegal to hit someone on the head with a baseball bat.-á But if that person is breaking into your home, most states will call it self defense and you will be exonerated.-á

The researcher posted all of the warnings you would expect to find for a forbidden area yet the hackers still proceeded.-á In my opinion that would be comparable to breaking into my home and I would expect to be allowed to protect my home and family with whatever means I have at my disposal.
Register for Dark Reading Newsletters
White Papers
Cartoon
Current Issue
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2012-3946
Published: 2014-04-24
Cisco IOS before 15.3(2)S allows remote attackers to bypass interface ACL restrictions in opportunistic circumstances by sending IPv6 packets in an unspecified scenario in which expected packet drops do not occur for "a small percentage" of the packets, aka Bug ID CSCty73682.

CVE-2012-5723
Published: 2014-04-24
Cisco ASR 1000 devices with software before 3.8S, when BDI routing is enabled, allow remote attackers to cause a denial of service (device reload) via crafted (1) broadcast or (2) multicast ICMP packets with fragmentation, aka Bug ID CSCub55948.

CVE-2013-6738
Published: 2014-04-24
Cross-site scripting (XSS) vulnerability in IBM SmartCloud Analytics Log Analysis 1.1 and 1.2 before 1.2.0.0-CSI-SCALA-IF0003 allows remote attackers to inject arbitrary web script or HTML via an invalid query parameter in a response from an OAuth authorization endpoint.

CVE-2014-2391
Published: 2014-04-24
The password recovery service in Open-Xchange AppSuite before 7.2.2-rev20, 7.4.1 before 7.4.1-rev11, and 7.4.2 before 7.4.2-rev13 makes an improper decision about the sensitivity of a string representing a previously used but currently invalid password, which allows remote attackers to obtain potent...

CVE-2014-2392
Published: 2014-04-24
The E-Mail autoconfiguration feature in Open-Xchange AppSuite before 7.2.2-rev20, 7.4.1 before 7.4.1-rev11, and 7.4.2 before 7.4.2-rev13 places a password in a GET request, which allows remote attackers to obtain sensitive information by reading (1) web-server access logs, (2) web-server Referer log...

Best of the Web