W^X
W^X (write xor execute, pronounced W xor X) is a security policy in operating systems and software frameworks. It implements executable-space protection by ensuring every memory page (a fixed-size block in a program’s virtual address space, the memory layout it uses) is either writable or executable, but not both. Without such protection, a program can write (as data "W") CPU instructions in an area of memory intended for data and then run (as executable "X"; or read-execute "RX") those instructions. This can be dangerous if the writer of the memory is malicious. The terminology was first introduced in 2003 for Unix-like systems, but is today also used by some multi-platform systems (such... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
W^X (write xor execute, pronounced W xor X) is a security policy in operating systems and software frameworks. It implements executable-space protection by ensuring every memory page (a fixed-size block in a program’s virtual address space, the memory layout it uses) is either writable or executable, but not both. Without such protection, a program can write (as data "W") CPU instructions in an area of memory intended for data and then run (as executable "X"; or read-execute "RX") those instructions. This can be dangerous if the writer of the memory is malicious. The terminology was first introduced in 2003 for Unix-like systems, but is today also used by some multi-platform systems (such as .NET ). Other operating systems have adopted similar policies under different names (e.g., DEP in Windows). On Unix-like operating system kernels, like the Linux kernel or XNU, or those used as components in larger operating systems like FreeBSD, OpenBSD, Solaris, and the UNIX System Services of Z/OS, W^X is controlled via the mprotect system call. It is relatively simple on processor architectures supporting fine-grained page permissions, such as SPARC, x86-64, PA-RISC, Alpha, and ARM. The term W^X has also been applied to file system write/execute permissions to mitigate file write vulnerabilities (as with in memory) and attacker persistence. Enforcing restrictions on file permissions can also close gaps in W^X enforcement caused by memory mapped files. Outright forbidding the usage of arbitrary native code can also mitigate kernel and CPU vulnerabilities not exposed via the existing code on the computer. A less intrusive approach is to lock a file for the duration of any mapping into executable memory, which suffices to prevent post-inspection bypasses.
Cite this
"W^X". 1784654258. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1365332954 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy