Top Banner
Automated Infrastructure Security Monitoring using FOSS #AllDayDevOps @madhuakula, Automation Ninja Appsecco
17

Automated Infrastructure Security: Monitoring using FOSS

Apr 16, 2017

Download

Software

sonatype
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Automated Infrastructure Security: Monitoring using FOSS

Automated Infrastructure SecurityMonitoring using FOSS

#AllDayDevOps

@madhuakula, Automation NinjaAppsecco

Page 2: Automated Infrastructure Security: Monitoring using FOSS

About Me !Automation Ninja at Appsecco

Appsecco is a specialist application security company

Interested in Security, DevOps & Cloud

Found bugs in Google, Microsoft, Yahoo, etc

Never ending learner!

Follow (or) Tweet to me @madhuakula

2

Page 3: Automated Infrastructure Security: Monitoring using FOSS

What we are covering today?ELK stack to analyse and visualise logs in near real­time

ElastAlert to create rules to automatically defend against SSHbruteforce attacks

AWS Lambda to do this, since our infra is hosted on AWS

Python based Chalice framework for using AWS Lambda

3

Page 4: Automated Infrastructure Security: Monitoring using FOSS

Architecture

4

Page 5: Automated Infrastructure Security: Monitoring using FOSS

Automated Defence DemoAppsecco Automated Infrastructure Security Monitoring Demo (ELK + AWS Lambda)

http://bit.ly/addo­aism

5

Page 6: Automated Infrastructure Security: Monitoring using FOSS

AWS Lambda ­ Chalice Code

https://github.com/appsecco/alldaydevops­aism

6

Page 7: Automated Infrastructure Security: Monitoring using FOSS

Security for our AWS LambdaWe are primarily doing the following two things

1. A sufficiently random token to protect the request when wepost the IP address from ElastAlert

2. Whitelist the IP address of the host where the  HTTP POST request originates from

7

Page 8: Automated Infrastructure Security: Monitoring using FOSS

Use Cases for Automated Defence1. Automated Defender (Attack Alerts + Automated Firewall)

2. Security Analytics + Reports

3. Near real­time Centralised Log Monitoring

8

Page 9: Automated Infrastructure Security: Monitoring using FOSS

Attack Scenario : Wordpress XML­RPC

https://blog.appsecco.com/analysing­attacks­on­a­wordpress­xml­rpc­using­an­

elk­stack­3bf25a7e36cc

9

Page 10: Automated Infrastructure Security: Monitoring using FOSS

Needs ImprovementMore attack signatures required

For example OSSEC Wazuh Ruleset

Improve the ElastAlert Alerter custom code

Any suggestions from your side

10

Page 12: Automated Infrastructure Security: Monitoring using FOSS

Our assumptionsYou are already monitoring in near real­time using the ELKstack

You are under attack for a specific service

You have configured ElastAlert for your alerting

12

Page 13: Automated Infrastructure Security: Monitoring using FOSS

In SummaryWe created attack threshold rules in ElastAlert

We created an AWS Lambda endpoint to be able to modifyAWS VPC Network ACLs

We have a real­time blocking system infinitely scalable

13

Page 15: Automated Infrastructure Security: Monitoring using FOSS
Page 16: Automated Infrastructure Security: Monitoring using FOSS
Page 17: Automated Infrastructure Security: Monitoring using FOSS

Thanks@madhuakula | @appseccouk | http://appsecco.com