TOPIC 15/1920 MINNOT STARTED

Scanning an API with an open-source security scanner on a safe target

Learn to point a free scanner such as ZAP at the Daily List test API with its API description, tell quiet checks from active ones, and read the alerts with care.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a floor plan and a practice building. A fire inspector gets the floor plan of a building. She walks to every door on the plan and checks it. She also stands at the windows and looks in without touching anything.

Then she tries the handles. That can move a chair or set off an alarm. So she does this only in a practice building that her team owns, never in a building where people are working.

Daily List is a to-do list app. It has a test copy of its application programming interface, or . That is the set of requests that the app and other programs send each other. Tom, the tester, wants to run a free security scanner on it.

The scanner reads the floor plan, which is a definition describing known API operations. The map can omit routes or be out of date. Passive rules analyse observed messages, while discovery still sends requests. Then, only on the test copy, it tries each address with test requests. Mei, the test lead, sets the rules before it starts.

The picture has a limit. A building inspector knows the rules for a safe building. A scanner works with configured rules, inputs and available context. It does not automatically know every intended business permission or demonstrate complete coverage.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PLAIN WORDS · 3 in this section
omit
leave out
configured
set up with chosen settings
demonstrate
show clearly

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Running a free scanner on a test copy of an , starting quiet, going active only with permission, and reading the alerts with care.

  1. Write the scope
  2. Load the definition
  3. Run the quiet pass
  4. Run the active pass
  5. Review the alerts
From scope to alerts

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The floor plan of the buildingThe API definition file
Looking through windows without touchingThe passive scan
Trying the door handlesThe active scan
The practice building the team ownsThe safe scan target
The inspector's written permissionThe written scope

WHERE THIS PICTURE STOPS

  • A building inspector knows the safety rules. A scanner knows only a fixed list of problems.
  • A practice building is truly separate. A test site can still share a server with something else.
  • A floor plan is drawn once. An API definition file goes out of date as the app changes.

HOOK

Read the plan, look first, try handles only in the practice building.

REMEMBER IT THIS WAY

A sequence: the real steps, in order.

Read the file, scan passively, then try handles, only on a target the team owns and with .

What each part of the trick stands for
In the trickWhat it stands for
Floor plan of the buildingThe API definition file
Looking through windows without touchingThe passive scan
Trying the door handlesThe active scan
Practice building the team ownsThe safe scan target

TELL A FRIEND

I give the scanner the plan of the and let it look first without touching. I try the handles only on a practice copy that we own, with permission in writing.

OFTEN MIXED UP WITH Security testing practice, within authorised scope. That lesson explains what a scan finds and what a finds. This lesson shows how to run one free scanner on an , safely.

Sources & standards — 5 sources
  1. Implementation-specific

    API Scan (ZAP Docker documentation) ↗ — ZAP project · Actual API Scan operator options/defaults/return values: OpenAPI/SOAP/GraphQL, context/user/server/schema,-S, uppercase-J and0/1/2/3; rechecked6 November2026.

    Describes the packaged API scan script in the ZAP Docker images: it imports an OpenAPI, SOAP or GraphQL definition and then runs an active scan tuned for APIs on the URLs it finds. Check the page for current options before pinning a pipeline. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Actual API Scan operator page rechecked: OpenAPI/SOAP/GraphQL, active scan default, context/user/host/schema options,-S, reports and0/1/2/3 returns. Alerts default WARN; record actual image/add-on/configuration.

  2. Implementation-specific

    Baseline Scan (ZAP Docker documentation) ↗ — ZAP project · Actual baseline operator body: timed spider plus passive rules, no active scan; discovery still produces requests; read6 November2026.

    Describes the packaged baseline script: it crawls the target for a short time, waits for passive scanning to finish and does not launch attacks. The page says it is meant for use in automated build pipelines, even against production sites. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  3. Implementation-specific

    Modes (ZAP desktop documentation) ↗ — ZAP project · Actual Safe/Protected/Standard/ATTACK modes; scope restricts listed actions, not all network egress; read6 November2026.

    Explains the Safe mode, which blocks potentially dangerous actions, and the Protected mode, which allows them only on URLs that are in scope. The page recommends Protected mode so only the intended site is attacked. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Actual Modes body read: Safe, Protected, Standard and ATTACK; list of restricted actions, scope and persisted mode. Scope is not a network isolation mechanism.

  4. Market practice

    Broken Object Level Authorization, the first risk in the 2023 Open Worldwide Application Security Project API Security Top 10 ↗ — Open Worldwide Application Security Project (OWASP) · Actual2023 permission for action/object and identifier/authentication limits; business-specific checks need explicit users and policy; read6 November2026.

    API1:2023 Broken Object Level Authorization: permission for the requested action on the requested object. Identifier format, authentication and matching a session user ID alone do not establish that permission. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2023 edition. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Read actual API1:2023 body6November2026: definition, examples and prevention. Use its authorisation term to resolve the GraphQL sheet typo; do not equate every access to another owner's intentionally shared object with a vulnerability.

  5. Market practice

    Technical Guide to Information Security Testing and Assessment (National Institute of Standards and Technology Special Publication 800-115) ↗ — National Institute of Standards and Technology · Actual September2008 assessment-plan/ROE authorisation, limits, contacts, stop conditions and evidence handling; reviewed6 November2026.

    Free US government guide to planning and running technical security tests, analysing findings and planning fixes. It says it is not a full testing programme. It stresses planning and organisational support. The phase names were not confirmed from the text. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: September 2008. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Actual September2008PDF assessment-plan/ROE, authorisation/logistics/stop-resume handling§6.5, legal/privacy§6.6 and data collection/storage§7.4.1–7.4.2 read. Historical technical recommendations remain edition-scoped.

