Skip to content

Software-Defined Network Microsegmentation & Quarantine VLAN

Density:

Dynamically shifts a compromised virtual machine or container pod into an isolated SDN Quarantine Security Group with zero lateral egress and strict forensic packet mirroring enabled.

  • Target Tier: Cloud VPCs, OpenStack Tenants, Kubernetes Calico / Cilium CNI
  • โš ๏ธ Cloud Provider IAM or Kubernetes cluster-admin credentials
  • โš ๏ธ Pre-configured Quarantine Security Group / Calico GlobalNetworkPolicy
  • โš ๏ธ VPC Traffic Mirror session endpoint available
  1. Swap AWS EC2 Instance Security Groups with Quarantine SG
    Terminal window
    aws ec2 modify-instance-attribute \
    --instance-id $TARGET_INSTANCE_ID \
    --groups sg-0quarantine-isolate-001
    aws ec2 create-traffic-mirror-session \
    --network-interface-id $TARGET_ENI_ID \
    --traffic-mirror-target-id tmt-0forensic-sink \
    --traffic-mirror-filter-id tmf-0capture-all \
    --session-number 1
    Expected Telemetry: Groups attribute modified to sg-0quarantine-isolate-001 and mirror session active.
  1. Apply zero-trust NetworkPolicy to isolate compromised Pod namespace
    Terminal window
    cat << 'EOF' | kubectl apply -f -
    apiVersion: networking.k8s.io/v1
    kind: NetworkPolicy
    metadata:
    name: emergency-pod-quarantine
    namespace: default
    spec:
    podSelector:
    matchLabels:
    security.hermes/incident: "quarantine"
    policyTypes:
    - Ingress
    - Egress
    ingress: []
    egress: []
    EOF
    kubectl label pod $TARGET_POD security.hermes/incident=quarantine --overwrite
    Expected Telemetry: NetworkPolicy applied; pod network isolated.

VPC flow logs rejection

Check Command:

Terminal window
aws logs filter-log-events --log-group-name /vpc/flowlogs --filter-pattern "[..., action=REJECT, ... $TARGET_IP]"

Expected Target State: All lateral flows originating from instance marked REJECT.

  • ๐Ÿ”„ Re-assign original Security Groups to the VM interface
  • ๐Ÿ”„ Remove Calico / Kubernetes emergency label: kubectl label pod $TARGET_POD security.hermes/incident-
  • ๐Ÿ”„ Terminate VPC Traffic Mirror session

Validation: Verify standard pod-to-pod ingress communication.