[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71CS3A1Z8DT7VKMDP5CDEFR":3,"skill-same:01M71CS3A1Z8DT7VKMDP5CDEFR":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":61,"commitSha":62,"skillDirectory":63,"forksCount":14,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M71CS3A1Z8DT7VKMDP5CDEFR","zerotrust-ztna-monitor",null,"Implementing Zero Trust Network Access (ZTNA) in cloud environments by configuring identity-aware proxies, micro-segmentation, continuous verification with conditional access policies, and replacing traditional VPN-based access with BeyondCorp-style architectures across AWS, Azure, and GCP.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fzerotrust\u002Fztna\u002Fmonitor\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"monitor","zerotrust ztna monitor","ztna","security","vpn","network","read","beyondcorp","cloud-security","de","zero-trust","verification","gcp","across","Bash","access","cybersecurity","implementing","cm","segmentation","2026-11-10 10:12:30",false,"---\nname: zerotrust-ztna-monitor\ndescription: Implementing Zero Trust Network Access (ZTNA) in cloud environments by configuring identity-aware proxies, micro-segmentation, continuous verification with conditional access policies, and replacing traditional VPN-based access with BeyondCorp-style architectures across AWS, Azure, and GCP.\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- zero-trust\n- ztna\n- beyondcorp\n- identity-aware-proxy\n- micro-segmentation\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1021\ncapec: []\n---\n\n# Implementing Zero Trust Network Access\n\n## When to Use\n\n- When replacing traditional VPN-based remote access with identity-based access controls\n- When implementing micro-segmentation to limit lateral movement within cloud networks\n- When compliance or security strategy requires zero trust architecture adoption\n- When providing secure access to cloud workloads without exposing them to the public internet\n- When building context-aware access policies based on user identity, device health, and location\n\n**Do not use** as a complete replacement for network security controls (ZTNA complements but does not replace firewalls and network ACLs), for protecting internet-facing public applications (use WAF), or for IoT device access where identity-based authentication is not feasible.\n\n## Prerequisites\n\n- Identity provider (Entra ID, Okta, Google Workspace) with MFA enforcement\n- Cloud-native networking capabilities (AWS PrivateLink, Azure Private Link, GCP IAP)\n- Device management solution (Intune, Jamf, CrowdStrike) for device posture assessment\n- Service mesh or zero trust proxy (Cloudflare Access, Zscaler ZPA, or cloud-native IAP)\n- Centralized logging for access decisions and policy enforcement\n\n## Workflow\n\n### Step 1: Deploy GCP Identity-Aware Proxy (IAP) for Application Access\n\nConfigure IAP to provide authenticated access to web applications without VPN.\n\n```bash\n# Enable IAP API\ngcloud services enable iap.googleapis.com\n\n# Configure OAuth consent screen\ngcloud iap oauth-brands create \\\n  --application_title=\"Corporate Apps\" \\\n  --support_email=security@company.com\n\n# Enable IAP on an App Engine application\ngcloud iap web enable \\\n  --resource-type=app-engine \\\n  --oauth2-client-id=CLIENT_ID \\\n  --oauth2-client-secret=CLIENT_SECRET\n\n# Enable IAP on a backend service (GCE\u002FGKE)\ngcloud compute backend-services update BACKEND_SERVICE \\\n  --iap=enabled,oauth2-client-id=CLIENT_ID,oauth2-client-secret=CLIENT_SECRET \\\n  --global\n\n# Set IAP access policy (who can access)\ngcloud iap web add-iam-policy-binding \\\n  --resource-type=app-engine \\\n  --member=\"group:engineering@company.com\" \\\n  --role=\"roles\u002Fiap.httpsResourceAccessor\"\n\n# Configure access levels based on device and context\ngcloud access-context-manager levels create corporate-device \\\n  --title=\"Corporate Managed Device\" \\\n  --basic-level-spec=level-spec.yaml \\\n  --policy=POLICY_ID\n```\n\n### Step 2: Implement AWS Verified Access for Zero Trust\n\nDeploy AWS Verified Access to provide identity-based access to internal applications.\n\n```bash\n# Create a Verified Access trust provider (OIDC)\naws ec2 create-verified-access-trust-provider \\\n  --trust-provider-type user \\\n  --user-trust-provider-type oidc \\\n  --oidc-options '{\n    \"Issuer\": \"https:\u002F\u002Flogin.microsoftonline.com\u002FTENANT_ID\u002Fv2.0\",\n    \"AuthorizationEndpoint\": \"https:\u002F\u002Flogin.microsoftonline.com\u002FTENANT_ID\u002Foauth2\u002Fv2.0\u002Fauthorize\",\n    \"TokenEndpoint\": \"https:\u002F\u002Flogin.microsoftonline.com\u002FTENANT_ID\u002Foauth2\u002Fv2.0\u002Ftoken\",\n    \"UserInfoEndpoint\": \"https:\u002F\u002Fgraph.microsoft.com\u002Foidc\u002Fuserinfo\",\n    \"ClientId\": \"CLIENT_ID\",\n    \"ClientSecret\": \"CLIENT_SECRET\",\n    \"Scope\": \"openid profile email\"\n  }'\n\n# Create a Verified Access instance\naws ec2 create-verified-access-instance \\\n  --description \"Zero Trust Access Instance\"\n\n# Attach trust provider to instance\naws ec2 attach-verified-access-trust-provider \\\n  --verified-access-instance-id vai-INSTANCE_ID \\\n  --verified-access-trust-provider-id vatp-PROVIDER_ID\n\n# Create a Verified Access group with policy\naws ec2 create-verified-access-group \\\n  --verified-access-instance-id vai-INSTANCE_ID \\\n  --policy-document '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Effect\": \"Allow\",\n      \"Principal\": \"*\",\n      \"Action\": \"verified-access:AllowAccess\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"verified-access:user\u002Fgroups\": \"engineering\"\n        }\n      }\n    }]\n  }'\n\n# Create endpoint for an internal application\naws ec2 create-verified-access-endpoint \\\n  --verified-access-group-id vag-GROUP_ID \\\n  --endpoint-type load-balancer \\\n  --attachment-type vpc \\\n  --domain-certificate-arn arn:aws:acm:REGION:ACCOUNT:certificate\u002FCERT_ID \\\n  --application-domain app.internal.company.com \\\n  --endpoint-domain-prefix app \\\n  --load-balancer-options '{\n    \"LoadBalancerArn\": \"arn:aws:elasticloadbalancing:REGION:ACCOUNT:loadbalancer\u002Fapp\u002Finternal-app\u002Fxxx\",\n    \"Port\": 443,\n    \"Protocol\": \"https\",\n    \"SubnetIds\": [\"subnet-xxx\"]\n  }'\n```\n\n### Step 3: Configure Azure Private Link and Conditional Access\n\nSet up Azure Private Link for network isolation and conditional access for identity-based controls.\n\n```bash\n# Create Private Endpoint for an Azure service\naz network private-endpoint create \\\n  --name app-private-endpoint \\\n  --resource-group production-rg \\\n  --vnet-name production-vnet \\\n  --subnet private-endpoint-subnet \\\n  --private-connection-resource-id \u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002FRG\u002Fproviders\u002FMicrosoft.Web\u002Fsites\u002Finternal-app \\\n  --group-ids sites \\\n  --connection-name app-connection\n\n# Configure private DNS zone for the service\naz network private-dns zone create \\\n  --resource-group production-rg \\\n  --name privatelink.azurewebsites.net\n\naz network private-dns link vnet create \\\n  --resource-group production-rg \\\n  --zone-name privatelink.azurewebsites.net \\\n  --name production-link \\\n  --virtual-network production-vnet \\\n  --registration-enabled false\n```\n\n```powershell\n# Create Conditional Access policy requiring compliant device + MFA\nConnect-MgGraph -Scopes \"Policy.ReadWrite.ConditionalAccess\"\n\n$params = @{\n    DisplayName = \"Zero Trust - Require MFA and Compliant Device\"\n    State = \"enabled\"\n    Conditions = @{\n        Applications = @{\n            IncludeApplications = @(\"All\")\n        }\n        Users = @{\n            IncludeUsers = @(\"All\")\n            ExcludeGroups = @(\"BreakGlass-Group-ID\")\n        }\n        Locations = @{\n            IncludeLocations = @(\"All\")\n            ExcludeLocations = @(\"AllTrusted\")\n        }\n    }\n    GrantControls = @{\n        Operator = \"AND\"\n        BuiltInControls = @(\"mfa\", \"compliantDevice\")\n    }\n    SessionControls = @{\n        SignInFrequency = @{\n            Value = 4\n            Type = \"hours\"\n            IsEnabled = $true\n        }\n    }\n}\n\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $params\n```\n\n### Step 4: Implement Micro-Segmentation with Network Policies\n\nDeploy network-level micro-segmentation to complement identity-based access controls.\n\n```bash\n# AWS: Create security groups for micro-segmentation\naws ec2 create-security-group \\\n  --group-name web-tier-sg \\\n  --description \"Web tier - only HTTPS from ALB\" \\\n  --vpc-id vpc-PROD\n\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-WEB \\\n  --protocol tcp --port 443 \\\n  --source-group sg-ALB\n\naws ec2 create-security-group \\\n  --group-name app-tier-sg \\\n  --description \"App tier - only from web tier\"\n\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-APP \\\n  --protocol tcp --port 8080 \\\n  --source-group sg-WEB\n\n# Kubernetes NetworkPolicy for pod-level segmentation\ncat \u003C\u003C 'EOF' | kubectl apply -f -\napiVersion: networking.k8s.io\u002Fv1\nkind: NetworkPolicy\nmetadata:\n  name: api-allow-web-only\n  namespace: production\nspec:\n  podSelector:\n    matchLabels:\n      app: api-server\n  policyTypes:\n    - Ingress\n  ingress:\n    - from:\n        - podSelector:\n            matchLabels:\n              app: web-frontend\n      ports:\n        - protocol: TCP\n          port: 8080\nEOF\n```\n\n### Step 5: Enable Continuous Verification and Logging\n\nImplement continuous trust verification rather than one-time authentication.\n\n```bash\n# Configure CloudWatch to monitor access decisions\naws logs create-log-group --log-group-name \u002Fverified-access\u002Faccess-logs\n\n# Enable Verified Access logging\naws ec2 modify-verified-access-instance-logging-configuration \\\n  --verified-access-instance-id vai-INSTANCE_ID \\\n  --access-logs '{\n    \"CloudWatchLogs\": {\n      \"Enabled\": true,\n      \"LogGroup\": \"\u002Fverified-access\u002Faccess-logs\"\n    }\n  }'\n\n# Query access logs for denied requests\naws logs start-query \\\n  --log-group-name \u002Fverified-access\u002Faccess-logs \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, identity.user, http_request.url, decision\n    | filter decision = \"deny\"\n    | sort @timestamp desc\n    | limit 50\n  '\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Zero Trust | Security model that requires strict identity verification for every person and device accessing resources, regardless of network location |\n| ZTNA | Zero Trust Network Access, the technology that implements zero trust principles by providing identity-aware, context-based access to applications |\n| Identity-Aware Proxy | Proxy service that verifies user identity and device context before allowing access to backend applications, replacing VPN-based access |\n| Micro-Segmentation | Network security technique that creates fine-grained security zones around individual workloads or applications to limit lateral movement |\n| BeyondCorp | Google's implementation of zero trust architecture that shifts access controls from the network perimeter to individual users and devices |\n| Continuous Verification | Ongoing assessment of user identity, device health, and access context throughout a session rather than only at authentication time |\n\n## Tools & Systems\n\n- **GCP Identity-Aware Proxy**: Google's BeyondCorp implementation providing context-aware access to web applications and VMs\n- **AWS Verified Access**: AWS service for zero trust access to applications based on identity and device posture verification\n- **Azure Conditional Access**: Microsoft's policy engine for enforcing context-based access controls based on user, device, location, and risk\n- **Cloudflare Access**: Cloud-delivered ZTNA solution providing identity-aware access to internal applications\n- **Zscaler ZPA**: Enterprise ZTNA platform replacing VPN with application-level access based on identity and context\n\n## Common Scenarios\n\n### Scenario: Replacing Corporate VPN with Zero Trust Access for Cloud Applications\n\n**Context**: An organization with 2,000 employees accesses 30+ internal cloud applications through a traditional VPN concentrator. VPN performance issues and security concerns drive the decision to implement ZTNA.\n\n**Approach**:\n1. Inventory all applications currently accessed through VPN and classify by sensitivity\n2. Deploy GCP IAP or AWS Verified Access for web-based internal applications\n3. Configure conditional access policies requiring MFA and device compliance for all applications\n4. Implement micro-segmentation using security groups to limit lateral movement between application tiers\n5. Set up continuous verification with re-authentication every 4 hours for sensitive applications\n6. Migrate users in phases, starting with low-risk applications, monitoring access logs for issues\n7. Decommission VPN after all applications are accessible through ZTNA with full logging\n\n**Pitfalls**: Not all applications support identity-aware proxy integration. Legacy thick-client applications may require agent-based ZTNA solutions instead of proxy-based approaches. Device posture assessment requires an endpoint management solution deployed to all corporate devices. Break-glass access procedures must be documented for scenarios where the identity provider is unavailable.\n\n## Output Format\n\n```\nZero Trust Network Access Implementation Report\n==================================================\nOrganization: Acme Corp\nImplementation Date: 2026-02-23\nApplications Migrated: 24 \u002F 30\n\nZTNA ARCHITECTURE:\n  Identity Provider: Microsoft Entra ID\n  Access Proxy: AWS Verified Access + GCP IAP\n  Device Management: Microsoft Intune\n  MFA: FIDO2 + Authenticator App\n\nACCESS POLICY COVERAGE:\n  Applications requiring MFA:          30 \u002F 30 (100%)\n  Applications requiring compliant device: 24 \u002F 30 (80%)\n  Applications with continuous verification: 18 \u002F 30 (60%)\n  Applications with location restrictions:  12 \u002F 30 (40%)\n\nSECURITY IMPROVEMENTS:\n  VPN-related incidents (before):      12\u002Fmonth\n  ZTNA-related incidents (after):       2\u002Fmonth\n  Mean time to detect unauthorized access: 4 min (was 2 hours)\n  Lateral movement paths eliminated:   85%\n\nMIGRATION STATUS:\n  Phase 1 (low-risk apps):     12\u002F12 complete\n  Phase 2 (medium-risk apps):  12\u002F12 complete\n  Phase 3 (high-risk apps):     0\u002F6  in progress\n  VPN decommission:            Scheduled after Phase 3\n```\n","# Implementing Zero Trust Network Access\n\n## When to Use\n\n- When replacing traditional VPN-based remote access with identity-based access controls\n- When implementing micro-segmentation to limit lateral movement within cloud networks\n- When compliance or security strategy requires zero trust architecture adoption\n- When providing secure access to cloud workloads without exposing them to the public internet\n- When building context-aware access policies based on user identity, device health, and location\n\n**Do not use** as a complete replacement for network security controls (ZTNA complements but does not replace firewalls and network ACLs), for protecting internet-facing public applications (use WAF), or for IoT device access where identity-based authentication is not feasible.\n\n## Prerequisites\n\n- Identity provider (Entra ID, Okta, Google Workspace) with MFA enforcement\n- Cloud-native networking capabilities (AWS PrivateLink, Azure Private Link, GCP IAP)\n- Device management solution (Intune, Jamf, CrowdStrike) for device posture assessment\n- Service mesh or zero trust proxy (Cloudflare Access, Zscaler ZPA, or cloud-native IAP)\n- Centralized logging for access decisions and policy enforcement\n\n## Workflow\n\n### Step 1: Deploy GCP Identity-Aware Proxy (IAP) for Application Access\n\nConfigure IAP to provide authenticated access to web applications without VPN.\n\n```bash\n# Enable IAP API\ngcloud services enable iap.googleapis.com\n\n# Configure OAuth consent screen\ngcloud iap oauth-brands create \\\n  --application_title=\"Corporate Apps\" \\\n  --support_email=security@company.com\n\n# Enable IAP on an App Engine application\ngcloud iap web enable \\\n  --resource-type=app-engine \\\n  --oauth2-client-id=CLIENT_ID \\\n  --oauth2-client-secret=CLIENT_SECRET\n\n# Enable IAP on a backend service (GCE\u002FGKE)\ngcloud compute backend-services update BACKEND_SERVICE \\\n  --iap=enabled,oauth2-client-id=CLIENT_ID,oauth2-client-secret=CLIENT_SECRET \\\n  --global\n\n# Set IAP access policy (who can access)\ngcloud iap web add-iam-policy-binding \\\n  --resource-type=app-engine \\\n  --member=\"group:engineering@company.com\" \\\n  --role=\"roles\u002Fiap.httpsResourceAccessor\"\n\n# Configure access levels based on device and context\ngcloud access-context-manager levels create corporate-device \\\n  --title=\"Corporate Managed Device\" \\\n  --basic-level-spec=level-spec.yaml \\\n  --policy=POLICY_ID\n```\n\n### Step 2: Implement AWS Verified Access for Zero Trust\n\nDeploy AWS Verified Access to provide identity-based access to internal applications.\n\n```bash\n# Create a Verified Access trust provider (OIDC)\naws ec2 create-verified-access-trust-provider \\\n  --trust-provider-type user \\\n  --user-trust-provider-type oidc \\\n  --oidc-options '{\n    \"Issuer\": \"https:\u002F\u002Flogin.microsoftonline.com\u002FTENANT_ID\u002Fv2.0\",\n    \"AuthorizationEndpoint\": \"https:\u002F\u002Flogin.microsoftonline.com\u002FTENANT_ID\u002Foauth2\u002Fv2.0\u002Fauthorize\",\n    \"TokenEndpoint\": \"https:\u002F\u002Flogin.microsoftonline.com\u002FTENANT_ID\u002Foauth2\u002Fv2.0\u002Ftoken\",\n    \"UserInfoEndpoint\": \"https:\u002F\u002Fgraph.microsoft.com\u002Foidc\u002Fuserinfo\",\n    \"ClientId\": \"CLIENT_ID\",\n    \"ClientSecret\": \"CLIENT_SECRET\",\n    \"Scope\": \"openid profile email\"\n  }'\n\n# Create a Verified Access instance\naws ec2 create-verified-access-instance \\\n  --description \"Zero Trust Access Instance\"\n\n# Attach trust provider to instance\naws ec2 attach-verified-access-trust-provider \\\n  --verified-access-instance-id vai-INSTANCE_ID \\\n  --verified-access-trust-provider-id vatp-PROVIDER_ID\n\n# Create a Verified Access group with policy\naws ec2 create-verified-access-group \\\n  --verified-access-instance-id vai-INSTANCE_ID \\\n  --policy-document '{\n    \"Version\": \"2012-10-17\",\n    \"Statement\": [{\n      \"Effect\": \"Allow\",\n      \"Principal\": \"*\",\n      \"Action\": \"verified-access:AllowAccess\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"verified-access:user\u002Fgroups\": \"engineering\"\n        }\n      }\n    }]\n  }'\n\n# Create endpoint for an internal application\naws ec2 create-verified-access-endpoint \\\n  --verified-access-group-id vag-GROUP_ID \\\n  --endpoint-type load-balancer \\\n  --attachment-type vpc \\\n  --domain-certificate-arn arn:aws:acm:REGION:ACCOUNT:certificate\u002FCERT_ID \\\n  --application-domain app.internal.company.com \\\n  --endpoint-domain-prefix app \\\n  --load-balancer-options '{\n    \"LoadBalancerArn\": \"arn:aws:elasticloadbalancing:REGION:ACCOUNT:loadbalancer\u002Fapp\u002Finternal-app\u002Fxxx\",\n    \"Port\": 443,\n    \"Protocol\": \"https\",\n    \"SubnetIds\": [\"subnet-xxx\"]\n  }'\n```\n\n### Step 3: Configure Azure Private Link and Conditional Access\n\nSet up Azure Private Link for network isolation and conditional access for identity-based controls.\n\n```bash\n# Create Private Endpoint for an Azure service\naz network private-endpoint create \\\n  --name app-private-endpoint \\\n  --resource-group production-rg \\\n  --vnet-name production-vnet \\\n  --subnet private-endpoint-subnet \\\n  --private-connection-resource-id \u002Fsubscriptions\u002FSUB_ID\u002FresourceGroups\u002FRG\u002Fproviders\u002FMicrosoft.Web\u002Fsites\u002Finternal-app \\\n  --group-ids sites \\\n  --connection-name app-connection\n\n# Configure private DNS zone for the service\naz network private-dns zone create \\\n  --resource-group production-rg \\\n  --name privatelink.azurewebsites.net\n\naz network private-dns link vnet create \\\n  --resource-group production-rg \\\n  --zone-name privatelink.azurewebsites.net \\\n  --name production-link \\\n  --virtual-network production-vnet \\\n  --registration-enabled false\n```\n\n```powershell\n# Create Conditional Access policy requiring compliant device + MFA\nConnect-MgGraph -Scopes \"Policy.ReadWrite.ConditionalAccess\"\n\n$params = @{\n    DisplayName = \"Zero Trust - Require MFA and Compliant Device\"\n    State = \"enabled\"\n    Conditions = @{\n        Applications = @{\n            IncludeApplications = @(\"All\")\n        }\n        Users = @{\n            IncludeUsers = @(\"All\")\n            ExcludeGroups = @(\"BreakGlass-Group-ID\")\n        }\n        Locations = @{\n            IncludeLocations = @(\"All\")\n            ExcludeLocations = @(\"AllTrusted\")\n        }\n    }\n    GrantControls = @{\n        Operator = \"AND\"\n        BuiltInControls = @(\"mfa\", \"compliantDevice\")\n    }\n    SessionControls = @{\n        SignInFrequency = @{\n            Value = 4\n            Type = \"hours\"\n            IsEnabled = $true\n        }\n    }\n}\n\nNew-MgIdentityConditionalAccessPolicy -BodyParameter $params\n```\n\n### Step 4: Implement Micro-Segmentation with Network Policies\n\nDeploy network-level micro-segmentation to complement identity-based access controls.\n\n```bash\n# AWS: Create security groups for micro-segmentation\naws ec2 create-security-group \\\n  --group-name web-tier-sg \\\n  --description \"Web tier - only HTTPS from ALB\" \\\n  --vpc-id vpc-PROD\n\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-WEB \\\n  --protocol tcp --port 443 \\\n  --source-group sg-ALB\n\naws ec2 create-security-group \\\n  --group-name app-tier-sg \\\n  --description \"App tier - only from web tier\"\n\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-APP \\\n  --protocol tcp --port 8080 \\\n  --source-group sg-WEB\n\n# Kubernetes NetworkPolicy for pod-level segmentation\ncat \u003C\u003C 'EOF' | kubectl apply -f -\napiVersion: networking.k8s.io\u002Fv1\nkind: NetworkPolicy\nmetadata:\n  name: api-allow-web-only\n  namespace: production\nspec:\n  podSelector:\n    matchLabels:\n      app: api-server\n  policyTypes:\n    - Ingress\n  ingress:\n    - from:\n        - podSelector:\n            matchLabels:\n              app: web-frontend\n      ports:\n        - protocol: TCP\n          port: 8080\nEOF\n```\n\n### Step 5: Enable Continuous Verification and Logging\n\nImplement continuous trust verification rather than one-time authentication.\n\n```bash\n# Configure CloudWatch to monitor access decisions\naws logs create-log-group --log-group-name \u002Fverified-access\u002Faccess-logs\n\n# Enable Verified Access logging\naws ec2 modify-verified-access-instance-logging-configuration \\\n  --verified-access-instance-id vai-INSTANCE_ID \\\n  --access-logs '{\n    \"CloudWatchLogs\": {\n      \"Enabled\": true,\n      \"LogGroup\": \"\u002Fverified-access\u002Faccess-logs\"\n    }\n  }'\n\n# Query access logs for denied requests\naws logs start-query \\\n  --log-group-name \u002Fverified-access\u002Faccess-logs \\\n  --start-time $(date -d \"24 hours ago\" +%s) \\\n  --end-time $(date +%s) \\\n  --query-string '\n    fields @timestamp, identity.user, http_request.url, decision\n    | filter decision = \"deny\"\n    | sort @timestamp desc\n    | limit 50\n  '\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Zero Trust | Security model that requires strict identity verification for every person and device accessing resources, regardless of network location |\n| ZTNA | Zero Trust Network Access, the technology that implements zero trust principles by providing identity-aware, context-based access to applications |\n| Identity-Aware Proxy | Proxy service that verifies user identity and device context before allowing access to backend applications, replacing VPN-based access |\n| Micro-Segmentation | Network security technique that creates fine-grained security zones around individual workloads or applications to limit lateral movement |\n| BeyondCorp | Google's implementation of zero trust architecture that shifts access controls from the network perimeter to individual users and devices |\n| Continuous Verification | Ongoing assessment of user identity, device health, and access context throughout a session rather than only at authentication time |\n\n## Tools & Systems\n\n- **GCP Identity-Aware Proxy**: Google's BeyondCorp implementation providing context-aware access to web applications and VMs\n- **AWS Verified Access**: AWS service for zero trust access to applications based on identity and device posture verification\n- **Azure Conditional Access**: Microsoft's policy engine for enforcing context-based access controls based on user, device, location, and risk\n- **Cloudflare Access**: Cloud-delivered ZTNA solution providing identity-aware access to internal applications\n- **Zscaler ZPA**: Enterprise ZTNA platform replacing VPN with application-level access based on identity and context\n\n## Common Scenarios\n\n### Scenario: Replacing Corporate VPN with Zero Trust Access for Cloud Applications\n\n**Context**: An organization with 2,000 employees accesses 30+ internal cloud applications through a traditional VPN concentrator. VPN performance issues and security concerns drive the decision to implement ZTNA.\n\n**Approach**:\n1. Inventory all applications currently accessed through VPN and classify by sensitivity\n2. Deploy GCP IAP or AWS Verified Access for web-based internal applications\n3. Configure conditional access policies requiring MFA and device compliance for all applications\n4. Implement micro-segmentation using security groups to limit lateral movement between application tiers\n5. Set up continuous verification with re-authentication every 4 hours for sensitive applications\n6. Migrate users in phases, starting with low-risk applications, monitoring access logs for issues\n7. Decommission VPN after all applications are accessible through ZTNA with full logging\n\n**Pitfalls**: Not all applications support identity-aware proxy integration. Legacy thick-client applications may require agent-based ZTNA solutions instead of proxy-based approaches. Device posture assessment requires an endpoint management solution deployed to all corporate devices. Break-glass access procedures must be documented for scenarios where the identity provider is unavailable.\n\n## Output Format\n\n```\nZero Trust Network Access Implementation Report\n==================================================\nOrganization: Acme Corp\nImplementation Date: 2026-02-23\nApplications Migrated: 24 \u002F 30\n\nZTNA ARCHITECTURE:\n  Identity Provider: Microsoft Entra ID\n  Access Proxy: AWS Verified Access + GCP IAP\n  Device Management: Microsoft Intune\n  MFA: FIDO2 + Authenticator App\n\nACCESS POLICY COVERAGE:\n  Applications requiring MFA:          30 \u002F 30 (100%)\n  Applications requiring compliant device: 24 \u002F 30 (80%)\n  Applications with continuous verification: 18 \u002F 30 (60%)\n  Applications with location restrictions:  12 \u002F 30 (40%)\n\nSECURITY IMPROVEMENTS:\n  VPN-related incidents (before):      12\u002Fmonth\n  ZTNA-related incidents (after):       2\u002Fmonth\n  Mean time to detect unauthorized access: 4 min (was 2 hours)\n  Lateral movement paths eliminated:   85%\n\nMIGRATION STATUS:\n  Phase 1 (low-risk apps):     12\u002F12 complete\n  Phase 2 (medium-risk apps):  12\u002F12 complete\n  Phase 3 (high-risk apps):     0\u002F6  in progress\n  VPN decommission:            Scheduled after Phase 3\n```\n",{"name":5,"tags":44,"capec":47,"model":48,"tools":49,"domain":35,"maxTurns":53,"nist_csf":54,"subdomain":27,"description":7,"mitre_attack":59},[27,29,21,26,45,46],"identity-aware-proxy","micro-segmentation",[],"sonnet",[50,33,51,52],"Read","Glob","Grep",20,[55,56,57,58],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01",[60],"T1021","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fcloud\u002Fzerotrust\u002Fztna\u002Fmonitor","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill zerotrust-ztna-monitor",{"tool":74,"command":75},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill zerotrust-ztna-monitor",{"tool":77,"command":78},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill zerotrust-ztna-monitor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fzerotrust\u002Fztna\u002Fmonitor\u002FSKILL.md",true,[82],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"index.json","REFERENCE","参考文档",677,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fzerotrust\u002Fztna\u002Fmonitor\u002Findex.json",[89,99,122,142,163,185],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":93,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":98},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[106,107,108,109,110,111,112,35,113,114,115,116,117,118,119,120,121,37,28],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[129,109,130,106,131,32,33,132,133,35,134,135,136,137,138,25,139,140,28,141],"exec","services wmi exec exploit","exploit","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":39},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[149,150,151,152,153,48,154,155,156,157,25,28,158,159,132,160,33,35,161,162],"extract","registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[170,171,172,107,35,173,37,174,175,176,111,28,177,178,179,180,181,182,183,184],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[192,170,193,107,194,195,112,28,177,196,197,198,132,111,35,173,199,37,200,175],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]