PRACTISE AND KEEP

Sources for this topic — 11 sources
  1. Implementation-specific

    API Scan (ZAP Docker documentation) ↗ — ZAP project · Actual API Scan operator options/defaults/return values: OpenAPI/SOAP/GraphQL, context/user/server/schema,-S, uppercase-J and0/1/2/3; rechecked6 November2026.

    Describes the packaged API scan script in the ZAP Docker images: it imports an OpenAPI, SOAP or GraphQL definition and then runs an active scan tuned for APIs on the URLs it finds. Check the page for current options before pinning a pipeline. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Actual API Scan operator page rechecked: OpenAPI/SOAP/GraphQL, active scan default, context/user/host/schema options,-S, reports and0/1/2/3 returns. Alerts default WARN; record actual image/add-on/configuration.

  2. Implementation-specific

    Baseline Scan (ZAP Docker documentation) ↗ — ZAP project · Actual baseline operator body: timed spider plus passive rules, no active scan; discovery still produces requests; read6 November2026.

    Describes the packaged baseline script: it crawls the target for a short time, waits for passive scanning to finish and does not launch attacks. The page says it is meant for use in automated build pipelines, even against production sites. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  3. Market practice

    Is there any danger when scanning with ZAP against a live website? (ZAP FAQ) ↗ — ZAP project · Active scanning can create, change or delete data, so use a test environment (search excerpt, page not opened)

    FAQ answer saying that active scanning can create, change or delete data on the target, so it should be run against a test environment rather than a live site. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

  4. Market practice

    Active Scan (Zed Attack Proxy documentation) ↗ — ZAP project · The active scan uses known attacks against the chosen targets and can change data; a scan policy sets which rules run (registry entry, search excerpt, page not opened)

    Says the active scan tries to find weaknesses by using known attacks against the chosen targets, warns that it can create, change or delete data, and says a scan policy sets which rules run. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  5. Market practice

    Passive Scan (Zed Attack Proxy documentation) ↗ — ZAP project · The passive scan reads the traffic that passes through and does not change the responses (search excerpt, page not opened)

    Says passive scanning is done on messages that pass through the proxy, does not change them and is safe to use, and suits issues such as missing security headers. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  6. Implementation-specific

    Modes (ZAP desktop documentation) ↗ — ZAP project · Actual Safe/Protected/Standard/ATTACK modes; scope restricts listed actions, not all network egress; read6 November2026.

    Explains the Safe mode, which blocks potentially dangerous actions, and the Protected mode, which allows them only on URLs that are in scope. The page recommends Protected mode so only the intended site is attacked. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Actual Modes body read: Safe, Protected, Standard and ATTACK; list of restricted actions, scope and persisted mode. Scope is not a network isolation mechanism.

  7. Market practice

    OpenAPI automation job (ZAP documentation) ↗ — ZAP project · An import job can load an API definition from a file or a web address, into a named context and as a named user (search excerpt, page not opened)

    Describes an automation job that imports an OpenAPI definition from a file or a web address, optionally into a named context and as a named user. Older add-on pages; check current parameter names. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  8. Market practice

    Broken Object Level Authorization, the first risk in the 2023 Open Worldwide Application Security Project API Security Top 10 ↗ — Open Worldwide Application Security Project (OWASP) · Actual2023 permission for action/object and identifier/authentication limits; business-specific checks need explicit users and policy; read6 November2026.

    API1:2023 Broken Object Level Authorization: permission for the requested action on the requested object. Identifier format, authentication and matching a session user ID alone do not establish that permission. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: 2023 edition. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Read actual API1:2023 body6November2026: definition, examples and prevention. Use its authorisation term to resolve the GraphQL sheet typo; do not equate every access to another owner's intentionally shared object with a vulnerability.

  9. Market practice

    Juice Shop (OWASP Developer Guide, vulnerable apps) ↗ — Open Worldwide Application Security Project · Presents Juice Shop as an insecure application meant for safe practice (registry entry, search excerpt, page not opened)

    Describes Juice Shop as a deliberately insecure web app for training. It covers the Open Worldwide Application Security Project (OWASP) Top 10 and other flaws, and is easy to run in a container. It advises not to put real data in it. It also advises not to put it where it could be taken for a real service. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  10. Market practice

    How do I handle a False Positive? (ZAP FAQ) ↗ — ZAP (Checkmarx) · ZAP FAQ: test by hand first; set confidence to False Positive in the desktop UI or use Alert Filters when automating; raise a rule's threshold to cut noise. Search excerpt, page not opened.

    Understand and test by hand first; set alert confidence to False Positive or use Alert Filters; raise a scan rule threshold to reduce noise. · Checked 2026-10-19

    Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  11. Market practice

    Technical Guide to Information Security Testing and Assessment (National Institute of Standards and Technology Special Publication 800-115) ↗ — National Institute of Standards and Technology · Actual September2008 assessment-plan/ROE authorisation, limits, contacts, stop conditions and evidence handling; reviewed6 November2026.

    Free US government guide to planning and running technical security tests, analysing findings and planning fixes. It says it is not a full testing programme. It stresses planning and organisational support. The phase names were not confirmed from the text. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: September 2008. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    V34 review, 6 November 2026: Actual September2008PDF assessment-plan/ROE, authorisation/logistics/stop-resume handling§6.5, legal/privacy§6.6 and data collection/storage§7.4.1–7.4.2 read. Historical technical recommendations remain edition-scoped.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.