Safeguard
Security Guides•

Does an AppSec scanner send your source code to the vendor?

It depends on the architecture: local scan, metadata only, or full upload. How to find out what leaves your network before you sign, with a data table.

Safeguard Security Team
3 min read

Sometimes, and it depends on the architecture. Some scanners run entirely on your machines and send nothing. Some send manifests or metadata. Some upload source to a hosted service. You cannot tell from the product category, so ask for a data flow, in writing, before the pilot starts.

The three common models

ModelWhat leaves your environmentTypical fit
Local scan, no uploadNothing, or only licence and usage dataStrict data rules, air gapped teams
Metadata or manifest uploadPackage names, versions, file hashes, finding summariesDependency and SBOM scanning
Source upload to hosted serviceSource files or diffsHosted static analysis, AI review

Dependency scanning is usually in the middle group, because a lockfile lists packages rather than your logic. Code analysis is more likely to need file contents, though many tools can run it locally.

What to ask, in order

  1. Which files or fields are read for each scan type?
  2. Which of those are transmitted, and where is the processing region?
  3. Is anything stored after the scan finishes, and for how long?
  4. Who at the vendor, and which subprocessors, can access stored data?
  5. Can customers choose a deployment where code stays local?
  6. Is any customer data used to train or tune a model?

Ask for the answers as a data flow diagram, not a paragraph. A diagram forces specifics: arrows, storage boxes, regions.

Test it yourself

Do not rely only on the answer. During the pilot, run the scanner on a test repo from a machine where you can watch outbound connections. Compare destinations with the vendor's subprocessor list and document what you see. This takes an afternoon and settles many arguments.

Plant a harmless marker string in a test file, then ask whether that string appears anywhere in the vendor's console, logs or support exports. If it does, the file contents travelled.

Write it into the contract

The data flow you accepted should match the data processing terms. If the diagram says manifests only, the agreement should say so, and any change that adds source upload should require notice. See do you need a DPA for a code scanner for the paperwork side.

Try it yourself

The dependency inventory demo shows what a software composition scan reads and reports. Notice how much comes from package metadata rather than your own source files.

Click through it at your own pace, or open it full screen.

Safeguard provides SBOM and dependency scanning, and you can try a free scan at gold.safeguard.sh/scan.

Quick check

Is a lockfile sensitive?

It reveals which components and versions you run, which can help an attacker choose exploits, but it does not contain your application logic. Treat it as confidential business data.

Does a SaaS scanner always upload code?

No. Many SaaS products analyse metadata or run analysis in your CI runner and send only results. Confirm with a data flow diagram.

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.