01 · Lý thuyết
Device Compliance – Thiết bị "tuân thủ" nghĩa là gì?
Compliance Policy trong Intune xác định các tiêu chí một thiết bị phải đáp ứng để được coi là Compliant. Nếu không đáp ứng, thiết bị bị đánh dấu Non-compliant và có thể bị chặn truy cập tài nguyên qua Conditional Access.
| Nhóm cài đặt | Ví dụ tiêu chí | Mục đích bảo mật |
|---|---|---|
| Device Health | Require BitLocker, Require Secure Boot, Require Code Integrity | Đảm bảo thiết bị không bị tamper |
| Device Properties | Min OS: Win 10 21H2, Max OS: Win 11 22H2 | Chỉ cho phép OS đã được test/approve |
| Configuration Manager | Require device compliance from ConfigMgr | Co-managed devices phải pass cả hai |
| System Security | Require password, Min password length 8, Max inactivity 5 min | Bảo vệ nếu thiết bị để quên |
| Microsoft Defender | Require real-time protection, Require antivirus up-to-date | Thiết bị phải có AV đang hoạt động |
| Encryption | Require encryption of data storage | Đảm bảo ổ đĩa được mã hóa |
Compliance Policy Actions – Phản ứng khi Non-compliant
| Action | Schedule | Mô tả |
|---|---|---|
| Mark device non-compliant | Immediately | Ngay lập tức đánh dấu non-compliant (default) |
| Send email to end user | After N days | Thông báo user tự fix |
| Send push notification | After N days | Notification qua Company Portal |
| Retire device | After N days | Remove enrollment (last resort) |
| Grace period | N days | Cho phép X ngày để remediate trước khi block |
Conditional Access – Cổng kiểm soát truy cập
Conditional Access (CA) là tính năng của Entra ID (không phải Intune) — hoạt động như một "policy engine" kiểm tra Signals và quyết định có cho phép truy cập hay không.
CA Policy = IF (Conditions) THEN (Access Controls)
SIGNALS (Conditions)
User / Group
Device platform
Location (IP)
Application
Device compliance
Sign-in risk
DECISION
Allow / Block / Grant with controls
ACCESS CONTROLS
Require MFA
Require compliant device
Require Entra Joined
Block access
Require app protection
Require password change
Named Locations – Vị trí tin cậy
| Loại | Định nghĩa bằng | Use case |
|---|---|---|
| IP ranges | Danh sách IPv4/IPv6 CIDR | Đánh dấu IP văn phòng là "trusted" → không cần MFA |
| Countries | Danh sách quốc gia | Block truy cập từ các nước không hoạt động |
| Compliant network | Global Secure Access | Chỉ cho phép từ mạng đã bảo mật |
02 · Thực hành
Lab A: Tạo Compliance Policy cho Windows
Thực hành tại: intune.microsoft.com → Devices → Compliance → Create policy
- Vào Devices → Compliance → Create policy
- Platform: Windows 10 and later → Create
- Name:
Compliance-Windows-Corp-Standard - Tab Compliance settings:
Device Health:
• Require BitLocker: Require
• Require Secure Boot: Require
System Security:
• Password required: Require
• Minimum password length: 8
• Max minutes of inactivity before password is required: 5
• Password expiration: 90 days
Microsoft Defender:
• Microsoft Defender Antimalware: Require
• Real-time protection: Require - Tab Actions for noncompliance:
• Mark device noncompliant: Immediately (Schedule: 0 days)
• Send email to end user: Schedule: 1 day
• Send push notification: Schedule: 3 days - Tab Assignments: Assign to All Devices → Create
Lab B: Tạo Conditional Access Policy – Require Compliant Device
Thực hành tại: entra.microsoft.com → Protection → Conditional Access → New policy
- Vào entra.microsoft.com → Protection → Conditional Access → New policy
- Name:
CA-Require-Compliant-Device-M365 - Users: Include → All users
Exclude → Break-glass accounts (luôn exclude!) - Target resources: Cloud apps → Include → Office 365
- Conditions:
• Device platforms: Include → Windows, iOS, Android, macOS
• Locations: (không cần filter nếu muốn áp dụng mọi nơi) - Grant: Grant access → check Require device to be marked as compliant
- Enable policy: Report-only (test 1 tuần trước)
→ Sau 1 tuần, kiểm tra Sign-in logs → Enable: On
Lab C: Tạo CA Policy – Block High Risk Sign-in
Lab D: Kiểm tra Compliance Status
03 · Tình huống thực tế
Công ty Chứng khoán SSI – Bảo vệ hệ thống giao dịch khỏi thiết bị không an toàn
SSI yêu cầu: chỉ thiết bị công ty đã được kiểm tra, mã hóa, và có Defender hoạt động mới được phép truy cập hệ thống giao dịch nội bộ và email. Thiết bị cá nhân hoàn toàn bị chặn.
Giải pháp triển khai:
- ✓ Compliance Policy: BitLocker required, Secure Boot required, Defender required, min OS Win 10 21H2, password required với complexity
- ✓ CA Policy 1: Require compliant device → tất cả M365 apps và Trading System (SAML SSO)
- ✓ CA Policy 2: Block access từ unknown countries (chỉ Vietnam + Singapore DC)
- ✓ CA Policy 3: Require MFA cho admin accounts luôn luôn, kể cả ở văn phòng
- ✓ Grace period: 7 ngày cho phép nhân viên tự khắc phục trước khi bị block
Kết quả:
- • 3 thiết bị cá nhân của broker bị chặn ngay sau khi enable CA (đúng chủ ý)
- • 2 sự cố phishing thất bại: CA block do sign-in risk = high từ unfamiliar location
- • Compliance rate: 97% sau 2 tuần (3% đang xử lý BitLocker setup)
- • Audit report sạch: chứng minh với cơ quan thanh tra chứng khoán rằng hệ thống được bảo vệ