Inspiration
Cloud storage is widely used by individuals and organizations to store important data. However, incorrect security configurations can expose sensitive information and create security risks. We wanted to build a tool that could help users identify these weaknesses before they become serious problems.
This inspired us to develop Cloud_Storage_Misconfiguration_Scanner (CloudGuard), a Python-based cybersecurity project focused on identifying common security misconfigurations in AWS S3 storage.
What it does
CloudGuard scans AWS S3 configurations and identifies potential security weaknesses. It checks important security settings, including:
- Public Access Control Lists (ACLs).
- Public Bucket Policies.
- Block Public Access settings.
- Default Encryption.
- Bucket Versioning.
- Server Access Logging.
- HTTPS-only communication.
- Encryption key configuration and rotation.
- Minimum TLS version requirements.
The application assigns severity levels to detected issues and calculates risk scores to help users understand the security condition of their buckets.
It also provides an interactive dashboard and generates security reports in HTML and signed JSON formats.
CloudGuard supports three modes:
- Demo Mode: Uses sample data to demonstrate the scanner.
- JSON Upload Mode: Scans uploaded configuration data.
- Read-Only Live AWS Mode: Reviews supported AWS S3 configurations without modifying cloud resources.
How we built it
We built CloudGuard using Python for the backend and HTML, CSS, and JavaScript for the dashboard interface.
We used AWS S3 configuration data to perform security checks. The Boto3 library supports communication with AWS in Live Mode, while JSON handling allows users to provide configuration data through file uploads.
We implemented a rule-based scanning system to identify misconfigurations and classify them according to severity. A risk-scoring mechanism helps summarize the findings.
We also integrated SHA-256 and HMAC-SHA256 techniques to support report integrity verification. The application includes a built-in self-test feature to help verify its functionality.
Challenges we ran into
One of our main challenges was understanding different AWS S3 security settings and converting them into practical security checks.
We also faced challenges in developing a reliable risk-scoring mechanism, handling different configuration formats, and presenting technical security findings in an understandable dashboard.
Another challenge was supporting multiple scanning modes while keeping the application safe and easy to demonstrate without requiring a real AWS environment.
Accomplishments that we're proud of
We are proud to have developed a working cybersecurity tool that brings multiple AWS S3 security checks together in one application.
Some of our key accomplishments include:
- Implementing multiple security checks for AWS S3 configurations.
- Developing three scanning modes: Demo, JSON Upload, and Read-Only Live AWS.
- Creating an interactive security dashboard.
- Implementing severity classification and bucket risk scoring.
- Generating HTML and signed JSON security reports.
- Adding SHA-256 and HMAC-SHA256-based report integrity features.
- Building a self-test feature for basic functionality verification.
Most importantly, we transformed our cloud security knowledge into a practical project.
What we learned
Through this project, we improved our understanding of cloud computing, AWS S3 security, and common cloud storage misconfigurations.
We gained practical experience with Python programming, JSON processing, web dashboard development, security auditing, risk assessment, and cryptographic techniques.
We also learned the importance of secure development practices, testing, teamwork, and presenting technical information in a simple and useful way.
What's next for Cloud Storage Misconfiguration Scanner
CloudGuard is a working project, but we plan to improve it further.
Our future goals include:
- Adding more AWS security configuration checks.
- Improving the dashboard design and user experience.
- Introducing scan history and comparison features.
- Providing clearer remediation recommendations for detected issues.
- Expanding testing with different configuration scenarios.
- Improving the reporting and risk analysis features.
Our long-term goal is to make Cloud_Storage_Misconfiguration_Scanner (CloudGuard) a more comprehensive and user-friendly tool that helps developers and organizations identify cloud storage security weaknesses and improve their cloud security posture.
Built With
- amazon-web-services
- amazons3
- boto3
- cloud-computing
- cloud-security
- css
- cybersecurity
- data-encryption
- hmac-sha256
- html
- javascript
- json
- python
- risk-assesment
- security-auditing
- sha-256