+ All Categories
Home > Technology > Layer 7 denial of services attack mitigation

Layer 7 denial of services attack mitigation

Date post: 18-May-2015
Category:
Upload: ammar-wk
View: 2,623 times
Download: 3 times
Share this document with a friend
Description:
RISTEK - IT lesehan 12 nov 2011
Popular Tags:
37
Layer7 Denial Of Sevice Attack Mitigation IT LESEHAN - y3dips Saturday, November 12, 11
Transcript
Page 1: Layer 7 denial of services attack mitigation

Layer7 Denial Of Sevice Attack Mitigation

IT LESEHAN - y3dipsSaturday, November 12, 11

Page 2: Layer 7 denial of services attack mitigation

Agenda

• Introduction

• Denial Of Service

• Layer 7 Denial Of Service

• Case Stories

• Demo

• Discussion

Saturday, November 12, 11

Page 3: Layer 7 denial of services attack mitigation

Introduction• Freelance IT Security Consultant

• More than 9 years in IT Security

• Founder of “ECHO” one of Indonesian Hacker Community, established 2003

• Founder of IDSECCONF - Indonesia Security Conference in Cooperation with DEPKOMINFO

• More Info:

[email protected]

• @y3dips

Saturday, November 12, 11

Page 4: Layer 7 denial of services attack mitigation

Denial of ServiceSuatu jenis kegiatan yang bertujuan untuk menggagalkan kerja suatu

sistem secara maksimal baik sebagian atau seluruhnya.

Saturday, November 12, 11

Page 5: Layer 7 denial of services attack mitigation

DOS

• Stupid Act

• Exhausted also yours

• Old story,

• moby write ddos in 2003 *

• I write apache dos in 2003**

• Well handle by now*http://ezine.echo.or.id/ezine2/ddos%7EMoby.txt**http://ezine.echo.or.id/ezine2/dos_buat_apache%7Ey3dips.txt

Saturday, November 12, 11

Page 6: Layer 7 denial of services attack mitigation

Type of Network DOS

• Layer 4

• Attack layer 4 protocol

• TCP

• SYN, FIN, ACK

• smurf, TRINOO, stacheldart, teardrop

Saturday, November 12, 11

Page 7: Layer 7 denial of services attack mitigation

Type of Network DOS

• Layer 7

• Attack Layer 7 Protocol

• HTTP, FTP, DNS

• HTTP-slow post, HTTP-GET

Saturday, November 12, 11

Page 8: Layer 7 denial of services attack mitigation

Real Life Stories When this all begin

Saturday, November 12, 11

Page 9: Layer 7 denial of services attack mitigation

DOS Terhadap ECHO

• 7 - 8 November 2011

• Unknown Motives

• Echo Web Access Down

Saturday, November 12, 11

Page 10: Layer 7 denial of services attack mitigation

Attack Detection

Saturday, November 12, 11

Page 11: Layer 7 denial of services attack mitigation

See TKP :)

Saturday, November 12, 11

Page 12: Layer 7 denial of services attack mitigation

Check Validitas DOS

• Only you?

• Or for everyone :D

• http://downforeveryoneorjustme.com/

Saturday, November 12, 11

Page 13: Layer 7 denial of services attack mitigation

Analyze :|

Saturday, November 12, 11

Page 14: Layer 7 denial of services attack mitigation

Analyze

• The Server Down?

• Or onlye specific service Down

Saturday, November 12, 11

Page 15: Layer 7 denial of services attack mitigation

In this Case 80 down

Saturday, November 12, 11

Page 16: Layer 7 denial of services attack mitigation

Layer 7 DOSLets Dig arround on 80!

Saturday, November 12, 11

Page 17: Layer 7 denial of services attack mitigation

See Stats :)

Saturday, November 12, 11

Page 18: Layer 7 denial of services attack mitigation

Ganti Periode Laporan: 201111 - Bulan Nov 2011 Go

Statistik untuk: echo.or.idTerakhir diupdate: 08 Nov 2011 - 14:20Periode Laporan: Bulan Nov 2011

Kapan: Monthly history Days of month Hari Jam (Waktu Server) Siapa: Countries Daftar Lengkap Host Daftar Lengkap Kunjungan Terakhir Alamat IP yang tidak teresolve Robot/Spider Daftar Lengkap

Kunjungan Terakhir Navigasi: Lama kunjungan Jenis File Halaman yang Dilihat Daftar Lengkap Halaman masuk (entry page) Halaman keluar (exit page) Sistem Operasi

Versi Tidak Diketahui Browser Versi Tidak Diketahui Referer: Asal Search engine referer Situs referer Pencarian Frase Pencarian Kata Kunci Pencarian Lainnya: Miscellaneous Kode error HTTP Halaman tidak ditemukan (not found)

