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 questionsReal-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.
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.
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
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
- Identify the target: an RTOS, an embedded OS used in ICS, medical, automotive and IoT devices.
- Recall that many RTOS lack ASLR, DEP or process isolation, and are written in memory-unsafe languages.
- Ask which option directly gives an attacker code execution on the OS itself: memory injection such as buffer overflows or code injection into memory.
- Eliminate XSS (it targets browser users), replay (it abuses protocols) and ransomware (a payload that needs a delivery vector).
Each option
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.
More questions
Other Security+ SY0-701 practice questions
- Question 1A company purchased cyber insurance to address items listed on the risk register. Which o…
- Question 2Which of the following is a compensating control for providing user access to a high-risk…
- Question 4Which of the following would be the greatest concern for a company that is aware of the c…
- Question 6A company's website is www. Company. com Attackers purchased the domain wwww. company.com…
- Question 7Which of the following cryptographic solutions protects data at rest?
- Question 9Which of the following data protection strategies can be used to confirm file integrity?
