<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cramsession.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mflavell</id>
	<title>Cramsession - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://cramsession.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mflavell"/>
	<link rel="alternate" type="text/html" href="https://cramsession.net/index.php/Special:Contributions/Mflavell"/>
	<updated>2026-12-03T01:50:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1972</id>
		<title>Computer Notes/Kubernetes/Kubernetes Troubleshooting Cheat Sheet</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1972"/>
		<updated>2026-12-02T01:50:56Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Pod Statuses (kubectl get pods) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Kubernetes Troubleshooting Cheat Sheet =&lt;br /&gt;
&lt;br /&gt;
A rapid triage reference for debugging Kubernetes clusters, pods, networking, and AWS EKS IAM permissions. Follow the standard incident cadence: &#039;&#039;&#039;mitigate first to restore service, then deep-dive into root cause&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 1. Context &amp;amp; First-Look Triage ==&lt;br /&gt;
Run these commands first to orient yourself and spot broken workloads across the cluster&lt;br /&gt;
 Verify which cluster and namespace you are targeting&lt;br /&gt;
&lt;br /&gt;
 kubectl config current-context&lt;br /&gt;
 kubectl config set-context --current --namespace=&amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Fast scan: show every pod that is NOT Running&lt;br /&gt;
&lt;br /&gt;
 kubectl get pods -A --field-selector=status.phase!=Running&lt;br /&gt;
&lt;br /&gt;
 Detailed pod view (READY, STATUS, RESTARTS, IP, NODE)&lt;br /&gt;
&lt;br /&gt;
 kubectl get pods -n &amp;lt;ns&amp;gt; -o wide&lt;br /&gt;
&lt;br /&gt;
 Check node health (NotReady, MemoryPressure, DiskPressure)&lt;br /&gt;
&lt;br /&gt;
 kubectl get nodes -o wide&lt;br /&gt;
 kubectl top nodes&lt;br /&gt;
 kubectl top pods -n &amp;lt;ns&amp;gt; --sort-by=memory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2. Inspecting Failures (Events &amp;amp; Logs) ==&lt;br /&gt;
Follow the standard debugging flow: &amp;lt;code&amp;gt;get&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;describe&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;logs&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;events&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
 Read the bottom &amp;quot;Events&amp;quot; table (scheduling, image pull, probes, OOMKilled)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl describe pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 View logs from the PREVIOUS crashed container (essential for CrashLoopBackOff)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --previous&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Stream live logs or grab the last 100 lines across all replicas of an app&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs -f &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
 kubectl logs -l app=&amp;lt;label&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Multi-container pod (specify container name)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs &amp;lt;pod&amp;gt; -c &amp;lt;container&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Cluster-wide warning events sorted chronologically&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl get events -n &amp;lt;ns&amp;gt; --field-selector type=Warning --sort-by=.lastTimestamp&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3. Immediate Mitigation &amp;amp; Rollbacks ==&lt;br /&gt;
Unblock production SLAs and isolate faulty nodes before digging into root cause.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 Check deployment rollout history and undo a bad release&lt;br /&gt;
&lt;br /&gt;
 kubectl rollout status deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
 kubectl rollout undo deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Scale healthy replicas up (or scale a broken worker down to 0)&lt;br /&gt;
&lt;br /&gt;
 kubectl scale deployment/&amp;lt;name&amp;gt; --replicas=&amp;lt;count&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Isolate a bad node (stop new pods from scheduling on it)&lt;br /&gt;
&lt;br /&gt;
 kubectl cordon &amp;lt;node&amp;gt;&lt;br /&gt;
 kubectl drain &amp;lt;node&amp;gt; --ignore-daemonsets --delete-emptydir-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 4. Live Shell, Networking &amp;amp; DNS Checks ==&lt;br /&gt;
Use these when a pod or worker is timing out or failing to reach internal services or external APIs.&lt;br /&gt;
&lt;br /&gt;
 Shell into a running container&lt;br /&gt;
&lt;br /&gt;
 kubectl exec -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -- /bin/sh&lt;br /&gt;
&lt;br /&gt;
 Attach an ephemeral debug container (works on distroless images with no shell)&lt;br /&gt;
&lt;br /&gt;
 kubectl debug -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --image=busybox --target=&amp;lt;container&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Spin up a temporary network debug pod (dig, nslookup, curl, tcpdump)&lt;br /&gt;
&lt;br /&gt;
 kubectl run netdebug --rm -it --image=nicolaka/netshoot -n &amp;lt;ns&amp;gt; -- /bin/bash&lt;br /&gt;
