Skip to content

Glossary

What is black-box testing?

In black-box testing, security experts examine your systems without any insider knowledge – just like an external attacker. This shows what is visible and vulnerable from the outside.

Black-box testing in plain English

The term “black box” comes from engineering: it refers to a closed box whose inner workings you can’t see. You only see what goes in and what comes out. For a black-box test as part of a penetration test, this means the testing team knows neither the network diagrams nor the source code nor any credentials. Often, it receives only a company name, a web address, or a range of IP addresses – the “house numbers” of your systems on the internet.

An analogy: you hire someone to test how well your office building is protected against break-ins, and you give them only the address. No floor plan, no key, no hint about the alarm system. They have to find out for themselves where the doors and windows are and which of them give way.

The opposite is white-box testing, in which the testing team receives comprehensive information. In between lies gray-box testing, in which the team is deliberately given some information, such as test accounts.

How black-box testing works

A black-box test follows the phases of a real attack – except that it is authorized, documented, and kept within the agreed limits:

  1. Set the ground rules: Even without technical background information, the test needs clear rules. Which targets may be tested, when, and with which methods? This is defined by the scope.
  2. Gather information: The testing team researches public sources (OSINT) and scans the systems. Which servers, services, and applications are reachable? What software is running on them, and in which version?
  3. Look for vulnerabilities: The entry points identified are examined with tools and, above all, manually.
  4. Exploit and prove: Where agreed, the testing team demonstrates in a controlled way that a vulnerability can actually be exploited and what an attacker could achieve with it.
  5. Document: All findings go into the report, together with a rating and remediation recommendations.

In its implementation concept for penetration tests (“Durchführungskonzept für Penetrationstests”), the BSI – Germany’s Federal Office for Information Security – likewise classifies tests by, among other criteria, how much information the testing team has in advance.

A practical example

A family-owned food company wants to know what an outsider without insider knowledge could reach via the internet. The testing team receives only the company name and the main domain. During its research, it comes across a remote maintenance portal that a service provider set up years ago and that no one at the company had on their radar anymore. The software there is outdated and contains a known vulnerability.

The test makes it strikingly clear how real the danger is: the portal was visible to anyone on the internet. At the same time, a limitation becomes apparent. The password-protected ordering area for major customers remains untested because the testing team has no credentials. For the next test, the company therefore opts for gray-box testing with test accounts.

Why does this matter for businesses?

A black-box test answers a question that worries many executives: what can an outsider see and reach if they’re deliberately looking for a way into our company? It makes the externally visible attack surface tangible – including forgotten systems that don’t appear in any documentation.

However, the method has its limits:

  • Time: A real attacker can take as much time as they like; a pentest has a fixed time budget. Part of it goes into gathering information rather than the actual testing.
  • Depth: Without credentials, areas behind a login often remain untested. Yet that’s often exactly where dangerous flaws hide, for example in permissions.
  • False sense of security: If a black-box test finds nothing, that doesn’t mean there’s nothing to find. An attacker with stolen credentials starts from a completely different position.

What to keep in mind

  • Clarify the goal: Do you want to simulate an outsider’s view or find as many vulnerabilities as possible? For the latter, gray-box or white-box testing is usually more efficient.
  • Define the scope carefully: Even in a black-box test, it must be clear which systems may be tested. For systems that third parties operate for you, such as hosting or cloud providers, you need to clarify whether and how testing is allowed.
  • Combine approaches: A black-box part for the external view, supplemented by a gray-box part with test accounts, often combines realism and testing depth.
  • Designate a point of contact: Decide who can be reached during the test – for example, if a critical vulnerability turns up or a system behaves unusually.
  • Interpret the results correctly: Read the report as a snapshot of the external view, not as proof of comprehensive security.

How Rootsektor can help

Black box, gray box, or white box: during scoping, we discuss with you which approach suits your goals, and we combine the variants if needed. You’ll find an overview of our services under Penetration Testing. After scoping, you’ll receive a fixed-price quote within 24 hours (on business days), and the retest of remediated vulnerabilities is free of charge. You can submit your request via our Pentest Quote page.

Which testing approach is right for you?

We’ll advise you on whether black-box, gray-box, or white-box testing best answers your questions – with no obligation and with a fixed-price quote after scoping.

Request a pentest quote