nerdexam
CompTIA

PT0-001 · Question #204

The SELinux and AppArmor security frameworks include enforcement rules that attempt to prevent which of the following attacks?

The correct answer is B. Sandbox escape. SELinux and AppArmor are mandatory access control frameworks that confine processes to strictly defined security policies, directly mitigating sandbox escape attacks.

Vulnerability discovery and analysis

Question

The SELinux and AppArmor security frameworks include enforcement rules that attempt to prevent which of the following attacks?

Options

  • ALateral movement
  • BSandbox escape
  • CCross-site request forgery (CSRF)
  • DCross-site- scripting (XSS)

How the community answered

(26 responses)
  • A
    15% (4)
  • B
    73% (19)
  • C
    8% (2)
  • D
    4% (1)

Why each option

SELinux and AppArmor are mandatory access control frameworks that confine processes to strictly defined security policies, directly mitigating sandbox escape attacks.

ALateral movement

Lateral movement is primarily addressed by network segmentation and credential controls, not by OS-level process confinement frameworks.

BSandbox escapeCorrect

SELinux and AppArmor enforce kernel-level mandatory access control by labeling processes and resources and restricting what each process can access, even if it is compromised. This containment model is specifically designed to prevent a process from breaking out of its confined execution context - the definition of a sandbox escape - by denying unauthorized system calls, file access, and inter-process communication.

CCross-site request forgery (CSRF)

CSRF is a web application attack mitigated by anti-forgery tokens and same-site cookie policies, operating at the HTTP layer, not the OS MAC layer.

DCross-site- scripting (XSS)

XSS is a client-side web vulnerability mitigated by output encoding and Content Security Policy headers, which are outside the scope of kernel-enforced MAC frameworks.

Concept tested: Mandatory access control frameworks preventing sandbox escape

Source: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/using_selinux/index

Topics

#SELinux#AppArmor#sandbox escape#mandatory access control

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice