Certified Ethical Hacker (CEH v10) — Question 27
What mechanism in Windows prevents a user from accidentally executing a potentially malicious batch (.bat) or PowerShell (.ps1) script?
Answer options
- A. User Access Control (UAC)
- B. Data Execution Prevention (DEP)
- C. Address Space Layout Randomization (ASLR)
- D. Windows firewall
Correct answer: B
Explanation
Data Execution Prevention (DEP) is designed to prevent code execution from non-executable memory regions, which helps block potentially harmful scripts from running. User Access Control (UAC) primarily focuses on prompting for permission before allowing changes to the system, while Address Space Layout Randomization (ASLR) mitigates memory exploitation attacks, and Windows Firewall is used for network security rather than script execution prevention.