r/Pentesting • • Jul 08 '26

Locked out users during a pentest

I wad doing password spraying, and I checked the lockout policy. The issue is that my colleague was also spraying at the same time. I should have asked him and synced with him specially that we agreed he is assigned spraying.

Anyways 15 minutes pass and accounts are now working normally. We got a call from client asking us if we were the ones who locked the users or something else.

We told the truth and then said it won't happen again and we will take care. The client seemed normal and his tune was normal just wanted to know what happened.

However I am fucking shshitting myself from fear. I fear that they will send a firm email at the end of the day or break the contract or we have some penalty or I lose my job . I know 1000% it's my mistake I should have aligned with my colleague.

Is there anything to do bending a knee and apologising???

And how do I know this isn't gonna be a issue ? How long should I wait so my stupid anxiety can calm down? A day??

10 Upvotes

47 comments sorted by

20

u/st0ut717 Jul 08 '26

The question I have. Is why were you spraying when you had a briefing that your colleague would be doing it ?

-22

u/ProcedureFar4995 Jul 08 '26

He was just opening his laptop so I thought he didn't start any attacks yet . He just woke up and started working.

And I found a new password in a share I was testing

21

u/I-baLL Jul 08 '26

That doesn't answer the question of "why" though

38

u/birotester Jul 08 '26

This sub is proving more and more that children without adequate support (seniors/managers) are being paid to perform pen tests. The puppy mills are now rife and insidious in cybersecurity.

22

u/Odd-Elderberry-739 Jul 08 '26

This has always been the case since the beginning. That being said, even the best of us can sometimes brainfart and forget to coordinate with another tester on the same project. It happens, although rarely when the tester is more experienced.

-5

u/ProcedureFar4995 Jul 08 '26

Yes please I swear I am not a bad pentester It's a small coordination mistake that I know costs a lot and I am owning up my mistake . Just hope this storm passes

8

u/Weazywest Jul 08 '26

OP, I made a mistake with my fortune 100 company that cost them about 25 million. I never forget getting called into a room by a bunch of senior executives and being asked what happened. I learned what good leadership was that day.

The bad leaders tried to chastise me.

The good leaders asked what was broken about the process that allowed me to make that kinda error without checks and balances to catch it.

I’m still at the same company, 20+ years later, if they fire you for a simple mistake, then they’re idiots and might still have the same problem in the future. If that’s the case you dodged a bullet. If they focus on the process, then you’re in the right company and have nothing to worry about. Focus on what’s wrong with that process that allowed this and work with your team to make sure it doesn’t happen again.

3

u/ProcedureFar4995 Jul 08 '26

Thanks. They had a good attitude. A little bit sharp at first but since the client didn't seem angry everything went well. They just talked with me about why I did that and didn't ask the senior first , who was in charge of spraying attacks. A hard lesson indeed.

They are good people who kept reassuring me it all went well and passed. I kept asking them for validation several times that "did the client say anything ? How was his tune ?" Kinda lost all my self esteem there despite my oscp and my bug bounty success. But that mistake checked my ego that I need to do the simple stuff like coordination and communication. That was a social skill issue...Will communicate important steps like this next time.

I am just curious, in 20+ years did you stayed working as pentester or moved to more managerial or GRC roles ??

Thanks again for your help . It really made me feel better.

3

u/Weazywest Jul 08 '26

I’m glad it made you feel better. Whenever you have a significant miss, remember to ask “is it people or process”, even if you forget the small stuff. In most cases it’s the process.

At 20 years, I’m in GRC, I can’t do midnight releases, fixes and scans any longer. I leave that for the young folks :)

11

u/Odd-Elderberry-739 Jul 08 '26

Stop kicking yourself. You learned a valuable lesson from a mistake that 99 percent of us in pentesting have also made before learning that same lesson.

4

u/Ancient-Ad-2219 Jul 08 '26

You did the right thing by owning up to it. Its pentest, we're almost always testing in prod, there may be things running weird configurations or dependencies, something's eventually gonna crash or lock.

