Definition: A penetration test, or pentest, is an authorised, controlled attack on IT systems, networks or applications. Specialists use the methods of real attackers to find weaknesses and show what damage they could cause. The result is a report with rated findings and concrete recommendations for fixing them.
What is a penetration test?
Firewalls, updates and policies are meant to stop attacks. Whether they really do so together only becomes clear when someone tries. That is what a penetration test does: it checks security in practice, not on paper.
Unlike criminals, pentesters work under a written contract and within a defined scope. They document every step, cause no damage and stop when a test could endanger operations. They exploit the gaps they find only as far as needed to prove the impact, and then report them.
A penetration test is a snapshot. It shows the state at the time of the test. New software, new configurations and new attack methods can open new gaps afterwards. That is why tests belong in a fixed rhythm.
Pentest, vulnerability scan and red teaming
The three terms are often mixed up. They describe different kinds of assessment:
- Vulnerability scan: a program checks systems automatically against a database of known flaws. It is fast and suits regular checks. It does not find errors in business logic, permissions or workflows. See vulnerability scanning.
- Penetration test: people test with intent, verify scanner results, chain individual weaknesses into attack paths and rate the real impact. Scope and duration are set in advance.
- Red teaming: a team simulates a real attacker over weeks with a concrete goal, such as access to certain data. Technology, social engineering and physical access can be combined. The defenders usually do not know. See red team vs. blue team.
In practice, the three build on each other: scans run regularly, pentests go deep at fixed intervals, red teaming tests detection and response across the whole company.
Types of penetration tests
Pentests can be grouped by what is tested and by how much the testers know in advance.
By target
- External network pentest: checks everything reachable from the internet, such as firewalls, VPN gateways, mail servers and public services.
- Internal network pentest: assumes an attacker who is already inside the company network, for example through an infected laptop. It covers Active Directory, file servers, permissions and network segmentation.
- Web application pentest: examines websites, portals and shops for flaws such as SQL injection, cross-site scripting or broken access control. It is usually based on the OWASP Top 10 and the OWASP Web Security Testing Guide.
- API pentest: checks the interfaces through which applications and partners exchange data. Typical errors are missing authorisation checks and too much data in responses.
- Mobile app pentest: examines iOS and Android apps together with the servers behind them.
- Cloud pentest: checks configurations and permissions in cloud environments, such as open storage, overly broad roles or unprotected admin access.
- Wireless pentest: tests Wi-Fi networks for weak encryption, poor separation of guest and corporate networks and rogue access points.
- Social engineering test: tests the human factor, for example with phishing emails or phone calls. See phishing.
By what the testers know
- Black box: the testers only know which systems they may test. This matches the view of an external attacker but costs time for reconnaissance.
- Grey box: the testers receive some information, such as test accounts or an architecture overview. This is the most common approach because it balances depth and effort.
- White box: the testers get full insight, such as source code, configurations and admin access. This also uncovers deeply buried flaws.
The German Federal Office for Information Security (BSI) describes further criteria in its practical guide to IT security penetration tests, such as aggressiveness, scope and approach. They help to plan a test that matches the protection needs.
How a penetration test works
- Preparation: client and provider agree on goal, scope, test windows, contacts and emergency numbers. The written contract defines which systems may be tested and which may not.
- Reconnaissance: the testers gather information about the targets, such as reachable services, software in use and versions. They use open sources and active scans.
- Vulnerability analysis: automated scans and manual checks produce a list of possible gaps. The testers verify each finding and remove false positives.
- Exploitation: the testers exploit the gaps in a controlled way to prove the impact. This includes whether one system can be used to take over others.
- Report: each finding is documented with a risk rating, evidence and a recommendation. A management summary puts the results in context.
- Retest: after remediation, the testers check whether the gaps are really closed. Only then is the test complete.
Reputable providers report critical findings, such as an open admin interface, immediately rather than in the final report.
Pentests and compliance
Several frameworks require companies to check that their security measures work. A penetration test is a recognised way to prove it:
- ISO 27001: requires management of technical vulnerabilities and security testing in development. Pentest reports serve as evidence in the audit.
- NIS2: calls for procedures to assess the effectiveness of risk management measures. Regular tests demonstrate this.
- TISAX: the automotive industry's assessment catalogue also asks for technical security testing.
- DORA: for financial entities, the EU regulation prescribes regular testing and, for certain institutions, threat-led penetration testing.
Public tenders and customer audits increasingly ask for a recent pentest report.
Legal basis
Without permission, accessing and altering other people's data is a criminal offence. In Germany this is covered in particular by Sections 202a to 202c and 303a to 303b of the Criminal Code. A penetration test is therefore only lawful with a written order from the system owner. This order sets out scope, time frame, permitted methods and how any data found is handled.
If a service provider runs parts of your systems, such as a cloud provider or hosting company, their consent is usually needed too. The processing of personal data during the test should be covered by a data processing agreement.
What to check before you commission a pentest
- Clear scope: which systems, which times, which methods? Too narrow a scope misses gaps, too wide a scope spreads the effort thin.
- Manual testing: ask how much of the test is done by hand. A report that only contains scanner output is not a pentest.
- Methodology: reputable providers follow recognised standards such as the OWASP Testing Guide, the Penetration Testing Execution Standard (PTES) or the BSI guide.
- Qualifications: certifications such as OSCP or comparable credentials, plus references from similar projects.
- A readable report: technical detail for IT, a summary for management, clear priorities.
- Retest included: without a retest you do not know whether the fix worked.
- Confidentiality: a non-disclosure agreement, secure delivery of the report and deletion of test data once the job is done.
Typical pentest findings
Many tests keep turning up the same weaknesses:
- Outdated software with known flaws because patch management does not cover every system.
- Default or weak passwords on admin interfaces and services.
- Excessive permissions in Active Directory that open the path to domain admin.
- No network segmentation, so an infected device can reach the whole network.
- Web applications without effective access control, where users can view other people's data.
- No multi-factor authentication on externally reachable services such as VPN or webmail.
Penetration tests at SecTepe
SecTepe runs penetration tests for networks, web applications, APIs and cloud environments. Testing is done by hand according to recognised standards, the report contains evidence and prioritised recommendations, and a retest is part of the service. If you want your systems tested continuously rather than once a year, Pentest as a Service is the option.
Conclusion
A penetration test shows whether your security measures hold up against a real attack. It adds human experience and creativity to automated scans and gives you solid evidence for audits and customers. What matters is a clear mandate, manual depth, a readable report and the retest.
FAQ about Penetration Test
What is a penetration test in simple terms?
In a penetration test, hired specialists attack your IT the way criminals would. The difference: they have your permission, stay within an agreed scope, demonstrate every gap in a controlled way and report it instead of abusing it. The result is a report with findings and recommendations.
What is the difference between a pentest and a vulnerability scan?
A vulnerability scan is automated. A program checks systems against a list of known flaws. A penetration test goes further: people verify the results, chain weaknesses together and look for errors in logic and permissions that no scanner can find.
How long does a penetration test take?
It depends on the scope. Testing a single web application often takes a few days. Testing a whole corporate network, inside and out, can take several weeks. Add time for preparation, the report and the retest.
How often should you run a pentest?
Many companies test once a year and after major changes, such as a new portal or a move to the cloud. For critical systems or frequent releases, shorter intervals or continuous testing make sense.
Is a penetration test legal?
Yes, if the owner of the systems has commissioned it in writing. Without authorisation, breaking into other people's systems is a criminal offence in most countries, in Germany for example under Section 202a of the Criminal Code. That is why client and provider define in advance exactly which systems may be tested.
How much does a penetration test cost?
The price depends on the scope, the complexity of the systems and the depth of the test. Reputable providers quote a fixed effort in person-days after an initial call. A quote with no details on scope and method is a warning sign.
More terms in “Penetration Testing”
- Brute-Force Attack
- Bug Bounty
- Credential Stuffing
- Ethical Hacking
- Gold Teaming
- Mobile Application Security Testing
- Pass-the-Hash Attack Simulation
- Password Spraying
- Physical Penetration Testing
- Purple Teaming
- Red Team Assessments
- Red Team vs. Blue Team