CompTIA Security+ (SY0-701) — Question 454
Which of the following is an example of memory injection?
Answer options
- A. Two processes access the same variable, allowing one to cause a privilege escalation.
- B. A process receives an unexpected amount of data, which causes malicious code to be executed.
- C. Malicious code is copied to the allocated space of an already running process.
- D. An executable is overwritten on the disk, and malicious code runs the next time it is executed.
Correct answer: C
Explanation
The correct answer, C, describes how malicious code is inserted into the memory space of a running process, which is the essence of memory injection. Option A concerns privilege escalation through shared variables, option B addresses buffer overflow leading to code execution, and option D refers to a disk-based infection method, none of which directly illustrate memory injection.