Security+ SY0-701 practice question 8 of 35

Which of the following can be used to compromise a system that is running an RTOS?

Full set: 923 questions
Answer options
A: Cross-site scripting
B: Memory injection Correct answer
C: Replay attack
D: Ransomware
Correct Answer:
B. Memory injection
Explanation

Real-Time Operating Systems (RTOS) are often used in resource-constrained embedded systems and are frequently developed using languages like C/C++, which are susceptible to memory management errors. Memory injection attacks, such as buffer overflows or heap overflows, exploit these vulnerabilities. An attacker can inject malicious code into a process's memory space and execute it, leading to a full system compromise. This is a direct attack on the low-level operation of the RTOS.

Why Incorrect

Cross-site scripting is a web application vulnerability and does not directly compromise the underlying operating system itself. A replay attack is a network-level attack that retransmits valid data; it exploits protocol weaknesses, not OS memory vulnerabilities. Ransomware is a type of malicious payload, whereas memory injection is the technique or vector used to deliver such a payload.

References

1. Papp

D. (2017). Hardening RTOS-based embedded systems. In Proceedings of the 2017 Workshop on Cyber-Physical Systems Security and Privacy (pp. 83-88). ACM. https://doi.org/10.1145/3140241.3140253. The paper discusses memory protection as a key defense against attacks like code injection in RTOS environments.

2. Heelan

S. (2019). Security for Real-Time Operating Systems. In: Le

D.

Le

T. (eds) Security and Privacy in Cyber-Physical Systems. EAI/Springer Innovations in Communication and Computing. Springer

Cham. https://doi.org/10.1007/978-3-030-03225-72. Chapter discusses memory protection mechanisms needed to prevent memory corruption and injection attacks in RTOS.

3. Carnegie Mellon University

Software Engineering Institute. (2022). SEI CERT C Coding Standard. Rule MEM35-C

"Allocate sufficient memory for an object

" directly addresses preventing buffer overflows

a form of memory injection common in systems programmed in C

like many RTOSs.

Question breakdown

Tests
Specialized/embedded system vulnerabilities (RTOS)
Difficulty
Medium

Key idea: RTOS platforms are typically small C/C++ codebases with minimal memory protection, making memory injection and corruption attacks the primary way to take control of them.

How to reach the answer

  1. Identify the target: an RTOS, an embedded OS used in ICS, medical, automotive and IoT devices.
  2. Recall that many RTOS lack ASLR, DEP or process isolation, and are written in memory-unsafe languages.
  3. Ask which option directly gives an attacker code execution on the OS itself: memory injection such as buffer overflows or code injection into memory.
  4. Eliminate XSS (it targets browser users), replay (it abuses protocols) and ransomware (a payload that needs a delivery vector).

Each option

  • AIncorrect. XSS runs script in a victim's browser through a web application and does not attack the RTOS kernel.
  • BCorrect. Injecting or corrupting memory, for example through buffer overflows, can hijack execution on an RTOS that has weak memory protections.
  • CIncorrect. Replaying captured traffic can trick a protocol into accepting a command but does not by itself compromise the operating system.
  • DIncorrect. Ransomware is a malware outcome that needs an initial exploit, and it is not a typical technique against resource-constrained RTOS devices.

Common trap: Ransomware is tempting because it is a well-known threat to any system, but the question asks for a method of compromise rather than a payload.

In practice: Assessments of PLCs, medical devices and automotive ECUs regularly find memory-corruption flaws, such as those in the URGENT/11 VxWorks TCP/IP stack, that allow remote code execution.

Remember: For RTOS and embedded systems, think memory injection and memory corruption as the main attack path.

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free Security+ SY0-701 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other Security+ SY0-701 practice questions

Scroll to Top