&lt;br /&gt;
 Verify Service-to-Pod selector matching (if &amp;lt;none&amp;gt;, labels don&#039;t match)&lt;br /&gt;
&lt;br /&gt;
 kubectl get svc,endpoints -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Test CoreDNS and external egress from inside a pod&lt;br /&gt;
&lt;br /&gt;
 nslookup kubernetes.default&lt;br /&gt;
 nslookup s3.amazonaws.com&lt;br /&gt;
&lt;br /&gt;
 Forward a local port to test a pod/service directly&lt;br /&gt;
&lt;br /&gt;
 kubectl port-forward svc/&amp;lt;svc&amp;gt; 8080:80 -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 5. Scaling, Configs &amp;amp; AWS EKS IAM ==&lt;br /&gt;
Commands for inspecting autoscaling, configuration objects, RBAC, and the Kubernetes-to-AWS IAM boundary (IRSA / EKS Pod Identity).&lt;br /&gt;
&lt;br /&gt;
 Check Horizontal Pod Autoscaler (if &amp;lt;unknown&amp;gt;, pod is missing resources.requests)&lt;br /&gt;
&lt;br /&gt;
 kubectl get hpa -n &amp;lt;ns&amp;gt;&lt;br /&gt;
 kubectl describe hpa &amp;lt;hpa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Verify ConfigMaps, Secrets, and Storage&lt;br /&gt;
&lt;br /&gt;
 kubectl get cm,secret,pvc -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Check which ServiceAccount a pod is using (for IRSA / EKS Pod Identity)&lt;br /&gt;
&lt;br /&gt;
 kubectl get pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -o jsonpath=&#039;{.spec.serviceAccountName}&#039;&lt;br /&gt;
&lt;br /&gt;
 Verify the IRSA IAM role annotation on the ServiceAccount&lt;br /&gt;
&lt;br /&gt;
 kubectl describe sa &amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Check Kubernetes RBAC permissions for a ServiceAccount&lt;br /&gt;
&lt;br /&gt;
 kubectl auth can-i --list --as=system:serviceaccount:&amp;lt;ns&amp;gt;:&amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 6. Quick Status-to-Command Lookup ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Status You See !! First Command to Run !! What to Look For&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Pending&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;FailedScheduling&amp;lt;/code&amp;gt;, insufficient CPU/RAM, taint mismatch, or unbound PVC.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CrashLoopBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; --previous&amp;lt;/code&amp;gt; || App startup error, missing env var/Secret, or aggressive &amp;lt;code&amp;gt;livenessProbe&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OOMKilled (Exit 137)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;Last State: Terminated (Reason: OOMKilled)&amp;lt;/code&amp;gt;. Raise memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; or reduce worker batch size.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ImagePullBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || Bad image tag, missing &amp;lt;code&amp;gt;imagePullSecrets&amp;lt;/code&amp;gt;, or EKS node missing ECR read permissions / NAT egress.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AccessDenied (AWS)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe sa &amp;lt;sa&amp;gt;&amp;lt;/code&amp;gt; || Missing &amp;lt;code&amp;gt;eks.amazonaws.com/role-arn&amp;lt;/code&amp;gt; annotation, OIDC trust policy mismatch, or KMS key policy block.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 7. Pod Statuses (&amp;lt;code&amp;gt;kubectl get pods&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
These reflect the lifecycle phase of the pod or the state of its containers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pod Status !! What It Means !! Common Cause / First Check&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Pending&#039;&#039;&#039; || Accepted by the cluster, but not yet scheduled onto a node (or still waiting on volumes/images). || Insufficient CPU/RAM, node taint/affinity mismatch, or unbound PVC. Check &amp;lt;code&amp;gt;kubectl describe pod&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;FailedScheduling&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ContainerCreating&#039;&#039;&#039; || Scheduled to a node; kubelet is pulling images, mounting volumes, or attaching networking. || Normal briefly. If stuck, check for volume mount failures or VPC/CNI IP exhaustion.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Running&#039;&#039;&#039; || Bound to a node and at least one container is running. || Check the &amp;lt;code&amp;gt;READY&amp;lt;/code&amp;gt; column (e.g., &amp;lt;code&amp;gt;0/1&amp;lt;/code&amp;gt; means the container is up, but failing its &amp;lt;code&amp;gt;readinessProbe&amp;lt;/code&amp;gt; and receiving no traffic).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CrashLoopBackOff&#039;&#039;&#039; || Container starts, crashes, and Kubernetes waits with exponential backoff before restarting it again. || App startup crash, missing env var/Secret, or aggressive &amp;lt;code&amp;gt;livenessProbe&amp;lt;/code&amp;gt;. Run &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; --previous&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OOMKilled (Exit 137)&#039;&#039;&#039; || Container exceeded its memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; and was killed by the Linux kernel. || Memory leak or heavy workload (e.g., large file scan). Raise memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; or reduce worker batch size.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ImagePullBackOff&#039;&#039;&#039; || Kubelet cannot pull the container image from the registry. || Wrong image tag, missing &amp;lt;code&amp;gt;imagePullSecrets&amp;lt;/code&amp;gt;, or EKS node missing ECR read permissions / NAT egress.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CreateContainerConfigError&#039;&#039;&#039; || Kubelet cannot assemble the container config before starting it. || Referenced &amp;lt;code&amp;gt;ConfigMap&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Secret&amp;lt;/code&amp;gt; does not exist in that namespace.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Init:0/1 / Init:Error&#039;&#039;&#039; || An init container has not completed or is failing, blocking the main container from starting. || Inspect the init container specifically with &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; -c &amp;lt;init-container&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Evicted&#039;&#039;&#039; || Kubelet forcibly terminated the pod to free up node resources. || Usually a symptom of &#039;&#039;&#039;Node&#039;&#039;&#039; &amp;lt;code&amp;gt;MemoryPressure&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DiskPressure&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Terminating&#039;&#039;&#039; || Pod is shutting down gracefully. || If stuck, check for hung shutdown hooks, stuck finalizers, or an unreachable node.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Completed&#039;&#039;&#039; || All containers exited cleanly with exit code &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;. || Normal end state for &amp;lt;code&amp;gt;Job&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;CronJob&amp;lt;/code&amp;gt; pods.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Unknown&#039;&#039;&#039; || Control plane lost contact with the node hosting the pod. || Node crashed, lost network connectivity, or &amp;lt;code&amp;gt;kubelet&amp;lt;/code&amp;gt; stopped running.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 8. Node Conditions (&amp;lt;code&amp;gt;kubectl get nodes&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;kubectl describe node&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
These reflect the health of the underlying worker machine (e.g., EC2 instance) hosting your pods.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Node Condition !! What It Means !! Impact on Pods&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Ready&#039;&#039;&#039; || Node is healthy and &amp;lt;code&amp;gt;kubelet&amp;lt;/code&amp;gt; is reporting normally to the control plane. || Accepts new pod scheduling normally.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;NotReady&#039;&#039;&#039; || Node is unhealthy or &amp;lt;code&amp;gt;kubelet&amp;lt;/code&amp;gt; stopped sending heartbeats. || No new pods schedule here; after the eviction timeout (default 5 min), existing pods are rescheduled elsewhere.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;MemoryPressure&#039;&#039;&#039; || Available RAM on the node dropped below the eviction threshold. || Kubelet blocks new BestEffort pods and starts evicting existing pods (leaving them in &amp;lt;code&amp;gt;Evicted&amp;lt;/code&amp;gt; state).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DiskPressure&#039;&#039;&#039; || Root disk, container filesystem, or inodes are critically low (often from unrotated logs or cached images). || Kubelet triggers garbage collection and evicts pods to prevent the node from locking up.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PIDPressure&#039;&#039;&#039; || Too many active processes are running on the node, nearing the OS process ID limit. || New containers fail to start and existing workloads may be evicted.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;NetworkUnavailable&#039;&#039;&#039; || The node&#039;s network plugin (CNI, such as AWS VPC CNI) is not configured or healthy. || Pods on the node cannot get IPs or route cluster/external traffic.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SchedulingDisabled&#039;&#039;&#039; || Node was manually cordoned (&amp;lt;code&amp;gt;kubectl cordon &amp;lt;node&amp;gt;&amp;lt;/code&amp;gt;). || Existing pods keep running, but the scheduler will not place any new pods on this node.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Kubernetes]]&lt;br /&gt;
[[Category:Cheat Sheets]]&lt;br /&gt;
[[Category:AWS]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1971</id>
		<title>Computer Notes/Kubernetes/Kubernetes Troubleshooting Cheat Sheet</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1971"/>
		<updated>2026-12-02T01:47:26Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* 1. Context &amp;amp; First-Look Triage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Kubernetes Troubleshooting Cheat Sheet =&lt;br /&gt;
&lt;br /&gt;
A rapid triage reference for debugging Kubernetes clusters, pods, networking, and AWS EKS IAM permissions. Follow the standard incident cadence: &#039;&#039;&#039;mitigate first to restore service, then deep-dive into root cause&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 1. Context &amp;amp; First-Look Triage ==&lt;br /&gt;
Run these commands first to orient yourself and spot broken workloads across the cluster&lt;br /&gt;
 Verify which cluster and namespace you are targeting&lt;br /&gt;
&lt;br /&gt;
 kubectl config current-context&lt;br /&gt;
 kubectl config set-context --current --namespace=&amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Fast scan: show every pod that is NOT Running&lt;br /&gt;
&lt;br /&gt;
 kubectl get pods -A --field-selector=status.phase!=Running&lt;br /&gt;
&lt;br /&gt;
 Detailed pod view (READY, STATUS, RESTARTS, IP, NODE)&lt;br /&gt;
&lt;br /&gt;
 kubectl get pods -n &amp;lt;ns&amp;gt; -o wide&lt;br /&gt;
&lt;br /&gt;
 Check node health (NotReady, MemoryPressure, DiskPressure)&lt;br /&gt;
&lt;br /&gt;
 kubectl get nodes -o wide&lt;br /&gt;
 kubectl top nodes&lt;br /&gt;
 kubectl top pods -n &amp;lt;ns&amp;gt; --sort-by=memory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2. Inspecting Failures (Events &amp;amp; Logs) ==&lt;br /&gt;
Follow the standard debugging flow: &amp;lt;code&amp;gt;get&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;describe&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;logs&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;events&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
 Read the bottom &amp;quot;Events&amp;quot; table (scheduling, image pull, probes, OOMKilled)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl describe pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 View logs from the PREVIOUS crashed container (essential for CrashLoopBackOff)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --previous&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Stream live logs or grab the last 100 lines across all replicas of an app&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs -f &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
 kubectl logs -l app=&amp;lt;label&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Multi-container pod (specify container name)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs &amp;lt;pod&amp;gt; -c &amp;lt;container&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Cluster-wide warning events sorted chronologically&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl get events -n &amp;lt;ns&amp;gt; --field-selector type=Warning --sort-by=.lastTimestamp&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3. Immediate Mitigation &amp;amp; Rollbacks ==&lt;br /&gt;
Unblock production SLAs and isolate faulty nodes before digging into root cause.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 Check deployment rollout history and undo a bad release&lt;br /&gt;
&lt;br /&gt;
 kubectl rollout status deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
 kubectl rollout undo deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Scale healthy replicas up (or scale a broken worker down to 0)&lt;br /&gt;
&lt;br /&gt;
 kubectl scale deployment/&amp;lt;name&amp;gt; --replicas=&amp;lt;count&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Isolate a bad node (stop new pods from scheduling on it)&lt;br /&gt;
&lt;br /&gt;
 kubectl cordon &amp;lt;node&amp;gt;&lt;br /&gt;
 kubectl drain &amp;lt;node&amp;gt; --ignore-daemonsets --delete-emptydir-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 4. Live Shell, Networking &amp;amp; DNS Checks ==&lt;br /&gt;
Use these when a pod or worker is timing out or failing to reach internal services or external APIs.&lt;br /&gt;
&lt;br /&gt;
 Shell into a running container&lt;br /&gt;
&lt;br /&gt;
 kubectl exec -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -- /bin/sh&lt;br /&gt;
&lt;br /&gt;
 Attach an ephemeral debug container (works on distroless images with no shell)&lt;br /&gt;
&lt;br /&gt;
 kubectl debug -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --image=busybox --target=&amp;lt;container&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Spin up a temporary network debug pod (dig, nslookup, curl, tcpdump)&lt;br /&gt;
&lt;br /&gt;
 kubectl run netdebug --rm -it --image=nicolaka/netshoot -n &amp;lt;ns&amp;gt; -- /bin/bash&lt;br /&gt;
&lt;br /&gt;
 Verify Service-to-Pod selector matching (if &amp;lt;none&amp;gt;, labels don&#039;t match)&lt;br /&gt;
&lt;br /&gt;
 kubectl get svc,endpoints -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Test CoreDNS and external egress from inside a pod&lt;br /&gt;
&lt;br /&gt;
 nslookup kubernetes.default&lt;br /&gt;
 nslookup s3.amazonaws.com&lt;br /&gt;
&lt;br /&gt;
 Forward a local port to test a pod/service directly&lt;br /&gt;
&lt;br /&gt;
 kubectl port-forward svc/&amp;lt;svc&amp;gt; 8080:80 -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 5. Scaling, Configs &amp;amp; AWS EKS IAM ==&lt;br /&gt;
Commands for inspecting autoscaling, configuration objects, RBAC, and the Kubernetes-to-AWS IAM boundary (IRSA / EKS Pod Identity).&lt;br /&gt;
&lt;br /&gt;
 Check Horizontal Pod Autoscaler (if &amp;lt;unknown&amp;gt;, pod is missing resources.requests)&lt;br /&gt;
&lt;br /&gt;
 kubectl get hpa -n &amp;lt;ns&amp;gt;&lt;br /&gt;
 kubectl describe hpa &amp;lt;hpa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Verify ConfigMaps, Secrets, and Storage&lt;br /&gt;
&lt;br /&gt;
 kubectl get cm,secret,pvc -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Check which ServiceAccount a pod is using (for IRSA / EKS Pod Identity)&lt;br /&gt;
&lt;br /&gt;
 kubectl get pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -o jsonpath=&#039;{.spec.serviceAccountName}&#039;&lt;br /&gt;
&lt;br /&gt;
 Verify the IRSA IAM role annotation on the ServiceAccount&lt;br /&gt;
&lt;br /&gt;
 kubectl describe sa &amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Check Kubernetes RBAC permissions for a ServiceAccount&lt;br /&gt;
&lt;br /&gt;
 kubectl auth can-i --list --as=system:serviceaccount:&amp;lt;ns&amp;gt;:&amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 6. Quick Status-to-Command Lookup ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Status You See !! First Command to Run !! What to Look For&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Pending&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;FailedScheduling&amp;lt;/code&amp;gt;, insufficient CPU/RAM, taint mismatch, or unbound PVC.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CrashLoopBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; --previous&amp;lt;/code&amp;gt; || App startup error, missing env var/Secret, or aggressive &amp;lt;code&amp;gt;livenessProbe&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OOMKilled (Exit 137)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;Last State: Terminated (Reason: OOMKilled)&amp;lt;/code&amp;gt;. Raise memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; or reduce worker batch size.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ImagePullBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || Bad image tag, missing &amp;lt;code&amp;gt;imagePullSecrets&amp;lt;/code&amp;gt;, or EKS node missing ECR read permissions / NAT egress.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AccessDenied (AWS)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe sa &amp;lt;sa&amp;gt;&amp;lt;/code&amp;gt; || Missing &amp;lt;code&amp;gt;eks.amazonaws.com/role-arn&amp;lt;/code&amp;gt; annotation, OIDC trust policy mismatch, or KMS key policy block.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pod Statuses (&amp;lt;code&amp;gt;kubectl get pods&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
These reflect the lifecycle phase of the pod or the state of its containers.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pod Status !! What It Means !! Common Cause / First Check&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Pending&#039;&#039;&#039; || Accepted by the cluster, but not yet scheduled onto a node (or still waiting on volumes/images). || Insufficient CPU/RAM, node taint/affinity mismatch, or unbound PVC. Check &amp;lt;code&amp;gt;kubectl describe pod&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;FailedScheduling&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ContainerCreating&#039;&#039;&#039; || Scheduled to a node; kubelet is pulling images, mounting volumes, or attaching networking. || Normal briefly. If stuck, check for volume mount failures or VPC/CNI IP exhaustion.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Running&#039;&#039;&#039; || Bound to a node and at least one container is running. || Check the &amp;lt;code&amp;gt;READY&amp;lt;/code&amp;gt; column (e.g., &amp;lt;code&amp;gt;0/1&amp;lt;/code&amp;gt; means the container is up, but failing its &amp;lt;code&amp;gt;readinessProbe&amp;lt;/code&amp;gt; and receiving no traffic).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CrashLoopBackOff&#039;&#039;&#039; || Container starts, crashes, and Kubernetes waits with exponential backoff before restarting it again. || App startup crash, missing env var/Secret, or aggressive &amp;lt;code&amp;gt;livenessProbe&amp;lt;/code&amp;gt;. Run &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; --previous&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OOMKilled (Exit 137)&#039;&#039;&#039; || Container exceeded its memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; and was killed by the Linux kernel. || Memory leak or heavy workload (e.g., large file scan). Raise memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; or reduce worker batch size.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ImagePullBackOff&#039;&#039;&#039; || Kubelet cannot pull the container image from the registry. || Wrong image tag, missing &amp;lt;code&amp;gt;imagePullSecrets&amp;lt;/code&amp;gt;, or EKS node missing ECR read permissions / NAT egress.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CreateContainerConfigError&#039;&#039;&#039; || Kubelet cannot assemble the container config before starting it. || Referenced &amp;lt;code&amp;gt;ConfigMap&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Secret&amp;lt;/code&amp;gt; does not exist in that namespace.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Init:0/1 / Init:Error&#039;&#039;&#039; || An init container has not completed or is failing, blocking the main container from starting. || Inspect the init container specifically with &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; -c &amp;lt;init-container&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Evicted&#039;&#039;&#039; || Kubelet forcibly terminated the pod to free up node resources. || Usually a symptom of &#039;&#039;&#039;Node&#039;&#039;&#039; &amp;lt;code&amp;gt;MemoryPressure&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DiskPressure&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Terminating&#039;&#039;&#039; || Pod is shutting down gracefully. || If stuck, check for hung shutdown hooks, stuck finalizers, or an unreachable node.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Completed&#039;&#039;&#039; || All containers exited cleanly with exit code &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;. || Normal end state for &amp;lt;code&amp;gt;Job&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;CronJob&amp;lt;/code&amp;gt; pods.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Unknown&#039;&#039;&#039; || Control plane lost contact with the node hosting the pod. || Node crashed, lost network connectivity, or &amp;lt;code&amp;gt;kubelet&amp;lt;/code&amp;gt; stopped running.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Node Conditions (&amp;lt;code&amp;gt;kubectl get nodes&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;kubectl describe node&amp;lt;/code&amp;gt;) ==&lt;br /&gt;
These reflect the health of the underlying worker machine (e.g., EC2 instance) hosting your pods.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Node Condition !! What It Means !! Impact on Pods&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Ready&#039;&#039;&#039; || Node is healthy and &amp;lt;code&amp;gt;kubelet&amp;lt;/code&amp;gt; is reporting normally to the control plane. || Accepts new pod scheduling normally.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;NotReady&#039;&#039;&#039; || Node is unhealthy or &amp;lt;code&amp;gt;kubelet&amp;lt;/code&amp;gt; stopped sending heartbeats. || No new pods schedule here; after the eviction timeout (default 5 min), existing pods are rescheduled elsewhere.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;MemoryPressure&#039;&#039;&#039; || Available RAM on the node dropped below the eviction threshold. || Kubelet blocks new BestEffort pods and starts evicting existing pods (leaving them in &amp;lt;code&amp;gt;Evicted&amp;lt;/code&amp;gt; state).&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;DiskPressure&#039;&#039;&#039; || Root disk, container filesystem, or inodes are critically low (often from unrotated logs or cached images). || Kubelet triggers garbage collection and evicts pods to prevent the node from locking up.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;PIDPressure&#039;&#039;&#039; || Too many active processes are running on the node, nearing the OS process ID limit. || New containers fail to start and existing workloads may be evicted.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;NetworkUnavailable&#039;&#039;&#039; || The node&#039;s network plugin (CNI, such as AWS VPC CNI) is not configured or healthy. || Pods on the node cannot get IPs or route cluster/external traffic.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;SchedulingDisabled&#039;&#039;&#039; || Node was manually cordoned (&amp;lt;code&amp;gt;kubectl cordon &amp;lt;node&amp;gt;&amp;lt;/code&amp;gt;). || Existing pods keep running, but the scheduler will not place any new pods on this node.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Kubernetes]]&lt;br /&gt;
[[Category:Cheat Sheets]]&lt;br /&gt;
[[Category:AWS]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1970</id>
		<title>Computer Notes/Kubernetes/Kubernetes Troubleshooting Cheat Sheet</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1970"/>
		<updated>2026-12-02T01:16:22Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Kubernetes Troubleshooting Cheat Sheet =&lt;br /&gt;
&lt;br /&gt;
A rapid triage reference for debugging Kubernetes clusters, pods, networking, and AWS EKS IAM permissions. Follow the standard incident cadence: &#039;&#039;&#039;mitigate first to restore service, then deep-dive into root cause&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 1. Context &amp;amp; First-Look Triage ==&lt;br /&gt;
Run these commands first to orient yourself and spot broken workloads across the cluster&lt;br /&gt;
 Verify which cluster and namespace you are targeting&lt;br /&gt;
&lt;br /&gt;
 kubectl config current-context&lt;br /&gt;
 kubectl config set-context --current --namespace=&amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Fast scan: show every pod that is NOT Running&lt;br /&gt;
&lt;br /&gt;
 kubectl get pods -A --field-selector=status.phase!=Running&lt;br /&gt;
&lt;br /&gt;
 Detailed pod view (READY, STATUS, RESTARTS, IP, NODE)&lt;br /&gt;
&lt;br /&gt;
 kubectl get pods -n &amp;lt;ns&amp;gt; -o wide&lt;br /&gt;
&lt;br /&gt;
 Check node health (NotReady, MemoryPressure, DiskPressure)&lt;br /&gt;
&lt;br /&gt;
 kubectl get nodes -o wide&lt;br /&gt;
 kubectl top nodes&lt;br /&gt;
 kubectl top pods -n &amp;lt;ns&amp;gt; --sort-by=memory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2. Inspecting Failures (Events &amp;amp; Logs) ==&lt;br /&gt;
Follow the standard debugging flow: &amp;lt;code&amp;gt;get&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;describe&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;logs&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;events&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
 Read the bottom &amp;quot;Events&amp;quot; table (scheduling, image pull, probes, OOMKilled)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl describe pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 View logs from the PREVIOUS crashed container (essential for CrashLoopBackOff)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --previous&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Stream live logs or grab the last 100 lines across all replicas of an app&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs -f &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
 kubectl logs -l app=&amp;lt;label&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Multi-container pod (specify container name)&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl logs &amp;lt;pod&amp;gt; -c &amp;lt;container&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
 Cluster-wide warning events sorted chronologically&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
 kubectl get events -n &amp;lt;ns&amp;gt; --field-selector type=Warning --sort-by=.lastTimestamp&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3. Immediate Mitigation &amp;amp; Rollbacks ==&lt;br /&gt;
Unblock production SLAs and isolate faulty nodes before digging into root cause.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 Check deployment rollout history and undo a bad release&lt;br /&gt;
&lt;br /&gt;
 kubectl rollout status deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
 kubectl rollout undo deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Scale healthy replicas up (or scale a broken worker down to 0)&lt;br /&gt;
&lt;br /&gt;
 kubectl scale deployment/&amp;lt;name&amp;gt; --replicas=&amp;lt;count&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Isolate a bad node (stop new pods from scheduling on it)&lt;br /&gt;
&lt;br /&gt;
 kubectl cordon &amp;lt;node&amp;gt;&lt;br /&gt;
 kubectl drain &amp;lt;node&amp;gt; --ignore-daemonsets --delete-emptydir-data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 4. Live Shell, Networking &amp;amp; DNS Checks ==&lt;br /&gt;
Use these when a pod or worker is timing out or failing to reach internal services or external APIs.&lt;br /&gt;
&lt;br /&gt;
 Shell into a running container&lt;br /&gt;
&lt;br /&gt;
 kubectl exec -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -- /bin/sh&lt;br /&gt;
&lt;br /&gt;
 Attach an ephemeral debug container (works on distroless images with no shell)&lt;br /&gt;
&lt;br /&gt;
 kubectl debug -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --image=busybox --target=&amp;lt;container&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Spin up a temporary network debug pod (dig, nslookup, curl, tcpdump)&lt;br /&gt;
&lt;br /&gt;
 kubectl run netdebug --rm -it --image=nicolaka/netshoot -n &amp;lt;ns&amp;gt; -- /bin/bash&lt;br /&gt;
&lt;br /&gt;
 Verify Service-to-Pod selector matching (if &amp;lt;none&amp;gt;, labels don&#039;t match)&lt;br /&gt;
&lt;br /&gt;
 kubectl get svc,endpoints -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Test CoreDNS and external egress from inside a pod&lt;br /&gt;
&lt;br /&gt;
 nslookup kubernetes.default&lt;br /&gt;
 nslookup s3.amazonaws.com&lt;br /&gt;
&lt;br /&gt;
 Forward a local port to test a pod/service directly&lt;br /&gt;
&lt;br /&gt;
 kubectl port-forward svc/&amp;lt;svc&amp;gt; 8080:80 -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 5. Scaling, Configs &amp;amp; AWS EKS IAM ==&lt;br /&gt;
Commands for inspecting autoscaling, configuration objects, RBAC, and the Kubernetes-to-AWS IAM boundary (IRSA / EKS Pod Identity).&lt;br /&gt;
&lt;br /&gt;
 Check Horizontal Pod Autoscaler (if &amp;lt;unknown&amp;gt;, pod is missing resources.requests)&lt;br /&gt;
&lt;br /&gt;
 kubectl get hpa -n &amp;lt;ns&amp;gt;&lt;br /&gt;
 kubectl describe hpa &amp;lt;hpa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Verify ConfigMaps, Secrets, and Storage&lt;br /&gt;
&lt;br /&gt;
 kubectl get cm,secret,pvc -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Check which ServiceAccount a pod is using (for IRSA / EKS Pod Identity)&lt;br /&gt;
&lt;br /&gt;
 kubectl get pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -o jsonpath=&#039;{.spec.serviceAccountName}&#039;&lt;br /&gt;
&lt;br /&gt;
 Verify the IRSA IAM role annotation on the ServiceAccount&lt;br /&gt;
&lt;br /&gt;
 kubectl describe sa &amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Check Kubernetes RBAC permissions for a ServiceAccount&lt;br /&gt;
&lt;br /&gt;
 kubectl auth can-i --list --as=system:serviceaccount:&amp;lt;ns&amp;gt;:&amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 6. Quick Status-to-Command Lookup ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Status You See !! First Command to Run !! What to Look For&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Pending&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;FailedScheduling&amp;lt;/code&amp;gt;, insufficient CPU/RAM, taint mismatch, or unbound PVC.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CrashLoopBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; --previous&amp;lt;/code&amp;gt; || App startup error, missing env var/Secret, or aggressive &amp;lt;code&amp;gt;livenessProbe&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OOMKilled (Exit 137)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;Last State: Terminated (Reason: OOMKilled)&amp;lt;/code&amp;gt;. Raise memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; or reduce worker batch size.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ImagePullBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || Bad image tag, missing &amp;lt;code&amp;gt;imagePullSecrets&amp;lt;/code&amp;gt;, or EKS node missing ECR read permissions / NAT egress.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AccessDenied (AWS)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe sa &amp;lt;sa&amp;gt;&amp;lt;/code&amp;gt; || Missing &amp;lt;code&amp;gt;eks.amazonaws.com/role-arn&amp;lt;/code&amp;gt; annotation, OIDC trust policy mismatch, or KMS key policy block.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Kubernetes]]&lt;br /&gt;
[[Category:Cheat Sheets]]&lt;br /&gt;
[[Category:AWS]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1969</id>
		<title>Computer Notes/Kubernetes/Kubernetes Troubleshooting Cheat Sheet</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1969"/>
		<updated>2026-12-02T00:14:48Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Kubernetes Troubleshooting Cheat Sheet =&lt;br /&gt;
&lt;br /&gt;
A rapid triage reference for debugging Kubernetes clusters, pods, networking, and AWS EKS IAM permissions. Follow the standard incident cadence: &#039;&#039;&#039;mitigate first to restore service, then deep-dive into root cause&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 1. Context &amp;amp; First-Look Triage ==&lt;br /&gt;
Run these commands first to orient yourself and spot broken workloads across the cluster.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Verify which cluster and namespace you are targeting&lt;br /&gt;
kubectl config current-context&lt;br /&gt;
kubectl config set-context --current --namespace=&amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Fast scan: show every pod that is NOT Running&lt;br /&gt;
kubectl get pods -A --field-selector=status.phase!=Running&lt;br /&gt;
&lt;br /&gt;
# Detailed pod view (READY, STATUS, RESTARTS, IP, NODE)&lt;br /&gt;
kubectl get pods -n &amp;lt;ns&amp;gt; -o wide&lt;br /&gt;
&lt;br /&gt;
# Check node health (NotReady, MemoryPressure, DiskPressure)&lt;br /&gt;
kubectl get nodes -o wide&lt;br /&gt;
kubectl top nodes&lt;br /&gt;
kubectl top pods -n &amp;lt;ns&amp;gt; --sort-by=memory&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2. Inspecting Failures (Events &amp;amp; Logs) ==&lt;br /&gt;
Follow the standard debugging flow: &amp;lt;code&amp;gt;get&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;describe&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;logs&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;events&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Read the bottom &amp;quot;Events&amp;quot; table (scheduling, image pull, probes, OOMKilled)&lt;br /&gt;
kubectl describe pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# View logs from the PREVIOUS crashed container (essential for CrashLoopBackOff)&lt;br /&gt;
kubectl logs &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --previous&lt;br /&gt;
&lt;br /&gt;
# Stream live logs or grab the last 100 lines across all replicas of an app&lt;br /&gt;
kubectl logs -f &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
kubectl logs -l app=&amp;lt;label&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
&lt;br /&gt;
# Multi-container pod (specify container name)&lt;br /&gt;
kubectl logs &amp;lt;pod&amp;gt; -c &amp;lt;container&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Cluster-wide warning events sorted chronologically&lt;br /&gt;
kubectl get events -n &amp;lt;ns&amp;gt; --field-selector type=Warning --sort-by=.lastTimestamp&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3. Immediate Mitigation &amp;amp; Rollbacks ==&lt;br /&gt;
Unblock production SLAs and isolate faulty nodes before digging into root cause.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Check deployment rollout history and undo a bad release&lt;br /&gt;
kubectl rollout status deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
kubectl rollout undo deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Scale healthy replicas up (or scale a broken worker down to 0)&lt;br /&gt;
kubectl scale deployment/&amp;lt;name&amp;gt; --replicas=&amp;lt;count&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Isolate a bad node (stop new pods from scheduling on it)&lt;br /&gt;
kubectl cordon &amp;lt;node&amp;gt;&lt;br /&gt;
kubectl drain &amp;lt;node&amp;gt; --ignore-daemonsets --delete-emptydir-data&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 4. Live Shell, Networking &amp;amp; DNS Checks ==&lt;br /&gt;
Use these when a pod or worker is timing out or failing to reach internal services or external APIs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Shell into a running container&lt;br /&gt;
kubectl exec -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -- /bin/sh&lt;br /&gt;
&lt;br /&gt;
# Attach an ephemeral debug container (works on distroless images with no shell)&lt;br /&gt;
kubectl debug -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --image=busybox --target=&amp;lt;container&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Spin up a temporary network debug pod (dig, nslookup, curl, tcpdump)&lt;br /&gt;
kubectl run netdebug --rm -it --image=nicolaka/netshoot -n &amp;lt;ns&amp;gt; -- /bin/bash&lt;br /&gt;
&lt;br /&gt;
# Verify Service-to-Pod selector matching (if &amp;lt;none&amp;gt;, labels don&#039;t match)&lt;br /&gt;
kubectl get svc,endpoints -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Test CoreDNS and external egress from inside a pod&lt;br /&gt;
nslookup kubernetes.default&lt;br /&gt;
nslookup s3.amazonaws.com&lt;br /&gt;
&lt;br /&gt;
# Forward a local port to test a pod/service directly&lt;br /&gt;
kubectl port-forward svc/&amp;lt;svc&amp;gt; 8080:80 -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 5. Scaling, Configs &amp;amp; AWS EKS IAM ==&lt;br /&gt;
Commands for inspecting autoscaling, configuration objects, RBAC, and the Kubernetes-to-AWS IAM boundary (IRSA / EKS Pod Identity).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Check Horizontal Pod Autoscaler (if &amp;lt;unknown&amp;gt;, pod is missing resources.requests)&lt;br /&gt;
kubectl get hpa -n &amp;lt;ns&amp;gt;&lt;br /&gt;
kubectl describe hpa &amp;lt;hpa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Verify ConfigMaps, Secrets, and Storage&lt;br /&gt;
kubectl get cm,secret,pvc -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Check which ServiceAccount a pod is using (for IRSA / EKS Pod Identity)&lt;br /&gt;
kubectl get pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -o jsonpath=&#039;{.spec.serviceAccountName}&#039;&lt;br /&gt;
&lt;br /&gt;
# Verify the IRSA IAM role annotation on the ServiceAccount&lt;br /&gt;
kubectl describe sa &amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Check Kubernetes RBAC permissions for a ServiceAccount&lt;br /&gt;
kubectl auth can-i --list --as=system:serviceaccount:&amp;lt;ns&amp;gt;:&amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 6. Quick Status-to-Command Lookup ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Status You See !! First Command to Run !! What to Look For&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Pending&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;FailedScheduling&amp;lt;/code&amp;gt;, insufficient CPU/RAM, taint mismatch, or unbound PVC.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CrashLoopBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; --previous&amp;lt;/code&amp;gt; || App startup error, missing env var/Secret, or aggressive &amp;lt;code&amp;gt;livenessProbe&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OOMKilled (Exit 137)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;Last State: Terminated (Reason: OOMKilled)&amp;lt;/code&amp;gt;. Raise memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; or reduce worker batch size.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ImagePullBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || Bad image tag, missing &amp;lt;code&amp;gt;imagePullSecrets&amp;lt;/code&amp;gt;, or EKS node missing ECR read permissions / NAT egress.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AccessDenied (AWS)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe sa &amp;lt;sa&amp;gt;&amp;lt;/code&amp;gt; || Missing &amp;lt;code&amp;gt;eks.amazonaws.com/role-arn&amp;lt;/code&amp;gt; annotation, OIDC trust policy mismatch, or KMS key policy block.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Kubernetes]]&lt;br /&gt;
[[Category:Cheat Sheets]]&lt;br /&gt;
[[Category:AWS]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1968</id>
		<title>Computer Notes/Kubernetes/Kubernetes Troubleshooting Cheat Sheet</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Computer_Notes/Kubernetes/Kubernetes_Troubleshooting_Cheat_Sheet&amp;diff=1968"/>
		<updated>2026-12-02T00:14:01Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: Created page with &amp;quot;= Kubernetes Troubleshooting Cheat Sheet =  A rapid triage reference for debugging Kubernetes clusters, pods, networking, and AWS EKS IAM permissions. Follow the standard incident cadence: &amp;#039;&amp;#039;&amp;#039;mitigate first to restore service, then deep-dive into root cause&amp;#039;&amp;#039;&amp;#039;.  __TOC__  == 1. Context &amp;amp; First-Look Triage == Run these commands first to orient yourself and spot broken workloads across the cluster.  &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; # Verify which cluster and namespace you are...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Kubernetes Troubleshooting Cheat Sheet =&lt;br /&gt;
&lt;br /&gt;
A rapid triage reference for debugging Kubernetes clusters, pods, networking, and AWS EKS IAM permissions. Follow the standard incident cadence: &#039;&#039;&#039;mitigate first to restore service, then deep-dive into root cause&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== 1. Context &amp;amp; First-Look Triage ==&lt;br /&gt;
Run these commands first to orient yourself and spot broken workloads across the cluster.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Verify which cluster and namespace you are targeting&lt;br /&gt;
kubectl config current-context&lt;br /&gt;
kubectl config set-context --current --namespace=&amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Fast scan: show every pod that is NOT Running&lt;br /&gt;
kubectl get pods -A --field-selector=status.phase!=Running&lt;br /&gt;
&lt;br /&gt;
# Detailed pod view (READY, STATUS, RESTARTS, IP, NODE)&lt;br /&gt;
kubectl get pods -n &amp;lt;ns&amp;gt; -o wide&lt;br /&gt;
&lt;br /&gt;
# Check node health (NotReady, MemoryPressure, DiskPressure)&lt;br /&gt;
kubectl get nodes -o wide&lt;br /&gt;
kubectl top nodes&lt;br /&gt;
kubectl top pods -n &amp;lt;ns&amp;gt; --sort-by=memory&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 2. Inspecting Failures (Events &amp;amp; Logs) ==&lt;br /&gt;
Follow the standard debugging flow: &amp;lt;code&amp;gt;get&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;describe&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;logs&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;events&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Read the bottom &amp;quot;Events&amp;quot; table (scheduling, image pull, probes, OOMKilled)&lt;br /&gt;
kubectl describe pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# View logs from the PREVIOUS crashed container (essential for CrashLoopBackOff)&lt;br /&gt;
kubectl logs &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --previous&lt;br /&gt;
&lt;br /&gt;
# Stream live logs or grab the last 100 lines across all replicas of an app&lt;br /&gt;
kubectl logs -f &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
kubectl logs -l app=&amp;lt;label&amp;gt; -n &amp;lt;ns&amp;gt; --tail=100&lt;br /&gt;
&lt;br /&gt;
# Multi-container pod (specify container name)&lt;br /&gt;
kubectl logs &amp;lt;pod&amp;gt; -c &amp;lt;container&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Cluster-wide warning events sorted chronologically&lt;br /&gt;
kubectl get events -n &amp;lt;ns&amp;gt; --field-selector type=Warning --sort-by=.lastTimestamp&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 3. Immediate Mitigation &amp;amp; Rollbacks ==&lt;br /&gt;
Unblock production SLAs and isolate faulty nodes before digging into root cause.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Check deployment rollout history and undo a bad release&lt;br /&gt;
kubectl rollout status deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
kubectl rollout undo deployment/&amp;lt;name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Scale healthy replicas up (or scale a broken worker down to 0)&lt;br /&gt;
kubectl scale deployment/&amp;lt;name&amp;gt; --replicas=&amp;lt;count&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Isolate a bad node (stop new pods from scheduling on it)&lt;br /&gt;
kubectl cordon &amp;lt;node&amp;gt;&lt;br /&gt;
kubectl drain &amp;lt;node&amp;gt; --ignore-daemonsets --delete-emptydir-data&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 4. Live Shell, Networking &amp;amp; DNS Checks ==&lt;br /&gt;
Use these when a pod or worker is timing out or failing to reach internal services or external APIs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Shell into a running container&lt;br /&gt;
kubectl exec -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -- /bin/sh&lt;br /&gt;
&lt;br /&gt;
# Attach an ephemeral debug container (works on distroless images with no shell)&lt;br /&gt;
kubectl debug -it &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; --image=busybox --target=&amp;lt;container&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Spin up a temporary network debug pod (dig, nslookup, curl, tcpdump)&lt;br /&gt;
kubectl run netdebug --rm -it --image=nicolaka/netshoot -n &amp;lt;ns&amp;gt; -- /bin/bash&lt;br /&gt;
&lt;br /&gt;
# Verify Service-to-Pod selector matching (if &amp;lt;none&amp;gt;, labels don&#039;t match)&lt;br /&gt;
kubectl get svc,endpoints -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Test CoreDNS and external egress from inside a pod&lt;br /&gt;
nslookup kubernetes.default&lt;br /&gt;
nslookup s3.amazonaws.com&lt;br /&gt;
&lt;br /&gt;
# Forward a local port to test a pod/service directly&lt;br /&gt;
kubectl port-forward svc/&amp;lt;svc&amp;gt; 8080:80 -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 5. Scaling, Configs &amp;amp; AWS EKS IAM ==&lt;br /&gt;
Commands for inspecting autoscaling, configuration objects, RBAC, and the Kubernetes-to-AWS IAM boundary (IRSA / EKS Pod Identity).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Check Horizontal Pod Autoscaler (if &amp;lt;unknown&amp;gt;, pod is missing resources.requests)&lt;br /&gt;
kubectl get hpa -n &amp;lt;ns&amp;gt;&lt;br /&gt;
kubectl describe hpa &amp;lt;hpa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Verify ConfigMaps, Secrets, and Storage&lt;br /&gt;
kubectl get cm,secret,pvc -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Check which ServiceAccount a pod is using (for IRSA / EKS Pod Identity)&lt;br /&gt;
kubectl get pod &amp;lt;pod&amp;gt; -n &amp;lt;ns&amp;gt; -o jsonpath=&#039;{.spec.serviceAccountName}&#039;&lt;br /&gt;
&lt;br /&gt;
# Verify the IRSA IAM role annotation on the ServiceAccount&lt;br /&gt;
kubectl describe sa &amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Check Kubernetes RBAC permissions for a ServiceAccount&lt;br /&gt;
kubectl auth can-i --list --as=system:serviceaccount:&amp;lt;ns&amp;gt;:&amp;lt;sa-name&amp;gt; -n &amp;lt;ns&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 6. Quick Status-to-Command Lookup ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Status You See !! First Command to Run !! What to Look For&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Pending&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;FailedScheduling&amp;lt;/code&amp;gt;, insufficient CPU/RAM, taint mismatch, or unbound PVC.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;CrashLoopBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl logs &amp;lt;pod&amp;gt; --previous&amp;lt;/code&amp;gt; || App startup error, missing env var/Secret, or aggressive &amp;lt;code&amp;gt;livenessProbe&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;OOMKilled (Exit 137)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;Last State: Terminated (Reason: OOMKilled)&amp;lt;/code&amp;gt;. Raise memory &amp;lt;code&amp;gt;limits&amp;lt;/code&amp;gt; or reduce worker batch size.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;ImagePullBackOff&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe pod &amp;lt;pod&amp;gt;&amp;lt;/code&amp;gt; || Bad image tag, missing &amp;lt;code&amp;gt;imagePullSecrets&amp;lt;/code&amp;gt;, or EKS node missing ECR read permissions / NAT egress.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;AccessDenied (AWS)&#039;&#039;&#039; || &amp;lt;code&amp;gt;kubectl describe sa &amp;lt;sa&amp;gt;&amp;lt;/code&amp;gt; || Missing &amp;lt;code&amp;gt;eks.amazonaws.com/role-arn&amp;lt;/code&amp;gt; annotation, OIDC trust policy mismatch, or KMS key policy block.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Kubernetes]]&lt;br /&gt;
[[Category:Cheat Sheets]]&lt;br /&gt;
[[Category:AWS]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Computer_Notes/Kubernetes&amp;diff=1967</id>
		<title>Computer Notes/Kubernetes</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Computer_Notes/Kubernetes&amp;diff=1967"/>
		<updated>2026-12-02T00:13:24Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Computer Notes/Kubernetes/Kubernetes Command-Line Cheat Sheet|Kubernetes Command-Line Cheat Sheet]]&lt;br /&gt;
&lt;br /&gt;
[[Computer Notes/Kubernetes/Kubernetes Troubleshooting Cheat Sheet|Kubernetes Troubleshooting Cheat Sheet]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1966</id>
		<title>Cybersecurity/saml failure modes</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1966"/>
		<updated>2026-11-25T06:44:46Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) ==&lt;br /&gt;
SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &#039;&#039;&#039;what the XML signature verifier checks&#039;&#039;&#039; and &#039;&#039;&#039;what the application parser actually extracts&#039;&#039;&#039;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Signature Wrapping (XSW)&#039;&#039;&#039;&lt;br /&gt;
|An attacker copies a legitimately signed &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt;, moves it to another element in the XML tree, and injects an unsigned, forged &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt; (e.g., &amp;lt;code&amp;gt;admin@company.com&amp;lt;/code&amp;gt;) where the app looks for it. The verifier validates the real signature, while the app reads the forged assertion.&lt;br /&gt;
|Validate against a strict XML schema before signature verification; ensure the application extracts identity &#039;&#039;&#039;strictly from the exact DOM node&#039;&#039;&#039;whose &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; was cryptographically verified.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Comment Injection&#039;&#039;&#039;&lt;br /&gt;
|The app parses &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; as &amp;lt;code&amp;gt;user@company.com&amp;lt;!-- --&amp;gt;.evil.com&amp;lt;/code&amp;gt;. If the XML parser strips comments before lookup, &amp;lt;code&amp;gt;user@company.com.evil.com&amp;lt;/code&amp;gt; can authenticate as &amp;lt;code&amp;gt;user@company.com&amp;lt;/code&amp;gt; while the original signature remains valid.&lt;br /&gt;
|Canonicalize XML properly (&amp;lt;code&amp;gt;C14N&amp;lt;/code&amp;gt;without comments) or reject assertions containing XML comments inside &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; and attribute elements.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Assertion Replay&#039;&#039;&#039;&lt;br /&gt;
|An attacker captures a valid SAML Response (via logs, XSS, or MITM) and replays it to the Assertion Consumer Service (ACS) endpoint to mint a new session.&lt;br /&gt;
|Enforce short &amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows, track consumed &amp;lt;code&amp;gt;Assertion ID&amp;lt;/code&amp;gt;s in a distributed cache until expiration, and validate &amp;lt;code&amp;gt;InResponseTo&amp;lt;/code&amp;gt; matches an active SP-initiated request ID (avoid IdP-initiated SSO where possible).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Audience / Recipient Confusion&#039;&#039;&#039;&lt;br /&gt;
|An assertion issued for App A is replayed against App B (which shares the same IdP). If App B only checks the IdP&#039;s signature, it accepts App A&#039;s token.&lt;br /&gt;
|Strictly validate &amp;lt;code&amp;gt;&amp;lt;Audience&amp;gt;&amp;lt;/code&amp;gt; (matches this SP&#039;s EntityID) and &amp;lt;code&amp;gt;&amp;lt;Recipient&amp;gt;&amp;lt;/code&amp;gt;(matches this exact ACS URL).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XXE / Parser Abuse&#039;&#039;&#039;&lt;br /&gt;
|A misconfigured XML parser resolves external entities (&amp;lt;code&amp;gt;&amp;lt;!DOCTYPE ...&amp;gt;&amp;lt;/code&amp;gt;) during SAML ingestion, leading to SSRF or local file disclosure.&lt;br /&gt;
|Disable DTDs and external entity resolution completely at the XML parser layer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OAuth 2.0 &amp;amp; OIDC Failure Modes (&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt; / Modern Standard) ==&lt;br /&gt;
OAuth 2.0 is &#039;&#039;&#039;delegated authorization&#039;&#039;&#039;; OIDC adds an &#039;&#039;&#039;authentication layer&#039;&#039;&#039; (&amp;lt;code&amp;gt;id_token&amp;lt;/code&amp;gt; JWT) on top. Under the current &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; security best practice, older flows (Implicit Grant and Resource Owner Password Credentials) are deprecated.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Open Redirect / Loose &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|Using wildcard or prefix matching on &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; lets an attacker redirect the authorization code (or token) to an attacker-controlled URL or an open redirector on the same domain, enabling account takeover.&lt;br /&gt;
|Enforce &#039;&#039;&#039;exact string matching&#039;&#039;&#039; against pre-registered &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; values. No wildcards, no path traversal.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Auth Code Interception &amp;amp; Injection&#039;&#039;&#039;&lt;br /&gt;
|In public clients (SPAs, mobile) or shared environments, an attacker intercepts the authorization code in transit/history and exchanges it for tokens—or injects their own code into a victim&#039;s session.&lt;br /&gt;
|Mandate &#039;&#039;&#039;Authorization Code + PKCE (&amp;lt;code&amp;gt;S256&amp;lt;/code&amp;gt;)&#039;&#039;&#039; for &#039;&#039;all&#039;&#039; clients (both public and confidential). The attacker cannot redeem the code without the client&#039;s &amp;lt;code&amp;gt;code_verifier&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;OAuth CSRF (Login CSRF)&#039;&#039;&#039;&lt;br /&gt;
|Missing or unvalidated &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; lets an attacker force a victim&#039;s browser to complete an OAuth callback tied to the &#039;&#039;attacker&#039;s&#039;&#039; account (linking the victim&#039;s activity or payment method to the attacker).&lt;br /&gt;
|Bind the authorization request to the user&#039;s browser session via an unguessable, per-request &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter (or PKCE binding) and validate it strictly on callback.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;IdP Mix-Up Attack&#039;&#039;&#039;&lt;br /&gt;
|When a client supports multiple IdPs, an attacker tricks the client into sending an authorization code issued by an honest IdP to a malicious IdP&#039;s token endpoint.&lt;br /&gt;
|Verify the &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt; (issuer) parameter returned in the authorization response matches the exact authorization server that initiated the flow (&amp;lt;nowiki&amp;gt;RFC 9207&amp;lt;/nowiki&amp;gt; / &amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;JWT / OIDC Validation Flaws&#039;&#039;&#039;&lt;br /&gt;
|Accepting &amp;lt;code&amp;gt;&amp;quot;alg&amp;quot;: &amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;, &#039;&#039;&#039;algorithm confusion&#039;&#039;&#039; (signing an HS256 token with the server&#039;s public RSA key), failing to check &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt;, or trusting an OAuth &amp;lt;code&amp;gt;access_token&amp;lt;/code&amp;gt; as proof of user login.&lt;br /&gt;
|Pin allowed algorithms server-side (never trust the JWT header&#039;s &amp;lt;code&amp;gt;alg&amp;lt;/code&amp;gt;), validate &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt; (for OIDC replay defense), and never use an access token for authentication.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Bearer Token Replay&#039;&#039;&#039;&lt;br /&gt;
|Standard OAuth access tokens are bearer tokens—anyone who steals one (via XSS, leaked logs, or compromised proxy) can replay it until it expires.&lt;br /&gt;
|Keep access tokens short-lived, use &#039;&#039;&#039;refresh token rotation with reuse detection&#039;&#039;&#039; (revoking the whole token family on reuse), and adopt &#039;&#039;&#039;sender-constrained tokens&#039;&#039;&#039; (&#039;&#039;&#039;DPoP&#039;&#039;&#039; or &#039;&#039;&#039;mTLS-bound tokens&#039;&#039;&#039;) for high-value APIs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== mTLS &amp;amp; PKI Failure Modes (At Massive Scale) ==&lt;br /&gt;
In mTLS, both client and server present X.509 certificates during the TLS 1.3 handshake. The cryptography rarely breaks—&#039;&#039;&#039;certificate lifecycle management, revocation, and identity enforcement&#039;&#039;&#039; are where systems fail.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Broken Revocation (CRL / OCSP)&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;CRLs&#039;&#039;&#039; grow too large to fetch reliably; &#039;&#039;&#039;OCSP&#039;&#039;&#039;adds handshake latency, leaks privacy, and relies on &#039;&#039;&#039;soft-fail&#039;&#039;&#039; (if an attacker blocks the OCSP responder, the client accepts the revoked cert anyway—which is why major CAs like Let&#039;s Encrypt ended OCSP support).&lt;br /&gt;
|For internal mTLS, &#039;&#039;&#039;replace revocation with short-lived certificates&#039;&#039;&#039; (1 to 24 hours) via automated issuance (&#039;&#039;&#039;SPIFFE/SPIRE&#039;&#039;&#039; or service mesh). If a key leaks, the blast radius expires automatically.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;CA as a Single Point of Failure (Thundering Herd)&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs dramatically multiply issuance volume. If the internal CA suffers an outage or rate-limits during a cluster restart, valid workloads cannot renew certs and trigger a cascading production outage.&lt;br /&gt;
|Run highly available, regionally distributed intermediate CAs, use staggered jittered renewals (renew at ~50% TTL), and decouple workload runtime from CA reachability for the remaining cert lifetime.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;AuthN Confused with AuthZ&#039;&#039;&#039;&lt;br /&gt;
|A service verifies that the client cert is signed by the internal CA, but never checks &#039;&#039;who&#039;&#039; the client is. Any compromised low-privilege microservice with a valid org cert can now call the payments database.&lt;br /&gt;
|Always extract and enforce authorization against the &#039;&#039;&#039;SAN / SPIFFE ID&#039;&#039;&#039; (e.g., &amp;lt;code&amp;gt;spiffe://prod.internal/ns/checkout/sa/api&amp;lt;/code&amp;gt;) rather than just trusting the CA chain.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Proxy / Edge Header Spoofing&#039;&#039;&#039;&lt;br /&gt;
|An L7 load balancer terminates mTLS and passes the client identity downstream in a header (e.g., &amp;lt;code&amp;gt;X-Forwarded-Client-Cert&amp;lt;/code&amp;gt;). If the edge fails to strip attacker-supplied headers—or an internal caller bypasses the edge—attackers spoof any identity.&lt;br /&gt;
|Strip and overwrite identity headers unconditionally at the trust boundary, and enforce network-level isolation (or end-to-end mTLS) so backends only accept traffic from the trusted proxy.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Clock Skew &amp;amp; Silent Expiry&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs have tight &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows; NTP drift causes immediate handshake failures. Meanwhile, static certs outside the mesh (DBs, legacy LBs) silently expire and cause outages.&lt;br /&gt;
|Enforce strict NTP synchronization across nodes, build small grace windows into &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;, and maintain automated inventory/alerting across the &#039;&#039;entire&#039;&#039; certificate estate—not just the service mesh.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale ==&lt;br /&gt;
&#039;&#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&#039;&#039; frame it around &#039;&#039;&#039;layering, latency, and delegation&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;mTLS (Transport-Layer Workload Identity):&#039;&#039;&#039; Best for &#039;&#039;&#039;hop-by-hop, machine-to-machine authentication&#039;&#039;&#039;. It proves &#039;&#039;Service A is talking directly to Service B&#039;&#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &#039;&#039;&#039;end-user context&#039;&#039;&#039; across multi-hop call chains (Service A ➡️ Service B ➡️ Service C).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;OAuth / Signed JWTs (Application-Layer Delegation):&#039;&#039;&#039; Best for &#039;&#039;&#039;end-user context, fine-grained scopes, and multi-hop propagation&#039;&#039;&#039; across L7 boundaries. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Defense in Depth:&#039;&#039;&#039; Combine both—use &#039;&#039;&#039;mTLS with short-lived SPIFFE SVIDs&#039;&#039;&#039; for transport-level workload identity, paired with &#039;&#039;&#039;short-lived, sender-constrained / attenuated tokens&#039;&#039;&#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&#039;s full privileges elsewhere.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1965</id>
		<title>Cybersecurity/saml failure modes</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1965"/>
		<updated>2026-11-25T06:43:58Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) ==&lt;br /&gt;
SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &#039;&#039;&#039;what the XML signature verifier checks&#039;&#039;&#039; and &#039;&#039;&#039;what the application parser actually extracts&#039;&#039;&#039;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Signature Wrapping (XSW)&#039;&#039;&#039;&lt;br /&gt;
|An attacker copies a legitimately signed &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt;, moves it to another element in the XML tree, and injects an unsigned, forged &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt; (e.g., &amp;lt;code&amp;gt;admin@company.com&amp;lt;/code&amp;gt;) where the app looks for it. The verifier validates the real signature, while the app reads the forged assertion.&lt;br /&gt;
|Validate against a strict XML schema before signature verification; ensure the application extracts identity &#039;&#039;&#039;strictly from the exact DOM node&#039;&#039;&#039;whose &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; was cryptographically verified.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Comment Injection&#039;&#039;&#039;&lt;br /&gt;
|The app parses &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; as &amp;lt;code&amp;gt;user@company.com&amp;lt;!-- --&amp;gt;.evil.com&amp;lt;/code&amp;gt;. If the XML parser strips comments before lookup, &amp;lt;code&amp;gt;user@company.com.evil.com&amp;lt;/code&amp;gt; can authenticate as &amp;lt;code&amp;gt;user@company.com&amp;lt;/code&amp;gt; while the original signature remains valid.&lt;br /&gt;
|Canonicalize XML properly (&amp;lt;code&amp;gt;C14N&amp;lt;/code&amp;gt;without comments) or reject assertions containing XML comments inside &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; and attribute elements.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Assertion Replay&#039;&#039;&#039;&lt;br /&gt;
|An attacker captures a valid SAML Response (via logs, XSS, or MITM) and replays it to the Assertion Consumer Service (ACS) endpoint to mint a new session.&lt;br /&gt;
|Enforce short &amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows, track consumed &amp;lt;code&amp;gt;Assertion ID&amp;lt;/code&amp;gt;s in a distributed cache until expiration, and validate &amp;lt;code&amp;gt;InResponseTo&amp;lt;/code&amp;gt; matches an active SP-initiated request ID (avoid IdP-initiated SSO where possible).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Audience / Recipient Confusion&#039;&#039;&#039;&lt;br /&gt;
|An assertion issued for App A is replayed against App B (which shares the same IdP). If App B only checks the IdP&#039;s signature, it accepts App A&#039;s token.&lt;br /&gt;
|Strictly validate &amp;lt;code&amp;gt;&amp;lt;Audience&amp;gt;&amp;lt;/code&amp;gt; (matches this SP&#039;s EntityID) and &amp;lt;code&amp;gt;&amp;lt;Recipient&amp;gt;&amp;lt;/code&amp;gt;(matches this exact ACS URL).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XXE / Parser Abuse&#039;&#039;&#039;&lt;br /&gt;
|A misconfigured XML parser resolves external entities (&amp;lt;code&amp;gt;&amp;lt;!DOCTYPE ...&amp;gt;&amp;lt;/code&amp;gt;) during SAML ingestion, leading to SSRF or local file disclosure.&lt;br /&gt;
|Disable DTDs and external entity resolution completely at the XML parser layer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OAuth 2.0 &amp;amp; OIDC Failure Modes (&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt; / Modern Standard) ==&lt;br /&gt;
OAuth 2.0 is &#039;&#039;&#039;delegated authorization&#039;&#039;&#039;; OIDC adds an &#039;&#039;&#039;authentication layer&#039;&#039;&#039; (&amp;lt;code&amp;gt;id_token&amp;lt;/code&amp;gt; JWT) on top. Under the current &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; security best practice, older flows (Implicit Grant and Resource Owner Password Credentials) are deprecated.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Open Redirect / Loose &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|Using wildcard or prefix matching on &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; lets an attacker redirect the authorization code (or token) to an attacker-controlled URL or an open redirector on the same domain, enabling account takeover.&lt;br /&gt;
|Enforce &#039;&#039;&#039;exact string matching&#039;&#039;&#039; against pre-registered &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; values. No wildcards, no path traversal.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Auth Code Interception &amp;amp; Injection&#039;&#039;&#039;&lt;br /&gt;
|In public clients (SPAs, mobile) or shared environments, an attacker intercepts the authorization code in transit/history and exchanges it for tokens—or injects their own code into a victim&#039;s session.&lt;br /&gt;
|Mandate &#039;&#039;&#039;Authorization Code + PKCE (&amp;lt;code&amp;gt;S256&amp;lt;/code&amp;gt;)&#039;&#039;&#039; for &#039;&#039;all&#039;&#039; clients (both public and confidential). The attacker cannot redeem the code without the client&#039;s &amp;lt;code&amp;gt;code_verifier&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;OAuth CSRF (Login CSRF)&#039;&#039;&#039;&lt;br /&gt;
|Missing or unvalidated &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; lets an attacker force a victim&#039;s browser to complete an OAuth callback tied to the &#039;&#039;attacker&#039;s&#039;&#039; account (linking the victim&#039;s activity or payment method to the attacker).&lt;br /&gt;
|Bind the authorization request to the user&#039;s browser session via an unguessable, per-request &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter (or PKCE binding) and validate it strictly on callback.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;IdP Mix-Up Attack&#039;&#039;&#039;&lt;br /&gt;
|When a client supports multiple IdPs, an attacker tricks the client into sending an authorization code issued by an honest IdP to a malicious IdP&#039;s token endpoint.&lt;br /&gt;
|Verify the &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt; (issuer) parameter returned in the authorization response matches the exact authorization server that initiated the flow (&amp;lt;nowiki&amp;gt;RFC 9207&amp;lt;/nowiki&amp;gt; / &amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;JWT / OIDC Validation Flaws&#039;&#039;&#039;&lt;br /&gt;
|Accepting &amp;lt;code&amp;gt;&amp;quot;alg&amp;quot;: &amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;, &#039;&#039;&#039;algorithm confusion&#039;&#039;&#039; (signing an HS256 token with the server&#039;s public RSA key), failing to check &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt;, or trusting an OAuth &amp;lt;code&amp;gt;access_token&amp;lt;/code&amp;gt; as proof of user login.&lt;br /&gt;
|Pin allowed algorithms server-side (never trust the JWT header&#039;s &amp;lt;code&amp;gt;alg&amp;lt;/code&amp;gt;), validate &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt; (for OIDC replay defense), and never use an access token for authentication.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Bearer Token Replay&#039;&#039;&#039;&lt;br /&gt;
|Standard OAuth access tokens are bearer tokens—anyone who steals one (via XSS, leaked logs, or compromised proxy) can replay it until it expires.&lt;br /&gt;
|Keep access tokens short-lived, use &#039;&#039;&#039;refresh token rotation with reuse detection&#039;&#039;&#039; (revoking the whole token family on reuse), and adopt &#039;&#039;&#039;sender-constrained tokens&#039;&#039;&#039; (&#039;&#039;&#039;DPoP&#039;&#039;&#039; or &#039;&#039;&#039;mTLS-bound tokens&#039;&#039;&#039;) for high-value APIs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== mTLS &amp;amp; PKI Failure Modes (At Massive Scale) ==&lt;br /&gt;
In mTLS, both client and server present X.509 certificates during the TLS 1.3 handshake. The cryptography rarely breaks—&#039;&#039;&#039;certificate lifecycle management, revocation, and identity enforcement&#039;&#039;&#039; are where systems fail.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Broken Revocation (CRL / OCSP)&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;CRLs&#039;&#039;&#039; grow too large to fetch reliably; &#039;&#039;&#039;OCSP&#039;&#039;&#039;adds handshake latency, leaks privacy, and relies on &#039;&#039;&#039;soft-fail&#039;&#039;&#039; (if an attacker blocks the OCSP responder, the client accepts the revoked cert anyway—which is why major CAs like Let&#039;s Encrypt ended OCSP support).&lt;br /&gt;
|For internal mTLS, &#039;&#039;&#039;replace revocation with short-lived certificates&#039;&#039;&#039; (1 to 24 hours) via automated issuance (&#039;&#039;&#039;SPIFFE/SPIRE&#039;&#039;&#039; or service mesh). If a key leaks, the blast radius expires automatically.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;CA as a Single Point of Failure (Thundering Herd)&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs dramatically multiply issuance volume. If the internal CA suffers an outage or rate-limits during a cluster restart, valid workloads cannot renew certs and trigger a cascading production outage.&lt;br /&gt;
|Run highly available, regionally distributed intermediate CAs, use staggered jittered renewals (renew at ~50% TTL), and decouple workload runtime from CA reachability for the remaining cert lifetime.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;AuthN Confused with AuthZ&#039;&#039;&#039;&lt;br /&gt;
|A service verifies that the client cert is signed by the internal CA, but never checks &#039;&#039;who&#039;&#039; the client is. Any compromised low-privilege microservice with a valid org cert can now call the payments database.&lt;br /&gt;
|Always extract and enforce authorization against the &#039;&#039;&#039;SAN / SPIFFE ID&#039;&#039;&#039; (e.g., &amp;lt;code&amp;gt;spiffe://prod.internal/ns/checkout/sa/api&amp;lt;/code&amp;gt;) rather than just trusting the CA chain.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Proxy / Edge Header Spoofing&#039;&#039;&#039;&lt;br /&gt;
|An L7 load balancer terminates mTLS and passes the client identity downstream in a header (e.g., &amp;lt;code&amp;gt;X-Forwarded-Client-Cert&amp;lt;/code&amp;gt;). If the edge fails to strip attacker-supplied headers—or an internal caller bypasses the edge—attackers spoof any identity.&lt;br /&gt;
|Strip and overwrite identity headers unconditionally at the trust boundary, and enforce network-level isolation (or end-to-end mTLS) so backends only accept traffic from the trusted proxy.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Clock Skew &amp;amp; Silent Expiry&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs have tight &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows; NTP drift causes immediate handshake failures. Meanwhile, static certs outside the mesh (DBs, legacy LBs) silently expire and cause outages.&lt;br /&gt;
|Enforce strict NTP synchronization across nodes, build small grace windows into &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;, and maintain automated inventory/alerting across the &#039;&#039;entire&#039;&#039; certificate estate—not just the service mesh.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale ==&lt;br /&gt;
&#039;&#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&#039;&#039; frame it around &#039;&#039;&#039;layering, latency, and delegation&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;mTLS (Transport-Layer Workload Identity):&#039;&#039;&#039; Best for &#039;&#039;&#039;hop-by-hop, machine-to-machine authentication&#039;&#039;&#039;. It proves &#039;&#039;Service A is talking directly to Service B&#039;&#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &#039;&#039;&#039;end-user context&#039;&#039;&#039; across multi-hop call chains (Service A ➡️ Service B ➡️ Service C).&lt;br /&gt;
* &#039;&#039;&#039;OAuth / Signed JWTs (Application-Layer Delegation):&#039;&#039;&#039; Best for &#039;&#039;&#039;end-user context, fine-grained scopes, and multi-hop propagation&#039;&#039;&#039; across L7 boundaries. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;br /&gt;
* &#039;&#039;&#039;Defense in Depth:&#039;&#039;&#039; Combine both—use &#039;&#039;&#039;mTLS with short-lived SPIFFE SVIDs&#039;&#039;&#039; for transport-level workload identity, paired with &#039;&#039;&#039;short-lived, sender-constrained / attenuated tokens&#039;&#039;&#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&#039;s full privileges elsewhere.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1964</id>
		<title>Cybersecurity/saml failure modes</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1964"/>
		<updated>2026-11-25T05:08:56Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) ==&lt;br /&gt;
SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &#039;&#039;&#039;what the XML signature verifier checks&#039;&#039;&#039; and &#039;&#039;&#039;what the application parser actually extracts&#039;&#039;&#039;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Signature Wrapping (XSW)&#039;&#039;&#039;&lt;br /&gt;
|An attacker copies a legitimately signed &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt;, moves it to another element in the XML tree, and injects an unsigned, forged &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt; (e.g., &amp;lt;code&amp;gt;admin@company.com&amp;lt;/code&amp;gt;) where the app looks for it. The verifier validates the real signature, while the app reads the forged assertion.&lt;br /&gt;
|Validate against a strict XML schema before signature verification; ensure the application extracts identity &#039;&#039;&#039;strictly from the exact DOM node&#039;&#039;&#039;whose &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; was cryptographically verified.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Comment Injection&#039;&#039;&#039;&lt;br /&gt;
|The app parses &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; as &amp;lt;code&amp;gt;user@company.com&amp;lt;!-- --&amp;gt;.evil.com&amp;lt;/code&amp;gt;. If the XML parser strips comments before lookup, &amp;lt;code&amp;gt;user@company.com.evil.com&amp;lt;/code&amp;gt; can authenticate as &amp;lt;code&amp;gt;user@company.com&amp;lt;/code&amp;gt; while the original signature remains valid.&lt;br /&gt;
|Canonicalize XML properly (&amp;lt;code&amp;gt;C14N&amp;lt;/code&amp;gt;without comments) or reject assertions containing XML comments inside &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; and attribute elements.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Assertion Replay&#039;&#039;&#039;&lt;br /&gt;
|An attacker captures a valid SAML Response (via logs, XSS, or MITM) and replays it to the Assertion Consumer Service (ACS) endpoint to mint a new session.&lt;br /&gt;
|Enforce short &amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows, track consumed &amp;lt;code&amp;gt;Assertion ID&amp;lt;/code&amp;gt;s in a distributed cache until expiration, and validate &amp;lt;code&amp;gt;InResponseTo&amp;lt;/code&amp;gt; matches an active SP-initiated request ID (avoid IdP-initiated SSO where possible).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Audience / Recipient Confusion&#039;&#039;&#039;&lt;br /&gt;
|An assertion issued for App A is replayed against App B (which shares the same IdP). If App B only checks the IdP&#039;s signature, it accepts App A&#039;s token.&lt;br /&gt;
|Strictly validate &amp;lt;code&amp;gt;&amp;lt;Audience&amp;gt;&amp;lt;/code&amp;gt; (matches this SP&#039;s EntityID) and &amp;lt;code&amp;gt;&amp;lt;Recipient&amp;gt;&amp;lt;/code&amp;gt;(matches this exact ACS URL).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XXE / Parser Abuse&#039;&#039;&#039;&lt;br /&gt;
|A misconfigured XML parser resolves external entities (&amp;lt;code&amp;gt;&amp;lt;!DOCTYPE ...&amp;gt;&amp;lt;/code&amp;gt;) during SAML ingestion, leading to SSRF or local file disclosure.&lt;br /&gt;
|Disable DTDs and external entity resolution completely at the XML parser layer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OAuth 2.0 &amp;amp; OIDC Failure Modes (&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt; / Modern Standard) ==&lt;br /&gt;
OAuth 2.0 is &#039;&#039;&#039;delegated authorization&#039;&#039;&#039;; OIDC adds an &#039;&#039;&#039;authentication layer&#039;&#039;&#039; (&amp;lt;code&amp;gt;id_token&amp;lt;/code&amp;gt; JWT) on top. Under the current &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; security best practice, older flows (Implicit Grant and Resource Owner Password Credentials) are deprecated.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Open Redirect / Loose &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|Using wildcard or prefix matching on &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; lets an attacker redirect the authorization code (or token) to an attacker-controlled URL or an open redirector on the same domain, enabling account takeover.&lt;br /&gt;
|Enforce &#039;&#039;&#039;exact string matching&#039;&#039;&#039; against pre-registered &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; values. No wildcards, no path traversal.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Auth Code Interception &amp;amp; Injection&#039;&#039;&#039;&lt;br /&gt;
|In public clients (SPAs, mobile) or shared environments, an attacker intercepts the authorization code in transit/history and exchanges it for tokens—or injects their own code into a victim&#039;s session.&lt;br /&gt;
|Mandate &#039;&#039;&#039;Authorization Code + PKCE (&amp;lt;code&amp;gt;S256&amp;lt;/code&amp;gt;)&#039;&#039;&#039; for &#039;&#039;all&#039;&#039; clients (both public and confidential). The attacker cannot redeem the code without the client&#039;s &amp;lt;code&amp;gt;code_verifier&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;OAuth CSRF (Login CSRF)&#039;&#039;&#039;&lt;br /&gt;
|Missing or unvalidated &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; lets an attacker force a victim&#039;s browser to complete an OAuth callback tied to the &#039;&#039;attacker&#039;s&#039;&#039; account (linking the victim&#039;s activity or payment method to the attacker).&lt;br /&gt;
|Bind the authorization request to the user&#039;s browser session via an unguessable, per-request &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter (or PKCE binding) and validate it strictly on callback.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;IdP Mix-Up Attack&#039;&#039;&#039;&lt;br /&gt;
|When a client supports multiple IdPs, an attacker tricks the client into sending an authorization code issued by an honest IdP to a malicious IdP&#039;s token endpoint.&lt;br /&gt;
|Verify the &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt; (issuer) parameter returned in the authorization response matches the exact authorization server that initiated the flow (&amp;lt;nowiki&amp;gt;RFC 9207&amp;lt;/nowiki&amp;gt; / &amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;JWT / OIDC Validation Flaws&#039;&#039;&#039;&lt;br /&gt;
|Accepting &amp;lt;code&amp;gt;&amp;quot;alg&amp;quot;: &amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;, &#039;&#039;&#039;algorithm confusion&#039;&#039;&#039; (signing an HS256 token with the server&#039;s public RSA key), failing to check &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt;, or trusting an OAuth &amp;lt;code&amp;gt;access_token&amp;lt;/code&amp;gt; as proof of user login.&lt;br /&gt;
|Pin allowed algorithms server-side (never trust the JWT header&#039;s &amp;lt;code&amp;gt;alg&amp;lt;/code&amp;gt;), validate &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt; (for OIDC replay defense), and never use an access token for authentication.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Bearer Token Replay&#039;&#039;&#039;&lt;br /&gt;
|Standard OAuth access tokens are bearer tokens—anyone who steals one (via XSS, leaked logs, or compromised proxy) can replay it until it expires.&lt;br /&gt;
|Keep access tokens short-lived, use &#039;&#039;&#039;refresh token rotation with reuse detection&#039;&#039;&#039; (revoking the whole token family on reuse), and adopt &#039;&#039;&#039;sender-constrained tokens&#039;&#039;&#039; (&#039;&#039;&#039;DPoP&#039;&#039;&#039; or &#039;&#039;&#039;mTLS-bound tokens&#039;&#039;&#039;) for high-value APIs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== mTLS &amp;amp; PKI Failure Modes (At Massive Scale) ==&lt;br /&gt;
In mTLS, both client and server present X.509 certificates during the TLS 1.3 handshake. The cryptography rarely breaks—&#039;&#039;&#039;certificate lifecycle management, revocation, and identity enforcement&#039;&#039;&#039; are where systems fail.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Broken Revocation (CRL / OCSP)&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;CRLs&#039;&#039;&#039; grow too large to fetch reliably; &#039;&#039;&#039;OCSP&#039;&#039;&#039;adds handshake latency, leaks privacy, and relies on &#039;&#039;&#039;soft-fail&#039;&#039;&#039; (if an attacker blocks the OCSP responder, the client accepts the revoked cert anyway—which is why major CAs like Let&#039;s Encrypt ended OCSP support).&lt;br /&gt;
|For internal mTLS, &#039;&#039;&#039;replace revocation with short-lived certificates&#039;&#039;&#039; (1 to 24 hours) via automated issuance (&#039;&#039;&#039;SPIFFE/SPIRE&#039;&#039;&#039; or service mesh). If a key leaks, the blast radius expires automatically.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;CA as a Single Point of Failure (Thundering Herd)&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs dramatically multiply issuance volume. If the internal CA suffers an outage or rate-limits during a cluster restart, valid workloads cannot renew certs and trigger a cascading production outage.&lt;br /&gt;
|Run highly available, regionally distributed intermediate CAs, use staggered jittered renewals (renew at ~50% TTL), and decouple workload runtime from CA reachability for the remaining cert lifetime.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;AuthN Confused with AuthZ&#039;&#039;&#039;&lt;br /&gt;
|A service verifies that the client cert is signed by the internal CA, but never checks &#039;&#039;who&#039;&#039; the client is. Any compromised low-privilege microservice with a valid org cert can now call the payments database.&lt;br /&gt;
|Always extract and enforce authorization against the &#039;&#039;&#039;SAN / SPIFFE ID&#039;&#039;&#039; (e.g., &amp;lt;code&amp;gt;spiffe://prod.internal/ns/checkout/sa/api&amp;lt;/code&amp;gt;) rather than just trusting the CA chain.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Proxy / Edge Header Spoofing&#039;&#039;&#039;&lt;br /&gt;
|An L7 load balancer terminates mTLS and passes the client identity downstream in a header (e.g., &amp;lt;code&amp;gt;X-Forwarded-Client-Cert&amp;lt;/code&amp;gt;). If the edge fails to strip attacker-supplied headers—or an internal caller bypasses the edge—attackers spoof any identity.&lt;br /&gt;
|Strip and overwrite identity headers unconditionally at the trust boundary, and enforce network-level isolation (or end-to-end mTLS) so backends only accept traffic from the trusted proxy.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Clock Skew &amp;amp; Silent Expiry&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs have tight &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows; NTP drift causes immediate handshake failures. Meanwhile, static certs outside the mesh (DBs, legacy LBs) silently expire and cause outages.&lt;br /&gt;
|Enforce strict NTP synchronization across nodes, build small grace windows into &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;, and maintain automated inventory/alerting across the &#039;&#039;entire&#039;&#039; certificate estate—not just the service mesh.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale ==&lt;br /&gt;
&#039;&#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&#039;&#039; frame it around &#039;&#039;&#039;layering, latency, and delegation&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;mTLS (Transport-Layer Workload Identity):&#039;&#039;&#039; Best for &#039;&#039;&#039;hop-by-hop, machine-to-machine authentication&#039;&#039;&#039;. It proves &#039;&#039;Service A is talking directly to Service B&#039;&#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &#039;&#039;&#039;end-user context&#039;&#039;&#039; across multi-hop call chains (Service A $\rightarrow$ Service B $\rightarrow$ Service C).&lt;br /&gt;
* &#039;&#039;&#039;OAuth / Signed JWTs (Application-Layer Delegation):&#039;&#039;&#039; Best for &#039;&#039;&#039;end-user context, fine-grained scopes, and multi-hop propagation&#039;&#039;&#039; across L7 boundaries. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;br /&gt;
* &#039;&#039;&#039;Defense in Depth:&#039;&#039;&#039; Combine both—use &#039;&#039;&#039;mTLS with short-lived SPIFFE SVIDs&#039;&#039;&#039; for transport-level workload identity, paired with &#039;&#039;&#039;short-lived, sender-constrained / attenuated tokens&#039;&#039;&#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&#039;s full privileges elsewhere.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1963</id>
		<title>Cybersecurity/saml failure modes</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/saml_failure_modes&amp;diff=1963"/>
		<updated>2026-11-25T05:08:13Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: Created page with &amp;quot; == 1. SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) == SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &amp;#039;&amp;#039;&amp;#039;what the XML signature verifier checks&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;what the application parser actually extracts&amp;#039;&amp;#039;&amp;#039;. {| class=&amp;quot;wikitable&amp;quot; |&amp;#039;&amp;#039;&amp;#039;Failure Mode&amp;#039;&amp;#039;&amp;#039; |&amp;#039;&amp;#039;&amp;#039;How It Breaks&amp;#039;&amp;#039;&amp;#039; |&amp;#039;&amp;#039;&amp;#039;First-Principles Fix&amp;#039;&amp;#039;&amp;#039; |- |&amp;#039;&amp;#039;&amp;#039;XML Signature Wrapping (XSW)&amp;#039;&amp;#039;&amp;#039; |An attacker copies a legitimately signed &amp;lt;code&amp;gt;&amp;lt;Assertion...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== 1. SAML 2.0 Failure Modes (XML &amp;amp; Assertion Trust) ==&lt;br /&gt;
SAML relies on XML Digital Signatures (XMLDSig) and browser-mediated redirects. Most critical failures stem from the gap between &#039;&#039;&#039;what the XML signature verifier checks&#039;&#039;&#039; and &#039;&#039;&#039;what the application parser actually extracts&#039;&#039;&#039;.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Signature Wrapping (XSW)&#039;&#039;&#039;&lt;br /&gt;
|An attacker copies a legitimately signed &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt;, moves it to another element in the XML tree, and injects an unsigned, forged &amp;lt;code&amp;gt;&amp;lt;Assertion&amp;gt;&amp;lt;/code&amp;gt; (e.g., &amp;lt;code&amp;gt;admin@company.com&amp;lt;/code&amp;gt;) where the app looks for it. The verifier validates the real signature, while the app reads the forged assertion.&lt;br /&gt;
|Validate against a strict XML schema before signature verification; ensure the application extracts identity &#039;&#039;&#039;strictly from the exact DOM node&#039;&#039;&#039;whose &amp;lt;code&amp;gt;ID&amp;lt;/code&amp;gt; was cryptographically verified.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XML Comment Injection&#039;&#039;&#039;&lt;br /&gt;
|The app parses &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; as &amp;lt;code&amp;gt;user@company.com&amp;lt;!-- --&amp;gt;.evil.com&amp;lt;/code&amp;gt;. If the XML parser strips comments before lookup, &amp;lt;code&amp;gt;user@company.com.evil.com&amp;lt;/code&amp;gt; can authenticate as &amp;lt;code&amp;gt;user@company.com&amp;lt;/code&amp;gt; while the original signature remains valid.&lt;br /&gt;
|Canonicalize XML properly (&amp;lt;code&amp;gt;C14N&amp;lt;/code&amp;gt;without comments) or reject assertions containing XML comments inside &amp;lt;code&amp;gt;NameID&amp;lt;/code&amp;gt; and attribute elements.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Assertion Replay&#039;&#039;&#039;&lt;br /&gt;
|An attacker captures a valid SAML Response (via logs, XSS, or MITM) and replays it to the Assertion Consumer Service (ACS) endpoint to mint a new session.&lt;br /&gt;
|Enforce short &amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows, track consumed &amp;lt;code&amp;gt;Assertion ID&amp;lt;/code&amp;gt;s in a distributed cache until expiration, and validate &amp;lt;code&amp;gt;InResponseTo&amp;lt;/code&amp;gt; matches an active SP-initiated request ID (avoid IdP-initiated SSO where possible).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Audience / Recipient Confusion&#039;&#039;&#039;&lt;br /&gt;
|An assertion issued for App A is replayed against App B (which shares the same IdP). If App B only checks the IdP&#039;s signature, it accepts App A&#039;s token.&lt;br /&gt;
|Strictly validate &amp;lt;code&amp;gt;&amp;lt;Audience&amp;gt;&amp;lt;/code&amp;gt; (matches this SP&#039;s EntityID) and &amp;lt;code&amp;gt;&amp;lt;Recipient&amp;gt;&amp;lt;/code&amp;gt;(matches this exact ACS URL).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;XXE / Parser Abuse&#039;&#039;&#039;&lt;br /&gt;
|A misconfigured XML parser resolves external entities (&amp;lt;code&amp;gt;&amp;lt;!DOCTYPE ...&amp;gt;&amp;lt;/code&amp;gt;) during SAML ingestion, leading to SSRF or local file disclosure.&lt;br /&gt;
|Disable DTDs and external entity resolution completely at the XML parser layer.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 2. OAuth 2.0 &amp;amp; OIDC Failure Modes (&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt; / Modern Standard) ==&lt;br /&gt;
OAuth 2.0 is &#039;&#039;&#039;delegated authorization&#039;&#039;&#039;; OIDC adds an &#039;&#039;&#039;authentication layer&#039;&#039;&#039; (&amp;lt;code&amp;gt;id_token&amp;lt;/code&amp;gt; JWT) on top. Under the current &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; security best practice, older flows (Implicit Grant and Resource Owner Password Credentials) are deprecated.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Open Redirect / Loose &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|Using wildcard or prefix matching on &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; lets an attacker redirect the authorization code (or token) to an attacker-controlled URL or an open redirector on the same domain, enabling account takeover.&lt;br /&gt;
|Enforce &#039;&#039;&#039;exact string matching&#039;&#039;&#039; against pre-registered &amp;lt;code&amp;gt;redirect_uri&amp;lt;/code&amp;gt; values. No wildcards, no path traversal.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Auth Code Interception &amp;amp; Injection&#039;&#039;&#039;&lt;br /&gt;
|In public clients (SPAs, mobile) or shared environments, an attacker intercepts the authorization code in transit/history and exchanges it for tokens—or injects their own code into a victim&#039;s session.&lt;br /&gt;
|Mandate &#039;&#039;&#039;Authorization Code + PKCE (&amp;lt;code&amp;gt;S256&amp;lt;/code&amp;gt;)&#039;&#039;&#039; for &#039;&#039;all&#039;&#039; clients (both public and confidential). The attacker cannot redeem the code without the client&#039;s &amp;lt;code&amp;gt;code_verifier&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;OAuth CSRF (Login CSRF)&#039;&#039;&#039;&lt;br /&gt;
|Missing or unvalidated &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; lets an attacker force a victim&#039;s browser to complete an OAuth callback tied to the &#039;&#039;attacker&#039;s&#039;&#039; account (linking the victim&#039;s activity or payment method to the attacker).&lt;br /&gt;
|Bind the authorization request to the user&#039;s browser session via an unguessable, per-request &amp;lt;code&amp;gt;state&amp;lt;/code&amp;gt; parameter (or PKCE binding) and validate it strictly on callback.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;IdP Mix-Up Attack&#039;&#039;&#039;&lt;br /&gt;
|When a client supports multiple IdPs, an attacker tricks the client into sending an authorization code issued by an honest IdP to a malicious IdP&#039;s token endpoint.&lt;br /&gt;
|Verify the &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt; (issuer) parameter returned in the authorization response matches the exact authorization server that initiated the flow (&amp;lt;nowiki&amp;gt;RFC 9207&amp;lt;/nowiki&amp;gt; / &amp;lt;nowiki&amp;gt;RFC 9700&amp;lt;/nowiki&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;JWT / OIDC Validation Flaws&#039;&#039;&#039;&lt;br /&gt;
|Accepting &amp;lt;code&amp;gt;&amp;quot;alg&amp;quot;: &amp;quot;none&amp;quot;&amp;lt;/code&amp;gt;, &#039;&#039;&#039;algorithm confusion&#039;&#039;&#039; (signing an HS256 token with the server&#039;s public RSA key), failing to check &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt;, or trusting an OAuth &amp;lt;code&amp;gt;access_token&amp;lt;/code&amp;gt; as proof of user login.&lt;br /&gt;
|Pin allowed algorithms server-side (never trust the JWT header&#039;s &amp;lt;code&amp;gt;alg&amp;lt;/code&amp;gt;), validate &amp;lt;code&amp;gt;iss&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;aud&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;exp&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;nonce&amp;lt;/code&amp;gt; (for OIDC replay defense), and never use an access token for authentication.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Bearer Token Replay&#039;&#039;&#039;&lt;br /&gt;
|Standard OAuth access tokens are bearer tokens—anyone who steals one (via XSS, leaked logs, or compromised proxy) can replay it until it expires.&lt;br /&gt;
|Keep access tokens short-lived, use &#039;&#039;&#039;refresh token rotation with reuse detection&#039;&#039;&#039; (revoking the whole token family on reuse), and adopt &#039;&#039;&#039;sender-constrained tokens&#039;&#039;&#039; (&#039;&#039;&#039;DPoP&#039;&#039;&#039; or &#039;&#039;&#039;mTLS-bound tokens&#039;&#039;&#039;) for high-value APIs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 3. mTLS &amp;amp; PKI Failure Modes (At Massive Scale) ==&lt;br /&gt;
In mTLS, both client and server present X.509 certificates during the TLS 1.3 handshake. The cryptography rarely breaks—&#039;&#039;&#039;certificate lifecycle management, revocation, and identity enforcement&#039;&#039;&#039; are where systems fail.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Failure Mode&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;How It Breaks&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;First-Principles Fix&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Broken Revocation (CRL / OCSP)&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;CRLs&#039;&#039;&#039; grow too large to fetch reliably; &#039;&#039;&#039;OCSP&#039;&#039;&#039;adds handshake latency, leaks privacy, and relies on &#039;&#039;&#039;soft-fail&#039;&#039;&#039; (if an attacker blocks the OCSP responder, the client accepts the revoked cert anyway—which is why major CAs like Let&#039;s Encrypt ended OCSP support).&lt;br /&gt;
|For internal mTLS, &#039;&#039;&#039;replace revocation with short-lived certificates&#039;&#039;&#039; (1 to 24 hours) via automated issuance (&#039;&#039;&#039;SPIFFE/SPIRE&#039;&#039;&#039; or service mesh). If a key leaks, the blast radius expires automatically.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;CA as a Single Point of Failure (Thundering Herd)&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs dramatically multiply issuance volume. If the internal CA suffers an outage or rate-limits during a cluster restart, valid workloads cannot renew certs and trigger a cascading production outage.&lt;br /&gt;
|Run highly available, regionally distributed intermediate CAs, use staggered jittered renewals (renew at ~50% TTL), and decouple workload runtime from CA reachability for the remaining cert lifetime.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;AuthN Confused with AuthZ&#039;&#039;&#039;&lt;br /&gt;
|A service verifies that the client cert is signed by the internal CA, but never checks &#039;&#039;who&#039;&#039; the client is. Any compromised low-privilege microservice with a valid org cert can now call the payments database.&lt;br /&gt;
|Always extract and enforce authorization against the &#039;&#039;&#039;SAN / SPIFFE ID&#039;&#039;&#039; (e.g., &amp;lt;code&amp;gt;spiffe://prod.internal/ns/checkout/sa/api&amp;lt;/code&amp;gt;) rather than just trusting the CA chain.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Proxy / Edge Header Spoofing&#039;&#039;&#039;&lt;br /&gt;
|An L7 load balancer terminates mTLS and passes the client identity downstream in a header (e.g., &amp;lt;code&amp;gt;X-Forwarded-Client-Cert&amp;lt;/code&amp;gt;). If the edge fails to strip attacker-supplied headers—or an internal caller bypasses the edge—attackers spoof any identity.&lt;br /&gt;
|Strip and overwrite identity headers unconditionally at the trust boundary, and enforce network-level isolation (or end-to-end mTLS) so backends only accept traffic from the trusted proxy.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Clock Skew &amp;amp; Silent Expiry&#039;&#039;&#039;&lt;br /&gt;
|Short-lived certs have tight &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;NotOnOrAfter&amp;lt;/code&amp;gt; windows; NTP drift causes immediate handshake failures. Meanwhile, static certs outside the mesh (DBs, legacy LBs) silently expire and cause outages.&lt;br /&gt;
|Enforce strict NTP synchronization across nodes, build small grace windows into &amp;lt;code&amp;gt;NotBefore&amp;lt;/code&amp;gt;, and maintain automated inventory/alerting across the &#039;&#039;entire&#039;&#039; certificate estate—not just the service mesh.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 4. The Classic Trade-Off: mTLS vs. OAuth/JWT at Scale ==&lt;br /&gt;
&#039;&#039;How would you authenticate service-to-service traffic across 10,000 microservices? -&#039;&#039; frame it around &#039;&#039;&#039;layering, latency, and delegation&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;mTLS (Transport-Layer Workload Identity):&#039;&#039;&#039; Best for &#039;&#039;&#039;hop-by-hop, machine-to-machine authentication&#039;&#039;&#039;. It proves &#039;&#039;Service A is talking directly to Service B&#039;&#039; with zero extra network round trips per request once the TLS session is established, and eliminates static bearer secrets. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Identity terminates at L7 proxies/load balancers and does not naturally carry &#039;&#039;&#039;end-user context&#039;&#039;&#039; across multi-hop call chains (Service A $\rightarrow$ Service B $\rightarrow$ Service C).&lt;br /&gt;
* &#039;&#039;&#039;OAuth / Signed JWTs (Application-Layer Delegation):&#039;&#039;&#039; Best for &#039;&#039;&#039;end-user context, fine-grained scopes, and multi-hop propagation&#039;&#039;&#039; across L7 boundaries. &#039;&#039;&#039;Limitation:&#039;&#039;&#039; Standard JWTs are bearer tokens vulnerable to replay if leaked, and revocation requires either very short TTLs or stateful introspection (which adds latency and a central bottleneck).&lt;br /&gt;
* &#039;&#039;&#039;Defense in Depth:&#039;&#039;&#039; Combine both—use &#039;&#039;&#039;mTLS with short-lived SPIFFE SVIDs&#039;&#039;&#039; for transport-level workload identity, paired with &#039;&#039;&#039;short-lived, sender-constrained / attenuated tokens&#039;&#039;&#039; (binding the token to the mTLS cert or using Google-style ALTS + end-user context tickets) so a compromised intermediate service cannot replay a user&#039;s full privileges elsewhere.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity&amp;diff=1962</id>
		<title>Cybersecurity</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity&amp;diff=1962"/>
		<updated>2026-11-25T05:05:05Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.cvedetails.com 🔍CVE Search]&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment|🏢Government]]&lt;br /&gt;
&lt;br /&gt;
[[Vulnerability tree |🌴Vulnerability tree]]&lt;br /&gt;
&lt;br /&gt;
[[Pentesting |✒️Pentesting]]&lt;br /&gt;
&lt;br /&gt;
[[Assessing Risk|😲Risk]]&lt;br /&gt;
&lt;br /&gt;
[[The Dirty Dozen|✈️Dirty dozen]]&lt;br /&gt;
&lt;br /&gt;
[[MTO triangle|📐Motive Technology Opportunity]]&lt;br /&gt;
&lt;br /&gt;
[[North / South &amp;amp; East West Network Security |🧭North/South &amp;amp; East/West Movements]]&lt;br /&gt;
&lt;br /&gt;
[https://cheatsheetseries.owasp.org/index.html 🐝OS Wasp Cheat Sheets]&lt;br /&gt;
&lt;br /&gt;
[[Cyber Kill Chain|⛓️‍💥Cyber Kill Chain]]&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/AWS Cybersecurity papers|🌤️AWS Cybersecurity papers]]&lt;br /&gt;
&lt;br /&gt;
🍦[[Cybersecurity/Soft Skills|Soft Skills]]&lt;br /&gt;
&lt;br /&gt;
[https://media.defense.gov/2025/Jun/23/2003742198/-1/-1/0/CSI_MEMORY_SAFE_LANGUAGES_REDUCING_VULNERABILITIES_IN_MODERN_SOFTWARE_DEVELOPMENT.PDF Memory Safe Development]&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/saml failure modes|SAML 2.0, OAuth 2.0 / OIDC, and mTLS / PKI failure modes]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes/Amazon_KMS&amp;diff=1961</id>
		<title>Study Guides/AWS Cybersecurity Notes/Amazon KMS</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes/Amazon_KMS&amp;diff=1961"/>
		<updated>2026-11-22T03:28:14Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Overview =&lt;br /&gt;
&lt;br /&gt;
* Data encryption is the most critical aspect.&lt;br /&gt;
&lt;br /&gt;
* Must know KMS and the API calls used in the service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Two types of encryption:&lt;br /&gt;
&lt;br /&gt;
::* Symmetric - Same key&lt;br /&gt;
&lt;br /&gt;
::: This is fast for large amounts of data.&lt;br /&gt;
&lt;br /&gt;
::* Asymmetric - Uses a pair of keys&lt;br /&gt;
&lt;br /&gt;
::: Private key - Kept secret (Decrypts data)&lt;br /&gt;
&lt;br /&gt;
::: Public key - Distributed (Encrypts data)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples of symmetric are AES and DES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= AWS KMS =&lt;br /&gt;
&lt;br /&gt;
== Customer Master Keys ==&lt;br /&gt;
&lt;br /&gt;
* Contain key material for encryption and decryption.&lt;br /&gt;
&lt;br /&gt;
* CMKs are managed in KMS &lt;br /&gt;
&lt;br /&gt;
:* Think of CMK as a keychain&lt;br /&gt;
&lt;br /&gt;
:* KMS provides a way to store and manage keys - this is the AWS lockbox for your keys&lt;br /&gt;
&lt;br /&gt;
:* KMS protects the CMKs &lt;br /&gt;
&lt;br /&gt;
:* Uses industry standard practices to safeguard CMK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
About CMKs:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:* They manage encryption keys for sensitive data.&lt;br /&gt;
&lt;br /&gt;
:* Control encryption and decryption of data&lt;br /&gt;
&lt;br /&gt;
:* Securely stored by KMS&lt;br /&gt;
&lt;br /&gt;
:* Fine grained access control&lt;br /&gt;
&lt;br /&gt;
:* Work inside and outside of AWS&lt;br /&gt;
&lt;br /&gt;
:* use envelope encryption.&lt;br /&gt;
&lt;br /&gt;
:: A data key is generated and used for encrypting data.&lt;br /&gt;
&lt;br /&gt;
:: That key is encrypted with the CMK.&lt;br /&gt;
&lt;br /&gt;
:* Auditable in AWS Cloud Trail and AWS Cloud Watch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Two different types of CMK exist:&lt;br /&gt;
&lt;br /&gt;
:* Customer managed.&lt;br /&gt;
&lt;br /&gt;
:* AWS managed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AWS Managed CMKs ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Owned and used by AWS services&lt;br /&gt;
&lt;br /&gt;
* Independent from the customer account.&lt;br /&gt;
&lt;br /&gt;
:: You cannot track their usage or audit them!&lt;br /&gt;
&lt;br /&gt;
* Can be used by services inside an account.&lt;br /&gt;
&lt;br /&gt;
* They are maintained in MKS and provide a quick way to implement encryption.&lt;br /&gt;
&lt;br /&gt;
* They are rotated at least once per year.&lt;br /&gt;
&lt;br /&gt;
:* No control over when these keys roll.&lt;br /&gt;
&lt;br /&gt;
:* These keys are region specific.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Examples of AWS Managed CMKs ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* AWS managed CMK for S3 - Used in data buckets.&lt;br /&gt;
&lt;br /&gt;
* AWS KMS Default CMK - used for default encryption in EBS, RDS and Redshift.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer Managed Keys ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Provides the customer total control over the key.&lt;br /&gt;
&lt;br /&gt;
:: Customer has complete control over the lifecycle of a key.&lt;br /&gt;
&lt;br /&gt;
:: This provides greater flexibility and customization.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The key Policy can be defined:&lt;br /&gt;
&lt;br /&gt;
* Rotation schedules.&lt;br /&gt;
&lt;br /&gt;
* Permissions based on requirements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These keys are not tied to any feature or service.&lt;br /&gt;
&lt;br /&gt;
:* They can be used inside or outside of AWS.&lt;br /&gt;
&lt;br /&gt;
:* Much more control over key use and permissions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is the &#039;&#039;&#039;customer responsibility&#039;&#039;&#039; to protect customer managed keys.&lt;br /&gt;
&lt;br /&gt;
KMS provides the rolls and security measures - but security is on the customer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Selecting a key type ==&lt;br /&gt;
&lt;br /&gt;
* Policy will dictate the key type.&lt;br /&gt;
&lt;br /&gt;
* AWS managed keys may be ok if complete control is not needed.&lt;br /&gt;
&lt;br /&gt;
:* AWS managed keys have no charge.&lt;br /&gt;
&lt;br /&gt;
* If policy states keys must be rotated on demand (after an incident) customer managed is best.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Data Encryption Keys ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These are generated by KMS for encrypting data.&lt;br /&gt;
&lt;br /&gt;
They are used WITH customer-managed keys to protect information.&lt;br /&gt;
&lt;br /&gt;
They are short lived - only used for specific encryption operations.&lt;br /&gt;
&lt;br /&gt;
DEKs provide an extra layer of security:&lt;br /&gt;
&lt;br /&gt;
:: DEK - Encrypts the data&lt;br /&gt;
&lt;br /&gt;
::: CMK - Encrypts the DEK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
About DEKs:&lt;br /&gt;
&lt;br /&gt;
:* Managed and generated in KMS&lt;br /&gt;
&lt;br /&gt;
:* Used with CMK&#039;s&lt;br /&gt;
&lt;br /&gt;
:* They are randomly generated.&lt;br /&gt;
&lt;br /&gt;
:* Use envelope encryption Encrypted &amp;gt; DEC &amp;gt; CMK &amp;gt; Decrypted &lt;br /&gt;
&lt;br /&gt;
:* DEKs are fast and efficient.&lt;br /&gt;
&lt;br /&gt;
:* Can be used with various AWS services&lt;br /&gt;
&lt;br /&gt;
:* KMS manages the DEC lifecycle.&lt;br /&gt;
&lt;br /&gt;
:* Important part: DECs are symmetrical keys!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Key Material =&lt;br /&gt;
&lt;br /&gt;
Key material is used to encrypted and decrypt.&lt;br /&gt;
&lt;br /&gt;
:* Customers cannot manage the key material in any way!&lt;br /&gt;
&lt;br /&gt;
:* The key material is inside the CMK.&lt;br /&gt;
&lt;br /&gt;
::* The CMK material is used to create the DMK&lt;br /&gt;
&lt;br /&gt;
:* AWS Managed CMK - automatically creates the material inside the CMK.&lt;br /&gt;
&lt;br /&gt;
:* For customer managed CMK - you create the CMK and import your own key material.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Importing key material ==&lt;br /&gt;
&lt;br /&gt;
This may be needed if you have keys in use outside of AWS and need to bring them in.&lt;br /&gt;
&lt;br /&gt;
This also could be for regulatory needs.&lt;br /&gt;
&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
::Import (external) key material under advanced options&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:* The key material must be in binary format.&lt;br /&gt;
&lt;br /&gt;
:* An expiration date can be provided.&lt;br /&gt;
&lt;br /&gt;
:: If the expiration date is reached or the material is deleted it is gone forever.&lt;br /&gt;
&lt;br /&gt;
:* If imported key material is used the key must be manually rotated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Key Policies =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These control access to KMS kets.&lt;br /&gt;
&lt;br /&gt;
Each KMS key is associated with a policy that defines who can use the key.&lt;br /&gt;
&lt;br /&gt;
The policy enforces secure granular access control.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Key Grants =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Allows control and management of cryptographic functions on keys.&lt;br /&gt;
&lt;br /&gt;
You define a AWS IAM user role or AWS account to provide access.&lt;br /&gt;
&lt;br /&gt;
::You then specify what actions should be allowed by that principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This allows find granted control over keys.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= What about Envelope encryption =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:* Data is encrypted.&lt;br /&gt;
&lt;br /&gt;
:* The key for the data is also encrypted by another key.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The top level key is know as a master key.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How it works in KMS ==&lt;br /&gt;
&lt;br /&gt;
Customer mater key: This is a symmetric key managed by KMS,&lt;br /&gt;
&lt;br /&gt;
DEK: Used when data needs to be encrypted.&lt;br /&gt;
&lt;br /&gt;
::Enveloping the DEK: The DEK is encrypted with the master key.&lt;br /&gt;
&lt;br /&gt;
::Storing the DEK: The encrypted DEK - known as the envelope key is stored with the data.&lt;br /&gt;
&lt;br /&gt;
::Decrypting the envelope key: the DEK (envelope key) is passed to KMS from storage.&lt;br /&gt;
&lt;br /&gt;
::Decrypting data: The decrypted DEK (decrypted by KMS) is used to decrypt the data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This has several advantages:&lt;br /&gt;
&lt;br /&gt;
:* The master key never leaves KMS.&lt;br /&gt;
&lt;br /&gt;
:* The DEK is protected and separate from the data.&lt;br /&gt;
&lt;br /&gt;
:* Granular control is enabled through KMS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Roles in KMS =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*: Key admins - Full control over the keys&lt;br /&gt;
&lt;br /&gt;
*: Key users - have the ability to use keys, but limited control over key functionality.&lt;br /&gt;
&lt;br /&gt;
*: Key managers - These are a crossover between admins and users.&lt;br /&gt;
&lt;br /&gt;
*: IAM users and roles - IAM users and roles can be given access to CMKs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Key policies =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each key is governed by a single key policy.&lt;br /&gt;
&lt;br /&gt;
:: This provides a central approach to access control.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The key policy is used to determine cryptographic operations.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes/Cloud_HSM&amp;diff=1960</id>
		<title>Study Guides/AWS Cybersecurity Notes/Cloud HSM</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes/Cloud_HSM&amp;diff=1960"/>
		<updated>2026-11-22T02:12:23Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
* This is a managed services for data encryption.&lt;br /&gt;
&lt;br /&gt;
:* HSM = Hardware Security Module [https://en.wikipedia.org/wiki/Hardware_security_module]&lt;br /&gt;
:* Validated to FIPS 140-2 Level 3&lt;br /&gt;
:* Generate encryption keys&lt;br /&gt;
&lt;br /&gt;
A cloud HSM is a custom keystore.&lt;br /&gt;
&lt;br /&gt;
* Allows the storage of keys outside the KMS in side the CloudHSM cluster.&lt;br /&gt;
:* Useful if the key material cannot be stored in a shared environment.&lt;br /&gt;
&lt;br /&gt;
Cloud HSM is deployed as a cluster:&lt;br /&gt;
&lt;br /&gt;
* The default size is 6 per account per region.&lt;br /&gt;
* You can add up to 28 HSM&#039;s per account&lt;br /&gt;
** More HSMs = Better performance.&lt;br /&gt;
* With Cloud HSM, synchronization is managed for you by AWS.&lt;br /&gt;
* When configuring a cluster you must provide a list of AZ&#039;s and subbnets - it will create an ENI on those subnets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cloud HSM features ==&lt;br /&gt;
&lt;br /&gt;
* High availability.&lt;br /&gt;
* Load balancing.&lt;br /&gt;
* Replication.&lt;br /&gt;
* Scaling.&lt;br /&gt;
* Managed by AWS.&lt;br /&gt;
* Integrates with AWS services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Cloud HSM Use cases =&lt;br /&gt;
&lt;br /&gt;
* Key management in tamper resistant hardware.&lt;br /&gt;
* Curtail in PKI systems.&lt;br /&gt;
* Digital rights management - copyright laws.&lt;br /&gt;
* Code signing.&lt;br /&gt;
* High security applications.&lt;br /&gt;
&lt;br /&gt;
= HSM Users =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre crypto office user (PRECO):&lt;br /&gt;
* Has a default username and password.&lt;br /&gt;
* Used for the initial connection to the HSM.&lt;br /&gt;
* It can only change it&#039;s own password and has read only HSM access.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Crypto Office User (CO):&lt;br /&gt;
* Has more permissions than PEECO&lt;br /&gt;
* Can perform management tasks&lt;br /&gt;
:* Creation and deletion of users&lt;br /&gt;
:* password changes&lt;br /&gt;
:* Admin functions such as:&lt;br /&gt;
::*Zerosise (clear) the HSM&lt;br /&gt;
::*Identify the number of HSM&lt;br /&gt;
::*Obtain metadata&lt;br /&gt;
::*View the sync status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Crypto User (CU):&lt;br /&gt;
* Can perform functions within the CloudHSM.&lt;br /&gt;
:* Encryption and decryption&lt;br /&gt;
:* Key management&lt;br /&gt;
:* Verifying and signing.&lt;br /&gt;
:* Generating digests for Keyed Has Message Authentication (HMACs).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Appliance user:&lt;br /&gt;
* Exists on all HSM&lt;br /&gt;
:* Used for closing and sync actions&lt;br /&gt;
:* Has the same permissions as a CO but cannot manage users.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Cloud HSM advantages=&lt;br /&gt;
&lt;br /&gt;
* Provides the highest level of control over keys.&lt;br /&gt;
:* Tamper resistant&lt;br /&gt;
:* May be required for compliance (EG FIPS 140-2 level 3)&lt;br /&gt;
&lt;br /&gt;
* Direct control over HSM applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=When to use KMS instead=&lt;br /&gt;
&lt;br /&gt;
* easy integration.&lt;br /&gt;
* if fine grained control is required.&lt;br /&gt;
* Salability is required.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes&amp;diff=1959</id>
		<title>Study Guides/AWS Cybersecurity Notes</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes&amp;diff=1959"/>
		<updated>2026-11-22T02:02:41Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* SCS-C02 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
=SCS-C02=&lt;br /&gt;
&lt;br /&gt;
[https://a.co/d/7oZWHFl 📕Recommended Study Guide]&lt;br /&gt;
&lt;br /&gt;
[[AWS - Cloudtrail]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes - Part 2]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes - Part 3]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes - Part 4]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes - Part 5]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes - Part 6]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes - Part 7]]&lt;br /&gt;
&lt;br /&gt;
[[AWS Certified Serucity Spacaility - SCS-C02 Study notes - Part 8]]&lt;br /&gt;
&lt;br /&gt;
[[Building a Bastion server - Part 9]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Isolating EC2 Instances for Forensic Inspection|Isolating EC2 Instances for Forensic Inspection]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Amazon Detective|Amazon Detective]]&lt;br /&gt;
&lt;br /&gt;
[[Systems Manager]]&lt;br /&gt;
&lt;br /&gt;
[[Amazon Inspector]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Amazon KMS|Amazon KMS]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Cloud HSM|Cloud HSM]]&lt;br /&gt;
&lt;br /&gt;
[[AWS IAM]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/AWS Config|AWS Config]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Security Hub &amp;amp; Guard Duty|Security Hub and Guard Duty]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/AWS Security Hub|AWS Security Hub]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Logging and Monitoring|Logging and Monitoring]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/CloudWarch|CloudWatch &amp;amp; CloudWatch Metrics]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/AWS EventBridge|AWS EventBridge]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Parsing logs and events|Parsing logs and events]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/VPC Security|VPC Security]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/Securing EC2 Instances|Securing EC2]]&lt;br /&gt;
&lt;br /&gt;
[[Study Guides/AWS Cybersecurity Notes/ACM|AWS Certifiate manager]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cloud_HSM&amp;diff=1958</id>
		<title>Cloud HSM</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cloud_HSM&amp;diff=1958"/>
		<updated>2026-11-22T02:02:06Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: Mflavell moved page Cloud HSM to Study Guides/AWS Cybersecurity Notes/Cloud HSM&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Study Guides/AWS Cybersecurity Notes/Cloud HSM]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes/Cloud_HSM&amp;diff=1957</id>
		<title>Study Guides/AWS Cybersecurity Notes/Cloud HSM</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Study_Guides/AWS_Cybersecurity_Notes/Cloud_HSM&amp;diff=1957"/>
		<updated>2026-11-22T02:02:06Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: Mflavell moved page Cloud HSM to Study Guides/AWS Cybersecurity Notes/Cloud HSM&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
