Scan EC2 using OpenVAS
Scanning your EC2 instances periodically to check for vulnerabilities and security loopholes is definitely something that no Systems/DevOps engineer should miss out on. There are several scanning tools available for these purposes but very few free ones. OpenVAS is an opensource and free tool which originated as a fork of the now commercial Nessus scanning tool.
Follow these steps to quickly get started with OpenVAS
- Launch an Ubuntu EC2 instance. how-to
- Add the following PPA:
sudo add-apt-repository ppa:mrazavi/openvas
- Update apt-get:
sudo apt-get update
- Install OpenVAS:
sudo apt-get install openvas
- Run the following commands to update OpenVAS scripts and data:
sudo apt-get install sqlite3
sudo openvas-nvt-sync
sudo openvas-scapdata-sync
sudo openvas-certdata-sync
sudo service openvas-scanner restart
sudo service openvas-manager restart
sudo openvasmd --rebuild --progress
The above commands will download large amounts of data from the internet. It might take several minutes to complete depending on the internet speed.
- After the downloads have finished, Goto
https:<instance-public-ip>:443
and login. The default username and password isadmin
Comments