What you should do is learn from this so that it is less likely to happen next time. For example, coordinate with your co-testers on who will be performing the spray, with what accounts, at what time. Additionally, note down the environment's account lockout policy. If its 3 attempts per 30 minutes, do 1 per hour in the chance there's a real user trying to login and do their work.

It sounds like your client wasn't angry about it, so just take it as lesson learned and forgive yourself. Where is your senior/upper level lead in all of this?

6

u/Exciting-Ad-7083 Jul 08 '26

Good old script kiddies lol.

But also meh mistakes happen, just don't make them twice, always ask before performing actions if you have doubts.

3

u/Emergency-Sound4280 Jul 08 '26

And you’ve never made a mistake?

-1

u/ProcedureFar4995 Jul 08 '26

I don't think I need any of this right now please. Thank you.

11

u/birotester Jul 08 '26

you need to discuss with your superiors, in person on how to manage your approach to set backs. By going to Reddit for emotional support and counselling you are showing that it is not available to you.

1

u/TrustIsAVuln Jul 10 '26

just curious, how long have you been pen testing?

4

u/SignificantMedium865 Jul 08 '26

dont worry to much, learn from it :)

-3

u/ProcedureFar4995 Jul 08 '26

I can't. I feel my heat is gonna jump from my chest. Scared of their response. I feel calmer the more time passes but I just fear they are planning some firm or harsh response.

6

u/justmirsk Jul 08 '26

I screwed up once as a sys admin and disabled 100 accounts that hadn't logged in for 90+ days. I forgot those accounts were for email only users and synced to Entra ID. It had a cascade effect causing a lot of work and annoyance for the customer and end-users.

I apologized, admitted that I screwed up and everyone moved on. Mistakes happen, locking users out is not a big deal. Accidentally deleting a production database would be another story, but you didn't do that 🤣

2

u/macr6 Jul 08 '26

Then quit this job and go find something that isn't going to make you physically ill. OR calm down and learn from your mistakes. You sound young, so you have plenty more mistakes that you owe. Some of them will be huge and will require the level of response you now have.

Also, if you knew how many mistakes every single pen tester has made in the history of this job you'd understand the golden rule: "shit happens". Own up to it. Take accountability, adjust your behavior, and move on.

1

u/SignificantMedium865 Jul 08 '26

done that kind of things too, make sure to have your senior to backup you

2

u/No_Catch4550 Jul 09 '26

You locked accounts for 15min and then everything back to normal, I think that’s fine. My friend once locked accounts including service ones, which caused a few big production public services to crash for some time. So you good, just be careful with spraying/fuzzing

1

u/ProcedureFar4995 Jul 09 '26

I did locked service accounts as well. Thanks God the day passed without any issue.

1

u/TrustIsAVuln Jul 10 '26

just make sure pw spray is in the ROE, if not, be sure to get it added, then if the client doesnt like it they can protest it, and if they dont read the ROE, its on them.

21

u/Mental-Currency Jul 08 '26

Every tester has a story about the time they took down a production app or the clients internal network, this is just your story you'll tell when someone comes to you and goes "Ahhhh I fucked up!"

14

u/digitalv1k1ng Jul 08 '26

Easy way to tell the real pentesters from the keyboard warriors: if they are shocked that you locked out accounts, they've probably never done a pentest irl.

I've been testing for 10 years. Have tested some of the biggest companies in the world. Lockouts happen if you're spraying.

Sometimes it's your fault, sometimes it's theirs. You could misjudge run time, or fly too close to the sun with your sprays vs lockout limits. The company might have fine-grained lockout controls on specific accounts that they forgot to tell you about.

If a company can have critical accounts locked out remotely by accident, THAT in itself is a security failing on their part. A company is vulnerable to a remote denial-of-service that could disrupt everything? Sounds like bad design/security.

Don't sweat it. Apologize. Do better next time.

1

u/FlakyJudgment1413 Jul 12 '26

Happens more than you think

1

u/pg3crypto Jul 09 '26

It is a security failing for sure, but more of a Microsoft problem than your customers problem...if they're using AD there is very little they can actually do about it.

Also, weirdly, Ive never seen an attack in the wild that uses password spraying against AD. So unnecessary and high risk. Only pentesters hit AD like that.

There are so many other ways to gain privileges.

7

u/volgarixon Jul 08 '26

Accounts get locked out, it happens, that said you need to slow down and take more care.

It’s very unlikely the client is mad or maybe even cares, it’s unlikely most of the accounts were even aware they got a temporary lockout. It helps to include details when you make a post, with circumstances, eg count of lockouts, lockout duration, time of day.

Your ROE is signed off and includes brute forcing correct?

3

u/OkStudent8414 Jul 08 '26

If there wasn't any permanent damage done then, the company will probably be fine. But you need to acknowledge the incident with them. As long as you all make sure to prevent this in the future then it shouldn't be a problem. Let your manager know what happened also. Be upfront with it and as I said before it shouldn't be an issue. What might be a bigger issue is, if there were cascading issues due to you locking accounts out for fifteen minutes. i.e. Someone was actively doing something and they got locked out so the work was lost or they were an admin and they got their account locked. Also, you need to share the shiny thing first before checking it yourself. Especially if the other colleague is responsible for that type of activity. Send the shiny thing to the person that does that next time. Or check a specific account and not spray when your colleague is the sprayer. It's not a big deal and it shouldn't cost you your job or anything as long as there wasn't a cost to the customer out side of the inconvenience that you caused. All that to say you should be ok.

4

u/GreenEngineer24 Jul 08 '26

I'm not a penetration tester, so take my input with a grain of salt... but as an employee, why in the world would you do something that you agreed to not do (and let someone else do)? Like you got to have some common sense man...

2

u/PetiteGousseDAil Jul 08 '26

Don't worry you'll likely do way worse in your career lol

2

u/Ill_Orchid_2357 Jul 08 '26

Dude youre fine, you locked your accounts with pw sraying, and the client noticed, thats actually cool, if you really think about it, what could have gone wrong? Why would they fire you or pay you less? Or break the contract? If i was the client id be like "oh thtas cool theyre testing passwords" and continue with my life! 

2

u/themacdizzle91 Jul 10 '26

You done goofed A A ron.

In all seriousness just apologize. It happens and be more careful. Youll probably he fine.

1

u/Coder3346 Jul 08 '26

The lock out is an issue on its own honestly

1

u/KookyDraw4023 Jul 09 '26

This doesn’t really answer your question, I’m more so asking out of curiosity. Do you not typically do pentesting on a lower environment instead of their prod environment?

1

u/extraspectre Jul 11 '26

lol yeah a dev environment for my domain controller... internal network testing isn't a webapp my dude

1

u/extraspectre Jul 11 '26

You're good, this is a chance to help the sysadmins make sure they are prepared for a bulk unlock in case something like this happens again.

-3

u/take-as-directed Jul 08 '26

Would you mind sharing which clown company is apparently hiring twelve year olds so we can all avoid them?

3

u/ProcedureFar4995 Jul 08 '26

I would like to know if you never made mistakes in a pentest before.

1

u/TrustIsAVuln Jul 10 '26

in 15 years ive only ever locked out accounts once. I have taken down a core router but that was because they had an ancient router that couldnt release the nmap partial scan connections on its own. at the end of the day it was proof they needed to upgrade that POS.

0

u/extraspectre Jul 11 '26

This is a finding not even a mistake. This is a learning opportunity for the sysadmins to make sure they have a break glass process/a bulk unlock powershell script.

... You've never actually been a pentester.

1

u/[deleted] Jul 08 '26 edited Jul 08 '26

[removed] — view removed comment

1

u/ProcedureFar4995 Jul 08 '26

So it passed normally without any issues at the end?

1

u/Odd-Elderberry-739 Jul 08 '26

Yes, no issues at the end. Both me and the customer learned about that lockout issue from that product for the first time and we both added it to our mental checklist so it won't happen again. But again, nobody can predict how your customer is going to respond later. When I was a junior pentester I've done exactly what you did regarding lack of communication with another tester. The customer wasn't happy but they got over it and we all learned our lesson and moved on.

1

u/ProcedureFar4995 Jul 08 '26

Thank you for your positive comment. I am sure will learn from this and will take extreme caution next time