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 PT0-003 Exam - Topic 5 Question 20 Discussion

Posted by Alethea on Mar 06, 2025 at 05:09 AM

A penetration tester successfully clones a source code repository and then runs the following command:

find . -type f -exec egrep -i "token|key|login" {} \;

Which of the following is the penetration tester conducting?

Suggested Answer: B

Penetration testers search for hardcoded credentials, API keys, and authentication tokens in source code repositories to identify secrets leakage.

Secrets scanning (Option B):

The find and egrep command scans all files recursively for sensitive keywords like 'token,' 'key,' and 'login'.

Attackers use tools like TruffleHog and GitLeaks to automate secret discovery.


Incorrect options:

Option A (Data tokenization): Tokenization replaces sensitive data with unique tokens, not scanning for credentials.

Option C (Password spraying): Tries common passwords across multiple accounts, unrelated to scanning source code.

Get Premium PT0-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
34 comments · newest first
JE
Jeff 12 months ago
Not sure about that, seems more like data tokenization to me.
AM
Amie 12 months ago
Surprised they didn't find anything with that search!
JI
Jina 1 year ago
That command looks like it's searching for sensitive info.
LA
Lajuana 1 year ago
I think it's source code analysis, right?
LI
Lindsey 1 year ago
Definitely secrets scanning!
CH
Chun 1 year ago
I could be wrong, but I feel like the focus on "token" and "key" suggests it's more about secrets scanning than just general source code analysis.
ST
Stephania 1 year ago
This seems similar to a practice question we did on identifying vulnerabilities in code. I want to say it's about secrets scanning.
AN
Andree 1 year ago
I'm not entirely sure, but I remember something about source code analysis involving searching for credentials.
JU
Judy 1 year ago
I think the command is looking for sensitive information like tokens or keys, so it might be secrets scanning?
ON
Oneida 1 year ago
Ah, I see what's going on here. The penetration tester is scanning the source code for any sensitive information like tokens, keys, and login credentials. That's definitely a form of secrets scanning, so I'm going to go with option B.
QU
Quentin 1 year ago
This is a tricky one. The command is looking for specific keywords like "token", "key", and "login", which could indicate they're trying to find sensitive information. But I'm not sure if that's considered "secrets scanning" or something else. I'll have to make an educated guess on this one.
HY
Hyun 1 year ago
Okay, I think I've got this. The penetration tester is cloning the source code repository and then using a command to search for sensitive information like credentials and API keys. That sounds like they're conducting a source code analysis, so I'll go with option D.
HA
Hannah 1 year ago
Hmm, I'm a bit unsure about this one. The command is searching the source code, but I'm not sure if that's considered "secrets scanning" or something else. I'll have to think this through a bit more.
GO
Golda 1 year ago
This looks like a pretty straightforward question. The command is clearly searching for sensitive information like tokens, keys, and login credentials, so I'm going to go with option B - Secrets scanning.
PE
Pedro 1 year ago
This seems pretty straightforward to me. The penetration tester is clearly scanning the source code for any sensitive information like API keys or login credentials, so the answer has to be Secrets scanning.
LE
Leslie 1 year ago
I'm a bit confused on this one. The command seems to be searching for some kind of sensitive information, but I'm not sure if that's considered "data tokenization" or something else. I'll have to review my notes on that.
LE
Lenna 1 year ago
Okay, the key here is that the penetration tester is searching for "token|key|login" in the source code. That sounds like they're looking for sensitive information, so I'm going to go with Secrets scanning.
KE
Kenda 1 year ago
Hmm, this looks like a tricky one. I'll need to think it through carefully.
NA
Natalie 2 years ago
Secrets scanning is the way to go. I bet the tester is looking for those juicy credentials hidden in the code. Gotta keep those skeletons in the closet!
CA
Carissa 2 years ago
↳ replying to Natalie
Better keep those skeletons in the closet!
TU
Tula 2 years ago
↳ replying to Natalie
Definitely trying to find some juicy credentials.
PA
Patrick 2 years ago
↳ replying to Natalie
Looking for some hidden secrets, huh?
FR
Francesco 2 years ago
I believe it could also be source code analysis, as they are looking for sensitive information in the code.
MO
Mollie 2 years ago
Password spraying? Really? That command has nothing to do with brute-forcing passwords. I think it's clearly secrets scanning.
LE
Lennie 2 years ago
I agree with Glenna, it looks like secrets scanning to me.
MO
Monroe 2 years ago
I'd say source code analysis. The tester is examining the code for potential vulnerabilities.
ER
Erasmo 2 years ago
↳ replying to Monroe
A: Makes sense. It's important to check for any exposed secrets in the code.
JO
Jonell 2 years ago
↳ replying to Monroe
B: I agree with you. It's definitely secrets scanning to identify any security risks.
CO
Cordell 2 years ago
↳ replying to Monroe
A: I think it's secrets scanning. The tester is looking for sensitive information like tokens and keys.
BL
Blondell 2 years ago
Definitely secrets scanning. That command looks for sensitive information like tokens, keys, and logins. Good catch!
RE
Renea 2 years ago
↳ replying to Blondell
Agreed, the penetration tester is conducting secrets scanning to find any vulnerabilities.
GR
Gregoria 2 years ago
↳ replying to Blondell
It's important to check for sensitive information like tokens and keys.
CA
Carin 2 years ago
↳ replying to Blondell
Yes, that command is definitely for secrets scanning.
GL
Glenna 2 years ago
I think the penetration tester is conducting secrets scanning.
0/2000 characters

Save Cancel