# What do you use for instance security monitoring?

**URL:** <https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322>\
**Category:** AWS Cloud Talk\
**Created:** [September 16, 2016, 7:59am UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322 "2016-09-16T07:59:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![burying\_luck](https://awshq.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@burying\_luck](https://awshq.com/u/burying_luck)\
**Post date:** [September 16, 2016, 7:59am UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/1 "2016-09-16T07:59:18Z")

</div>

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:**

- [AWS growth jumps 39% as Amazon hits $201.9 billion in revenue](https://awshq.com/t/aws-growth-jumps-39-as-amazon-hits-201-9-billion-in-revenue/21672)
- [AWS Account Suspended pending verification randomly and support is taking forever to verify](https://awshq.com/t/aws-account-suspended-pending-verification-randomly-and-support-is-taking-forever-to-verify/21738)
- [Curated. Central. Application only. See you there? 11/29](https://awshq.com/t/curated-central-application-only-see-you-there-11-29/21781)
- [Support?](https://awshq.com/t/support/21670)
- [The Technologies That Will Replace Traditional Industries#FutureTechnologies #EmergingTechnologies #IndustryDisruption #ArtificialIntelligence #AIRevolution #Automation #Robotics #CloudComputing #DigitalTransformation #Innovation #TechnologyTrends #FutureOfIndustries #SmartManufacturing #Industrial](https://awshq.com/t/the-technologies-that-will-replace-traditional-industries-futuretechnologies-emergingtechnologies-industrydisruption-artificialintelligence-airevolution-automation-robotics-cloudcomputing-digitaltransformation-innovation-technologytrends-futureofindustrie/21750)

---

<div class="post-metadata">

**Author:** ![virtualjj](https://awshq.com/letter_avatar_proxy/v4/letter/v/e480ec/32.png) [@virtualjj](https://awshq.com/u/virtualjj)\
**Post date:** [September 16, 2016, 8:25am UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/2 "2016-09-16T08:25:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![adh88ca](https://awshq.com/letter_avatar_proxy/v4/letter/a/0ea827/32.png) [@adh88ca](https://awshq.com/u/adh88ca)\
**Post date:** [September 16, 2016, 3:19pm UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/3 "2016-09-16T15:19:08Z")

</div>

> [@virtualjj](#):
>
> 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 …

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](https://github.com/denyhosts/denyhosts) which you can set up to detect bruteforce attacks

---

<div class="post-metadata">

**Author:** ![julietscause](https://awshq.com/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@julietscause](https://awshq.com/u/julietscause)\
**Post date:** [September 16, 2016, 8:07pm UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/4 "2016-09-16T20:07:41Z")

</div>

> [@adh88ca](#):
>
> 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](https://github.com/denyhosts/denyhosts) which you can set up to …

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

[https://github.com/fail2ban/fail2ban](https://github.com/fail2ban/fail2ban)

---

<div class="post-metadata">

**Author:** ![SweBot](https://awshq.com/letter_avatar_proxy/v4/letter/s/779978/32.png) [@SweBot](https://awshq.com/u/SweBot)\
**Post date:** [September 17, 2016, 8:56pm UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/5 "2016-09-17T20:56:29Z")

</div>

We use OSSEC as IDS [http://ossec.github.io/](http://ossec.github.io/)

---

<div class="post-metadata">

**Author:** ![burying\_luck](https://awshq.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@burying\_luck](https://awshq.com/u/burying_luck)\
**Post date:** [September 18, 2016, 1:06am UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/6 "2016-09-18T01:06:51Z")

</div>

> [@adh88ca](#):
>
> 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](https://github.com/denyhosts/denyhosts) which you can set up to …

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

---

<div class="post-metadata">

**Author:** ![Neco](https://awshq.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Neco](https://awshq.com/u/Neco)\
**Post date:** [September 19, 2016, 6:45am UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/7 "2016-09-19T06:45:22Z")

</div>

> [@burying\_luck](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![zoom3579](https://awshq.com/letter_avatar_proxy/v4/letter/z/2acd7d/32.png) [@zoom3579](https://awshq.com/u/zoom3579)\
**Post date:** [September 19, 2016, 5:01pm UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/8 "2016-09-19T17:01:20Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![burying\_luck](https://awshq.com/letter_avatar_proxy/v4/letter/b/e480ec/32.png) [@burying\_luck](https://awshq.com/u/burying_luck)\
**Post date:** [September 22, 2016, 2:41am UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/9 "2016-09-22T02:41:26Z")

</div>

> [@Neco\_](#):
>
> Denying/blocking connections can be easier since you have to use NACLs to block at the AWS layer.

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?

---

<div class="post-metadata">

**Author:** ![Neco](https://awshq.com/letter_avatar_proxy/v4/letter/n/ee59a6/32.png) [@Neco](https://awshq.com/u/Neco)\
**Post date:** [September 22, 2016, 6:13am UTC](https://awshq.com/t/what-do-you-use-for-instance-security-monitoring/2322/10 "2016-09-22T06:13:53Z")

</div>

> [@burying\_luck](#):
>
> 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…
