Skip to content
cloudgrip

$ man penetration-testing

//Offensive testing

What is penetration testing?

A penetration test is an authorized attack on your own systems. It shows, with proof, what an intruder could really do, so you can fix it first.

  • Offensive testing
  • 4 min read
  • updated Nov 11, 2026

The short version

A penetration test, or pentest, is an attack on your own system that you have agreed to in advance. The tester looks for weaknesses and then uses them, inside agreed limits, to show what a real intruder could reach. You get back a list of proven problems, each with the steps to reproduce it and advice on how to fix it.

What penetration testing is

Penetration testing is security testing by doing. A scanner compares a system against a catalog of known problems and reports possible matches. A pentester tries to break in. That tells you what someone could achieve with a weakness, and not only that the weakness might exist.

What separates a pentest from a real attack is permission. A written scope and a set of rules of engagement say what may be tested, when, and how far the tester may go.

Tests are usually named after the target: web application, API, mobile app, network or cloud environment. They also differ in how much the tester knows at the start.

Style The tester starts with Good for
Black-box A URL and perhaps one login Seeing what an outsider sees
Grey-box Accounts for several roles, some documentation Checking that users and tenants are kept apart
White-box Source code, API specifications, architecture notes Depth, and flaws that are hard to reach from outside

How a test runs

Most tests follow the same sequence, whichever published method they use, such as the OWASP Web Security Testing Guide or NIST SP 800-115.

  1. Scope. Agree the targets, the test window, the accounts and anything that is off limits.
  2. Map. List the endpoints, inputs, user roles and login flows.
  3. Attack. Try to make the system do something it should not: read data across accounts, skip a payment step, inject a query, raise privileges.
  4. Confirm. Repeat each issue, measure what it exposes and discard anything that cannot be reproduced.
  5. Report and retest. Write up the findings, then test again once the fixes are live.

A typical attack step is simple. The tester logs in as user_a and asks for an invoice that belongs to user_b:

output
GET /api/invoices/1042 HTTP/1.1
Host: api.acme.test
Authorization: Bearer <token for user_a>

If the server returns the invoice, that is broken access control. A scanner has no signature for it, because only someone who understands the application knows that invoice 1042 is not user_a's to see.

Where traditional pentesting falls short

The classic model is a team of consultants for a week or two, once a year. That leaves gaps.

  • It is a snapshot. The report describes the version that was live during the test. A team that ships weekly is running different code a month later.
  • Time limits depth. A few days rarely covers every role, endpoint and workflow in a large application.
  • It is not a compliance guarantee. PCI DSS explicitly requires penetration testing. SOC 2 and ISO 27001 do not name it as a hard rule, but auditors commonly expect it. Either way, the auditor judges the whole control set, not one report.

Pentesting does not replace routine scanning either. See vulnerability scanning vs penetration testing.

How Cloudgrip helps

Hydra uses AI agents to attack web apps, APIs and cloud on every release, so testing keeps pace with the code. Setup is a URL and two test logins, plus an optional read-only cloud role. With read access to a repository, the agents also look for reachable vulnerabilities and leaked secrets.

Each finding is exploited, then replayed from a clean session before it is reported with the fix. Findings that don't reproduce are dropped. Ownership of targets is verified first, staging is the default, and agents stop once a flaw is confirmed. Social engineering, physical security and denial-of-service testing are out of scope, and some frameworks still expect a qualified human tester.

FAQ

How often should you run a penetration test?

Once a year and after any significant change is the usual minimum. If you release often, testing each release gives a more accurate picture.

Is a penetration test the same as a vulnerability scan?

No. A scan lists possible known issues automatically. A pentest exploits weaknesses, including logic and access control flaws that scanners miss, and proves the impact.

Does passing a pentest make a company compliant?

Not on its own. A pentest is one piece of evidence, and an auditor or assessor still decides whether your controls meet the requirement.

See what an attacker would find.

Give us a URL and two test logins. If there’s something to find, your first exploited findings land within 24 hours.

You talk to the people who build Hydra and Cerberus. No sales script.

or write to founders@cloudgrip.ai