* This is a managed services for data encryption.&lt;br /&gt;
&lt;br /&gt;
:* HSM = Hardware Security Module [https://en.wikipedia.org/wiki/Hardware_security_module]&lt;br /&gt;
:* Validated to FIPS 140-2 Level 3&lt;br /&gt;
:* Generate encryption keys&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A cloud HSM is a custom keystore.&lt;br /&gt;
&lt;br /&gt;
* Allows the storage of keys outside the KMS in side the CloudHSM cluster.&lt;br /&gt;
:* Useful if the key material cannot be stored in a shared environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cloud HSM is deployed as a cluster:&lt;br /&gt;
&lt;br /&gt;
* The default size is 6 per account per region.&lt;br /&gt;
* Cloud HSM manages key synchronizations for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cloud HSM features ==&lt;br /&gt;
&lt;br /&gt;
* High availability.&lt;br /&gt;
* Load balancing.&lt;br /&gt;
* Replication.&lt;br /&gt;
* Scaling.&lt;br /&gt;
* Managed by AWS.&lt;br /&gt;
* Integrates with AWS services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Cloud HSM Use cases =&lt;br /&gt;
&lt;br /&gt;
* Key management in tamper resistant hardware.&lt;br /&gt;
* Curtail in PKI systems.&lt;br /&gt;
* Digital rights management - copyright laws.&lt;br /&gt;
* Code signing.&lt;br /&gt;
* High security applications.&lt;br /&gt;
&lt;br /&gt;
= HSM Users =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
pre crypto office user (PRECO):&lt;br /&gt;
* Has a default username and password.&lt;br /&gt;
* Used for the initcal connection to the HSM.&lt;br /&gt;
* It can only change it&#039;s own password and has read only HSM acccess.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Crypto Office User (CO):&lt;br /&gt;
* Has more permissions than PEECO&lt;br /&gt;
* Can perform management tasks&lt;br /&gt;
:* Creation and deletion of users&lt;br /&gt;
:* password changes&lt;br /&gt;
:* Admin fuctions such as:&lt;br /&gt;
::*Zerosise (whipe) the HSM&lt;br /&gt;
::*Ideifity the numebr of HSM&lt;br /&gt;
::*Optain metadata&lt;br /&gt;
::*View the sync status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Crpto User (CU):&lt;br /&gt;
* Can perform functions within the CloudHSM.&lt;br /&gt;
:* Encryption and decryption&lt;br /&gt;
:* Key management&lt;br /&gt;
:* Veritiying and signing.&lt;br /&gt;
:* Generating digests for Keyed Has Message Authentication (HMACs).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Appliance user:&lt;br /&gt;
* Exists on all HSM&lt;br /&gt;
:* Used for cloding and sync actions&lt;br /&gt;
:* Has the same permissions as a CO but cannot manage users.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Cloud HSM advantages=&lt;br /&gt;
&lt;br /&gt;
* Provides the highest level of control over keys.&lt;br /&gt;
:* Tamper resistant&lt;br /&gt;
:* May be required for compliance (EG FIPS 140-2 level 3)&lt;br /&gt;
&lt;br /&gt;
* Direct control over HSM applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=When to use KMS instead=&lt;br /&gt;
&lt;br /&gt;
* easy integration.&lt;br /&gt;
* if fine graned control is required.&lt;br /&gt;
* Salability is required.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1956</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1956"/>
		<updated>2026-11-06T06:22:41Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* High level network design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of defense. If a host on the private subnet is compromised data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
     |                        |&lt;br /&gt;
     =                   [Webserver]&lt;br /&gt;
     |                           &lt;br /&gt;
     +---+- Private Subnet ---+ &lt;br /&gt;
         |                    |&lt;br /&gt;
     [Private server]     [Endpoint]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore a deny is not required. As SSH connections are made via SSM port 22 is not required enhancing security.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the private subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challenges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;br /&gt;
&lt;br /&gt;
=== Accessing the Private subnet from public servers ===&lt;br /&gt;
With the basic structure now established the public / private boundaries can be controlled by adding ingress rules to the NACL for the private subnet.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1955</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1955"/>
		<updated>2026-11-06T06:21:44Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of defense. If a host on the private subnet is compromised data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                              |   &lt;br /&gt;
     +---+- Private Subnet ---+ &lt;br /&gt;
         |                    |&lt;br /&gt;
     [Private server]     [Endpoint]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore a deny is not required. As SSH connections are made via SSM port 22 is not required enhancing security.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the private subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challenges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;br /&gt;
&lt;br /&gt;
=== Accessing the Private subnet from public servers ===&lt;br /&gt;
With the basic structure now established the public / private boundaries can be controlled by adding ingress rules to the NACL for the private subnet.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1954</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1954"/>
		<updated>2026-11-06T06:19:13Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Dual homed servers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                              |   &lt;br /&gt;
     +---+- Private Subnet ---+ &lt;br /&gt;
         |                    |&lt;br /&gt;
     [Private server]     [Endpoint]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;br /&gt;
&lt;br /&gt;
=== Accessing the Private subnet from public servers ===&lt;br /&gt;
With the basic sttructure now established the public / private boundaries can be controlled by adding ingress rules to the NACL for the private subnet.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1953</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1953"/>
		<updated>2026-11-06T06:02:55Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* High level network design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                              |   &lt;br /&gt;
     +---+- Private Subnet ---+ &lt;br /&gt;
         |                    |&lt;br /&gt;
     [Private server]     [Endpoint]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;br /&gt;
&lt;br /&gt;
=== Dual homed servers ===&lt;br /&gt;
Ultimatley some hosts will reqire access to both the private and public subnets, for example our webserver. This can be performed by adding 2 ENI&#039;s to the host - One for public the other for private.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1952</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1952"/>
		<updated>2026-11-06T06:02:32Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* High level network design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                             |   |&lt;br /&gt;
     +---+- Private Subnet --+ &lt;br /&gt;
         |                   |&lt;br /&gt;
     [Private server]   [Endpoint]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;br /&gt;
&lt;br /&gt;
=== Dual homed servers ===&lt;br /&gt;
Ultimatley some hosts will reqire access to both the private and public subnets, for example our webserver. This can be performed by adding 2 ENI&#039;s to the host - One for public the other for private.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1951</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1951"/>
		<updated>2026-11-06T03:27:24Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                             |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;br /&gt;
&lt;br /&gt;
=== Dual homed servers ===&lt;br /&gt;
Ultimatley some hosts will reqire access to both the private and public subnets, for example our webserver. This can be performed by adding 2 ENI&#039;s to the host - One for public the other for private.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1950</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1950"/>
		<updated>2026-11-06T03:23:18Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                             |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1949</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1949"/>
		<updated>2026-11-06T03:22:26Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Create the endpoint for secure connections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                             |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;br /&gt;
&lt;br /&gt;
Using ping validate that the internet cannot be reached:&lt;br /&gt;
 ping www.google.com&lt;br /&gt;
 PING www.google.com (142.251.152.119) 56(84) bytes of data.&lt;br /&gt;
 ^C&lt;br /&gt;
 --- www.google.com ping statistics ---&lt;br /&gt;
 21 packets transmitted, 0 received, 100% packet loss, time 20816ms&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1948</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1948"/>
		<updated>2026-11-06T03:19:54Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Create the endpoint for secure connections */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                             |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, start an EC2 instance on the private subnet.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1947</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1947"/>
		<updated>2026-11-06T03:15:54Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Why this approach works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential. An additional point in this design is that the private subnet has no access to the internet, this provides a final line of deffense. If a host on the private subnet is complirisied data cannot be directly exfiltrated.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
                              |&lt;br /&gt;
                        [Webserver]&lt;br /&gt;
                             |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included - these are a must. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required. As SSH connections are made via SSM port 22 is not required enhaicing security.&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
==== Providing access to SSM without internet access ====&lt;br /&gt;
A key point in this design it that data cannot be exfiltrated directly from hosts on the privatre subnet, indeed the private subnet has no direct contact with the outside world. This however presents unique challanges connecting to hosts on this subnet. Again in our approach SSM is used for connections. An important note is that the private subnet has no access to a NAT gateway as this removes the logical air gapping we are attempting to create in this paper.&lt;br /&gt;
&lt;br /&gt;
==== Create an endpoint security group ====&lt;br /&gt;
&lt;br /&gt;
* Go to &#039;&#039;&#039;EC2 Console -&amp;gt; Security Groups&#039;&#039;&#039; and click &#039;&#039;&#039;Create security group&#039;&#039;&#039;.&lt;br /&gt;
* Name it something like &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;Inbound Rule:&#039;&#039;&#039; Add &#039;&#039;&#039;HTTPS (Port 443)&#039;&#039;&#039; and set the source to your VPC&#039;s IPv4 CIDR block (e.g., &amp;lt;code&amp;gt;10.0.0.0/16&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &#039;&#039;&#039;Outbound Rule:&#039;&#039;&#039; Leave the default (All traffic to &amp;lt;code&amp;gt;0.0.0.0/0&amp;lt;/code&amp;gt;). &#039;&#039;Verification:&#039;&#039; The new Security Group explicitly allows inbound port 443 traffic from the entire VPC network.&lt;br /&gt;
&lt;br /&gt;
==== Create the endpoint for secure connections ====&lt;br /&gt;
You must create 3 separate endpoints.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Session Manager requires three specific AWS services to function over PrivateLink. Go to &#039;&#039;&#039;VPC Console -&amp;gt; Endpoints&#039;&#039;&#039; and click &#039;&#039;&#039;Create endpoint&#039;&#039;&#039;. You will need to repeat this process three times, once for each of these services:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssm&amp;lt;/code&amp;gt; (Handles core Systems Manager requests)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ssmmessages&amp;lt;/code&amp;gt; (Handles the Session Manager terminal tunnel)&lt;br /&gt;
* &amp;lt;code&amp;gt;com.amazonaws.[your-region].ec2messages&amp;lt;/code&amp;gt; (Handles SSM Agent status and replies)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;For each of the three endpoints, configure the following:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Select the &#039;&#039;&#039;VPC&#039;&#039;&#039; where your EC2 instance lives.&lt;br /&gt;
# Under &#039;&#039;&#039;Subnets&#039;&#039;&#039;, select the private subnet(s) where your instance is located.&lt;br /&gt;
# Under &#039;&#039;&#039;Security groups&#039;&#039;&#039;, select the &amp;lt;code&amp;gt;SSM-Endpoint-SG&amp;lt;/code&amp;gt; you created in Step 1.&lt;br /&gt;
# &#039;&#039;&#039;Critical:&#039;&#039;&#039; Ensure &#039;&#039;&#039;Enable DNS name&#039;&#039;&#039; is checked. This tricks the SSM agent into routing standard AWS API calls to your private internal IPs instead of the public internet.  &#039;&#039;Verification:&#039;&#039; In the VPC Endpoints console, all three endpoints show a status of &amp;quot;Available&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1946</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1946"/>
		<updated>2026-11-05T05:12:35Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
     |                        |&lt;br /&gt;
  [NAT GW]               [Webserver]&lt;br /&gt;
     |                        |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required.&lt;br /&gt;
&lt;br /&gt;
=== Securing the private subnet ===&lt;br /&gt;
&lt;br /&gt;
==== Providing internet access ====&lt;br /&gt;
&lt;br /&gt;
==== Establishing the NACL ====&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1945</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1945"/>
		<updated>2026-11-05T04:34:10Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Securing the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
     |                        |&lt;br /&gt;
  [NAT GW]               [Webserver]&lt;br /&gt;
     |                        |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;br /&gt;
&lt;br /&gt;
==== Setting Security groups on the web server ====&lt;br /&gt;
Think of this as an additional layer of defense that protects against [[North / South &amp;amp; East West Network Security|east-west propagation]] of traffic, additionally any errors or omissions at the NACL level are unlikely to make it to the web server itself. Overall it is important to consider that only five security groups can be assigned to an instance, therefore these should be simple and direct. Additionally unlike the NACL mentioned above security rules are &amp;quot;stateful&amp;quot; - IE the track the state of a connection and do not require rules for replies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include in the security group:&lt;br /&gt;
*Inbound:&lt;br /&gt;
** 80 - IPv4 and IPv6 allow&lt;br /&gt;
** 443 - IPv4 and IPv6 allow&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - IPv4 allow&lt;br /&gt;
** All traffic - IPv6 allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
This provides the base HTTPS communication functions for the web server while allowing all outbound traffic for updates / etc. However outbound traffic can also be locked down (given the stateful nature of the security group) if required. Naming this group &amp;quot;WebServers&amp;quot; gives you a template that can be re-used for all web servers. Security groups do not require a deny rule due to their explicit &amp;quot;deny all&amp;quot; therefore an deny is not required.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1944</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1944"/>
		<updated>2026-11-05T04:14:30Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Why this approach works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
     |                        |&lt;br /&gt;
  [NAT GW]               [Webserver]&lt;br /&gt;
     |                        |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through [[Computer Notes/AWS/Setting up Session Manager on Ubuntu|SSM]].&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1943</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1943"/>
		<updated>2026-11-05T04:06:20Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Securing the web server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post examines the core principles of communication security within the AWS environment, emphasizing the protection of subnets and hosts through the appropriate configuration of security groups and network access control lists. Notably, this design does not incorporate a Web Application Firewall (WAF); in a production environment, the implementation of a WAF is essential.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
     |                        |&lt;br /&gt;
  [NAT GW]               [Webserver]&lt;br /&gt;
     |                        |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;br /&gt;
&lt;br /&gt;
==== Securing the public subnet ====&lt;br /&gt;
The key to securing the public subnet is ensuring the concept of least permission is applied to the NACL (Network Access control lists) governing data flow to the public subnet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What to include:&lt;br /&gt;
&lt;br /&gt;
* Inbound:&lt;br /&gt;
** Port 80 / 443 inbound for HTTP / HTTPS requests&lt;br /&gt;
** Port 1024 - 65535 - Empirical&lt;br /&gt;
** Deny all other inbound ports&lt;br /&gt;
&lt;br /&gt;
* Outbound:&lt;br /&gt;
** All traffic - allow&lt;br /&gt;
&lt;br /&gt;
===== Why this approach works =====&lt;br /&gt;
Only the critical ports required for the web servers on the public subnet are open (80 and 443). As NACL&#039;s are stateless the empirical ports are included. As it should, SSH access to servers on the public subnet is caught by the &amp;quot;deny all&amp;quot; rule. SSH access to these servers must be performed through SSM.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1942</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1942"/>
		<updated>2026-11-05T03:31:00Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post focuses on the funementals of communcation security in the AWS environment focusing the following on securing both the subnet and host through the correct assigmnet of security groups and network access controls.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
     |                        |&lt;br /&gt;
  [NAT GW]               [Webserver]&lt;br /&gt;
     |                        |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;br /&gt;
&lt;br /&gt;
=== Securing the web server ===&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1941</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1941"/>
		<updated>2026-11-05T03:28:55Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Core Concepts ===&lt;br /&gt;
This post focuses on the funementals of communcation security in the AWS environment focusing the following on securing both the subnet and host through the correct assigmnet of security groups and network access controls.&lt;br /&gt;
&lt;br /&gt;
=== High level network design ===&lt;br /&gt;
 [Internet]&lt;br /&gt;
     |&lt;br /&gt;
   [IGW]&lt;br /&gt;
     |&lt;br /&gt;
     +------ Public subnet ---+&lt;br /&gt;
     |                        |&lt;br /&gt;
  [NAT GW]               [Webserver]&lt;br /&gt;
     |                        |   |&lt;br /&gt;
     +---+- Private Subnet ---+   +---[Gateway]&lt;br /&gt;
         |&lt;br /&gt;
     [Private server]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1940</id>
		<title>Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers/AWS_Communication_hardening_guide&amp;diff=1940"/>
		<updated>2026-11-05T03:18:27Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: Created page with &amp;quot; = Core Concepts =  This post focuses on the funementals of communcation security in the AWS environment focusing the following on securing both the subnet and host through the correct assigmnet of security groups and network access controls.  = High level network design =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Core Concepts =&lt;br /&gt;
&lt;br /&gt;
This post focuses on the funementals of communcation security in the AWS environment focusing the following on securing both the subnet and host through the correct assigmnet of security groups and network access controls.&lt;br /&gt;
&lt;br /&gt;
= High level network design =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers&amp;diff=1939</id>
		<title>Cybersecurity/AWS Cybersecurity papers</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers&amp;diff=1939"/>
		<updated>2026-11-05T03:13:01Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Cybersecurity/AWS Cybersecurity papers/AWS Secrets Example|AWS Secrets Example]]&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/AWS Cybersecurity papers/S3 File Retention|File retention in S3]]&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide|AWS Communication hardening guide]]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers&amp;diff=1938</id>
		<title>Cybersecurity/AWS Cybersecurity papers</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/AWS_Cybersecurity_papers&amp;diff=1938"/>
		<updated>2026-11-05T03:12:36Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Cybersecurity/AWS Cybersecurity papers/AWS Secrets Example|AWS Secrets Example]]&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/AWS Cybersecurity papers/S3 File Retention|File retention in S3]]&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/AWS Cybersecurity papers/AWS Communication hardening guide|AWS Communication hardening guide]&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1937</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1937"/>
		<updated>2026-10-24T02:05:55Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for government regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master blueprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes authorization boundaries / data flows / protocols etc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket policies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandatory baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Government/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastructure as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by integrating policies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-commit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the commit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensitive public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unclassified information&lt;br /&gt;
** Can run in commercial cloud regions but must meet FedRAMP+ controls &amp;amp; Logical VPC separation&lt;br /&gt;
** Requires background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivity / Mission critical unclassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personal must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is governed by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;catastrophic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is required.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires artifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and architecture, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outlines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Responsibility  Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Information security policies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredited FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assessment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods schedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assessment Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** identifies vulnerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Incident Response ===&lt;br /&gt;
&lt;br /&gt;
* Incidents must be reported to US-CERT or DOD in one hour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Crypto and Key Management ===&lt;br /&gt;
&lt;br /&gt;
* Must use CMK - Customer managed keys&lt;br /&gt;
* Must use FIPS 140-2 / 140-3 Level 3 HSM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
&lt;br /&gt;
* Contains security and privacy controls.&lt;br /&gt;
* Contains over 1,100 controls in 20 families&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
New families include:&lt;br /&gt;
&lt;br /&gt;
** Supply chain risk management.&lt;br /&gt;
** PII Monitoring and transparency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Worded to be technology neutral.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In a cloud DoD environment focus should be placed on ==&lt;br /&gt;
&lt;br /&gt;
* AC - Access control&lt;br /&gt;
* IA - Identification and Authentication&lt;br /&gt;
* AU - Audit and accountability&lt;br /&gt;
* SC - System communications and protection&lt;br /&gt;
* CM - Configuration management&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Maintaining a authorization to operate ==&lt;br /&gt;
&lt;br /&gt;
Required to keep the system operating:&lt;br /&gt;
&lt;br /&gt;
* System Security Plan (SSP) - Blueprint of the system design.&lt;br /&gt;
** SPP shows how the controls are implemented&lt;br /&gt;
&lt;br /&gt;
* Continious Monitoring (ConMon)&lt;br /&gt;
** Vulnerability scanning&lt;br /&gt;
** 30 days POA&amp;amp;M inventory&lt;br /&gt;
&lt;br /&gt;
* Remediation SLA&#039;s&lt;br /&gt;
** Timeline for patching vulnerabilities based on the required timeline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Deviation requests =&lt;br /&gt;
&lt;br /&gt;
These are used in situations where a CVE is identified but it is not exploitable due to design decisions - defense in depth.&lt;br /&gt;
&lt;br /&gt;
Two types of DR can be used:&lt;br /&gt;
&lt;br /&gt;
* Risk Adjustment&lt;br /&gt;
** Used where deign prevents real world exploitation.&lt;br /&gt;
&lt;br /&gt;
* False positive&lt;br /&gt;
** Scanner flags something that is not present or complied.&lt;br /&gt;
&lt;br /&gt;
The key here is not just to track the SLA deadline, it is to provide something is valid or invalid through review to the SSP and real world testing (if possible).&lt;br /&gt;
&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
&lt;br /&gt;
StateRAMP was rebranded to GovRAMP giving it two names. This is rebranded built on the same concepts at FedRAMP however this is expanded for local, tribal and educational - think of it as an extension of FedRAMP.&lt;br /&gt;
&lt;br /&gt;
GovRAMP uses NIST SP 800-53 Rev 5 as its foundation ensuring a mapping to FedRAMP standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Core Validation&lt;br /&gt;
** 60 Prioritized NIST controls&lt;br /&gt;
** Validated by the GovRAMP Project Management office (PMO) - no 3PAO&lt;br /&gt;
&lt;br /&gt;
* Ready Validation&lt;br /&gt;
** Independently assessed - compliance with 80 NIST controls&lt;br /&gt;
** 3PAO and PMO validation&lt;br /&gt;
&lt;br /&gt;
* Authorized / Provisionally authorized&lt;br /&gt;
** 3PAO assessment of over 300 NIST controls&lt;br /&gt;
** Aligns with FedRAMP high / moderate baselines&lt;br /&gt;
&lt;br /&gt;
* Continuous monitoring&lt;br /&gt;
** Vendors must submit monthly vulnerability scans and POA&amp;amp;Ms to maintain their status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== GovRAMP CJIS-Assigned task force steak holders==&lt;br /&gt;
&lt;br /&gt;
* Brings together state and local steak holders to develop a CJIS overlay&lt;br /&gt;
* This allows CSP to meet FBI and CJIS (Criminal Justice Information Systems) requirements.&lt;br /&gt;
* Involves advanced biometrics / MFA - Can be applied directly on top of GovRAMP to eliminate duplicate audits.&lt;br /&gt;
&lt;br /&gt;
= 3PAO =&lt;br /&gt;
&lt;br /&gt;
This stands for Third Party Assessment Organization and is a third party independent organization tasked with evaluating a cloud providers security controls during an annual assessment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Core of the 3PAO ==&lt;br /&gt;
&lt;br /&gt;
* SAP (Security Assessment Plan) and SAR (Security Assessment Report)&lt;br /&gt;
** During annual assessments&lt;br /&gt;
&lt;br /&gt;
* Deviation requests&lt;br /&gt;
** If something cannot be patched&lt;br /&gt;
&lt;br /&gt;
* Providing compensating controls&lt;br /&gt;
** Used to get a risk assessment approved.&lt;br /&gt;
** Technical proof that controls lower the exploitability.&lt;br /&gt;
&lt;br /&gt;
* Significant changes&lt;br /&gt;
** Before making major changes a 3PAO is required.&lt;br /&gt;
&lt;br /&gt;
Under GovRamp requirements &lt;br /&gt;
&lt;br /&gt;
A PMO is required at:&lt;br /&gt;
&lt;br /&gt;
* Ready Verification - 80 controls&lt;br /&gt;
* Authorized / Provisionally authorized - 300 controls&lt;br /&gt;
&lt;br /&gt;
* Core validation - Only needs PMO validation&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1936</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1936"/>
		<updated>2026-10-24T01:58:18Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Core of the 3PAO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Incident Response ===&lt;br /&gt;
