Exam CAS-004 All QuestionsBrowse all questions from this exam
Question 356

A security team is concerned with attacks that are taking advantage of return-oriented programming against the company's public facing applications. Which of the following should the company implement on the public-facing servers?

    Correct Answer: B

    Address Space Layout Randomization (ASLR) is a security technique that randomizes the memory addresses used by processes, making it difficult for attackers to predict the location of specific functions or buffers. This protection hinders return-oriented programming (ROP) attacks, which rely on knowing the exact addresses of instructions. By randomizing these locations, ASLR significantly complicates the attacker's task of chaining together instruction sequences to exploit a system. Hence, implementing ASLR is an effective measure to mitigate ROP attacks.

Discussion
hheerreessjjoohhnnyyOption: B

According to Intel, the answer is ASLR (B). "Areas of strength for ROP attacks includes the ability to circumvent data execution prevention (NX)"... meaning C is not the correct answer. See page 8 at link below. "Existing solutions to ROP attacks include Address Space Layout Randomization: ASLR is the state-of-the-art protection against ROP attacks." See page 9 at link below. https://www.intel.com/content/dam/develop/external/us/en/documents/catc17-anti-rop-moving-target-defense-844137.pdf

32d799aOption: B

While it is beneficial to have a WAF for any public-facing application, it doesn't directly defend against ROP attacks. B. ASLR (Address Space Layout Randomization): ASLR randomizes the memory addresses used by processes, making it more difficult for an attacker to predict the location of specific functions or buffers. This makes exploitation, including ROP attacks, harder to accomplish because the attacker cannot predict where the necessary gadgets (fragments of code useful in ROP) will be in memory.

nuel_12Option: B

To prevent or mitigate an attack on return-oriented programming, there are several techniques that can be used, such as: Address space layout randomization (ASLR): This technique randomizes the base addresses of the code, data, stack, and heap segments, making it harder for the attacker to predict the location of the gadgets and the payload amongst all the possible solution the is no C(no-execute), so the answer is B

Ariel235788Option: C

C. NX (No-Execute) or DEP (Data Execution Prevention). Explanation: NX (No-Execute) or DEP (Data Execution Prevention) is a security feature that helps prevent buffer overflow attacks, including those using return-oriented programming (ROP). NX marks certain areas of memory as non-executable, so even if an attacker attempts to execute malicious code injected into a buffer, the operating system will prevent it from running in non-executable memory regions.

b49eb27Option: B

my problem with NX is that it prevents execution all together. an ROP could redirect data to a register that is not normally used for specific kinds of data, an attacker could redirect it to that register. NX just keeps it from executing, not stopping others from executing on a buffer overflow. ASLR is not in and of itself directly good for preventing ROP, but it's better than NX. My source is based of off working with assembly language and working with registers

ElDirecOption: B

The company should implement B. ASLR (Address Space Layout Randomization) on the public-facing servers. ASLR is a security technique used in operating systems to prevent exploitation of memory corruption vulnerabilities. It randomly arranges the address space positions of key data areas of a process, which makes it difficult for an attacker to predict target addresses. This can help protect against return-oriented programming attacks, which rely on knowing the exact addresses of instructions in memory. While the other options (WAF, NX, HSM) can provide some level of security, they do not directly address the issue of return-oriented programming attacks. Remember, it’s crucial to have a robust security infrastructure in place to protect against potential threats. Regular security reviews and audits are also a good practice to identify and mitigate potential security issues.

joinedatthehopOption: B

Address space layout randomization (ASLR) – This technique was the first kind of defense mechanisms proposed to defend against ROP.

OdinAtlasSteel

No, the most appropriate solution for mitigating attacks that take advantage of return-oriented programming (ROP) against public-facing applications is not B. ASLR (Address Space Layout Randomization). ASLR is a security feature that randomizes the memory addresses used by system and application components, making it more difficult for attackers to predict the location of specific functions or code gadgets. While ASLR is a valuable defense mechanism, it may not directly address the ROP technique. The more direct and relevant solution for preventing the exploitation of return-oriented programming is C. NX (No eXecute), also known as Data Execution Prevention (DEP). NX prevents code execution in certain areas of memory, making it harder for attackers to execute malicious code, including ROP chains. So, in the context of preventing ROP attacks, the recommended solution is NX/DEP.

23169fdOption: B

Purpose: ASLR is a security technique used to randomize the memory addresses used by system and application processes. By randomizing the location of code and data in memory, ASLR makes it significantly more difficult for attackers to predict the location of specific functions and exploit them using return-oriented programming (ROP). Effectiveness: ASLR increases the complexity of exploiting memory corruption vulnerabilities by making it harder for attackers to execute reliable ROP chain

armidOption: B

In order to increase the security level of the operating system, Microsoft has implemented several mitigation mechanisms, such as DEP and ASLR. Data Execution Prevention (DEP) is a security feature that prohibits the application from executing code from non-executable memory area. To exploit a vulnerability, an attacker must find a executable memory region and be able to fill it with necessary data (e.g., shellcode instructions). Generally, achieving this goal using old exploitation techniques is made significantly more difficult with the addition of the DEP mechanism. As a result, attackers improved upon the classic “return-into-libc” technique and started using return-oriented programming (ROP) [3, 7] to bypass Data Execution Prevention.

armid

Techniques like ROP are still based on the attacker understanding memory layout characteristics, leading Microsoft to implement Address Space Layout Randomization (ASLR) as a countermeasure. ASLR renders the layout of an application’s address space less predictable because it relocates the base addresses of executable modules and other memory mappings. In order to bypass DEP protection mechanism ROP technique was introduced.

armid

given that DEP works in conjunction with NX bit, I think NX bit is technically the "more" accurate answer. But this question once again is about mind reading of the examiner. Could be both B and C.

armid

Apologies, i misread the article. So according to the last sentence in my first post, DEP is bypassable by ROP, thus ASLR was implemented to make the process of bypassing DEP harder. So I will go wtih B. ASLR

HappyGOption: C

ASLR and NX (No eXecute) are both important security features, but NX (DEP) is more directly relevant to preventing the exploitation of return-oriented programming (ROP) attacks. NX prevents code execution in specific memory regions marked as non-executable, thereby thwarting attempts to execute malicious code injected into these areas, including ROP chains. Therefore, the more direct and relevant solution for preventing ROP exploitation is: C. NX (No eXecute)