What do you use for instance security monitoring?

I’m curious what the group uses for things like intrusion detection, access logs, auditing, etc. AWS gives you a lot of control with network isolation, which helps, but how would you know if one of your servers was compromised or being misused?

Thanks for the help!


Related discussions:

Lots of ways to do this but out of the box, you could setup TOPICS with email and / or SMS subscriptions, send your log files to CloudWatch, and then use metric filters and alarms for any events that you want to be notified on. You should also do this with VPC flow logs as well. Of course you’ll need to have a baseline of what is normal and not normal. I use a combination of CloudFlare, PagerDuty, Splunk, CloudWatch, Sophos UTM for instance outbound proxy and others, and TrendMicro for log integrity, antivirus, and IPS/IDS. There are 3rd party products that supposedly solve this problem but they are not cheap and I question the ROI. Whatever you do, if you have a good idea everyday of how how many instances are running and all outbound DNS request patterns from your environment and you follow up on anything “different”, you will be way ahead of many.

In addition to this, keep in mind best security practices for any server such as IpTables rules, SeLinux, disableing the default account, etc

Also recommend https://github.com/denyhosts/denyhosts which you can set up to detect bruteforce attacks

If i remember correct, denyhosts wasnt be updated anymore but fail2ban is

https://github.com/fail2ban/fail2ban

We use OSSEC as IDS http://ossec.github.io/

Do you set up IpTables even when you have AWS security groups tied to all of the instances?

Denying/blocking connections can be easier since you have to use NACLs to block at the AWS layer.

Careful monitoring of whatever IAM role youve given it; ie denys appearing in cloudtrail. having both egress and ingress rules and logging on those via flowlogs for denys. Logs from the instances for failed logins, or if your like us any logins at all (once the machine has had a user logged in, we delete them and have them re created).

Ah, if you’re strictly talking about blocking then yes. But for only whitelists wouldn’t IpTables be redundant if you already had security groups set up?

Yeah technically, but regulations/requirements from vendors might require VM firewalls etc…