&lt;br /&gt;
* Incidents must be reported to US-CERT or DOD in one hour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Crypto and Key Management ===&lt;br /&gt;
&lt;br /&gt;
* Must use CMK - Customer managed keys&lt;br /&gt;
* Must use FIPS 140-2 / 140-3 Level 3 HSM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
&lt;br /&gt;
* Contains security and privacy controls.&lt;br /&gt;
* Contains over 1,100 controls in 20 families&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
New families include:&lt;br /&gt;
&lt;br /&gt;
** Supply chain risk management.&lt;br /&gt;
** PII Monitoring and transparency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Worded to be technology neutral.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In a cloud DoD envioment focus should be placed on ==&lt;br /&gt;
&lt;br /&gt;
* AC - Access control&lt;br /&gt;
* IA - Identification and Authentication&lt;br /&gt;
* AU - Audit and accoutability&lt;br /&gt;
* SC - System communications and protection&lt;br /&gt;
* CM - Configuraton management&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Maintaining a authrorzaton to operate ==&lt;br /&gt;
&lt;br /&gt;
Required to keep the system operating:&lt;br /&gt;
&lt;br /&gt;
* System Security Plan (SSP) - Blueprint of the system design.&lt;br /&gt;
** SPP shows how the controls are implemented&lt;br /&gt;
&lt;br /&gt;
* Continious Monitoring (ConMon)&lt;br /&gt;
** Vunerability scanning&lt;br /&gt;
** 30 days POA&amp;amp;M inventory&lt;br /&gt;
&lt;br /&gt;
* Remediation SLA&#039;s&lt;br /&gt;
** Timeline for patching vinerabilties based on the required timeline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Deviation requests =&lt;br /&gt;
&lt;br /&gt;
These are used in situations where a CVE is identified but it is not exploitable due to design decisions - deffense in depth.&lt;br /&gt;
&lt;br /&gt;
Two types of DR can be used:&lt;br /&gt;
&lt;br /&gt;
* Risk Adjustment&lt;br /&gt;
** Used where deign prevents real world exploitation.&lt;br /&gt;
&lt;br /&gt;
* False positive&lt;br /&gt;
** Scaner flags something that is not present or complied.&lt;br /&gt;
&lt;br /&gt;
The key here is not just to track the SLA deadline, it is to provie something is valid or invalid through review ot the SSP and real world testing (if possible).&lt;br /&gt;
&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
&lt;br /&gt;
StateRAMP was rebranded to GovRAMP giving it two names. This is rebranded built on the same concepts at FedRAMP however this is expanded for local, tribal and educational - think of it as an extension of FedRAMP.&lt;br /&gt;
&lt;br /&gt;
GovRAMP uses NIST SP 800-53 Rev 5 as its foundation ensuring a mapping to FedRAMP standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Core Validation&lt;br /&gt;
** 60 Prioritized NIST controls&lt;br /&gt;
** Validated by the GovRAMP Project Management office (PMO) - no 3PAO&lt;br /&gt;
&lt;br /&gt;
* Ready Validation&lt;br /&gt;
** Independently assessed - compliance with 80 NIST controls&lt;br /&gt;
** 3PAO and PMO validation&lt;br /&gt;
&lt;br /&gt;
* Authorized / Provisionally authorized&lt;br /&gt;
** 3PAO assessment of over 300 NIST controls&lt;br /&gt;
** Aligns with FedRAMP high / moderate baselines&lt;br /&gt;
&lt;br /&gt;
* Continuous monitoring&lt;br /&gt;
** Vendors must submit monthly vulnerability scans and POA&amp;amp;Ms to maintain their status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== GovRAMP CJIS-Assigned task force steak holders==&lt;br /&gt;
&lt;br /&gt;
* Brings together state and local steak holders to develop a CJIS overlay&lt;br /&gt;
* This allows CSP to meet FBI and CJIS (Criminal Justice Information Systems) requirements.&lt;br /&gt;
* Involves advanced biometrics / MFA - Can be applied directly on top of GovRAMP to eliminate duplicate audits.&lt;br /&gt;
&lt;br /&gt;
= 3PAO =&lt;br /&gt;
&lt;br /&gt;
This stands for Thirdy Party Assesment Organization and are a third party independent organization tasked with evaluating a cloud providers security controlls during an annual assessment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Core of the 3PAO ==&lt;br /&gt;
&lt;br /&gt;
* SAP (Security Assessment Plan) and SAR (Security Assessment Report)&lt;br /&gt;
** During annual assessments&lt;br /&gt;
&lt;br /&gt;
* Deviation requests&lt;br /&gt;
** If something cannot be patched&lt;br /&gt;
&lt;br /&gt;
* Providing compensating controls&lt;br /&gt;
** Used to get a risk assessment approved.&lt;br /&gt;
** Technical proof that controls lower the exploitability.&lt;br /&gt;
&lt;br /&gt;
* Significant changes&lt;br /&gt;
** Before making major changes a 3PAO is required.&lt;br /&gt;
&lt;br /&gt;
Under GovRamp requirements &lt;br /&gt;
&lt;br /&gt;
A PMO is required at:&lt;br /&gt;
&lt;br /&gt;
* Ready Verification - 80 controls&lt;br /&gt;
* Authorized / Provisionally authorized - 300 controls&lt;br /&gt;
&lt;br /&gt;
* Core validation - Only needs PMO validation&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1935</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1935"/>
		<updated>2026-10-23T18:12:16Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* 3PAO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Incident Response ===&lt;br /&gt;
