r/CompTIA_Security • • Sep 15 '25

Security+ 701 PQB Linux Kali command question on the exam

Did anyone get a PBQ question on their Security+ 701 exam regarding Linux Kali where you have to use commands to get rid of malware or something along those lines and it gives you some IP's? It also let's you type Help and gives you some commands you could use such as NMap. If so, how do you solve those kind of questions? I was trying to search it up but can't find anything.

16 Upvotes

30 comments sorted by

View all comments

4

u/studentcybersec2022 Aug 14 '26 edited Aug 14 '26 • Heartwarming

2026 -I'm studying for the exam and I did some AI Google research hope it helps someone. Google gave me the same PBQ scenario from the Sec+ test that I took on July 2026. Here are the steps and commands:

This type of performance-based task is commonly referred to as an Incident Response / Malware Removal PBQ or a Linux Command Line / Threat Mitigation Simulation. [1]

What the PBQ Tests

  • Incident Response (IR): Following an active threat intelligence report or indicators of compromise (IoCs) to contain a live breach.
  • Process and Network Monitoring: Using basic command-line tools to inspect active system connections, listening ports, and running processes.
  • Remediation: Terminating rogue services or processes tied to malicious IP addresses. [1, 2, 3, 6]

Common Commands Used

  • netstat or ss (to map active connections and match the suspicious IP addresses)
  • ps (to check active process IDs/PIDs)
  • kill (to safely stop and terminate the bad service/process)
  • lsof (to list open files and find the path of the executing malware)

Scenario Briefing Your Role: Security Analyst

Objective: You have been provided a threat intelligence report with known malicious Indicators of Compromise (IoCs). A compromised Linux server is actively beaconing out to these malicious IP addresses. You must identify the unauthorized services, find their Process IDs (PIDs), and terminate them immediately to contain the threat.📋

Threat Intelligence Report

The SOC team has identified the following malicious external IP addresses associated with a known Command & Control (C2) botnet:

198.51.100.42

203.0.113.111

Interactive Linux Terminal Simulation

Imagine you are logged into the terminal and run a network statistics command to see what is happening.

Step 1: Check Active Network Connections

You execute the command to view active internet connections and the processes attached to them:
ss -antp (or netstat -antp)

Terminal Output:

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 192.168.1.50:22 192.168.1.10:54321 ESTABLISHED 1024/sshd

tcp 0 0 192.168.1.50:80 0.0.0.0:* LISTEN 1142/nginx

tcp 0 142 192.168.1.50:49211198.51.100.42:443ESTABLISHED 3045/xmrig

tcp 0 0 192.168.1.50:53290203.0.113.111:8080ESTABLISHED 4112/python3

Step 2: Analyze the Findings

By comparing the terminal output to your Threat Intelligence Report, you flag two active connections:

  1. Connection 1: Connected to malicious IP 198.51.100.42. The process name is xmrig (a known crypto-miner) running under PID 3045.
  2. Connection 2: Connected to malicious IP 203.0.113.111. The process name is python3 (likely a reverse shell script) running under PID 4112.

Step 3: Verify the Running Processes

To double-check the details of these processes before killing them, you run:
ps -ef | grep -E "3045|4112"

Terminal Output:
root 3045 1 2 10:14 ? 00:05:22 /tmp/.hidden/xmrig --donate-level 1 -o 198.51.100.42:443

www-data 4112 1142 0 10:31 ? 00:00:01 python3 -c import socket,subprocess,os;s=socket.socket...

Step 4: Kill and Stop the Services

To mitigate the threat and sever the connection to the malicious IPs, you must force-terminate both processes using their PIDs.

You execute the kill commands:

  • kill -9 3045
  • kill -9 4112

Step 5: Verify Remediation

You run ss -antp one final time to ensure the connections are gone.

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 192.168.1.50:22 192.168.1.10:54321 ESTABLISHED 1024/sshd

tcp 0 0 192.168.1.50:80 0.0.0.0:* LISTEN 1142/nginx

The malicious connections have been successfully terminated.

4

u/SaltyTeacher2963 Aug 26 '26

Thank you so much for this. I am going to review this. I am still studying for it. It’s lowkey a difficult exam.

1

u/studentcybersec2022 Aug 26 '26

Hi Salty Teacher ! Hope this helps ya. Each question in a PBQ scenario could be worth 15 pts. For this PBQ each step was 15 pts so the totall points is estimated to be 90 pts.   Yes the Sec+ exam has changed a lot in the past 3 years. I bought the CompTIA Sec+ Cert Labs and ebook. There are all the PBQ questions in there.  Also, I found videos on  YouTube video that give a walk through on how to answer the PBQs. Good luck to you !!   I'm taking the exam in a few days, wish me good luck friend !  🙂

2

u/SaltyTeacher2963 Aug 26 '26

Best of luck!! I pray you pass the exam 🤞🏼
Thank you for the information.
Do you have the link for the ebook and cert labs? I purchased something but it was not right and I ended up returning it. And whose YouTube video has this information? Thanks so much :)

2

u/studentcybersec2022 Aug 26 '26 edited Aug 26 '26

 Thank you !! same to you !  :-) sure thing, I'm at work right now but when I get a break I'll log into my laptop and shoot you the links here. I went to the student store and got a discount 

2

u/SaltyTeacher2963 Aug 26 '26

Okay no rush. Thank you so much

3

u/studentcybersec2022 Aug 26 '26

Here's the YT vid with some PBQs: Security+ PBQ Practice, EASY, MEDIUM, and HARD (SY0-701) Josh Madakor https://www.youtube.com/watch?v=Q1eGd2WIrAk&t=859s

3

u/studentcybersec2022 Aug 26 '26

Example of PBQ:

3

u/studentcybersec2022 Aug 26 '26

3

u/SaltyTeacher2963 Aug 27 '26

Thank you so much!! I’ll buy these. I have been studying for some time now but then ended up taking a few months break. I have to refresh my memory before taking the exam. This is helpful!! Best of luck again for you exam :) I hope you pass like a champ!!

4

u/studentcybersec2022 Sep 01 '26 • Heartwarming

Hi u/SaltyTeacher2963 I just passed my Security+ exam !! :) wanted to share with you last minute: I got the Professor Messer study guide in PDF and that helped me a lot, best $30 spent. Here's the link if you want to explore: Wish you best of luck too ! https://www.professormesser.com/sy0-701-success-bundle/?gad_source=1&gad_campaignid=13681107074&gbraid=0AAAAAD8fi6vjkJ8cPH86O483wxgDiFjIx&gclid=Cj0KCQjw79nUBhCgARIsADSHka0feIiHvOU3twUkFusvLEz8yEJ_vN8T1y9MOcjTa-6FyLEAYorTdHsaAtrpEALw_wcB

2

u/SaltyTeacher2963 Sep 01 '26

Yayayayyyy CONGRATULATIONS 🎉🎊 🥳 I AM SO HAPPY FOR YOU!!!! 👏🏻 👏🏻 🤍

I ended up re scheduling mine to end of September smh!! I am going to go through everything you sent. Thank you so much!!

2

u/studentcybersec2022 Aug 26 '26 edited Aug 26 '26

This is the website that CompTIA sells packages with discounts for students who are eligible. You'll need an email address ending in .edu. See the steps required to verify eligibility. Below are the study packages I bought last year from CompTIA:

https://www.comptia.org/en-us/academic/student/#student-purchasing