Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

33
#BOTNET Utsav Mittal Founder and Principal Consultant at Xiarch Pvt Ltd

description

Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting in Adobe Systems, Noida

Transcript of Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

Page 1: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

#BOTNETUtsav MittalFounder and Principal Consultant at Xiarch Pvt Ltd

Page 2: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 3: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 4: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 5: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 6: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 7: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 8: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 9: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 10: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 11: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

WHAT IS BOTNET ?

• Network of Infected Host.

• Botnet is a network of compromised computers (#zombies) under the control of remote attacker (#botmaster).

• Controller of botnet is able to direct the activities of these compromised system.

#Bot Terminology

> Bot Herder (#botmaster)

> Bot

> Bot Client

> IRC / HTTP based Server

> Command & Control Channel (C&C)

Page 12: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

WHAT DOES IT LOOK LIKE WHEN YOU CONNECT

Look like regular IRC C&C !

Page 13: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

WHAT DOES IT LOOK LIKE WHEN YOU CONNECT

Bot Connected !

Page 14: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

IRC COMMANDS – THAT A HIJACKER WOULD USE

Page 15: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

HISTORY OF BOTNET

• Sub7 & Pretty Park (a Tr0jan & a W0rm) infected machine connecting to an internet relay chat (IRC) channel to listen for malicious commands.

• in 2002 Agobot introduced the concept of staged attack.

• [+] install a back door, the second try to take out anti-virus software and third blocked access to security vendor websites.

• Rbot also appeared in 2003 – a family of bots which used compression and encryption algorithms to evade detection.

Page 16: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

BOTBOT

Botnet Architecture

BOTMASTER

BOT

C&C C&C

Recruiting

Recruiting

Recruiting

Page 17: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

ATTACKING BEHAVIORS

• Infecting new hosts• Social engineering and distribution of malicious emails or other electronic

communications (i.e. Instant Messaging)

• Example - Email sent with botnet disguised as a harmless attachment.

• Stealing personal information• Keylogger and Network sniffer technology used on compromised systems to spy on

users and compile personal information

• Phishing and spam proxy• Aggregated computing power and proxy capability make allow spammers to impact

larger groups without being traced.

• Distributed Denial of Service (DDoS)• Impair or eliminate availability of a network to extort or disrupt business

• CPU Abusing• Uses Victim CPU to perform bitcoin mining or brute force hash reversing and password

attacks eg.ZeroAccess ,Skynet

Page 18: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

ATTACK VECTOR

• USB Drives

• EMAIL

• FILES

• BUGGY SOFTWARES

• OPEN PORTS

• Others . .

Page 19: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

BOTNET COMMUNICATION METHODS

• HTTP

• IRC

• P2P

• Others . .

Page 20: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

CURRENT BOTNET

• What is Tor ?

Tor is short for The Onion Router and was initially a worldwide network of servers developed with the U.S. Navy that enabled people to browse the internet anonymously.

Page 21: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

TOR BASED BOTNET

Page 22: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

ANDROID TOR BASED BOTNET

Page 23: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

HTTP COINER BOTNET

Page 24: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

BITCOIN MINING BOTNET

Page 25: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

FBI — Botnets Infecting 18 Computers per Second.

Page 26: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

BROWSER BASED BOTNET

• Abuse HTML5 to DDoS

• + Jeremiah Grossman and Matt Johansen showed that it is possible to initiate a massive distributed denial of service (DDoS) attack via a browser-based botnet.

• + This abuse of HTML5 can lead to spamming, bitcoin generation, phishing, internal network reconnaissance, proxy network usage, and spreading of worm via XSS attacks or SQL injections.

Page 27: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

HOW ?

Attackers need only to invest on fake online ads which are inexpensive. Because networks serving ads on websites allow the execution of JavaScript, the attackers craft the JavaScript to make hundreds or thousands of users connect to a targeted site simultaneously, which may be enough to make the victim site inaccessible.

dDOS !

Page 28: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

ABUSES OF HTML5 +

1. Spamming

2. Bitcoin generation

3. Phishing

4. Internal network reconnaissance,

5. Proxy network usage

6. Spreading of worm via XSS attacks or SQL injections.

Page 29: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

BENEFITS ~

• No malware to detect.

• No trace , few alarms.

• Very very easy

• Everyone browser is vulnerable (by default)

Page 30: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

DISTRIBUTION OF “JAVASCRIPT MALWARE”

• HTML Injection on popular Website and Forums (blog , war3z)

• Man in Middle Attack

• EMAIL Spam (HTML)

• Third Part web Widgets

Page 31: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting
Page 32: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

"The most reliable , cost effective method to inject evil code is to buy an ad “

~Douglas Crockford

Page 33: Botnets - What, How and Why by Utsav Mittal @ OWASP Delhi July, 2014 Monthly Meeting

Thank You