&lt;br /&gt;
* Incidents must be reported to US-CERT or DOD in one hour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Crypto and Key Management ===&lt;br /&gt;
&lt;br /&gt;
* Must use CMK - Customer managed keys&lt;br /&gt;
* Must use FIPS 140-2 / 140-3 Level 3 HSM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
&lt;br /&gt;
* Contains security and privacy controls.&lt;br /&gt;
* Contains over 1,100 controls in 20 families&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
New families include:&lt;br /&gt;
&lt;br /&gt;
** Supply chain risk management.&lt;br /&gt;
** PII Monitoring and transparency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Worded to be technology neutral.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In a cloud DoD envioment focus should be placed on ==&lt;br /&gt;
&lt;br /&gt;
* AC - Access control&lt;br /&gt;
* IA - Identification and Authentication&lt;br /&gt;
* AU - Audit and accoutability&lt;br /&gt;
* SC - System communications and protection&lt;br /&gt;
* CM - Configuraton management&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Maintaining a authrorzaton to operate ==&lt;br /&gt;
&lt;br /&gt;
Required to keep the system operating:&lt;br /&gt;
&lt;br /&gt;
* System Security Plan (SSP) - Blueprint of the system design.&lt;br /&gt;
** SPP shows how the controls are implemented&lt;br /&gt;
&lt;br /&gt;
* Continious Monitoring (ConMon)&lt;br /&gt;
** Vunerability scanning&lt;br /&gt;
** 30 days POA&amp;amp;M inventory&lt;br /&gt;
&lt;br /&gt;
* Remediation SLA&#039;s&lt;br /&gt;
** Timeline for patching vinerabilties based on the required timeline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Deviation requests =&lt;br /&gt;
&lt;br /&gt;
These are used in situations where a CVE is identified but it is not exploitable due to design decisions - deffense in depth.&lt;br /&gt;
&lt;br /&gt;
Two types of DR can be used:&lt;br /&gt;
&lt;br /&gt;
* Risk Adjustment&lt;br /&gt;
** Used where deign prevents real world exploitation.&lt;br /&gt;
&lt;br /&gt;
* False positive&lt;br /&gt;
** Scaner flags something that is not present or complied.&lt;br /&gt;
&lt;br /&gt;
The key here is not just to track the SLA deadline, it is to provie something is valid or invalid through review ot the SSP and real world testing (if possible).&lt;br /&gt;
&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
&lt;br /&gt;
StateRAMP was rebranded to GovRAMP giving it two names. This is rebranded built on the same concepts at FedRAMP however this is expanded for local, tribal and educational - think of it as an extension of FedRAMP.&lt;br /&gt;
&lt;br /&gt;
GovRAMP uses NIST SP 800-53 Rev 5 as its foundation ensuring a mapping to FedRAMP standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Core Validation&lt;br /&gt;
** 60 Prioritized NIST controls&lt;br /&gt;
** Validated by the GovRAMP Project Management office (PMO) - no 3PAO&lt;br /&gt;
&lt;br /&gt;
* Ready Validation&lt;br /&gt;
** Independently assessed - compliance with 80 NIST controls&lt;br /&gt;
** 3PAO and PMO validation&lt;br /&gt;
&lt;br /&gt;
* Authorized / Provisionally authorized&lt;br /&gt;
** 3PAO assessment of over 300 NIST controls&lt;br /&gt;
** Aligns with FedRAMP high / moderate baselines&lt;br /&gt;
&lt;br /&gt;
* Continuous monitoring&lt;br /&gt;
** Vendors must submit monthly vulnerability scans and POA&amp;amp;Ms to maintain their status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== GovRAMP CJIS-Assigned task force steak holders==&lt;br /&gt;
&lt;br /&gt;
* Brings together state and local steak holders to develop a CJIS overlay&lt;br /&gt;
* This allows CSP to meet FBI and CJIS (Criminal Justice Information Systems) requirements.&lt;br /&gt;
* Involves advanced biometrics / MFA - Can be applied directly on top of GovRAMP to eliminate duplicate audits.&lt;br /&gt;
&lt;br /&gt;
= 3PAO =&lt;br /&gt;
&lt;br /&gt;
This stands for Thirdy Party Assesment Organization and are a third party independent organization tasked with evaluating a cloud providers security controlls during an annual assessment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Core of the 3PAO ==&lt;br /&gt;
&lt;br /&gt;
* SAP (Security Assessment Plan) and SAR (Security Assessment Report)&lt;br /&gt;
** During annual assessments&lt;br /&gt;
&lt;br /&gt;
* Deviation requests&lt;br /&gt;
** If something cannot be patched&lt;br /&gt;
&lt;br /&gt;
* Providing compensating controls&lt;br /&gt;
** Used to get a risk assessment approved.&lt;br /&gt;
** Tehnical proof that controls lower the explotability.&lt;br /&gt;
&lt;br /&gt;
* Signifcant changes&lt;br /&gt;
** Before making major changes a 3PAO is requied.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1934</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1934"/>
		<updated>2026-10-23T18:03:52Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* 3PAO */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Incident Response ===&lt;br /&gt;
