https://github.com/tioxy/panoptes
The multicloud security group analyzer
https://github.com/tioxy/panoptes
aws boto3 devops ec2 python security-groups
Last synced: 3 days ago
JSON representation
The multicloud security group analyzer
- Host: GitHub
- URL: https://github.com/tioxy/panoptes
- Owner: tioxy
- License: apache-2.0
- Created: 2018-02-07T12:46:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T04:11:52.000Z (over 5 years ago)
- Last Synced: 2024-08-10T11:24:13.702Z (over 1 year ago)
- Topics: aws, boto3, devops, ec2, python, security-groups
- Language: Python
- Homepage: https://tioxy.github.io/panoptes/
- Size: 188 KB
- Stars: 38
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PANOPTES
Panoptes is an automatic security group analyzer focused on reducing the amount of toiling. Mainly focused on AWS, built to be extensible in the future and support the big cloud providers out there.

## [Prerequisites](#prerequisites)
-----
#### For lazy users
There is a Docker image [*tioxy/panoptes*](https://hub.docker.com/r/tioxy/panoptes/) which uses the Dockerfile located in the root of the repository
#### Python
- Python >= 3.6
- pip
#### For AWS usage
- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/installing.html) installed and configured with your IAM credentials (if you want more customization use [Named Profiles](https://docs.aws.amazon.com/cli/latest/userguide/cli-multiple-profiles.html))
## [Installation](#installation)
-----
Get the latest version of the package from your terminal with *pip*:
```bash
pip install panoptes --upgrade
```
## [Getting Started](#getting-started)
-----
If you want to see the available options:
```bash
panoptesctl aws analyze --help
```
Generate an AWS analysis with human readable output:
```bash
panoptesctl aws analyze --region
```
Generate an AWS analysis with an YML output and a Named Profile from AWS CLI:
```bash
panoptesctl aws analyze --region --profile --output yml
```
*Check out [AWS Regions](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions) to see available region codes*
## [Whitelisting](#whitelisting)
-----
### Manually
If you wish to whitelist IPs, not letting the analysis mark them as **Unsafe**, you can define a sample file with the desired IPs and CIDRs, like the following one:
**your_whitelist.txt**
```
111.111.111.111/32
123.123.123.123/32
```
And then run the analysis with the parameter *--whitelist*:
```
panoptesctl aws analyze --region --output yml --whitelist /PATH/TO/your_whitelist.txt
```
### Automatically
Panoptes generates automatically a list of IPs which it does not consider harmful from the desired cloud provider.
#### AWS autogenerated
- VPC ranges
- Subnet ranges
- Private IPs from EC2 VPC Instances
- Public IPs from EC2 VPC Instances
- Elastic IPs
## [Limitations](#limitations)
----
The Automatic AWS Whitelist feature can't whitelist *public* and *private* IP's from **EC2 Classic**, so make sure that those instances have an *Elastic IP* attached and their security groups are pointing to the new *Elastic IP* attached instead of the default EC2 Classic ones.