BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA CV0-004 Exam - Topic 6 Question 23 Discussion

Posted by Erasmo on Sep 14, 2024 at 11:10 AM

A security engineer Identifies a vulnerability m a containerized application. The vulnerability can be exploited by a privileged process to read tie content of the host's memory. The security engineer reviews the following Dockerfile to determine a solution to mitigate similar exploits:

Which of the following is the best solution to prevent similar exploits by privileged processes?

Suggested Answer: A

The output from the 'ps' command indicates there is a process running under the UID (User ID) of 0, which is the root user, and the command that was run is '/var/www/command.py'. Given that the normal Apache processes are running under their own UID (65535), this suggests that a command was executed with root privileges that typically should not have such high-level access. This is a strong indicator of privilege escalation, where an unauthorized user or process gains elevated access to resources that are normally protected from an application or user. Reference: CompTIA Cloud+ Certification Study Guide (Exam CV0-004) by Scott Wilson and Eric Vanderburg


Get Premium CV0-004 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
36 comments · newest first
AL
Alita 12 months ago
Wow, didn't realize privileged processes could access host memory like that!
FE
Felicia 1 year ago
Running with a read-only filesystem sounds risky.
NO
Noble 1 year ago
Changing to alpine:latest? Not sure that helps much.
TR
Trinidad 1 year ago
I think patching the host is more important.
JE
Jeannine 1 year ago
Adding the USER myappuser instruction is a solid move.
JO
Joni 1 year ago
I think running the container with a read-only filesystem could be a strong defense. It might prevent any unauthorized access to the host's memory, but I need to double-check that.
LA
Laura 1 year ago
Changing the base image to alpine:latest sounds familiar, but I can't recall if that really mitigates privilege issues. It seems more about keeping the image updated.
BO
Bong 1 year ago
I'm not entirely sure, but I think patching the host could help too. It might not directly address the container's privileges, though.
SA
Sabina 1 year ago
I remember we discussed the importance of running containers as non-root users to limit privileges. So, option A seems like a good choice.
VA
Vallie 1 year ago
I'm pretty confident that running the container with the read-only filesystem configuration is the way to go here. That should effectively block the privileged process from accessing the host's memory.
DE
Denny 1 year ago
Okay, I think I've got this. The key is to prevent the privileged process from being able to read the host's memory. Adding the USER myappuser instruction seems like the best way to do that.
SH
Shawnna 1 year ago
Hmm, I'm a bit confused by the question. I'll need to make sure I understand the vulnerability and the different options before selecting an answer.
CL
Clarence 1 year ago
This looks like a tricky question. I'll need to carefully review the Dockerfile and think through the potential solutions.
LA
Laurel 1 year ago
I'm feeling pretty confident about this one. The key is to remove the Defenders DaemonSet and then use Cloud Discovery to automatically redeploy them with the new version.
LE
Leatha 2 years ago
You know, I heard about this one guy who tried to hack a container by reading the host's memory. Bet he felt pretty silly when he realized the container was running with a read-only filesystem!
RA
Rasheeda 2 years ago
Ha! Trying to run as a different user? That's like putting a bandaid on a broken leg. Option D is definitely the way to go.
BE
Bernardine 1 year ago
↳ replying to Rasheeda
User 4: Patching the host might not be enough, option D seems more secure.
GR
Gracia 1 year ago
↳ replying to Rasheeda
User 3: Changing the base image won't fix the vulnerability.
TO
Toi 1 year ago
↳ replying to Rasheeda
User 2: Agreed, option D with read-only filesystem is the best solution.
AR
Arthur 1 year ago
↳ replying to Rasheeda
User 1: Running as a different user won't help much.
CH
Chau 2 years ago
Changing the base image might help, but it's not a complete solution. I agree with option D - the read-only filesystem should be the way to go.
IN
Inocencia 1 year ago
↳ replying to Chau
Patching the host running the Docker daemon might be a good idea as well to ensure overall security.
JO
Jose 2 years ago
↳ replying to Chau
I think adding the USER myappuserinstruction could also help limit the privileges of the containerized application.
AN
Annette 2 years ago
↳ replying to Chau
Option D is definitely the best choice. A read-only filesystem would prevent any unauthorized access to the host's memory.
MA
Marlon 2 years ago
Patching the host is a good idea, but it may not be enough to prevent similar exploits. I'd go with option D as well.
DA
Dalene 1 year ago
↳ replying to Marlon
It's important to consider all options before making a decision, but option D does seem like a strong choice.
MA
Maryanne 2 years ago
↳ replying to Marlon
I agree, running the container with a read-only filesystem configuration can help mitigate the vulnerability.
VA
Valda 2 years ago
↳ replying to Marlon
Option D seems like the best solution to prevent similar exploits.
IR
Iraida 2 years ago
Hmm, the key seems to be limiting the privileges of the running container. I think option D is the best solution here.
CA
Casey 2 years ago
↳ replying to Iraida
Changing the base image to the latest version might also address potential vulnerabilities.
RE
Reita 2 years ago
↳ replying to Iraida
Patching the host running the Docker daemon could also help enhance security.
BE
Bernardo 2 years ago
↳ replying to Iraida
I think running the container with a read-only filesystem is a good way to prevent exploits.
GE
Geraldine 2 years ago
↳ replying to Iraida
I agree, limiting the privileges of the container is crucial.
KA
Karan 2 years ago
But wouldn't changing FROM alpine:3.17 to FROM alpine:latest also help prevent similar exploits?
CO
Corrina 2 years ago
I disagree, I believe patching the host running the Docker daemon is the best solution.
KA
Karan 2 years ago
I think the best solution is adding the USER myappuser instruction.
0/2000 characters

Save Cancel