&lt;br /&gt;
* Incidents must be reported to US-CERT or DOD in one hour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Crypto and Key Management ===&lt;br /&gt;
&lt;br /&gt;
* Must use CMK - Customer managed keys&lt;br /&gt;
* Must use FIPS 140-2 / 140-3 Level 3 HSM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
&lt;br /&gt;
* Contains security and privacy controls.&lt;br /&gt;
* Contains over 1,100 controls in 20 families&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
New families include:&lt;br /&gt;
&lt;br /&gt;
** Supply chain risk management.&lt;br /&gt;
** PII Monitoring and transparency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Worded to be technology neutral.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In a cloud DoD envioment focus should be placed on ==&lt;br /&gt;
&lt;br /&gt;
* AC - Access control&lt;br /&gt;
* IA - Identification and Authentication&lt;br /&gt;
* AU - Audit and accoutability&lt;br /&gt;
* SC - System communications and protection&lt;br /&gt;
* CM - Configuraton management&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Maintaining a authrorzaton to operate ==&lt;br /&gt;
&lt;br /&gt;
Required to keep the system operating:&lt;br /&gt;
&lt;br /&gt;
* System Security Plan (SSP) - Blueprint of the system design.&lt;br /&gt;
** SPP shows how the controls are implemented&lt;br /&gt;
&lt;br /&gt;
* Continious Monitoring (ConMon)&lt;br /&gt;
** Vunerability scanning&lt;br /&gt;
** 30 days POA&amp;amp;M inventory&lt;br /&gt;
&lt;br /&gt;
* Remediation SLA&#039;s&lt;br /&gt;
** Timeline for patching vinerabilties based on the required timeline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Deviation requests =&lt;br /&gt;
&lt;br /&gt;
These are used in situations where a CVE is identified but it is not exploitable due to design decisions - deffense in depth.&lt;br /&gt;
&lt;br /&gt;
Two types of DR can be used:&lt;br /&gt;
&lt;br /&gt;
* Risk Adjustment&lt;br /&gt;
** Used where deign prevents real world exploitation.&lt;br /&gt;
&lt;br /&gt;
* False positive&lt;br /&gt;
** Scaner flags something that is not present or complied.&lt;br /&gt;
&lt;br /&gt;
The key here is not just to track the SLA deadline, it is to provie something is valid or invalid through review ot the SSP and real world testing (if possible).&lt;br /&gt;
&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
&lt;br /&gt;
StateRAMP was rebranded to GovRAMP giving it two names. This is rebranded built on the same concepts at FedRAMP however this is expanded for local, tribal and educational - think of it as an extension of FedRAMP.&lt;br /&gt;
&lt;br /&gt;
GovRAMP uses NIST SP 800-53 Rev 5 as its foundation ensuring a mapping to FedRAMP standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Core Validation&lt;br /&gt;
** 60 Prioritized NIST controls&lt;br /&gt;
** Validated by the GovRAMP Project Management office (PMO) - no 3PAO&lt;br /&gt;
&lt;br /&gt;
* Ready Validation&lt;br /&gt;
** Independently assessed - compliance with 80 NIST controls&lt;br /&gt;
** 3PAO and PMO validation&lt;br /&gt;
&lt;br /&gt;
* Authorized / Provisionally authorized&lt;br /&gt;
** 3PAO assessment of over 300 NIST controls&lt;br /&gt;
** Aligns with FedRAMP high / moderate baselines&lt;br /&gt;
&lt;br /&gt;
* Continuous monitoring&lt;br /&gt;
** Vendors must submit monthly vulnerability scans and POA&amp;amp;Ms to maintain their status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== GovRAMP CJIS-Assigned task force steak holders==&lt;br /&gt;
&lt;br /&gt;
* Brings together state and local steak holders to develop a CJIS overlay&lt;br /&gt;
* This allows CSP to meet FBI and CJIS (Criminal Justice Information Systems) requirements.&lt;br /&gt;
* Involves advanced biometrics / MFA - Can be applied directly on top of GovRAMP to eliminate duplicate audits.&lt;br /&gt;
&lt;br /&gt;
= 3PAO =&lt;br /&gt;
&lt;br /&gt;
This stands for Thirdy Party Assesment Organization and are a third party independent organization tasked with evaluating a cloud providers security controlls during an annual assessment.&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1933</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1933"/>
		<updated>2026-10-23T17:52:09Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* GovRAMP/StateRAMP */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Incident Response ===&lt;br /&gt;
