f5 remediation module suwitcha musijaral. 2 f5 api interface ● icontrol ▸ api (perl support),...

13
F5 Remediation Module Suwitcha Musijaral

Upload: eugene-berry

Post on 14-Jan-2016

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

F5 Remediation ModuleSuwitcha Musijaral

Page 2: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

2

F5 API interface

● iControl▸ API (perl support), more flexible, more work

● Command line▸ ssh and issue cli command (bigpipe command)

● iRule with Session Table▸ Create virtual server to add record to session table▸ Add iRule to protected server▸ Easy to create and suitable for FW type action

Page 3: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

3

Control VIP iRule

when HTTP_REQUEST { if { [URI::query [HTTP::uri] "action"] equals "blacklist" } { set blockingIP [URI::query [HTTP::uri] "sip"] set IPtimeout [URI::query [HTTP::uri] "timeout"] table add -subtable "blacklist" $blockingIP 1 $IPtimeout HTTP::respond 200 content "$blockingIP added to blacklist for $IPtimeout seconds" return } HTTP::respond 200 content "You need to include an ?action query"}

Page 4: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

4

iRule for protected Server

when CLIENT_ACCEPTED { set srcip [IP::remote_addr] if { [table lookup -subtable "blacklist" $srcip] != "" } { drop log local0. "Block IP on black list" return }}

Page 5: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

5

POC Environment

Virtual BIG-IP

VMNET Mgmt192.168.133.0

VMNET2192.168.10.0

VMNET4192.168.111.0

Virtual Sensor

Virtual DC

Target MachineLAMP

Attacker

Page 6: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

6

Screen Shot on F5

Page 7: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

7

Control Server

Page 8: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

8

Protected Server

Page 9: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

9

F5 Remediation Module

Page 10: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

10

Compliance Event

Page 11: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

11

Remediation Status

Page 12: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

12

Result – Connection Reset

Page 13: F5 Remediation Module Suwitcha Musijaral. 2 F5 API interface ● iControl ▸ API (perl support), more flexible, more work ● Command line ▸ ssh and issue

13

Status on BIG-IP