TanishkaMarrott/Secure-Cloud-Architecture-with-SCPs-and-OPCs
Repository containing best practices for securing cloud architectures using SCPs and OPCs, with sample policies and implementation scripts to enforce a holistic security posture
Enforcing Security Best Practices with AWS SCPs and GCP OPCs
Overview
This repository is dedicated to showcasing effective strategies for implementing Organizational Policies (OPCs) and Service Control Policies (SCPs) in cloud environments to achieve a holistic security posture.
This includes detailed code snippets, configuration files, and real-world use cases to help you secure your cloud infrastructure.
Repository Structure
- /policies: Contains sample Organizational Policies and Service Control Policies.
Key Features
-
Top 5 Organizational Policies (OPCs):
- Restrict VMs from having external IPs (
compute.vmExternalIpAccess) - Enforce HTTPS communication for GCS (
storage.requireTls) - Disable OS Login for SSH access (
compute.disableOsLogin) - Require Uniform Bucket-Level Access on GCS (
storage.uniformBucketLevelAccess) - Restrict Public IPs for SQL Instances (
sql.restrictPublicIp)
- Restrict VMs from having external IPs (
-
Top 5 Service Control Policies (SCPs):
- Deny Disablement of Security Monitoring (
ec2:DisableVpcClassicLink) - Prevent Deletion of Logging Buckets (
s3:DeleteBucket) - Deny IAM Policies with Wildcards (
iam:PassRole) - Require MFA for IAM Actions (
iam:ChangePassword) - Enforce KMS Key Usage for Encryption (
kms:Decrypt)
- Deny Disablement of Security Monitoring (
Value-Add
Implementing these policies enhances your cloud environment's security by reducing exposure to potential threats, ensuring compliance with industry standards, and automating security enforcement across your organization.
Getting Started
-
Clone the repository:
git clone https://github.com/TanishkaMarrott/Secure-Cloud-Architecture-with-SCPs-and-OPCs.git
-
Navigate to the repository:
cd Secure-Cloud-Architecture-with-SCPs-and-OPCs -
Review the policies:
- Browse the
/policiesdirectory to see the Organizational Policies and Service Control Policies.
- Browse the
-
Apply the policies:
- Use the scripts in
/scriptsto apply the policies in your cloud environment.
- Use the scripts in
Contribution
We welcome contributions from the community! If you have additional policies, use cases, or enhancements, please feel free to submit a pull request.
License
This repository is licensed under the MIT License. See LICENSE for more information.