exam questions

Exam CAS-005 All Questions

View all questions & answers for the CAS-005 exam

Exam CAS-005 topic 1 question 39 discussion

Actual exam question from CompTIA's CAS-005
Question #: 39
Topic #: 1
[All CAS-005 Questions]

A company is rewriting a vulnerable application and adding the mprotect() system call in multiple parts of the application's code that was being leveraged by a recent exploitation tool. Which of the following should be enabled to ensure the application can leverage the new system call against similar attacks in the future?

  • A. TPM
  • B. Secure boot
  • C. NX bit
  • D. HSM
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vicbersong
1 week, 6 days ago
Selected Answer: C
Why the other options are incorrect: A. TPM (Trusted Platform Module): Used for secure hardware-based storage and cryptographic functions, but not directly related to memory execution protection. B. Secure boot: Ensures that the OS boots using trusted software only, but doesn’t control memory execution behavior at runtime. D. HSM (Hardware Security Module): Used for secure cryptographic key storage and operations, unrelated to memory protection or application-level exploit mitigations.
upvoted 1 times
...
vicbersong
1 week, 6 days ago
Selected Answer: C
Explanation: The mprotect() system call allows a program to change the memory protection of a region of memory — for example, marking certain areas as non-executable to prevent code execution from those regions. This is a mitigation technique commonly used against buffer overflow and code injection attacks. To make this protection effective, the system must support and enforce non-executable memory regions, which is exactly what the NX bit (No eXecute bit) does. ✅ NX bit: Hardware-level feature that marks memory pages as non-executable. Helps prevent execution of code from data regions like the stack or heap. Complements the mprotect() system call to enforce memory safety.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago