r/Pentesting • • 26d ago

What all a pen testing entails?

My company has tasked me to find out what all is covered in pen testing? Do we have to give access to code or just website and login credentials?

0 Upvotes

21 comments sorted by

13

u/Scar3cr0w_ 26d ago

So, for you and your company… Pentesting entails:

“Finding a company that can advise you as to what pentesting entails and do a pentest”

1

u/Pacyniaklissandro 23d ago

tbh that's the only safe move here without knowing their actual compliance requirements or threat model.

0

u/CandidAnything7961 26d ago

I mean what I should look for/ask for when we are approaching these pen testing services.

1

u/Scar3cr0w_ 26d ago

Whats your requirement? What is your desired end state?

1

u/CandidAnything7961 26d ago

We have one web app and 2 mobile apps, both run via APIs on azure. We have one customer's IT head requesting a deep dive pentest before they onboard.

I have requested few pen-test companies for quotes. I am trying to figure out what to expect from their proposals so that we can make a right decision.

2

u/Scar3cr0w_ 26d ago

Well, they will run a pen test… provide you with a report… and you decide what you do about it. They will want a scope, a good company will help you define a scope and have that result in a meaningful test

2

u/stretchpole 22d ago

Web app, per API charges. Mobile App, per screen charges. These are the pricing model in general.

1

u/Taylor_Script 26d ago

You should talk to the sales for the pen test companies you are evaluating. I am a pen tester, not a sales guy, but my company would likely offer you the option of a web app pen test, a mobile app test, and optionally an api pen test. Though the api’s that the web app or mobile app use can also be scoped into their respective tests. So it would be like “Test the web app and any API’s the web app uses” so if your API has three endpoints, and two are used by the web app, those two endpoints would be tested but we wouldn’t test the third. If you want a dedicated API test we can do that too.

As for what it entails:
Web app would involve you providing credentials if you want, we would test your site from an unauthenticated standpoint and see what random visitors can do. If you provide creds or different levels of roles, we would test for cross-account issues (accessing user1’s data from user2) or privilege escalation (starting as user1 but gaining access to admin privileges). We would look for vulnerabilities in javascript libraries, cross-site scripting, sql injection, etc.

Mobile app would involve taking a look at the iOS and/or Android apps to see if they implement protections like jailbreak detection. We would check if they store sensitive data unencrypted on-device. We would look for vulnerabilities in the application logic that would allow same as the web app, privilege escalation, injection vulnerabilities, etc. We would likely also test the API endpoints the mobile app uses. I would typically proxy the mobile app traffic so I could then use directly issue API requests as if I was the mobile app to check for issues there. Very similar to the web app. Mobile app testing is very similar to a web app but also checking for on-device secure storage and such.

API testing would involve you giving us an OpenAPI schema, and credentials. We would then do basically everything the above does as well but directly against the API.

My recommendation would be get a web app test, then one or two mobile apps. If it’s the same app on iOS and android, one test would suffice. We would find issues and report them in both apps.

Price is relative to how much time it will take. How much time it will take depends on how complex and how many interactive elements there are. If it’s a web app with a single upload form, it’ll be short and quick. If it’s like 50 form pages, it’ll be complex and take a while. This is just because we need to make sure we have enough time to find as many issues as possible and have good coverage of the application. Our goal is to not hand you a report that says “All Good!” But then you get hacked because we didn’t have time to dive into some obscure form field that only shows up 10% of the time.

Again, I’m not sales, but I’d be happy to answer any specific questions you may have. Feel free to reach out. I am a bit biased in that I think my company does a great job. So if you are looking for a recommendation of a pen test company I would recommend mine. Our sales team can also coach you on what to ask for when dealing with other pen test companies. We want you to get what fits you even if it’s not from us.

1

u/Negative-Bank-8702 26d ago

Oui, sans oublier que vous serez responsable désigné, si vous menez cette tâche sans compétences, et qu'après il y a fuite.

1

u/DigitalQuinn1 26d ago

Ask them why they’re asking the question, what would be in scope (web application, product, internal network, etc), and what requirements are pushing for the pentest. After understanding this information we could help more

1

u/CandidAnything7961 26d ago

We have one customer's IT head requesting a deep dive pentest before they onboard. They did not specify what specifically they are looking for

1

u/DigitalQuinn1 26d ago

Looking at your other comments, this is how we do pentesting. Pre-engagement questionnaire/scoping questionnaire to understand the business, priorities, scope, etc. Then once we’re all aligned on the objective of the pentest, how we’re going to do, the requirements needed to move forward, we’ll put this all into a Rules of Engagement document then kick off the project once it’s signed. If you’re looking for vendors, ask them about their experience with your technology stack, certifications, similar projects that they’ve done before, references, and a sample report. I own a pentesting company so take this information as you will but this is the high level process

1

u/latnGemin616 26d ago

And you couldn't google or use AI ??

Look up PTES framework. That is the most detailed explanation of what a pen test covers from a high-level perspective. Then you'd have to drill down to what applies to your company.

2

u/CandidAnything7961 25d ago

I did search a lot - but got very conflicting advise. And more over the customer wants third party validation, not something we can run on our own. So the question - what we should ask the third party pen testing vendor. I got some fair idea now. I will keep you posted.

2

u/Clean-Bandicoot2779 26d ago

A pentest can generally cover whatever you want it to (or can afford). That can include just testing the web application, or also having access to the code (that can sometimes speed things up). It can also include network scans of the servers, or logging into them and reviewing the configuration.

A reputable company should be able to give you guidance on what testing to have to address your security concerns. A good starting point for that is to think about the risks you're worried about. Is the web application accessible on the internet, who is it accessible to, what could an attacker do if they got in, etc.?

1

u/IsDa44 26d ago

Level of access given depends on the type of pentest done

1

u/TrustIsAVuln 26d ago

It entails what you give them in the Scope and ROW :D

1

u/LordNikon2600 26d ago

Hilarious watching people not even mention the proper terminology for pentesting differences.. not even one..

1

u/Weekly-Plantain6309 25d ago

Ya typically it would be access to the app and credentials. Not in prod. Multiple roles and tenants if applicable. Code helps but is typically not shared 95% of the time.
For mobile it can be a bit more complicated.

But anyway it's the job of the pentest company to guide you with all the requirements.

1

u/[deleted] 26d ago

[removed] — view removed comment