[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E55V08EH6KBZK3KDP98SBD":3,"skill-same:01M7E55V08EH6KBZK3KDP98SBD":83},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7E55V08EH6KBZK3KDP98SBD","implementing-zero-trust-network-access",null,"Configures Zero Trust Network Access (ZTNA) in AWS, Azure, and GCP using identity-aware proxies, micro-segmentation, and continuous verification with conditional access policies, replacing VPN-based access with BeyondCorp-style architectures. Use when replacing VPN remote access with identity-based controls, limiting lateral movement via micro-segmentation, or exposing cloud workloads to authenticated users without public internet exposure.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-zero-trust-network-access\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-zero-trust-network-access\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: implementing-zero-trust-network-access\ndescription: Configures Zero Trust Network Access (ZTNA) in AWS, Azure, and GCP using identity-aware proxies, micro-segmentation, and continuous verification with conditional access policies, replacing VPN-based access with BeyondCorp-style architectures. Use when replacing VPN remote access with identity-based controls, limiting lateral movement via micro-segmentation, or exposing cloud workloads to authenticated users without public internet exposure.\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- zero-trust\n- ztna\n- beyondcorp\n- identity-aware-proxy\n- micro-segmentation\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1078.004\n- T1530\n- T1537\n- T1580\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":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":26,"description":7,"mitre_attack":40},[26,27,28,29,30,31],"cloud-security","zero-trust","ztna","beyondcorp","identity-aware-proxy","micro-segmentation","mahipal","cybersecurity","1.0",[36,37,38,39],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01",[41,42,43,44],"T1078.004","T1530","T1537","T1580","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-zero-trust-network-access",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill implementing-zero-trust-network-access",{"tool":59,"command":60},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill implementing-zero-trust-network-access",{"tool":62,"command":63},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill implementing-zero-trust-network-access","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-zero-trust-network-access\u002FSKILL.md",true,[67,71,77],{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",2786,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-zero-trust-network-access\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",6808,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fimplementing-zero-trust-network-access\u002Fscripts\u002Fagent.py",[84,92,100,108,116,123],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]