Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.56 KB

File metadata and controls

42 lines (32 loc) · 1.56 KB

secure-cloud-devsecops

Practical DevSecOps Security Lab

Scenario: Harden vulnerable AWS infrastructure and app dependencies.

License: MIT Focus: Security Architecture Diagrams: SVG

Challenge Tasks

  1. Review infra/ and identify at least 3 misconfigurations.
  2. Make S3 private and enable default encryption (SSE-KMS).
  3. Replace wildcard IAM access with least-privilege access only for app bucket actions.
  4. Run Snyk on the app, remediate at least one High/Critical issue, and re-run to verify reduction.
  5. Summarize improvements and add one SOC 2-relevant next control.

Detailed Solution

Quick Commands

# App
cd app && npm install && npm start

# Snyk (token required: snyk auth)
cd app
snyk test
snyk code test

# Terraform validation
cd infra
terraform init
terraform validate
terraform plan -var "app_bucket_name=bild-pdm-demo-CHANGE_ME"

Labs Included

  1. AWS S3 hardening lab (public-to-private conversion)
  2. IAM least-privilege policy design lab
  3. Snyk dependency vulnerability remediation lab

Disclaimer

This repository is for security training and interview practice only. It contains intentionally insecure patterns for learning purposes and must not be used in production without a full security review, hardening, and organizational compliance validation.