Safeguard
Security Guides•

Where does your code go when a scanner runs? Data flow questions

Scanners run in three places: locally, in your pipeline, or in a vendor cloud. A buyer checklist of data flow questions to ask before you pilot.

Safeguard Security Team
3 min read

A scanner can run on a developer machine, inside your own pipeline, or in the vendor's cloud. Each places your source code, results and metadata in a different spot. Before a pilot, ask the vendor to draw the data flow and say, for each data type, where it is processed, stored and deleted.

Three common run locations

Where it runsCode leaves your network?Typical trade-off
Local, on a laptop or build serverUsually no, but results may be sent to a consoleEasiest to control, more to manage
In your pipelineDepends on whether results are uploadedFits existing workflow
In the vendor cloudYes, at least some dataLeast setup, most data to review

Many tools mix these. A local scan may upload only results. Ask which parts go where.

Five data types to trace

  1. Source code. Is any of it uploaded, in full or in fragments?
  2. Dependency lists. Names and versions are often needed for matching.
  3. Findings and results. Where are they stored, and who can see them?
  4. Account and usage data. Who signs in, and what activity is recorded?
  5. Logs and error reports. Could they contain code snippets or paths?

The ten questions

  1. Show me the data flow diagram for a standard scan.
  2. What is uploaded, field by field?
  3. What stays on our side?
  4. Where are uploaded data stored, by country or region?
  5. Who at the vendor can access our data, and how is that logged?
  6. How long is data kept?
  7. How do we delete it, and how do you confirm?
  8. Which subprocessors touch it?
  9. Can we run it with no upload at all, and what do we lose?
  10. What changes in the diagram when we turn on features such as automated fixes?

Write the answers down. Attach the diagram to the purchase record. If the diagram changes with a product update, ask for notice.

Public sector twists

Some public bodies have rules on where data may be stored, who may access it, or whether it may leave the country. Ask your procurement and legal teams before the pilot, since the vendor cannot answer that for you. See data residency FAQ.

Pilot design that limits exposure

  • Start with a non-sensitive repository.
  • Remove test data containing personal details first.
  • Use a service account with read only access, and revoke it after the pilot.
  • Record what the tool sent, using proxy logs if your network allows.

Seeing actual traffic beats reading a policy page. See also least privilege for a scanner pilot.

Try it yourself

Click through it at your own pace, or open it full screen. Look at what the result contains: file paths and line references show what a result can reveal about your code.

Safeguard also offers a free scan at gold.safeguard.sh/scan, and its Desktop app and CLI are listed on the download page.

Quick check

Is a local scan always private?

Not always. Ask whether results, usage data or error reports are sent to a console.

What is the best evidence of what a tool sends?

Network logs from a pilot, compared against the vendor's written data flow.

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.