Contributing
See CONTRIBUTING.md in the repository for detailed guidelines on:
- Adding a new check
- Adding a compliance framework mapping
- Reporting bugs
- Submitting pull requests
Development Setup
git clone https://github.com/gebalamariusz/cloud-audit.git
cd cloud-audit
pip install -e ".[dev]"
pytest -v # tests
ruff check src/ tests/ # lint
ruff format --check src/ tests/ # format
mypy src/ # type check
Adding a New Check
- Create or edit a module in
src/cloud_audit/providers/aws/checks/ - Write a function returning
CheckResult - Register it in the module's
get_checks()withmake_check() - Add the module to
_CHECK_MODULESinprovider.py(if new) - Write tests
- Update the check list in README and docs
Adding a Compliance Framework
- Create a JSON mapping file in
src/cloud_audit/compliance/frameworks/ - Follow the schema from
cis_aws_v3.json - Map check IDs to framework controls
- Add evidence templates and manual steps
- Add attack chain mappings