&lt;br /&gt;
* Incidents must be reported to US-CERT or DOD in one hour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Crypto and Key Management ===&lt;br /&gt;
&lt;br /&gt;
* Must use CMK - Customer managed keys&lt;br /&gt;
* Must use FIPS 140-2 / 140-3 Level 3 HSM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
&lt;br /&gt;
* Contains security and privacy controls.&lt;br /&gt;
* Contains over 1,100 controls in 20 families&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
New families include:&lt;br /&gt;
&lt;br /&gt;
** Supply chain risk management.&lt;br /&gt;
** PII Monitoring and transparency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Worded to be technology neutral.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In a cloud DoD envioment focus should be placed on ==&lt;br /&gt;
&lt;br /&gt;
* AC - Access control&lt;br /&gt;
* IA - Identification and Authentication&lt;br /&gt;
* AU - Audit and accoutability&lt;br /&gt;
* SC - System communications and protection&lt;br /&gt;
* CM - Configuraton management&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Maintaining a authrorzaton to operate ==&lt;br /&gt;
&lt;br /&gt;
Required to keep the system operating:&lt;br /&gt;
&lt;br /&gt;
* System Security Plan (SSP) - Blueprint of the system design.&lt;br /&gt;
** SPP shows how the controls are implemented&lt;br /&gt;
&lt;br /&gt;
* Continious Monitoring (ConMon)&lt;br /&gt;
** Vunerability scanning&lt;br /&gt;
** 30 days POA&amp;amp;M inventory&lt;br /&gt;
&lt;br /&gt;
* Remediation SLA&#039;s&lt;br /&gt;
** Timeline for patching vinerabilties based on the required timeline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Deviation requests =&lt;br /&gt;
&lt;br /&gt;
These are used in situations where a CVE is identified but it is not exploitable due to design decisions - deffense in depth.&lt;br /&gt;
&lt;br /&gt;
Two types of DR can be used:&lt;br /&gt;
&lt;br /&gt;
* Risk Adjustment&lt;br /&gt;
** Used where deign prevents real world exploitation.&lt;br /&gt;
&lt;br /&gt;
* False positive&lt;br /&gt;
** Scaner flags something that is not present or complied.&lt;br /&gt;
&lt;br /&gt;
The key here is not just to track the SLA deadline, it is to provie something is valid or invalid through review ot the SSP and real world testing (if possible).&lt;br /&gt;
&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
&lt;br /&gt;
StateRAMP was rebranded to GovRAMP giving it two names. This is rebranded built on the same concepts at FedRAMP however this is expanded for local, tribal and educational - think of it as an extension of FedRAMP.&lt;br /&gt;
&lt;br /&gt;
GovRAMP uses NIST SP 800-53 Rev 5 as its foundation ensuring a mapping to FedRAMP standards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Core Validation&lt;br /&gt;
** 60 Prioritized NIST controls&lt;br /&gt;
** Validated by the GovRAMP Project Management office (PMO) - no 3PAO&lt;br /&gt;
&lt;br /&gt;
* Ready Validation&lt;br /&gt;
** Independently assessed - compliance with 80 NIST controls&lt;br /&gt;
** 3PAO and PMO validation&lt;br /&gt;
&lt;br /&gt;
* Authorized / Provisionally authorized&lt;br /&gt;
** 3PAO assessment of over 300 NIST controls&lt;br /&gt;
** Aligns with FedRAMP high / moderate baselines&lt;br /&gt;
&lt;br /&gt;
* Continuous monitoring&lt;br /&gt;
** Vendors must submit monthly vulnerability scans and POA&amp;amp;Ms to maintain their status.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== GovRAMP CJIS-Assigned task force steak holders==&lt;br /&gt;
&lt;br /&gt;
* Brings together state and local steak holders to develop a CJIS overlay&lt;br /&gt;
* This allows CSP to meet FBI and CJIS (Criminal Justice Information Systems) requirements.&lt;br /&gt;
* Involves advanced biometrics / MFA - Can be applied directly on top of GovRAMP to eliminate duplicate audits.&lt;br /&gt;
&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1932</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1932"/>
		<updated>2026-10-23T17:04:50Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* NIST 800-53 Rev 5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Incident Response ===&lt;br /&gt;
&lt;br /&gt;
* Incidents must be reported to US-CERT or DOD in one hour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Crypto and Key Management ===&lt;br /&gt;
&lt;br /&gt;
* Must use CMK - Customer managed keys&lt;br /&gt;
* Must use FIPS 140-2 / 140-3 Level 3 HSM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
&lt;br /&gt;
* Contains security and privacy controls.&lt;br /&gt;
* Contains over 1,100 controls in 20 families&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
New families include:&lt;br /&gt;
&lt;br /&gt;
** Supply chain risk management.&lt;br /&gt;
** PII Monitoring and transparency.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Worded to be technology neutral.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In a cloud DoD envioment focus should be placed on ==&lt;br /&gt;
&lt;br /&gt;
* AC - Access control&lt;br /&gt;
* IA - Identification and Authentication&lt;br /&gt;
* AU - Audit and accoutability&lt;br /&gt;
* SC - System communications and protection&lt;br /&gt;
* CM - Configuraton management&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Maintaining a authrorzaton to operate ==&lt;br /&gt;
&lt;br /&gt;
Required to keep the system operating:&lt;br /&gt;
&lt;br /&gt;
* System Security Plan (SSP) - Blueprint of the system design.&lt;br /&gt;
** SPP shows how the controls are implemented&lt;br /&gt;
&lt;br /&gt;
* Continious Monitoring (ConMon)&lt;br /&gt;
** Vunerability scanning&lt;br /&gt;
** 30 days POA&amp;amp;M inventory&lt;br /&gt;
&lt;br /&gt;
* Remediation SLA&#039;s&lt;br /&gt;
** Timeline for patching vinerabilties based on the required timeline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Deviation requests =&lt;br /&gt;
&lt;br /&gt;
These are used in situations where a CVE is identified but it is not exploitable due to design decisions - deffense in depth.&lt;br /&gt;
&lt;br /&gt;
Two types of DR can be used:&lt;br /&gt;
&lt;br /&gt;
* Risk Adjustment&lt;br /&gt;
** Used where deign prevents real world exploitation.&lt;br /&gt;
&lt;br /&gt;
* False positive&lt;br /&gt;
** Scaner flags something that is not present or complied.&lt;br /&gt;
&lt;br /&gt;
The key here is not just to track the SLA deadline, it is to provie something is valid or invalid through review ot the SSP and real world testing (if possible).&lt;br /&gt;
&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1931</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1931"/>
		<updated>2026-10-22T21:51:06Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* FedRAMP High */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Incident Response ===&lt;br /&gt;
&lt;br /&gt;
* Incidents must be reported to US-CERT or DOD in one hour&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Crypto and Key Management ===&lt;br /&gt;
&lt;br /&gt;
* Must use CMK - Customer managed keys&lt;br /&gt;
* Must use FIPS 140-2 / 140-3 Level 3 HSM&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1930</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1930"/>
		<updated>2026-10-22T21:46:06Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Continious Monitoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ConMom SLAs based on CVSS score:&lt;br /&gt;
&lt;br /&gt;
* 7.0 - 10  = 30 days&lt;br /&gt;
* 4.0 - 6.9 = 90 days&lt;br /&gt;
* 0.1 - 3.9 = 180 days&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1929</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1929"/>
		<updated>2026-10-22T21:42:04Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Continious Monitoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1928</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1928"/>
		<updated>2026-10-22T21:41:44Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Comtinious Monitoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
==== Continious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1927</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1927"/>
		<updated>2026-10-22T21:41:26Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* Independent assessment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
==== Comtinious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1926</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1926"/>
		<updated>2026-10-22T21:41:08Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* FedRAMP High */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
==== Core Design ====&lt;br /&gt;
&lt;br /&gt;
* System Security Plan - SSP&lt;br /&gt;
** Details system boundaries and arictecutre, see above ⬆️&lt;br /&gt;
&lt;br /&gt;
* Control Implementation Summary&lt;br /&gt;
** Outilines what controls are shared and what must be configured by the federal entity.&lt;br /&gt;
&lt;br /&gt;
* Customer Respoabiliy Matrix&lt;br /&gt;
** Dictates the security tasks and configurations that the agency must implement.&lt;br /&gt;
&lt;br /&gt;
* Infomation securirty polocies and procedures&lt;br /&gt;
** Documentation covering all NIST contil families &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Independent assessment ====&lt;br /&gt;
&lt;br /&gt;
These are validated by an accredieted FedRAMP 3PAO proving the controls are implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Security Assesment Plan (SAP)&lt;br /&gt;
** Developed before the 3PAO testing&lt;br /&gt;
** Defines the scope, methods secedule and testing tools&lt;br /&gt;
&lt;br /&gt;
* Security Assesmsnet Report (SAR)&lt;br /&gt;
** After 3PAO testing&lt;br /&gt;
** Ideifies vunerabilities and configuration gaps&lt;br /&gt;
&lt;br /&gt;
* Plan of Action with Milestones (POA&amp;amp;M)&lt;br /&gt;
** Used to track and remediate vulnerabilities&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Comtinious Monitoring ====&lt;br /&gt;
&lt;br /&gt;
* Monthly scan reports&lt;br /&gt;
* POA&amp;amp;M Logs - showing remediation&lt;br /&gt;
* Annual Security Assessment - review of core controls and major changes to the system&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1925</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1925"/>
		<updated>2026-10-22T21:20:10Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* FedRAMP High */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
=== FedRAMP requires arifacts ===&lt;br /&gt;
These are documents:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1924</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1924"/>
		<updated>2026-10-22T18:05:37Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* FedRAMP High */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
This is for IL4 and below - designed for cloud systems.&lt;br /&gt;
&lt;br /&gt;
Used in situations where a data breach would cause &amp;quot;castastropic effects&amp;quot; in national security or human life.&lt;br /&gt;
&lt;br /&gt;
NIST SP 800-53 is used for this&lt;br /&gt;
&lt;br /&gt;
Continues monitoring (3PAO) is reqired.&lt;br /&gt;
&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
	<entry>
		<id>https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1923</id>
		<title>Cybersecurity/Goverment</title>
		<link rel="alternate" type="text/html" href="https://cramsession.net/index.php?title=Cybersecurity/Goverment&amp;diff=1923"/>
		<updated>2026-10-22T17:52:57Z</updated>

		<summary type="html">&lt;p&gt;Mflavell: /* DoD IL4/IL5 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the one page &amp;quot;cheat sheet&amp;quot; for goverment regulation in the US and how it relates to cybersecurity.&lt;br /&gt;
&lt;br /&gt;
= SSP =&lt;br /&gt;
&lt;br /&gt;
SSP - System Security plan&lt;br /&gt;
&lt;br /&gt;
Think of this as the master bluprint for the system.&lt;br /&gt;
&lt;br /&gt;
* It&#039;s a living document&lt;br /&gt;
* Describes autntoszation boundaires / data flows / protocols ect&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SSP requires:&lt;br /&gt;
&lt;br /&gt;
* WHAT: A clear definition of what is protected&lt;br /&gt;
* HOW: How it is protected and isolated&lt;br /&gt;
&lt;br /&gt;
Without a What and How it is not protected!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it relates to NIST 800-53:&lt;br /&gt;
&lt;br /&gt;
* Describes how every 800-53 control is technically implemented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How SSP relates to AWS Gov Cloud ==&lt;br /&gt;
&lt;br /&gt;
=== Multi account governance ===&lt;br /&gt;
&lt;br /&gt;
* Don&#039;t trust other accounts &lt;br /&gt;
* Use AWS control tower to implement service control policies / lock down account boundaries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Data protection ===&lt;br /&gt;
&lt;br /&gt;
* Data at rest and in transit&lt;br /&gt;
** S3 Bucket polcies and encryption&lt;br /&gt;
** TLS Enforcement&lt;br /&gt;
*** TLS 1.3 is a mandotary baseline&lt;br /&gt;
*** TLS 1.2 can be used with approval&lt;br /&gt;
*** TLS 1.0 and 1.1 Should not be used&lt;br /&gt;
&lt;br /&gt;
[[Cybersecurity/Goverment/TLS_and_cyphers|🤔More about TLS]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Infrastrcutre as code ===&lt;br /&gt;
&lt;br /&gt;
* Maintaining baselines by intergrating polcies in to cloud formation and terraform&lt;br /&gt;
* Automated pre-comit code analysis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IAC has many major advantages:&lt;br /&gt;
&lt;br /&gt;
* Can be scanned for security issues - just like the scan of application code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How it works:&lt;br /&gt;
&lt;br /&gt;
* Tools scan the code acting as a security gate&lt;br /&gt;
* Violations are caught: Buckets not encrypted / * actions / Open security groups&lt;br /&gt;
* The violations causes the comit to fail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is a &amp;quot;Shift left&amp;quot; approach, catching issues before they make it to production. &lt;br /&gt;
 &lt;br /&gt;
An important caveat: This does not catch CVE&#039;s in code! &lt;br /&gt;
&lt;br /&gt;
best approach is Trust but Verify: &lt;br /&gt;
&lt;br /&gt;
* Trust IAC code has been scanned&lt;br /&gt;
* Verify the implementation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= DoD IL4/IL5 =&lt;br /&gt;
These are &amp;quot;Impact Levels&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* IL2&lt;br /&gt;
** Non-sensative public data&lt;br /&gt;
** Must meet FedRAMP moderate baseline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL4&lt;br /&gt;
** Controlled unvlassified infomration&lt;br /&gt;
** Can run in commeical cloud regious but must meet FedRAMP+ controls &amp;amp; Logical VPC seperation&lt;br /&gt;
** Requies background checks&lt;br /&gt;
** An example could be a NASA system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL5&lt;br /&gt;
** High sensitivitity / Mission critical unlcassified data / National security systems&lt;br /&gt;
** Must be isolated from non federal tenants / use of GovCloud&lt;br /&gt;
** US person only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* IL6&lt;br /&gt;
** Data classified to the secret level&lt;br /&gt;
** Personel must hold secret clearance&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Where is Top Secret in this? - Top Secret is goverened by ICD 503 instead of a SRG and operate on dedicated air gapped networks.&lt;br /&gt;
&lt;br /&gt;
= FedRAMP High =&lt;br /&gt;
= NIST 800-53 Rev 5 =&lt;br /&gt;
= GovRAMP/StateRAMP =&lt;br /&gt;
= 3PAO =&lt;/div&gt;</summary>
		<author><name>Mflavell</name></author>
	</entry>
</feed>