cloudsec-audit
Continuous cloud security posture auditing for AWS, GCP, and Azure
What it is and what it does
cloudsec-audit is a Python library that runs continuous security audits on AWS accounts by querying IAM, network, storage, and logging configurations through boto3. It detects common misconfigurations—such as root account without MFA, overly permissive security groups, public S3 buckets, and long-lived access keys—and returns findings with severity levels, remediation steps, and MITRE ATT&CK technique mappings.
The package is designed for developers and operators who want to embed security checks directly into CI/CD pipelines or run them on-demand without relying on expensive SaaS CSPM platforms. It provides both a Python API for programmatic use and a CLI for one-off audits, supports multi-region scanning and cross-account auditing via role assumption, and can generate compliance evidence reports mapped to CIS, SOC2, HIPAA, PCI-DSS, and ISO 27001 frameworks.
Use it for:
- Run daily scheduled security audits in GitHub Actions or GitLab CI to detect IAM and network misconfigurations before they reach production.
- Embed compliance checks in infrastructure-as-code pipelines to fail deployments when critical security controls are missing.
- Generate audit-ready compliance evidence reports for SOC2, HIPAA, or PCI-DSS assessments without manual data collection.
- Audit cross-account AWS environments by assuming a read-only security audit role in target accounts.
- Identify and remediate long-lived IAM access keys, root account risks, and overly permissive S3 bucket policies in existing accounts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Audits AWS cloud security posture by checking IAM, network, storage, and compliance configurations using native boto3 clients, producing prioritized findings with MITRE ATT&CK mappings and compliance framework evidence.
Yes. The package solves a real problem—continuous, scriptable cloud security auditing without SaaS cost—with low install friction, permissive licensing, and active maintenance. It is production-ready for teams seeking to embed security checks in CI/CD or run on-demand audits. Early release status and lack of external security audit are minor considerations for risk-sensitive environments, but the codebase is straightforward and the findings schema is well-documented.
Install
cloudsec-audit on PyPI
pip
pip install cloudsec-audituv
uv add cloudsec-auditpoetry
poetry add cloudsec-auditInstalling cloudsec-audit
Before you install
Low friction: pure Python wheel with only boto3 and botocore as runtime dependencies. Active maintenance as of 2026-04-19 with current Python support (3.9–3.12). Early-stage project (first release 2026-04-19) with no known vulnerabilities.
License in practice
MIT license permits commercial and private use with minimal restrictions. You may use, modify, and distribute the package freely provided you retain the license notice.
Quickstart
pip install cloudsec-audit
from cloudsec_audit import CloudSecAudit, AWSSession
audit = CloudSecAudit(
session=AWSSession(),
regions=["us-east-1"],
)
report = audit.run()
print(report.summary())
Requires AWS credentials available to boto3 (environment variables, ~/.aws/credentials file, or EC2/ECS instance profile). Python 3.9 or later.
Verify before relying
- Whether the package's compliance framework mappings (CIS, SOC2, HIPAA, PCI-DSS, ISO 27001) are current and audited by security professionals.
- Performance and API call volume when auditing large AWS accounts with many resources across multiple regions.
- Whether cross-account auditing via role assumption is production-tested and documented for security best practices.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — boto3, botocore |
| Maintenance | actively maintained — 117 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 312,908/month — #7,722 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: cloudsec_audit-1.0.0-py3-none-any.whl
Keywords: aws, security, cspm, cloud, iam, posture, compliance
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
cloudsplainingCloudsplaining scans AWS IAM policies to…
permissive · top 5,000 on PyPI
prowlerProwler automates security and compliance…
permissive · top 15,000 on PyPI
pycadfPyCADF implements the Cloud Auditing Data…
permissive · top 15,000 on PyPI
cdk-nagScans AWS CDK applications and CloudFormation…
permissive · top 5,000 on PyPI
aws-cdk.aws-iamProvides Python constructs for defining AWS IAM…
permissive · top 15,000 on PyPI
boto_session_managerWraps boto3 sessions with typed client…
permissive · top 5,000 on PyPI
c7nCloud Custodian is a rules engine that enforces…
permissive · top 5,000 on PyPI
pip-auditpip-audit scans Python environments and…
permissive · top 1,000 on PyPI
boto3-assumeWraps boto3 to create AWS IAM assume-role…
permissive · top 15,000 on PyPI
py-ocsf-modelsProvides Python models for the Open…
permissive · top 15,000 on PyPI