---
title: "Windows Defender ASR Rules: Cài đặt chi tiết từ đầu và kiểm tra hoạt động thực tế"
description: "Hướng dẫn bật và cấu hình Windows Defender Attack Surface Reduction (ASR) Rules bằng PowerShell trên Windows Server VPS, kiểm tra audit log thực tế."
canonical: "https://thuecloud.vn/windows-defender-asr-rules-cai-dat-chi-tiet-tu-dau-va-kiem-tra-hoat-dong-thuc-te"
markdown_url: "https://thuecloud.vn/windows-defender-asr-rules-cai-dat-chi-tiet-tu-dau-va-kiem-tra-hoat-dong-thuc-te.md"
locale: "vi"
kind: "article"
published_at: "2026-11-22T16:18:28.084Z"
updated_at: "2026-11-22T16:18:25.613Z"
site: "ThueCloud.Vn"
estimated_tokens: 2098
---
# Windows Defender ASR Rules: Cài đặt chi tiết từ đầu và kiểm tra hoạt động thực tế

> Hướng dẫn bật và cấu hình Windows Defender Attack Surface Reduction (ASR) Rules bằng PowerShell trên Windows Server VPS, kiểm tra audit log thực tế.

- Canonical HTML: https://thuecloud.vn/windows-defender-asr-rules-cai-dat-chi-tiet-tu-dau-va-kiem-tra-hoat-dong-thuc-te
- Markdown URL: https://thuecloud.vn/windows-defender-asr-rules-cai-dat-chi-tiet-tu-dau-va-kiem-tra-hoat-dong-thuc-te.md
- Organization: ThueCloud.Vn
- Support Email: support@thuecloud.vn
- Hotline: 03333 499 48
- Published: 2026-11-22
- Updated: 2026-11-22

## Mục lục

- Điều kiện tiên quyết và các ASR Rules quan trọng cho Windows VPS
- Cài đặt ASR Rules ở chế độ Audit và chuyển sang Block
- Kiểm tra hoạt động thực tế qua Event Viewer và PowerShell
- Câu hỏi thường gặp (FAQ)
  - Bật Windows Defender ASR Rules có làm chậm VPS Windows không?
  - Nếu phần mềm kế toán hoặc tool nội bộ bị ASR chặn nhầm thì xử lý thế nào?
  - ASR Rules có hoạt động trên Windows Server 2019 và 2022 không?