Ringkasan Periode Laporan Bulan Nov 2011Kunjungan Pertama 01 Nov 2011 - 00:00Kunjungan Terakhir 08 Nov 2011 - 11:35

Pengunjung Unik Jumlah Kunjungan Halaman Hit Bandwidth

Traffic viewed * 10021

14357(1.43 kunjungan/pengunjung)

102822(7.16 Halaman/Kunjungan)

417078(29.05 Hit/Kunjungan)

1.45 GB(105.69 KB/Kunjungan)

Traffic not viewed * 88111 145915 395.12 MB

* Not viewed traffic includes traffic generated by robots, worms, or replies with special HTTP status codes.

Monthly history

Jan2011

Feb2011

Mar2011

Apr2011

Mei2011

Jun2011

Jul2011

Agu2011

Sep2011

Okt2011

Nov2011

Des2011

Bulan Pengunjung Jumlah Halaman Hit Bandwidth

Statistik untuk echo.or.id (2011-11) http://echo.or.id/index.cgi

1 of 10 11/9/11 1:46 PMSeems all LegitSaturday, November 12, 11

Page 19: Layer 7 denial of services attack mitigation

7, 8 November?Saturday, November 12, 11

Page 20: Layer 7 denial of services attack mitigation

7, 8 November?Saturday, November 12, 11

Page 21: Layer 7 denial of services attack mitigation

Ask the Logs :)

Saturday, November 12, 11

Page 22: Layer 7 denial of services attack mitigation

Logs

• HTTP/S logs

• http-access

• http-error

Saturday, November 12, 11

Page 23: Layer 7 denial of services attack mitigation

A Valid OneSaturday, November 12, 11

Page 24: Layer 7 denial of services attack mitigation

A Valid One but also http-flood GET Saturday, November 12, 11

Page 25: Layer 7 denial of services attack mitigation

Conclusion

• Its an HTTP-flood GET

• Connection need to be Established

• IP need to be valid?

Saturday, November 12, 11

Page 26: Layer 7 denial of services attack mitigation

Learn from Code :)

Saturday, November 12, 11

Page 27: Layer 7 denial of services attack mitigation

*Credit to Google for the code, just dig and found

Saturday, November 12, 11

Page 28: Layer 7 denial of services attack mitigation

Attack Mitigation

Saturday, November 12, 11

Page 29: Layer 7 denial of services attack mitigation

Mitigation

• Always Have your backup

• No privil8 access to server; LAPORKAN

Saturday, November 12, 11

Page 30: Layer 7 denial of services attack mitigation

Mitigation

• Had The Privileged

• check netstat -n | grep 80 | wc -l

• block :

• iptables -A INPUT -s x. x. x. x -p tcp -j TARPIT

• iptables -A INPUT -s x. x. x. x -p tcp -j DROP

Saturday, November 12, 11

Page 31: Layer 7 denial of services attack mitigation

TARPITING

http://www.secureworks.com/research/threats/ddos/

Care to Send and double the packet :) ?

Saturday, November 12, 11

Page 32: Layer 7 denial of services attack mitigation

Hardening Apache

•TimeOut=Default 300 detik atau 5 Menit, disarankan 10 detik

• TimeOut akan melindungi server dari rikues dalam jumlah besar, dan tidak pernah di putus oleh Attacker, dengan adanya TimeOut, apabila tidak terjadi transaksi dalam waktu tersebut (10 detik), maka Apache akan memutus koneksi

Saturday, November 12, 11

Page 33: Layer 7 denial of services attack mitigation

Hardening Apache

•KeepAlive = On• KeepAlive akan mengijinkan Berbagai jenis HTTP rikues

dilakukan dalam satu koneksi.

•KeepAlive = 15 detik• Setting ini akan melindungi Server dari Rikues Keepalive tanpa

transaksi

Saturday, November 12, 11

Page 34: Layer 7 denial of services attack mitigation

Hardening Apache

•AcceptFilter = http/https data• Melindungi dari jenis serangan, dimana attacker membuka

koneksi via socket dan membiarkannya tanpa terjadinya transaksi data. Dengan mendefinisikan data pada http dan https akan meminimalisir jenis serangan ini.

Saturday, November 12, 11

Page 35: Layer 7 denial of services attack mitigation

DeMo

Saturday, November 12, 11

Page 36: Layer 7 denial of services attack mitigation

Saturday, November 12, 11

Page 37: Layer 7 denial of services attack mitigation

Layer7 Denial Of Sevice Attack Mitigation

IT LESEHAN - y3dipsSaturday, November 12, 11


Recommended