Glossary

What is black-box and white-box testing?

Black-box and white-box testing. Black-box testing gives the tester only the running app, as a real attacker would have it. White-box testing also gives the source code. Labs care which one an environment trains, because the skills are different.

General information, not legal advice.


What it means

In black-box testing the tester gets a running system and nothing else, the way an outside attacker would. They probe inputs, read responses and infer how the system works.

In white-box testing the tester also gets the source code, configuration and sometimes design notes. They can read the logic directly and look for flaws line by line. Grey-box testing sits between the two, with partial knowledge such as a user account or an API description.


Why it matters in a data deal

Security environments sold to AI labs train a specific skill, and the two styles train different ones. A black-box environment teaches a model to explore and guess; a white-box one teaches it to read code and spot weaknesses.

A seller describes which style each environment uses, because a lab building a code review assistant and a lab building an attack simulator want different material.


An example

A security firm packages twenty past engagements as environments. For eight web apps it ships only the running app and a scoring script: black-box. For twelve it adds the code repository: white-box. The lab picks the white-box set to train its code review model.


Questions to ask


Related terms

Red team
A group that plays the attacker to find weaknesses before a real attacker does. For AI, red teaming also means testing a model to see how it can be pushed into harmful or wrong behavior.
Exploit chain
A series of steps that together take an attacker from the outside of a system to a goal, such as reading data they should not reach. In a security environment each step can be scored on its own.
CWE
Common Weakness Enumeration: a public numbered list of kinds of software weakness, such as injection flaws or missing access checks. Security environments often say which entries they cover, so a lab can see what they train.
Reinforcement learning (RL) environment
A practice setting where an AI attempts a task, gets a score and tries again. Labs build them from real business workflows: the task, the grader and the recorded attempts.

Previous: Benchmark contamination | Next: Broker fee

Contact usAll terms