Skip to content

Commit 3ef2ba0

Browse files
authored
Merge pull request #493 from 0xdabbad00/document_audit_config_override_ability
Document audit config override ability
2 parents 3cc241f + 58bdbfb commit 3ef2ba0

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed

README.md

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,15 @@ pipenv shell
8181
A small set of demo data is provided. This will display the same environment as the demo site https://duo-labs.github.io/cloudmapper/
8282

8383
```
84+
# Generate the data for the network map
8485
python cloudmapper.py prepare --config config.json.demo --account demo
86+
# Generate a report
87+
python cloudmapper.py report --config config.json.demo --account demo
8588
python cloudmapper.py webserver
8689
```
8790

8891
This will run a local webserver at http://127.0.0.1:8000/
92+
View the network map from that link, or view the report at http://127.0.0.1:8000/account-data/report.html
8993

9094

9195
# Setup
@@ -95,20 +99,8 @@ This will run a local webserver at http://127.0.0.1:8000/
9599

96100
## 1. Configure your account
97101

98-
### Option 1: Edit config file manually
99102
Copy the `config.json.demo` to `config.json` and edit it to include your account ID and name (ex. "prod"), along with any external CIDR names. A CIDR is an IP range such as `1.2.3.4/32` which means only the IP `1.2.3.4`.
100103

101-
### Option 2: Generate config file
102-
CloudMapper has commands to configure your account:
103-
104-
```
105-
python cloudmapper.py configure {add-account|remove-account} --config-file CONFIG_FILE --name NAME --id ID [--default DEFAULT]
106-
python cloudmapper.py configure {add-cidr|remove-cidr} --config-file CONFIG_FILE --cidr CIDR --name NAME
107-
```
108-
109-
This will allow you to define the different AWS accounts you use in your environment and the known CIDR IPs.
110-
111-
112104
## 2. Collect data about the account
113105

114106
This step uses the CLI to make `describe` and `list` calls and records the json in the folder specified by the account name under `account-data`.
@@ -130,6 +122,36 @@ Collecting the data is done as follows:
130122
python cloudmapper.py collect --account my_account
131123
```
132124

125+
## Analyze the data
126+
From here, try running the different commands, such as:
127+
128+
```
129+
python cloudmapper.py report --account my_account
130+
python cloudmapper.py webserver
131+
```
132+
133+
Then view the report in your browser at 127.0.0.1:8000/account-data/report.html
134+
135+
136+
137+
## Further configuration
138+
139+
### Generating a config file
140+
Instead of modifying `config.json` directly, there is a command to configure the data there, in case that is needed:
141+
142+
```
143+
python cloudmapper.py configure {add-account|remove-account} --config-file CONFIG_FILE --name NAME --id ID [--default DEFAULT]
144+
python cloudmapper.py configure {add-cidr|remove-cidr} --config-file CONFIG_FILE --cidr CIDR --name NAME
145+
```
146+
147+
This will allow you to define the different AWS accounts you use in your environment and the known CIDR IPs.
148+
149+
150+
### Using audit config overrides
151+
You may find that you don't care about some of audit items. You may want to ignore the check entirely, or just specific resources. Copy `config/audit_config_override.yaml.example` to `config/audit_config_override.yaml` and edit the file based on the comments in there.
152+
153+
154+
133155
### Alternatives
134156
For network diagrams, you may want to try https://github.com/lyft/cartography or https://github.com/anaynayak/aws-security-viz
135157

cloudmapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import pkgutil
3131
import importlib
3232

33-
__version__ = "2.6.1"
33+
__version__ = "2.6.2"
3434

3535

3636
def show_help(commands):

0 commit comments

Comments
 (0)