1. Pengenalan Zero Trust Architecture
Zero Trust adalah model keamanan yang menghilangkan konsep trust berdasarkan lokasi jaringan. "Never trust, always verify" β setiap akses harus diverifikasi terlepas dari lokasi.
- Konsep dan prinsip Zero Trust
- Identity-centric security model
- Microsegmentation strategy
- ZTNA dan SASE
- Implementation roadmap
Traditional vs Zero Trust
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β TRADITIONAL PERIMETER β β βββββββββββββββββββββββββββββββββββββββββββββββββββ β β β TRUSTED ZONE β β β β ββββββββ ββββββββ ββββββββ ββββββββ β β β β βServerβ β DB β βApp β βFile β β β β β ββββββββ ββββββββ ββββββββ ββββββββ β β β β Internal = Trusted β β β βββββββββββββββββββββββββββββββββββββββββββββββββββ β β ββββββββββββ β β β Firewall β β Single perimeter β β ββββββββββββ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β ZERO TRUST MODEL β β ββββββββ ββββββββ ββββββββ ββββββββ β β βServerβ β DB β βApp β βFile β β β β ββββ β β ββββ β β ββββ β β ββββ β β Verified β β ββββββββ ββββββββ ββββββββ ββββββββ β β β Verify identity β Least privilege β β β Encrypt everything β Log & monitor β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2. Prinsip Zero Trust
| Prinsip | Penjelasan | Implementasi |
|---|---|---|
| Never Trust, Always Verify | Autentikasi setiap request | MFA, continuous auth |
| Least Privilege Access | Akses minimum | JIT, RBAC/ABAC |
| Assume Breach | Asumsikan attacker di dalam | Segmentation, encryption |
| Verify Explicitly | Verifikasi semua data point | Identity, device, behavior |
| Minimize Blast Radius | Batasi dampak kompromi | Segmentation, PAM |
3. Identity-Centric Security
Dalam Zero Trust, identity (bukan network) menjadi perimeter baru. Setiap user, device, dan service harus memiliki identity terverifikasi.
# ============================================= +# Zero Trust Identity Policy +# ============================================= +# Azure AD Conditional Access (translated) +# Policy 1: Require MFA +IF user.role != "service_account" +AND app.risk != "low" +THEN require_mfa() +AND require_compliant_device() +# Policy 2: Block legacy auth +IF client_app == "IMAP" OR "POP3" OR "SMTP" +THEN block() +# Policy 3: Risk-based access +IF sign_in_risk == "high" THEN block() +IF sign_in_risk == "medium" THEN require_mfa() +AND require_password_change() +# Policy 4: Session management +IF app.sensitivity == "high" +THEN max_session = 1_hour +AND require_reauthentication()
4. Microsegmentation
Microsegmentation membagi jaringan menjadi granular security zones hingga level workload. Membatasi lateral movement.
# =============================================
+# Microsegmentation β Kubernetes NetworkPolicy
+# =============================================
+# Default deny all
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+ name: default-deny-all
+ namespace: production
+spec:
+ podSelector: {}
+ policyTypes: [Ingress, Egress]
+# Allow frontend to backend only
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+ name: frontend-to-backend
+ namespace: production
+spec:
+ podSelector:
+ matchLabels:
+ app: backend
+ ingress:
+ - from:
+ - podSelector:
+ matchLabels:
+ app: frontend
+ ports:
+ - port: 8080
+# Allow backend to database only
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+ name: backend-to-db
+spec:
+ podSelector:
+ matchLabels:
+ app: database
+ ingress:
+ - from:
+ - podSelector:
+ matchLabels:
+ app: backend
+ ports:
+ - port: 5432
5. Zero Trust Network Access (ZTNA)
ZTNA menggantikan VPN dengan model yang memverifikasi identity dan device health sebelum memberikan akses ke aplikasi spesifik.
| Aspek | VPN | ZTNA |
|---|---|---|
| Access | Full network | Per-app access |
| Trust | After connect | Continuous verify |
| Movement | Possible | Restricted |
| Experience | Slow, clunky | Seamless, fast |
6. SASE Architecture
SASE menggabungkan networking (SD-WAN) dan security (ZTNA, SWG, CASB, FWaaS) ke cloud-delivered service.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β SASE ARCHITECTURE β β β β ββββββββββββββββββββββββββββββββββββββββββββββββ β β β IDENTITY LAYER β β β β ββββββββββ ββββββββββ ββββββββββ β β β β β User β β Device β β Serviceβ β β β β ββββββββββ ββββββββββ ββββββββββ β β β ββββββββββββββββββββββββββββββββββββββββββββββββ β β β β β βΌ β β ββββββββββββββββββββββββββββββββββββββββββββββββ β β β SASE EDGE (Cloud) β β β β βββββββ βββββββ βββββββ βββββββ ββββββββ β β β β βZTNA β β SWG β βCASB β βFWaaSβ β SD- β β β β β β β β β β β β β β WAN β β β β β βββββββ βββββββ βββββββ βββββββ ββββββββ β β β ββββββββββββββββββββββββββββββββββββββββββββββββ β β β β β ββββββββ ββββββββ ββββββββ ββββββββ β β β SaaS β β IaaS β β DC β β Net β β β ββββββββ ββββββββ ββββββββ ββββββββ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7. Implementation Roadmap
# ============================================= +# Zero Trust Implementation Roadmap +# ============================================= +# PHASE 1: Foundation (Bulan 1-3) +# β Asset inventory +# β Data classification +# β Identity consolidation β SSO + MFA +# β Device management β MDM +# β Logging foundation +# PHASE 2: Identity & Access (Bulan 3-6) +# β Conditional Access policies +# β Privileged Access Management +# β Just-In-Time access +# β RBAC implementation +# PHASE 3: Network Segmentation (Bulan 6-12) +# β Microsegmentation +# β ZTNA deployment +# β East-West traffic inspection +# β DNS filtering +# PHASE 4: Data Protection (Bulan 12-18) +# β DLP policies +# β Encryption at rest & transit +# β CASB for SaaS apps +# PHASE 5: Continuous Monitoring (Bulan 18-24) +# β UEBA +# β SOAR automated response +# β Threat hunting program +# β Maturity assessment
8. Technology & Vendors
| Category | Vendors | Key Features |
|---|---|---|
| Identity | Azure AD, Okta, Ping | SSO, MFA, Conditional Access |
| ZTNA | Zscaler, Cloudflare, Palo Alto | Per-app access, device posture |
| Endpoint | CrowdStrike, SentinelOne | EDR, device compliance |
| Microseg | Illumio, Guardicore | Workload segmentation |
| SASE | Zscaler, Netskope | Unified security + networking |
| PAM | CyberArk, BeyondTrust | Privileged access management |
Device Trust & Compliance
Dalam Zero Trust, device health adalah faktor kritis dalam keputusan akses. Device yang tidak compliant harus ditolak atau diberikan akses terbatas.
# =============================================
+# Device Compliance & Trust Policy
+# =============================================
+# Device Trust Requirements:
+# Level 1: Basic (all devices)
+# - OS version >= minimum
+# - Antivirus active & updated
+# - Firewall enabled
+# - Disk encryption enabled
+
+# Level 2: Enhanced (corporate devices)
+# - All Level 1 requirements
+# - MDM enrolled
+# - Company certificate installed
+# - Approved OS build
+# - No jailbreak/root
+
+# Level 3: High Security (privileged access)
+# - All Level 2 requirements
+# - Hardware TPM/FIDO2 key
+# - Specific network location
+# - Recent security scan passed
+# - No USB peripherals (optional)
+# Azure AD Conditional Access β Device filter
+# IF device.trustType == "ServerAD"
+# OR device.isCompliant == true
+# THEN allow_access()
+# ELSE redirect_to_portal("Register your device")
+# Intune Compliance Policy
+# Minimum OS: Windows 10 22H2
+# BitLocker: Required
+# Defender: Real-time protection ON
+# Password: Min 12 chars, complexity
+# Jailbreak: Block compromised devices
Zero Trust Network Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β ZERO TRUST NETWORK ARCHITECTURE β β β β Users & Devices β β ββββββββ ββββββββ ββββββββ ββββββββ β β βRemoteβ βOfficeβ βMobileβ β IoT β β β ββββ¬ββββ ββββ¬ββββ ββββ¬ββββ ββββ¬ββββ β β β β β β β β βΌ βΌ βΌ βΌ β β ββββββββββββββββββββββββββββββββββββββββββββββββ β β β IDENTITY PROVIDER (IdP) β β β β β’ MFA verification β β β β β’ Device compliance check β β β β β’ Risk assessment β β β ββββββββββββββββββββββββ¬ββββββββββββββββββββββββ β β βΌ β β ββββββββββββββββββββββββββββββββββββββββββββββββ β β β POLICY DECISION POINT (PDP) β β β β β’ Evaluate access policies β β β β β’ Context-aware decisions β β β β β’ Real-time risk scoring β β β ββββββββββββββββββββββββ¬ββββββββββββββββββββββββ β β βΌ β β ββββββββββββββββββββββββββββββββββββββββββββββββ β β β POLICY ENFORCEMENT POINT (PEP) β β β β βββββββ βββββββ βββββββ βββββββ β β β β βZTNA β β SWG β βCASB β βDLP β β β β β ββββ¬βββ ββββ¬βββ ββββ¬βββ ββββ¬βββ β β β βββββββΌββββββββΌββββββββΌββββββββΌββββββββββββββββ β β βΌ βΌ βΌ βΌ β β ββββββββ ββββββββ ββββββββ ββββββββ β β β Apps β β Web β β SaaS β β Data β β β ββββββββ ββββββββ ββββββββ ββββββββ β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Automated Access Reviews
Zero Trust memerlukan review akses berkala untuk memastikan tidak ada privilege creep. Automasi membantu skala proses ini.
# =============================================
+# Automated Access Review Script
+# =============================================
+import datetime
+from dataclasses import dataclass
+
+@dataclass
+class AccessReview:
+ user: str
+ role: str
+ last_activity: datetime.datetime
+ granted_date: datetime.datetime
+ approver: str
+ risk_level: str
+
+def review_access(access_records):
+ # Flag access that needs review.
+ now = datetime.datetime.now()
+ alerts = []
+
+ for record in access_records:
+ # Rule 1: Inactive access (> 90 days no activity)
+ days_inactive = (now - record.last_activity).days
+ if days_inactive > 90:
+ alerts.append({
+ "user": record.user,
+ "issue": f"Inactive for {days_inactive} days",
+ "action": "REVOKE"
+ })
+
+ # Rule 2: Stale access grants (> 365 days)
+ days_granted = (now - record.granted_date).days
+ if days_granted > 365:
+ alerts.append({
+ "user": record.user,
+ "issue": f"Access granted {days_granted} days ago",
+ "action": "RE-APPROVE"
+ })
+
+ # Rule 3: High-risk access without recent review
+ if record.risk_level == "high":
+ alerts.append({
+ "user": record.user,
+ "issue": "High-risk access needs quarterly review",
+ "action": "MANAGER_REVIEW"
+ })
+
+ return alerts
+
+# Generate report
+# alerts = review_access(all_access_records)
+# for alert in alerts:
+# send_notification(alert["user"], alert["issue"])
+ Zero Trust Assessment Checklist
+| Domain | Assessment Criteria | Score |
|---|---|---|
| Identity | MFA enabled for all users? SSO implemented? | 0-5 |
| Devices | MDM enrolled? Compliance policies enforced? | 0-5 |
| Network | Microsegmentation? Encrypted traffic? | 0-5 |
| Applications | ZTNA deployed? API security? | 0-5 |
| Data | Classification done? DLP active? | 0-5 |
| Monitoring | UEBA? SOAR? Continuous verification? | 0-5 |
| Governance | Access reviews? Policy enforcement? | 0-5 |
Target score: 28/35 (80%) untuk mature Zero Trust implementation.
+ +Zero Trust for Remote Work
+Remote work mempercepat adopsi Zero Trust karena traditional perimeter (kantor) sudah tidak relevan. Setiap koneksi harus diverifikasi terlepas dari lokasi.
+# ============================================= +# Zero Trust Remote Work Policy +# ============================================= +# Network Access Policy: +# 1. Remote workers connect via ZTNA (bukan VPN) +# 2. Device compliance checked before access +# 3. Per-app access (bukan full network) +# 4. Session recording untuk sensitive apps +# ZTNA Connection Flow: +# 1. User opens browser/app +# 2. ZTNA agent checks: +# - Device identity (certificate) +# - Device compliance (OS, AV, encryption) +# - User identity (MFA) +# - Location risk score +# 3. Policy engine evaluates: +# - Is user allowed to access this app? +# - Is device compliant enough? +# - Is current risk acceptable? +# 4. If approved: encrypted tunnel to app only +# 5. If denied: clear error message + remediation steps +# Home Network Security Recommendations: +# - Separate VLAN for work devices +# - Updated router firmware +# - Strong WiFi password (WPA3) +# - Disable WPS +# - Enable router firewall +# - Use DNS filtering (1.1.1.3 / 9.9.9.9)+
Zero Trust Maturity Assessment
+# ============================================= +# Zero Trust Maturity Assessment +# ============================================= +# IDENTITY (Score: 0-5) +# β‘ All users have unique identity +# β‘ MFA enabled for all users (not just admin) +# β‘ MFA is phishing-resistant (FIDO2) +# β‘ SSO across all applications +# β‘ Just-in-time privileged access +# β‘ Regular access reviews (quarterly) +# β‘ Service account inventory & rotation +# β‘ No shared accounts + +# DEVICES (Score: 0-5) +# β‘ All devices inventoried +# β‘ MDM enrolled (corporate devices) +# β‘ Device compliance policies enforced +# β‘ Endpoint detection & response deployed +# β‘ Automated patching +# β‘ Disk encryption mandatory +# β‘ BYOD policy with container isolation +# β‘ No unmanaged devices access sensitive data + +# NETWORK (Score: 0-5) +# β‘ Microsegmentation implemented +# β‘ All traffic encrypted (TLS 1.3) +# β‘ DNS filtering active +# β‘ East-west traffic inspection +# β‘ No implicit trust for internal traffic +# β‘ ZTNA replacing VPN +# β‘ DDoS protection +# β‘ Network anomaly detection + +# APPLICATIONS (Score: 0-5) +# β‘ Secure SDLC implemented +# β‘ API security controls +# β‘ WAF deployed +# β‘ SaaS access through CASB +# β‘ Application-level access control +# β‘ Secrets management (no hardcoded) +# β‘ Regular security testing +# β‘ Dependency vulnerability scanning + +# DATA (Score: 0-5) +# β‘ Data classification complete +# β‘ Encryption at rest & in transit +# β‘ DLP controls active +# β‘ Data access logging +# β‘ Retention policies enforced +# β‘ Backup & recovery tested +# β‘ Data sovereignty compliance +# β‘ No sensitive data in unprotected locations + +# SCORING: +# 0 = Not started +# 1 = Initial (ad-hoc) +# 2 = Developing (some implementation) +# 3 = Defined (consistent implementation) +# 4 = Managed (measured & controlled) +# 5 = Optimized (automated & continuous improvement) +# +# Total Score: ___/40 +# Maturity Level: Traditional (0-10) | Advanced (11-25) | Optimal (26-40)+
9. Quiz Pemahaman
1. Prinsip utama Zero Trust?
2. Apa 'perimeter' baru dalam Zero Trust?
3. Fungsi microsegmentation?
4. Keunggulan ZTNA vs VPN?
5. SASE menggabungkan?
Rangkuman
- Never Trust β Setiap akses diverifikasi terlepas lokasi
- Identity β Identity menjadi perimeter baru, bukan network
- Microsegmentation β Granular zones membatasi lateral movement
- ZTNA β Per-app access menggantikan VPN full-network
- Roadmap β Implementasi bertahap 24 bulan: Foundation β Identity β Segmentation β Data β Monitoring