QA Interview Hub · Knowledge base · Quizzes · Українська

Penetration Testing › Pentest basics

Pentest, vulnerability scan, red team: what is the difference

A vulnerability scan automatically looks for known vulnerabilities, while a pentest is an authorised simulated attack with manual exploitation. A pentest proves the real impact, whereas a scan gives many false positives. A red team is a longer operation with a concrete goal that also checks whether the defending team notices and stops the attack, so scanner output does not replace a pentest.

A team says: "We run a scanner every month, so we do not need a pentest". That mixes up two different things. The terms worth telling apart:

  • Vulnerability scan — an automatic search for known vulnerabilities and bad settings. Fast and cheap, but with many false positives;
  • Vulnerability assessment — a scan plus analysis of the results and priorities, not necessarily with exploitation;
  • Penetration test — an authorized simulated attack: people with tools and manual analysis exploit weaknesses to prove the real impact;
  • Red team — a longer operation with a concrete goal (reach certain data) and stealthy actions; it also checks whether the defending team (blue team) notices and stops the attack;
  • Bug bounty — a programme where independent researchers are rewarded for confirmed findings within the scope;
  • BAS (breach and attack simulation) — platforms that regularly replay known attack techniques and show where defences do not see them.

By how much is known about the system: black box (nothing, like an outside attacker), grey box (partly: test accounts, API documentation), white box (everything: code, architecture). Grey box is a common compromise: more effective than black box and faster than white box.

Example. A scanner reports "possible IDOR" in /orders/{id}. A pentester logs in with two accounts, substitutes another user's id and shows that any order can be read. The confirmation and the description of the impact are what a scanner does not give.

Common mistakes: passing scanner output off as a pentest report; trusting red "Critical" labels without checking; ordering a red team where basic findings are still open.

Short interview answer: "A scanner automatically lists potential vulnerabilities, a pentest adds manual analysis and proves the impact by exploitation, and a red team also tests detection and response".

More articles in this chapter