01 · Lý thuyết
Defender Antivirus – Kiến trúc bảo vệ đa lớp
Microsoft Defender Antivirus (MDAV) là AV tích hợp sẵn trong Windows 10/11, không cần cài thêm. Trong môi trường doanh nghiệp, quản lý qua Intune Endpoint Security → Antivirus.
| Lớp bảo vệ | Cơ chế | Bảo vệ khỏi |
|---|---|---|
| Real-time protection | Monitor file I/O, process creation liên tục | Malware chạy ngay lập tức |
| Cloud-delivered protection | Gửi hash/sample lên Microsoft cloud để phân tích | Zero-day, new malware chưa có signature |
| Automatic sample submission | Gửi suspicious files lên Microsoft | Tăng độ chính xác cloud detection |
| Scheduled scan | Quét toàn bộ hoặc quick scan theo lịch | Malware đang nằm im không chạy |
| Tamper protection | Ngăn registry/service MDAV bị modify | Malware tự tắt AV |
| PUA protection | Phát hiện Potentially Unwanted Applications | Adware, browser hijackers, miners |
Scan Types – Các loại quét
| Loại scan | Phạm vi | Thời gian | Khi nào dùng |
|---|---|---|---|
| Quick Scan | Registry, startup locations, running processes, memory | 1–5 phút | Hàng ngày, scheduled mặc định |
| Full Scan | Toàn bộ ổ đĩa, tất cả file | 30 phút – vài giờ | Hàng tuần, sau incident |
| Custom Scan | Thư mục/file cụ thể | Phụ thuộc scope | Kiểm tra thư mục đáng ngờ cụ thể |
| Offline Scan | Boot vào WinPE, quét trước OS load | 15–30 phút | Rootkit/bootkit đã bypass normal scan |
Exclusions – Loại trừ để tránh false positive
Exclusions cần thiết cho các ứng dụng doanh nghiệp bị AV quét chậm, nhưng phải cẩn thận vì exclusion sai có thể tạo lỗ hổng bảo mật:
| Loại exclusion | Ví dụ | Lưu ý |
|---|---|---|
| File path | C:\SAP\sapjvm\bin\sapjvm.exe | Chỉ exclude file cụ thể, không exclude toàn folder |
| File extension | .pst, .ost (Outlook data files) | Cẩn thận — malware có thể giả extension |
| Folder path | C:\Program Files\SQL Server\ | Chỉ dùng cho database/dev environments |
| Process | sqlservr.exe, javaw.exe | Risky — malware có thể mạo danh process |
Tamper Protection – Ngăn malware tắt AV
Tamper Protection ngăn kẻ tấn công (hoặc malware) vô hiệu hóa MDAV bằng cách:
- Block thay đổi registry keys của MDAV (
HKLM\SOFTWARE\Microsoft\Windows Defender) - Block stop/disable service MsSense, WdNisSvc, WinDefend
- Block PowerShell commands tắt real-time protection
- Khi Tamper Protection bật: chỉ Intune/MDE portal mới có thể thay đổi MDAV settings
02 · Thực hành
Lab A: Tạo Antivirus Policy qua Intune
Thực hành tại: intune.microsoft.com → Endpoint security → Antivirus
- Vào Endpoint security → Antivirus → Create Policy
- Platform: Windows 10, Windows 11, and Windows Server
Profile: Microsoft Defender Antivirus - Name:
AV-Corp-Standard-Policy - Cấu hình:
• Cloud-delivered protection: Enabled
• Cloud-delivered protection level: High
• Automatic sample submission: Send all samples automatically
• Real-time protection: Enabled
• Potentially unwanted app protection: Block
• Tamper protection: Enabled - Scheduled scan:
• Scan type: Quick scan
• Day of week: Everyday
• Scheduled scan start time: 120 (2:00 AM) - Exclusions: (chỉ thêm nếu thực sự cần)
• Excluded paths:C:\Program Files\SAP\
• Excluded extensions:.pst .ost - Assign to All Devices → Create
Lab B: Kiểm tra và quản lý MDAV bằng PowerShell
Lab C: Test AV với EICAR file
Lab D: Thêm Exclusion qua Graph PowerShell
03 · Tình huống thực tế
Tập đoàn Dệt May Vinatex – Ransomware outbreak và giải pháp phòng ngừa
Vinatex bị tấn công ransomware WannaCry-variant vào năm 2023, lây lan qua 200 máy trong 2 giờ trước khi phát hiện. Nguyên nhân: Windows 7 chưa patch, AV signature cũ 45 ngày, real-time protection bị disable bởi một số user.
Giải pháp sau incident:
- ✓ Tamper Protection bật toàn bộ: User không còn có thể tắt AV từ Windows Security UI
- ✓ Cloud protection = High: Block zero-day ngay khi gặp, không chờ signature update
- ✓ Signature update SLA: Compliance policy check signature age ≤ 7 ngày → non-compliant nếu quá hạn
- ✓ Scheduled Full Scan: Mỗi Chủ Nhật 2:00 AM (ngoài giờ làm việc)
- ✓ MDE onboarding: Kết hợp AV với EDR → phát hiện lateral movement sớm hơn nhiều
Kết quả sau 6 tháng:
- • 0 ransomware incident — cloud protection block 14 suspicious files trước khi execute
- • 100% máy Tamper Protection enabled — không còn user tắt AV
- • Signature compliance: 99.1% máy có signature ≤ 24 giờ