πŸ”’ Security

CWPP

Cloud Workload Protection Platform, protection for cloud workloads

πŸ“– Detailed Explanation

CWPP (Cloud Workload Protection Platform) is a security platform that protects workloads (VMs, containers, serverless functions) running in cloud environments. Whereas traditional endpoint security protected PCs or server OSs, CWPP provides protection specialized for cloud-native workloads.

The core functions of CWPP are vulnerability management, runtime protection, network segmentation, and integrity monitoring. Container image scanning detects vulnerabilities before deployment, and at runtime it detects and blocks abnormal behavior (shell execution, privilege escalation, file tampering).

Agent-based CWPP installs a lightweight agent on the host to provide real-time protection. It monitors processes, the file system, and network activity, and responds immediately when a threat is detected. The agentless approach scans through cloud APIs, so deployment is simple, but it has limitations in real-time protection.

In Kubernetes environments, CWPP works with Pod Security Standard and Network Policy to strengthen workload isolation. Tools such as Falco, Sysdig, Aqua, and Prisma Cloud are representative examples.

πŸ’» Code Example

# Falco λŸ°νƒ€μž„ λ³΄μ•ˆ κ·œμΉ™ μ˜ˆμ‹œ
# falco-rules.yaml
- rule: Terminal Shell in Container
  desc: μ»¨ν…Œμ΄λ„ˆ λ‚΄μ—μ„œ 터미널 μ‰˜μ΄ 싀행됨 (곡격 μ˜μ‹¬)
  condition: >
    spawned_process and container and shell_procs and
    proc.tty != 0 and container.image.repository != "debug-tools"
  output: >
    Shell spawned in container (user=%user.name container=%container.name
    shell=%proc.name parent=%proc.pname cmdline=%proc.cmdline)
  priority: WARNING
  tags: [container, shell, mitre_execution]

- rule: Sensitive File Read
  desc: λ―Όκ°ν•œ 파일 μ ‘κ·Ό 탐지 (/etc/shadow, /etc/passwd)
  condition: >
    open_read and container and sensitive_files and
    not user.name in (root, admin)
  output: >
    Sensitive file read (file=%fd.name user=%user.name container=%container.name)
  priority: CRITICAL

# Kubernetesμ—μ„œ Falco DaemonSet 배포
# helm install falco falcosecurity/falco --namespace falco

# μ»¨ν…Œμ΄λ„ˆ 이미지 μŠ€μΊ” (Trivy)
# CI νŒŒμ΄ν”„λΌμΈμ—μ„œ μ‚¬μš©
trivy image --severity CRITICAL,HIGH \
  --exit-code 1 \
  --ignore-unfixed \
  ghcr.io/myorg/myapp:latest

# Aqua λŸ°νƒ€μž„ μ •μ±… (declarative)
apiVersion: aquasecurity.github.io/v1alpha1
kind: RuntimePolicy
metadata:
  name: block-crypto-mining
spec:
  containers:
    blockCryptoMiners: true
    blockReverseShell: true
    allowedCapabilities: []
    dropAllCapabilities: true

πŸ—£οΈ How It's Said in Practice

Security team: "A shell execution was detected in a production container. It's a Falco alert, so please check it."

Operations team: "Oh, I ran kubectl exec to debug. It's a normal task."

Security team: "Still, please leave a log and create a ticket. Access to production needs to be recorded."

Interviewer: "How would you implement container runtime security?"

Candidate: "At build time, I scan images for vulnerabilities with Trivy, and at runtime I detect abnormal behavior with Falco. I monitor shell execution, sensitive file access, and network anomalies, and I block privileged containers with PodSecurityPolicy."

Take a mock interview on this topic β†’ WIA SOOM AI Interview Β· Start for free

Security: "This Dockerfile has no USER directive, so it runs as root. An alert will show up in CWPP."

Developer: "You're right, I'll add USER 1000:1000."

⚠️ Cautions

πŸ“š Learn More