name: cloud-native-security
description: >-
Cloud-native security covering service mesh hardening, Kubernetes admission
controllers, serverless function misconfiguration, IaC security scanning,
cloud workload protection, container runtime threats, cloud IAM auditing,
GitOps security, cloud resource drift detection, logging completeness audits,
secrets management, and cloud lateral movement detection. Spans AWS, GCP,
Azure, and multi-cloud Kubernetes environments.
domain: cybersecurity
subdomain: cloud-native-security
tags:
- kubernetes
- service-mesh
- admission-controllers
- serverless
- infrastructure-as-code
- cwpp
- cloud-iam
- gitops
- drift-detection
- cloud-logging
- secrets-management
- lateral-movement
version: "1.0"
author: defconxt
license: AGPL-3.0
compatibility: Designed for Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and any agentskills.io-compatible agent.
metadata:
mitre-attack: ["T1190", "T1078.004", "T1580", "T1552.007", "T1021.004", "T1538"]
nist-csf: ["PR.AC-4", "PR.DS-5", "PR.IP-1", "DE.CM-1", "DE.CM-7"]
frameworks: ["CIS Kubernetes Benchmark", "CIS AWS Foundations", "NIST SP 800-190", "NSA K8s Hardening Guide"]
Cloud-Native Security
When to Use
Activate when the operator asks about securing cloud-native architectures —
service meshes, Kubernetes admission control, serverless security, IaC scanning,
CWPP, cloud IAM, GitOps pipelines, drift detection, cloud logging, secrets
management, or lateral movement detection across AWS/GCP/Azure/K8s environments.
Mode: [MODE: RED] for cloud attack paths; [MODE: BLUE] for cloud defense and detection; [MODE: ARCHITECT] for secure cloud-native design.
Prerequisites
- kubectl configured for target cluster
- AWS CLI / gcloud / az CLI authenticated
- Terraform >= 1.5 or OpenTofu for IaC scanning
- Istio/Linkerd CLI for service mesh operations
- OPA/Gatekeeper or Kyverno for admission control
- Falco or Tetragon for runtime detection
Quick Reference
| Attack / Control |
Command |
Context |
| Mesh mTLS bypass |
istioctl analyze --all-namespaces |
Defensive |
| Admission controller test |
kubectl apply --dry-run=server -f pod.yaml |
Defensive |
| Lambda enumeration |
aws lambda list-functions --region us-east-1 |
Offensive |
| IaC scan |
tfsec . --format json |
Defensive |
| Cloud workload scan |
trivy k8s --report summary cluster |
Defensive |
| Container runtime alerts |
falco -r /etc/falco/falco_rules.yaml |
Defensive |
| IAM enumeration |
aws iam get-account-authorization-details |
Offensive |
| GitOps drift check |
argocd app diff myapp |
Defensive |
| Resource drift |
terraform plan -detailed-exitcode |
Defensive |
| CloudTrail gaps |
aws cloudtrail get-trail-status --name default |
Defensive |
| Secrets audit |
kubectl get secrets -A -o json | jq '.items[].type' |
Offensive |
| Lateral movement |
aws ec2 describe-instances --filters "Name=iam-instance-profile.arn,Values=*" |
Offensive |
Techniques
| Technique |
Description |
| securing-service-mesh-configurations |
Harden Istio/Linkerd mTLS, authorization policies, and mesh telemetry |
| implementing-kubernetes-admission-controllers |
Deploy OPA/Gatekeeper and Kyverno policies for workload admission |
| detecting-misconfigured-cloud-functions |
Find over-permissioned Lambda/Cloud Functions/Azure Functions |
| auditing-infrastructure-as-code-security |
Scan Terraform/CloudFormation/Pulumi for security misconfigurations |
| implementing-cloud-workload-protection |
Deploy CWPP across K8s nodes, VMs, and serverless |
| detecting-container-runtime-threats |
Falco/Tetragon rules for runtime anomaly detection |
| auditing-cloud-identity-permissions |
Audit IAM roles, policies, and privilege escalation paths |
| implementing-gitops-security |
Secure ArgoCD/Flux pipelines, RBAC, and supply chain |
| detecting-cloud-resource-drift |
Detect unmanaged changes to cloud infrastructure |
| auditing-cloud-logging-completeness |
Verify CloudTrail/GCP Audit/Azure Monitor coverage |
| implementing-cloud-secrets-management |
Vault, AWS Secrets Manager, K8s CSI driver integration |
| detecting-cloud-lateral-movement |
Detect cross-account/cross-service lateral movement in cloud |
Workflow
1. Assess Cloud-Native Posture
# Kubernetes cluster scan
trivy k8s --report summary cluster
# AWS account baseline
aws configservice describe-compliance-by-config-rule --output json
# Terraform state audit
terraform plan -detailed-exitcode -out=plan.tfplan
2. Harden Admission Control
# Install Gatekeeper
kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
# Apply constraint templates
kubectl apply -f constraint-templates/
kubectl apply -f constraints/
3. Runtime Detection
# Deploy Falco
helm install falco falcosecurity/falco --namespace falco --create-namespace
# Verify rules
falco --list | grep -i cloud
4. Continuous Compliance
# IaC scanning in CI
tfsec . --format json --out results.json
checkov -d . --output json > checkov-results.json
Verification
Detection Opportunities
- Service mesh telemetry for unauthorized service-to-service calls
- Admission controller audit logs for denied workload deployments
- CloudTrail/GCP Audit Logs for IAM privilege escalation
- Terraform plan diffs for unauthorized infrastructure changes
- Falco alerts for container escape and runtime anomalies
- SIEM correlation for cross-account lateral movement patterns
1---2name: cloud-native-security3description: <!-- Copyright (c) 2026 defconxt. All rights reserved. -->4---5
6<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
7<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
8---
9name: cloud-native-security
10description: >-
11 Cloud-native security covering service mesh hardening, Kubernetes admission
12 controllers, serverless function misconfiguration, IaC security scanning,
13 cloud workload protection, container runtime threats, cloud IAM auditing,
14 GitOps security, cloud resource drift detection, logging completeness audits,
15 secrets management, and cloud lateral movement detection. Spans AWS, GCP,
16 Azure, and multi-cloud Kubernetes environments.
17domain: cybersecurity
18subdomain: cloud-native-security
19tags:
20 - kubernetes
21 - service-mesh
22 - admission-controllers
23 - serverless
24 - infrastructure-as-code
25 - cwpp
26 - cloud-iam
27 - gitops
28 - drift-detection
29 - cloud-logging
30 - secrets-management
31 - lateral-movement
32version: "1.0"
33author: defconxt
34license: AGPL-3.0
35compatibility: Designed for Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Gemini CLI, and any agentskills.io-compatible agent.
36metadata:
37 mitre-attack: ["T1190", "T1078.004", "T1580", "T1552.007", "T1021.004", "T1538"]
38 nist-csf: ["PR.AC-4", "PR.DS-5", "PR.IP-1", "DE.CM-1", "DE.CM-7"]
39 frameworks: ["CIS Kubernetes Benchmark", "CIS AWS Foundations", "NIST SP 800-190", "NSA K8s Hardening Guide"]
40---
41
42# Cloud-Native Security
43
44## When to Use
45
46Activate when the operator asks about securing cloud-native architectures —
47service meshes, Kubernetes admission control, serverless security, IaC scanning,
48CWPP, cloud IAM, GitOps pipelines, drift detection, cloud logging, secrets
49management, or lateral movement detection across AWS/GCP/Azure/K8s environments.
50
51Mode: `[MODE: RED]` for cloud attack paths; `[MODE: BLUE]` for cloud defense and detection; `[MODE: ARCHITECT]` for secure cloud-native design.
52
53## Prerequisites
54
55- kubectl configured for target cluster
56- AWS CLI / gcloud / az CLI authenticated
57- Terraform >= 1.5 or OpenTofu for IaC scanning
58- Istio/Linkerd CLI for service mesh operations
59- OPA/Gatekeeper or Kyverno for admission control
60- Falco or Tetragon for runtime detection
61
62## Quick Reference
63
64| Attack / Control | Command | Context |
65|-----------------|---------|---------|
66| Mesh mTLS bypass | `istioctl analyze --all-namespaces` | Defensive |
67| Admission controller test | `kubectl apply --dry-run=server -f pod.yaml` | Defensive |
68| Lambda enumeration | `aws lambda list-functions --region us-east-1` | Offensive |
69| IaC scan | `tfsec . --format json` | Defensive |
70| Cloud workload scan | `trivy k8s --report summary cluster` | Defensive |
71| Container runtime alerts | `falco -r /etc/falco/falco_rules.yaml` | Defensive |
72| IAM enumeration | `aws iam get-account-authorization-details` | Offensive |
73| GitOps drift check | `argocd app diff myapp` | Defensive |
74| Resource drift | `terraform plan -detailed-exitcode` | Defensive |
75| CloudTrail gaps | `aws cloudtrail get-trail-status --name default` | Defensive |
76| Secrets audit | `kubectl get secrets -A -o json \| jq '.items[].type'` | Offensive |
77| Lateral movement | `aws ec2 describe-instances --filters "Name=iam-instance-profile.arn,Values=*"` | Offensive |
78
79## Techniques
80
81| Technique | Description |
82|-----------|-------------|
83| [securing-service-mesh-configurations](techniques/securing-service-mesh-configurations/) | Harden Istio/Linkerd mTLS, authorization policies, and mesh telemetry |
84| [implementing-kubernetes-admission-controllers](techniques/implementing-kubernetes-admission-controllers/) | Deploy OPA/Gatekeeper and Kyverno policies for workload admission |
85| [detecting-misconfigured-cloud-functions](techniques/detecting-misconfigured-cloud-functions/) | Find over-permissioned Lambda/Cloud Functions/Azure Functions |
86| [auditing-infrastructure-as-code-security](techniques/auditing-infrastructure-as-code-security/) | Scan Terraform/CloudFormation/Pulumi for security misconfigurations |
87| [implementing-cloud-workload-protection](techniques/implementing-cloud-workload-protection/) | Deploy CWPP across K8s nodes, VMs, and serverless |
88| [detecting-container-runtime-threats](techniques/detecting-container-runtime-threats/) | Falco/Tetragon rules for runtime anomaly detection |
89| [auditing-cloud-identity-permissions](techniques/auditing-cloud-identity-permissions/) | Audit IAM roles, policies, and privilege escalation paths |
90| [implementing-gitops-security](techniques/implementing-gitops-security/) | Secure ArgoCD/Flux pipelines, RBAC, and supply chain |
91| [detecting-cloud-resource-drift](techniques/detecting-cloud-resource-drift/) | Detect unmanaged changes to cloud infrastructure |
92| [auditing-cloud-logging-completeness](techniques/auditing-cloud-logging-completeness/) | Verify CloudTrail/GCP Audit/Azure Monitor coverage |
93| [implementing-cloud-secrets-management](techniques/implementing-cloud-secrets-management/) | Vault, AWS Secrets Manager, K8s CSI driver integration |
94| [detecting-cloud-lateral-movement](techniques/detecting-cloud-lateral-movement/) | Detect cross-account/cross-service lateral movement in cloud |
95
96## Workflow
97
98### 1. Assess Cloud-Native Posture
99
100```bash
101# Kubernetes cluster scan
102trivy k8s --report summary cluster
103
104# AWS account baseline
105aws configservice describe-compliance-by-config-rule --output json
106
107# Terraform state audit
108terraform plan -detailed-exitcode -out=plan.tfplan
109```
110
111### 2. Harden Admission Control
112
113```bash
114# Install Gatekeeper
115kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper/master/deploy/gatekeeper.yaml
116
117# Apply constraint templates
118kubectl apply -f constraint-templates/
119kubectl apply -f constraints/
120```
121
122### 3. Runtime Detection
123
124```bash
125# Deploy Falco
126helm install falco falcosecurity/falco --namespace falco --create-namespace
127
128# Verify rules
129falco --list | grep -i cloud
130```
131
132### 4. Continuous Compliance
133
134```bash
135# IaC scanning in CI
136tfsec . --format json --out results.json
137checkov -d . --output json > checkov-results.json
138```
139
140## Verification
141
142- [ ] Service mesh mTLS enforced (STRICT mode, no PERMISSIVE)
143- [ ] Admission controllers block privileged pods in production
144- [ ] Serverless functions follow least-privilege IAM
145- [ ] IaC scanned in CI/CD — zero HIGH+ findings
146- [ ] CWPP deployed on all nodes and workloads
147- [ ] Runtime detection rules tuned and alerting
148- [ ] Cloud IAM follows least privilege — no wildcard policies
149- [ ] GitOps pipelines enforce signed commits and image verification
150- [ ] Drift detection runs on schedule with alerts
151- [ ] All cloud API actions logged (no blind spots)
152- [ ] Secrets managed via Vault/CSI — no hardcoded credentials
153- [ ] Lateral movement detection rules deployed in SIEM
154
155## Detection Opportunities
156
157- Service mesh telemetry for unauthorized service-to-service calls
158- Admission controller audit logs for denied workload deployments
159- CloudTrail/GCP Audit Logs for IAM privilege escalation
160- Terraform plan diffs for unauthorized infrastructure changes
161- Falco alerts for container escape and runtime anomalies
162- SIEM correlation for cross-account lateral movement patterns