https://github.com/guessi/aws-iam-guard
AWS IAM Guard with Slack integration support
https://github.com/guessi/aws-iam-guard
aws iam-users slack
Last synced: about 1 month ago
JSON representation
AWS IAM Guard with Slack integration support
- Host: GitHub
- URL: https://github.com/guessi/aws-iam-guard
- Owner: guessi
- License: gpl-3.0
- Created: 2020-10-24T14:33:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-24T18:55:04.000Z (over 5 years ago)
- Last Synced: 2025-08-17T04:33:24.058Z (10 months ago)
- Topics: aws, iam-users, slack
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AWS IAM Guard


AWS IAM Guard with Slack integration support
# Description
With organization growth, more and more IAM user(s) created, security audit
becomes a must action, but it is hard to do security audit manually,
*AWS IAM Guard* is trying to solve this problem in programmatic way.
# Supported Audit Items
- IAM User with no MFA configured
- IAM User with no access history for N-day _(TODO)_
- IAM User's password age over N-day _(TODO)_
- IAM User's Access Key's age over N-day _(TODO)_
- IAM User's Access Key have no access history for N-day _(TODO)_
- IAM User with no access history for N-day _(TODO)_
- IAM User with no policy attached _(TODO)_
- IAM Group with no member _(TODO)_
- IAM Group with no policy attached _(TODO)_
- IAM Policy with no usage _(TODO)_
# Requirements
- Python 3.7+
- AWS profile(s) configured
- Slack webhook configured
# Usage
$ pip3 install -r requirements.txt
$ cp local_settings.py.example local_settings.py
$ vim local_settings.py
$ python3 ./aws-iam-guard.py
# FAQ
How do I configure a named AWS profile?
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
Where can I find my incoming webhook?
https://.slack.com/apps/manage/custom-integrations
# Reference
- [AWS IAM Best Practice](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html)
- [AWS Security Audit Guidelines](https://docs.aws.amazon.com/general/latest/gr/aws-security-audit-guide.html)
- [Slack Webhook](https://api.slack.com/messaging/webhooks)
# License
[GPL-3.0 License](LICENSE)