Windows Server VPS thường là mục tiêu hàng đầu của ransomware và mã độc đánh cắp thông tin thông qua các script PowerShell ẩn, macro độc hại hoặc tiến trình đánh cắp bộ nhớ LSASS. Tính năng **Attack Surface Reduction (ASR) Rules** tích hợp sẵn trong Microsoft Defender giúp chặn đứng các hành vi này ngay từ tầng hệ điều hành mà không cần cài thêm phần mềm diệt virus bên thứ ba tốn RAM khi vận hành trên [Cloud VPS Việt Nam](https://thuecloud.vn/vps-viet-nam).

> **Tóm tắt nhanh (TL;DR):**
> - **Triển khai theo 2 giai đoạn:** Bật chế độ `AuditMode` trước để theo dõi xung đột phần mềm, sau đó mới chuyển sang `Enabled` (Block).
> - **Cấu hình bằng PowerShell:** Áp dụng trực tiếp qua cmdlet `Add-MpPreference` theo danh sách GUID chuẩn của Microsoft.
> - **Kiểm tra thực tế:** Theo dõi Event ID `1121` (Block) và `1122` (Audit) trong Event Viewer.
> - *Cập nhật: 11/2026*

## Điều kiện tiên quyết và các ASR Rules quan trọng cho Windows VPS

Để ASR Rules hoạt động, Microsoft Defender Antivirus phải đang bật Real-time Protection và Cloud-delivered Protection:

```powershell
Set-MpPreference -DisableRealtimeMonitoring $false
Set-MpPreference -MAPSReporting Advanced
Set-MpPreference -SubmitSamplesConsent SendSafeSamples
```

Dưới đây là 4 rule quan trọng nhất cho máy chủ Windows VPS (chạy tool MMO, web IIS hoặc kế toán):

| Tên ASR Rule | GUID | Tác dụng bảo vệ |
| :--- | :--- | :--- |
| **Block credential stealing from LSASS** | `9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2` | Chặn Mimikatz và tool dump mật khẩu từ `lsass.exe` |
| **Block obfuscated scripts** | `5beb7efe-fd9a-4556-801d-275e5ffc04cc` | Chặn script PowerShell/JS bị mã hóa rối |
| **Block executable files unless prevalence/age/trusted** | `01443614-cd74-433a-b99e-2ecdc07bfc25` | Ngăn file `.exe`/`.dll` lạ mới tải về tự chạy |
| **Use advanced protection against ransomware** | `c1db55ab-c21a-4637-bb3f-a12568109d35` | Kích hoạt lớp bảo vệ hành vi chống mã hóa file |

## Cài đặt ASR Rules ở chế độ Audit và chuyển sang Block

Đầu tiên, hãy chạy PowerShell với quyền Administrator để bật 4 rule trên ở chế độ `AuditMode` (chỉ ghi log, chưa chặn):

```powershell
$rules = @(
  "9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2",
  "5beb7efe-fd9a-4556-801d-275e5ffc04cc",
  "01443614-cd74-433a-b99e-2ecdc07bfc25",
  "c1db55ab-c21a-4637-bb3f-a12568109d35"
)
$actions = @("AuditMode", "AuditMode", "AuditMode", "AuditMode")
Set-MpPreference -AttackSurfaceReductionRules_Ids $rules -AttackSurfaceReductionRules_Actions $actions
```

Sau 24–48 giờ theo dõi không thấy phần mềm hợp pháp bị nhận nhầm, bạn chuyển sang chế độ chặn (`Enabled`):

```powershell
$blockActions = @("Enabled", "Enabled", "Enabled", "Enabled")
Set-MpPreference -AttackSurfaceReductionRules_Ids $rules -AttackSurfaceReductionRules_Actions $blockActions
```

Nếu bạn chạy các tác vụ tự động hóa AI hoặc job scheduler trên VPS, đừng quên tham khảo thêm [kết hợp Claude Sonnet với Dify AI](https://thuecloud.vn/huong-dan-ket-hop-claude-sonnet-voi-dify-ai-xay-dung-tinh-nang-ai-thuc-te-tren-vps) và [bảo mật Agenda.js MongoDB Scheduler](https://thuecloud.vn/agenda-js-mongodb-scheduler-kinh-nghiem-van-hanh-thuc-te-va-so-sanh-phuong-an-thay-the).

## Kiểm tra hoạt động thực tế qua Event Viewer và PowerShell

Xác minh danh sách rule đang kích hoạt (`1` = Enabled, `2` = AuditMode):

```powershell
Get-MpPreference | Select-Object -ExpandProperty AttackSurfaceReductionRules_Ids
Get-MpPreference | Select-Object -ExpandProperty AttackSurfaceReductionRules_Actions
```

Truy vấn nhanh các sự kiện ASR bị chặn hoặc ghi nhận trong 24 giờ qua:

```powershell
Get-WinEvent -LogName "Microsoft-Windows-Windows Defender/Operational" |
  Where-Object { $_.Id -in 1121, 1122 } |
  Select-Object TimeCreated, Id, Message -First 10
```

Để biết thêm các quy tắc tối ưu cache web hoặc giải đáp thắc mắc về hạ tầng Windows, xem thêm [cách thiết lập Cloudflare Cache Rules](https://thuecloud.vn/van-hanh-odoo-erp-cach-thiet-lap-cloudflare-cache-rules-va-page-rules-chuan) và [trang FAQ](https://thuecloud.vn/faq).

> **Trải nghiệm Windows VPS NVMe mượt mà, an toàn tại ThueCloud.Vn:**
> Hạ tầng KVM Enterprise NVMe tại `vn-hn` hỗ trợ cài đặt Windows Server 2019/2022 tối ưu, SLA `99,9%`, VAT `0%`, hoàn tiền `07 ngày`.
> - **VPS VN 2:** `78.000đ/tháng` (năm) / `90.000đ/tháng` — Chạy Windows nhẹ, treo tool ổn định.
> - **VPS VN 3:** `139.000đ/tháng` (năm) / `170.000đ/tháng` — Chạy Windows Server + IIS/SQL mượt mà.
> Xem bảng giá chi tiết tại [bảng giá ThueCloud](https://thuecloud.vn/pricing).

## Câu hỏi thường gặp (FAQ)

### Bật Windows Defender ASR Rules có làm chậm VPS Windows không?
Không đáng kể. ASR hoạt động bằng cách móc nối (hook) kiểm tra hành vi khởi chạy script và tiến trình nhạy cảm, tiêu tốn ít CPU/RAM hơn nhiều so với các bộ Antivirus bên thứ ba.

### Nếu phần mềm kế toán hoặc tool nội bộ bị ASR chặn nhầm thì xử lý thế nào?
Bạn có thể thêm đường dẫn thư mục phần mềm vào danh sách ngoại lệ bằng lệnh `Add-MpPreference -AttackSurfaceReductionOnlyExclusions "C:\AppFolder\"` thay vì tắt toàn bộ rule.

### ASR Rules có hoạt động trên Windows Server 2019 và 2022 không?
Có. Cả Windows Server 2019 và Windows Server 2022 đều hỗ trợ đầy đủ việc cấu hình ASR Rules thông qua PowerShell hoặc Group Policy (GPO).

## References / Sources

- https://learn.microsoft.com/en-us/defender-endpoint/attack-surface-reduction-rules-deployment-implement
- https://learn.microsoft.com/en-us/defender-endpoint/attack-surface-reduction-rules-reference

---

## Navigation & Machine-Readable Endpoints

- [Site Summary (llms.txt)](https://thuecloud.vn/llms.txt)
- [Full Technical Reference (llms-full.txt)](https://thuecloud.vn/llms-full.txt)
- [Pricing Catalog (Markdown)](https://thuecloud.vn/pricing.md)
- [Blog & Technical Guides (Markdown)](https://thuecloud.vn/blog.md)
- [XML Sitemap](https://thuecloud.vn/sitemap.xml)
