ทำไม Microsoft Office จึงแสดงคำเตือนความปลอดภัย?
Office มีกลไก Protected View และ Mark of the Web (MotW) เพื่อปกป้องผู้ใช้จากไฟล์ที่ดาวน์โหลดมาจากอินเทอร์เน็ต หรืออยู่ในโซนไม่ไว้ใจ (Untrusted Zone) เช่น ไฟล์จากเว็บไซต์, อีเมลแนบ, SharePoint/OneDrive ภายนอก, Network Share ที่ไม่ได้ Trust ซึ่งอาจมี Macro, ActiveX, หรือ Exploit ซ่อนอยู่
วิธีปิด/ปรับแต่งการแจ้งเตือน (ต่อผู้ใช้รายบุคคล - User Level)
1. ปิด Protected View สำหรับโซนเฉพาะ (แนะนำ: ปรับแต่ง ไม่ปิดทั้งหมด)
- เปิดแอป Office ใดๆ (Word, Excel, PowerPoint) → File > Options > Trust Center
- คลิก Trust Center Settings...
- เลือก Protected View ด้านซ้าย
- ยกเลิกติ๊ก โซนที่ต้องการปิด (แนะนำ: ยกเลิก Enable Protected View for files originating from the Internet และ Enable Protected View for files located in potentially unsafe locations เท่านั้น)
- คลิก OK สองครั้ง
2. เพิ่มโฟลเดอร์/เว็บไซต์/Network Path ให้เป็น Trusted Locations
- ใน Trust Center Settings → เลือก Trusted Locations
- คลิก Add new location...
- Path: ใส่ Path ของ Network Share (เช่น
\\Server\Share\Folder) หรือ Local Folder - ติ๊ก Subfolders of this location are also trusted (ถ้าต้องการ)
- ติ๊ก Allow Trusted Locations on my network (not recommended) ถ้าเป็น Network Path
- คลิก OK
ข้อดี: ไฟล์ใน Location นี้จะเปิดเต็มรูปแบบ (Enable Editing, Macros) โดยไม่มี Protected View
3. ปิดการแจ้งเตือน Message Bar (แถบสีเหลือง/แดงด้านบน)
- Trust Center Settings > Message Bar
- เลือก Never show information about blocked content (ไม่แนะนำ - จะไม่รู้ว่ามี Macro/ActiveX ถูกบล็อก)
- หรือเลือก Show the Message Bar in all applications when active content... has been blocked (ค่าเริ่มต้น)
4. ปรับการตั้งค่า Macro Security
- Trust Center Settings > Macro Settings
- ตัวเลือก (แนะนำลำดับล่างสุด):
- Disable all macros without notification (ปลอดภัยที่สุด - ไม่รัน Macro ใดๆ)
- Disable all macros with notification (ค่าเริ่มต้น - แสดง Message Bar ให้เลือก Enable Content)
- Disable all macros except digitally signed macros (รันเฉพาะ Macro ที่มี Digital Signature จาก CA ที่ไว้ใจ)
- Enable all macros (not recommended; potentially dangerous code can run) ไม่แนะนำเลย
- ติ๊ก Trust access to the VBA project object model เฉพาะถ้าจำเป็นสำหรับ Add-ins/Automation
วิธีจัดการระดับองค์กร (Enterprise/Group Policy - แนะนำสำหรับ IT Admin)
ใช้ Group Policy (GPO) หรือ Intune/MDM เพื่อกระจายการตั้งค่าให้เครื่องทุกเครื่องอย่างสม่ำเสมอ
Office Administrative Template (ADMX/ADML) Settings Path:
User Configuration (or Computer Configuration)
└ Administrative Templates
└ Microsoft Office 2016/2019/365 (เครื่องมือ Office version)
└ Trust Center
├ Protected View
│ ├ Turn off Protected View for files originating from the Internet
│ ├ Turn off Protected View for files located in potentially unsafe locations
│ ├ Turn off Protected View for Outlook attachments
│ └ Turn on Protected View for files in Trusted Locations
├ Trusted Locations
│ ├ Allow trusted locations on my network
│ ├ Allow trusted locations on my computer
│ └ Set trusted locations (Path, Subfolders, Description)
├ Message Bar
│ └ Turn off the Message Bar
└ Macro Settings
├ Disable all macros without notification
├ Disable all macros with notification
└ Enable all macros (Not Recommended)
Internet Explorer / Edge Zone Mapping (สำหรับ MotW - Mark of the Web)
User Configuration
└ Administrative Templates
└ Windows Components
└ Internet Explorer / Microsoft Edge
└ Internet Control Panel
└ Security Page
└ Site to Zone Assignment List
(เพิ่ม Site/Domain ลงใน Trusted Sites Zone = 2 หรือ Intranet Zone = 1)
Value: https://sharepoint.company.com 2
Value: https://intranet.company.com 1
เมื่อไฟล์มาจาก Zone 1 (Intranet) หรือ 2 (Trusted Sites) จะไม่ได้รับ MotW และไม่เข้าสู่ Protected View อัตโนมัติ
กรณีเฉพาะ: "Microsoft Office has identified a potential security concern" (Hyperlink/External Content Warning)
- Trust Center Settings > External Content
- เลือก Enable all Data Connections (not recommended) หรือ Prompt user about Data Connections
- สำหรับ Hyperlink Warning: Trust Center Settings > Privacy Options → ยกเลิกติ๊ก Check Microsoft Office documents that are from or link to suspicious Web sites (Office 2016+)
⚠️ คำเตือนสำคัญ (Security Warning)
- ไฟล์จากอินเทอร์เน็ต/อีเมลอาจมี Exploit (CVE-2021-40444, CVE-2022-30190 Follina, Equation Editor Exploits)
- Macro Malware (Emotet, TrickBot, QakBot) ยังคงแพร่ระบาดผ่าน Office Docs
- แนะนำ: ใช้ Trusted Locations / Zone Mapping แทนการปิด Protected View ทั้งระบบ
- หากต้องปิดชั่วคราวเพื่อทดสอบ ให้เปิดกลับทันทีหลังเสร็จ
สรุปแนวทางที่แนะนำ (Recommended Approach)
- ผู้ใช้ทั่วไป: ไม่ควรปิด Protected View ให้คลิก Enable Editing / Enable Content บน Message Bar เมื่อไว้ใจแหล่งที่มา
- Power User/Developer: เพิ่ม Trusted Locations สำหรับโฟลเดอร์ทำงานเฉพาะ (Local/Network)
- IT Admin (องค์กร): Deploy GPO/Intune: Trusted Locations + Zone Mapping (Intranet/Trusted Sites) + Macro Settings (Disable with Notification / Signed Only) ห้ามปิด Protected View ทั้งระบบ
- Macro/ActiveX ที่จำเป็น: ใช้ Digital Signature (Code Signing Cert) และนำ Certificate เข้า Trusted Publishers Store
สรุป
การแจ้งเตือนความปลอดภัยของ Office เป็นชั้นป้องกันสำคัญ (Defense in Depth) ควร จัดการผ่าน Trusted Locations และ Zone Mapping แทนการปิดการป้องกันทั้งหมด สำหรับองค์กร ให้ใช้ Group Policy/Intune กำหนดค่ามาตรฐานพร้อมแยกนโยบายตามบทบาท (Role-based) และบังคับ Digital Signature สำหรับ Macro/Add-ins ที่อนุมัติ