Slide 1

Slide 1 text

Tools for useful Vuls scan for EC2 ʮec2-vuls-configʯ Vuls-jp #1 @ohsawa0515

Slide 2

Slide 2 text

Shuichi Ohsawa (@ohsawa0515) GitHub: https://github.com/ohsawa0515 Blog: http://blog.jicoman.info/

Slide 3

Slide 3 text

ec2-vuls-config • https://github.com/ohsawa0515/ec2-vuls- config • Written by golang • Rewrites the configuration file (config.toml) by describing Amazon EC2 instance tags

Slide 4

Slide 4 text

Why necessary? • Instance is constantly changing by AutoScaling, Adding or deleting instances. It is hard to update the scan target (update the configuration file). • You do not need to scan all servers. • If we have servers of the same configuration (e.g. Web server) that use server configuration tools (chef, ansible etc), may be scanned only one of them. • I would like to find automatically the scan target by describing tags like Amazon Inspector.

Slide 5

Slide 5 text

Installation & Settings • $ go get -u github.com/ohsawa0515/ec2-vuls-config • $ export AWS_ACCESS_KEY_ID=ACCESS_KEY_ID • $ export AWS_SECRET_ACCESS_KEY=ECRET_ACCESS_KEY • $ export AWS_REGION=us-east-1 • Set the tag to EC2 instance that you want to scan
 ɾ Name: Name of server. e.g. web-server-1
 ɾ Vuls-Scan (Default): Scan target. e.g. Vuls-Scan:True

Slide 6

Slide 6 text

Execution • Prepare config.toml for Vuls scan • Run ec2-vuls-config • $ ec2-vuls-config —config path/to/config.toml

Slide 7

Slide 7 text

Execution result (for example) • Rewrite the configuration file which the matched ec2 instance by filtering. • By default, filtering works that status is running, platform is linux

Slide 8

Slide 8 text

Conclusion • ec2-vuls-config is useful cli to create config file for Vuls in Amazon EC2. • It is convenient to scan target by setting EC2 tag. I have been using frequently :-). • Please give me the star of GitHub if you think good.