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.

Endpoint

11/11/2015
04:10 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%

Tool Controls Botnet With Twitter Direct Messages

'Twittor' exploits the expanded capacity of Twitter DMs to replace traditional botnet command-and-control server infrastructure.

Turns out Twitter's expansion of Direct Message capacity beyond 140 characters inadvertently gives botnet operators a stealthy and streamlined way to control their bots.

A new backdoor tool built by white hat security researcher Paul Amar uses Twitter DMs as a botnet command-and-control infrastructure. Amar says his so-called "Twittor" tool was inspired by a Gmail-based botnet C&C tool called "Gcat."

"I was looking at how third-party services could hide malicious traffic" and how botnets could maintain a command-and-control infrastructure that could avoid takedowns, for example, says Amar, a security analyst with SensePost Information Security.

His Python-based Twittor backdoor tool basically allows a botnet to operate and hide in plain sight. The machines would already be infected with the malware, and then controlled by the attacker via his or her malicious Twitter DMs. "It uses just one Twitter account that sends" the DMs, Amar says. "Everything is going through private messaging" of the attacker's account, he says.

Amar says an attacker likely would use Tor to create the new Twitter account. With DMs longer than 140 characters, it leaves plenty of headroom for controlling the bots, he says. "It allows for more malicious activity."

Some security experts have called out the potential for abuse of DMs with Twitter's move in August to remove the 140-character limit, as well as the new option for any Twitter user to DM any other Twitter user even if they are not following one another.

Bad guys will use most any possible channel for C&C, notes Dan Kaminsky, chief scientist with WhiteOps, who points out that social networks long have been abused that way. Researchers at DC949 created Twitter FS, a file system tool that used just the 140-character limit to store files, he notes. "Small channels have always been attractive to C&C, which never needs much bandwidth to prosper," Kaminsky says.

Kaminsky's 2005 OzymanDNS project, meanwhile, demonstrated the potential for abuse of DNS by moving files and tunneling traffic over DNS.

Twit Bot Limit

Twitter limits users to 1,000 DMs per day, so Amar estimates that a Twittor botnet would max out at somewhere around 100 bot machines. "The best way to bypass that limitation would be to use different accounts and mesh them all together. So with three accounts, we can do around 3,000 DMs daily, which would be enough to control a few hundred boxes," Amar says.

Since they communicate via the Twitter API, the bots don't need their own Twitter accounts to be controlled, he notes. And since it uses the API, there's no worries of IP-filtering for the attacker, he says. And "nothing's public, [since it's] only using Direct Messages, so there's no public malicious activity," he says.

A DM-controlled botnet complicates a bot-infected company's defenses. "It's quite complicated. You would have to block Twitter in a corporate environment," says Amar, noting that such a ban obviously wouldn't be realistic in most companies. The DM traffic would be difficult to distinguish from legitimate communications, he says.

Amar says he's looking at adding a data exfiltration toolkit for his Twittor tool. Twittor is available on Github.

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
 

Recommended Reading:

Comment  | 
Print  | 
More Insights
Comments
Oldest First  |  Newest First  |  Threaded View
COVID-19: Latest Security News & Commentary
Dark Reading Staff 9/21/2020
Cybersecurity Bounces Back, but Talent Still Absent
Simone Petrella, Chief Executive Officer, CyberVista,  9/16/2020
Meet the Computer Scientist Who Helped Push for Paper Ballots
Kelly Jackson Higgins, Executive Editor at Dark Reading,  9/16/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Latest Comment: Exactly
Current Issue
Special Report: Computing's New Normal
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
How IT Security Organizations are Attacking the Cybersecurity Problem
How IT Security Organizations are Attacking the Cybersecurity Problem
The COVID-19 pandemic turned the world -- and enterprise computing -- on end. Here's a look at how cybersecurity teams are retrenching their defense strategies, rebuilding their teams, and selecting new technologies to stop the oncoming rise of online attacks.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-7734
PUBLISHED: 2020-09-22
All versions of package cabot are vulnerable to Cross-site Scripting (XSS) via the Endpoint column.
CVE-2020-6564
PUBLISHED: 2020-09-21
Inappropriate implementation in permissions in Google Chrome prior to 85.0.4183.83 allowed a remote attacker to spoof the contents of a permission dialog via a crafted HTML page.
CVE-2020-6565
PUBLISHED: 2020-09-21
Inappropriate implementation in Omnibox in Google Chrome on iOS prior to 85.0.4183.83 allowed a remote attacker to spoof the contents of the Omnibox (URL bar) via a crafted HTML page.
CVE-2020-6566
PUBLISHED: 2020-09-21
Insufficient policy enforcement in media in Google Chrome prior to 85.0.4183.83 allowed a remote attacker to leak cross-origin data via a crafted HTML page.
CVE-2020-6567
PUBLISHED: 2020-09-21
Insufficient validation of untrusted input in command line handling in Google Chrome on Windows prior to 85.0.4183.83 allowed a remote attacker to bypass navigation restrictions via a crafted HTML page.