nerdexam
CompTIA

SY0-701 · Question #634

Which of the following is an example of memory injection?

The correct answer is C. Malicious code is copied to the allocated space of an already running process. Memory injection is defined as inserting malicious code directly into the allocated memory space of an already-running process, allowing it to execute under that process's privileges and context - exactly what option C describes. A is wrong - two processes sharing a variable…

Submitted by fernanda_arg· Mar 6, 2026Threats, vulnerabilities, and mitigations

Question

Which of the following is an example of memory injection?

Options

  • ATwo processes access the same variable, allowing one to cause a privilege escalation.
  • BA process receives an unexpected amount of data, which causes malicious code to be executed.
  • CMalicious code is copied to the allocated space of an already running process.
  • DAn executable is overwritten on the disk, and malicious code runs the next time it is executed.

How the community answered

(52 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    88% (46)
  • D
    6% (3)

Explanation

Memory injection is defined as inserting malicious code directly into the allocated memory space of an already-running process, allowing it to execute under that process's privileges and context - exactly what option C describes.

  • A is wrong - two processes sharing a variable that enables privilege escalation describes a race condition or shared-memory exploitation, not injection.
  • B is wrong - receiving unexpected data that causes code execution is a buffer overflow, a distinct attack class from injection.
  • D is wrong - overwriting an executable on disk is file/binary tampering; it requires a relaunch and is disk-based, not memory-based.

Memory tip: Focus on the two key words - memory (it happens in RAM, not on disk) and injection (code is pushed into a live process, not triggered by bad input). If the attack targets a running process's address space directly, that's memory injection.

Topics

#Memory Injection#Code Injection#Attack Techniques#Malware

Community Discussion

No community discussion yet for this question.

Full SY0-701 Practice