Docs · v1.4.0

Read how the evidence is built.

Short guides to what a finding means, how a fix is proven, and where the engine stops. The same text is in your workspace, generated from one source, so the public page and the app cannot drift.

22 guides 51 answers v1.4.0

Findings

Reading the PR evidence gate

What base, score, files scanned, controls and witnesses mean on a PR.

In the app: Pull request comment and Checks tab

Verify an attestation, a delta or a proof

Which file to download, where to get it, and the exact command.

In the app: https://auditscan.sh/verify.html

Findings glossary: what each prefix means

Every finding id tells you its family and its proof.

In the app: /postmortem (Evidence log)

Proof model: derivation, clearance, and claims

Three mechanisms separate a verdict from a guess, and each states its limit.

In the app: /proof (Proof tab) and /postmortem

Static review candidates: DEAD, FIRE, and TAINT

Evidence-linked static candidates; AuditScan does not infer whether code was written by AI.

In the app: /postmortem + /architecture (Atlas)

Start

Get started in 5 minutes

Add a project, run a scan, read the results.

In the app: / (Overview)

Projects: local vs GitHub

Which source type you have, and what each can do.

In the app: Add project modal

Fix

Fix-PR: from finding to merged fix

Plans are free; PRs and patches open only on proof.

In the app: /postmortem (Fix-PR Closure panel)

Triage board: tickets, sprints, lifecycle

Sync files tickets; resync closes them on proof.

In the app: Triage board (:8920)

Compliance

Compliance: scores with code behind them

Framework scores are directional, evidence is literal.

In the app: /compliance

Trust

NCA: signed claims anyone can verify

Org can issue server-attested claims for qualifying results. Checking a signed claim is free. During the launch window the hosted product does not mint new claims; attestation bundles verify today.

In the app: / (Proof tab)

Billing

Billing: quotas that pause, never surprise

Fixed-price plans with separate scan-file and AI-call allowances.

In the app: /billing

AI

AI sidecar: what it touches and what it cannot

Opt-in explanations and drafts; verdicts stay deterministic.

In the app: Fix-PR panel (Draft fix with AI)

Troubleshoot

Troubleshooting: the messages you'll actually see

What each message means and the one action that fixes it.

In the app: Any tab (errors are inline)

Tour

Dashboard tour: every tab in one minute

What each tab answers, and when to open it.

In the app: Sidebar (all tabs)

Architecture Atlas: read the inferred component graph

Nodes are inferred components, edges are observed static references; no deployment claim.

In the app: /architecture (Atlas)

Dossier and Cost: technical evidence and reference models

Frozen technical evidence plus cost model; no verified savings or valuation.

In the app: /dossier + /cost

History

History: jobs, lifecycle, radar, gates

What changed between scans, and whether fixes stuck.

In the app: /history + /provenance

Reference

CLI: scan, gate, context, verify

Every command with the flags you will actually use.

In the app: Add project modal (This machine)

Settings: keys, Watchtower, theme

New keys show once. Alerts are available on Team and above.

In the app: /settings

Security terms: plain language and AuditScan scope

Search common security acronyms, see what they mean, and distinguish what this scanner does from what it does not do.

In the app: Docs tab (search any term)

Proof

Proof bundle: verify a scan offline

Download the bundle, recompute the digest, replay every witness.

In the app: /verify.html + /share/<slug>

Direct answers

Questions people actually ask.

Every answer starts with the short answer, then the detail, the command, and the limit. These are the same answers search returns above.

What is AuditScan?

AuditScan is a static code audit service that shows the evidence behind every result. You point it at a Git repository or a local folder, it reads the code without executing it, and it returns findings, coverage, control evidence, and a report you can download or share.

The important difference is what comes with a result. A confirmed finding carries a path from the input to the risky call, with file names, line numbers, assignments, aliases, and the argument position that carried the value. A clean control carries the files it actually read. When the engine cannot prove either direction, it says inconclusive instead of guessing.

A typical first scan is a public repository such as pallets/flask or a private repository connected through the GitHub App. The report is produced in the workspace, and the public certificate is a separate, deliberately narrower view. You can also run the CLI against a local clone when you want the result on your own machine.

AuditScan is not a penetration test, a runtime protection tool, or a compliance certificate. It is evidence you can inspect, replay where possible, and challenge. If you need a quick answer to "is this file dangerous", the honest answer is usually "read the path first".

If you only remember one thing, remember this: a result is only as useful as the scope and the path behind it. The scan page and the downloaded PDF are designed to make both visible before you act.

Can I scan a specific commit instead of the current branch?

Yes. Point the scan at a full commit SHA when you need to inspect an older release, the commit before a security fix, or the exact revision a report names. The engine checks out that tree and scans it; it does not silently fall back to the branch head.

On the command line, pass --ref with the 40-character SHA: auditscan scan https://github.com/django/django --ref a3934abd4c0d43430efec34d6ae933794df2c2f5 --push https://app.auditscan.sh. If you already cloned the repository, git checkout <sha> and then auditscan scan . --push https://app.auditscan.sh produces the same pinned result. The report records the commit it read, not the branch label.

In the dashboard, a server-side Git project has a Commit button next to the branch picker. Paste the full SHA and the server checks out that commit for the scan. The result appears in History under its own commit label, so it does not replace the branch certificate. A project that was pushed from your machine has no source on the server; for that project, run the CLI command in the checkout. The dashboard shows that command when a commit scan cannot run.

A commit scan is still a static scan: it reads the files at that commit and reports what the engine can prove. It does not query a CVE database and it does not know whether the commit is reachable in production. Use it to inspect the code, then read the finding and its derivation before deciding what the commit means.

How is AuditScan different from a normal security scanner?

A normal scanner usually returns a rule name, a severity, and a file and line. AuditScan returns those plus the reason the rule fired: the source, the assignments and aliases in between, the call hops, the sink, and the argument position that carried the value.

That matters most when a result is wrong. If a scanner says "command injection" because it saw exec(, you have to reconstruct the path yourself. AuditScan either shows the path or labels the row a candidate. A candidate is still useful, but it is not presented as proof. A confirmed row is promoted only after the derivation verifies.

The second difference is coverage. A clean result is not the absence of a finding in a file the engine never read. The report records files scanned, files skipped, analyzers that ran, the engine and rule-set versions, and any unparsed language. A missing analyzer or an unreadable file makes the result inconclusive.

The third difference is the fix path. AuditScan does not call a finding closed because a patch exists. A fix closes only after a rescan of the patched tree clears the finding under recorded coverage. That is slower than a green checkmark, and it is the point.

When you compare tools, ask two questions: can it show why a row is confirmed, and can it prove the fix is gone under recorded coverage? Ask those before trusting a green checkmark.

Is AuditScan free right now?

Yes to start. Every new account begins on a free trial: one project, two scans a month, the full engine, and no card. The trial covers 3,000 files per scan and a 300-second scan window; both limits are stated on the plan, not hidden in a sales call. The same analyzers, reports, and share certificates are available without a paid plan.

The free allowance is deliberately small. A trial is for one real repository you care about, not a queue of unrelated projects. If the repository is larger than the scan limit, the report still says what it read and what it skipped; it does not pretend the missing files were clean.

Signups are capped during launch. Past the cap, a new account is accepted but read-only until 15 February 2027: it can sign in and read, while starting or importing a scan is refused with that date. An invite code grants a full account.

When the trial ends, paid plans are optional and your data stays. Quotas pause the metered action and return an upgrade message; they never silently charge an overage. Local CLI scans have their own limits and do not consume hosted project slots.

If you are evaluating for a company, start with a repository you can discuss, then compare the certificate's confirmed rows, review candidates, and stated limits with the scanner you already run. Do not buy a plan for a result the engine would refuse to prove. The trial exists to show you the evidence, not to create a procurement project.

Which languages and file types does AuditScan support?

AuditScan has dedicated frontends for Python, JavaScript, TypeScript, Go, Java, Rust, and C/C++. Ruby, PHP, C#, Kotlin, Swift, Scala, Dart, and Elixir are lowered through a grammar layer into the same internal model. The depth is not identical: dedicated frontends resolve more calls and types, while the grammar layer resolves less and says so in coverage.

The engine also reads configuration and package files: Dockerfiles, Kubernetes YAML, Terraform, package manifests, lockfiles, and common config formats. Those files feed configuration, dependency, license, and SBOM checks rather than the language frontends.

Single-file components and templates are handled as regions. A Vue or Svelte file is not parsed as one JavaScript document; its script region is lowered, and template expressions are disclosed separately. HTML, Jinja, EJS, Pug, SQL, notebooks, shell, and HCL are recognized as code-bearing assets instead of being silently skipped.

A language with no measured frontend is disclosed as unparsed:<language>. That is not a clean result. If your repository is mostly Solidity, for example, the report will say the semantic scope is limited instead of pretending a Python-only pass covered it.

The frontend table is available in the report and on the platform page. If a language matters to you, check that row before assuming a clean result covers it; a recognized extension is not the same as a measured semantic frontend.

How long does a scan take?

A small repository usually finishes in under a minute. A few hundred files with one or two languages is typically a one- to three-minute scan on the hosted worker. Large monorepos and repositories with thousands of C/C++ files take longer because parsing, interprocedural summaries, and the redundancy pass all scale with the code.

The hosted service has a hard scan timeout and a per-plan file and size limit. When the limit is reached, the scan stops and reports the limit rather than returning a partial result as if it were complete. The current hosted defaults allow very large scans for operator accounts, but a full Linux kernel checkout is still beyond the per-scan size ceiling and should be split into subsystems.

If a scan appears stuck, check the scan status page and the worker heartbeat. A queued scan is waiting for a worker; a running scan with no heartbeat is treated as stale and recovered. Killing the browser tab does not stop the server-side job.

For local CLI scans, time depends on your machine and the number of files. A quick way to estimate is to scan one directory first, then expand. If the run is too slow, scan the subsystem you are changing rather than the whole monorepo.

If you are scanning repeatedly during a fix, keep the repository size stable and compare the coverage line between runs. A faster run that read fewer files is not a better run.

What data does AuditScan store about my repository?

AuditScan stores the project record, scan metadata, findings, evidence, coverage, and the reports needed to show the result. It does not need to keep a second copy of your source to render a report; the scan reads the checkout, and the findings carry bounded file and line context.

The public certificate is narrower than the private workspace. It shows the repository, pinned revision, score, confirmed and review counts, coverage, compliance summary, VEX summary, license summary, and the findings that are safe to publish. It does not expose your private repository, credentials, or the full source tree.

Retention is deliberate. Account owners can export their data and can request deletion. Deleting a project removes AuditScan metadata, not files inside the scanned project. If you cancel a recurring plan, access stops and a purge is scheduled after the stated grace period; payment records are retained where tax law requires them.

If your security team needs specifics, read the security brief and the privacy policy, then ask research@auditscan.sh for the current subprocessor list and data-processing terms. Do not infer a retention period from a marketing page. Ask for the exact setting in writing.

Backups follow the same retention window; the current setting for your deployment is confirmed in writing on request.

How do I delete my account or export my data?

Open Settings while signed in. The account section lets an owner export the workspace as JSON and schedule account deletion. Export first if you need the findings, coverage, or reports; deletion is not reversible.

Deletion is scheduled rather than immediate so an accidental click does not destroy a workspace. Access stops when the deletion is scheduled, and a purge runs after the grace period. Payment records and billing events are retained for the period required by tax and accounting rules, even after the workspace is gone.

If you cannot sign in, email research@auditscan.sh from the account address. Include the repository or project name and the email on the account. Never send an API key, password, or a copy of your source in that email. Support can identify the account without those secrets.

If you only want to remove one project, delete the project rather than the account. That removes AuditScan metadata for that project and leaves the rest of the workspace intact. Remember that a public share link may remain reachable until it is revoked; revoke it separately if it was published.

Before deleting anything, decide whether you need the evidence for a future audit. A share link and a PDF are easy to keep; a deleted workspace is not recoverable through support.

What is a witness derivation?

A witness derivation is the machine-checkable path behind a confirmed finding. It starts at the input, records each assignment and alias that carried the value, lists the call hops, identifies the sink, and names the argument position that reached it. The report can replay the shape and recompute the digest instead of asking you to trust a severity label.

For example, a command-injection row might say that req.query.cmd was assigned to command, passed into runJob, and used as the first argument of exec. The derivation has a stable schema, ordered steps, file and line locations, and a content digest. If the file or the path changes, the old derivation no longer applies.

Not every observation gets one. A candidate is a signal that the path is plausible but not proven: a conditional branch may select a constant, a wrapper may sanitize the value, or the frontend may not resolve the call. AuditScan keeps that row as review material and does not manufacture a witness.

The practical use is review. Open the derivation, read the steps, and decide whether the model matches your code. If it does not, that is a useful false-positive report; send the file and finding id, not the whole repository.

Read the derivation with the code open. If a step looks wrong, that is exactly the feedback the engine needs; a witness is meant to be challenged, not admired.

What is the difference between a candidate and a confirmed finding?

A confirmed finding has a verified derivation and a support value of confirmed. A candidate is a review signal: the rule saw something suspicious, but the engine could not prove that the risky value actually reaches the sink on every path.

Candidates are not failures of the product. They are the honest middle state. A branch may choose between a literal and a request value; a wrapper may validate or encode the value; a call target may be unresolved. Promoting those rows would create false claims, so they stay candidates until the evidence is stronger.

The report separates the two visibly. The headline counts confirmed defects; the review section counts candidates. A clean control is based on the measured rules and the files that were actually read, not on the absence of candidates.

When you triage, start with confirmed rows because they are supposed to be true. Then sample candidates for the patterns your team cares about. If a candidate is actually a true positive, that is valuable too; it tells us the frontend needs another summary or capability. Send the file, line, and finding id.

A useful triage habit is to separate this is wrong from this is not proven. Both are valuable, but only one belongs in a confirmed-defect count.

What do the four clearance states mean?

Clearance answers a narrow question: after a patch, is this specific finding still there, and can the answer be reproduced? The four states are cleared, remaining, inconclusive, and out_of_scope.

cleared means the patched tree was rescanned, the required analyzer ran, the file was read, the rule set matches, and the finding did not reappear. remaining means the same path or the same rule is still present. inconclusive means the absence cannot be trusted because coverage, an analyzer, a version, or a dependency feed was missing. out_of_scope means you explicitly excluded that file or target and accepted the consequence.

Only cleared, with nothing inconclusive, closes a fix. A scanner that says "fixed" because the line moved is not doing clearance. A rescan of an unreadable file is not proof either.

The clearance object carries reason codes and the next step. If you see inconclusive, read the reason before asking for a retry: a missing analyzer, a skipped file, or a changed rule set each needs a different action. Do not hand-edit the status; the server recomputes it from evidence.

When a fix is challenged, show the clearance object rather than a screenshot of a green badge. The states and reason codes are the audit trail.

How is the AuditScan Score calculated, and what does the grade mean?

The AuditScan Score is a 0 to 100 directional grade over the scope the engine actually assessed, and the letter grade is a label on that number, not a certification.

The score starts at 100 and subtracts measured penalties. Each confirmed high finding costs 15 points, capped at 45. Each confirmed medium costs 7, capped at 25. Review candidates cost a scaled amount, capped at 18. Coverage gaps cost up to 15, failing controls up to 8, blocked controls up to 24, inconclusive modules up to 8, and files in unparsed languages up to 6. The subtotal is rounded to a whole number with no hidden floor, so a repository with enough penalties can reach 0; the printed rows reproduce the number. An evidence ceiling can lower it further: 89 when coverage is incomplete, 92 when a module is inconclusive, and 85, 79 or 70 as the blocked-control ratio rises.

Grades are A+ at 95 and above, A at 88, B+ at 80, B at 70, C at 55, and D below that. The report prints every deduction with its value, so you can see which row moved the number instead of guessing.

The limit: it measures assessed static evidence, not exploitability or runtime posture. A high score means no confirmed defect in what was read, not that the application is safe. A low score can reflect narrow scope as much as bad code. Read the breakdown before comparing two repositories, because a one-point difference can come from coverage rather than findings.

What does NOT ASSESSABLE mean?

NOT ASSESSABLE means the scan read no source files it could grade, or it read source only in languages whose semantic rules were not measured, so no score or grade is issued.

The certificate shows a dash instead of a number and names one of two reasons: no source files were read, or no measured semantic coverage exists for these languages. The second case is the common surprise. A repository can contain hundreds of files and still be NOT ASSESSABLE if every one of them was a Dockerfile, a lockfile, a generated bundle or a language with no frontend. Configuration files are evidence, but they do not make a code scan gradeable.

This state is deliberately not a pass. Earlier versions of the product could grade a scan with zero source files, which produced a confident grade for an empty read. The current rule is stricter: no grade, no clean claim, and the reason is printed.

To fix it, scan a root that contains real application source in a supported language, then check the coverage section for files skipped as too_large, unreadable or unparsed_asset. If your project really is written in an unsupported language, the honest result is that AuditScan cannot assess it yet. The limit: NOT ASSESSABLE says nothing about the quality of your code. It describes the scan, not the repository.

What is in the coverage manifest?

The coverage manifest is the machine-readable record of what the scan read, which analyzers ran, and what it skipped. It is the object that makes a clean result checkable instead of a claim.

A full manifest carries the engine version, the rule-set version, the analysis build id, the VEX result digest, the advisory source digest, the analyzer names, the detected languages, the exact list of scanned file paths, the skipped files with reasons, the policy exclusions, a runtime flag, and an OSV degraded flag. It also carries a digest, a SHA-256 over the canonical payload, and a complete boolean. complete is false when a hard skip such as too_large, unreadable or not_regular_file is present.

The report keeps the full manifest, while the stored job keeps a compact copy with totals, reason counts, a bounded skipped-file list and provenance. That is what a later fix check compares against. If the rule set, engine version or analyzer list changed, the old clearance no longer applies.

You can read it in the JSON report from auditscan scan . --out report.json, in the dashboard coverage panel, or in the exported findings bundle. It travels with the report so a reviewer can recompute the same scope. The limit: a manifest proves what was read and which rules ran. It does not prove runtime behavior, deployed configuration or absence of a flaw outside the modelled rules.

Why were some files skipped, and which reasons matter?

Every skipped file is listed with a reason code, and the reason decides whether the omission is routine or makes the result incomplete.

The policy reasons are ignored_directory for directories such as .git, node_modules, vendor, build output and caches, generated_bundle for minified or bundled assets, and unparsed_asset:<ext> for code-shaped files that are not application source, such as shell scripts, templates, styles, notebooks and raw SQL. These are counted and disclosed, but they do not by themselves invalidate a clean control. A deploy script should not cancel a Python application's command-injection result. That distinction keeps a clean control honest without letting a random script veto it.

The hard reasons are too_large, unreadable and not_regular_file. Any one of them makes the coverage manifest complete: false, and a fix path that depends on that scope becomes inconclusive instead of cleared. The default per-file limit is 5 MB, with larger limits for some dependency lockfiles. A symlink pointing outside the tree is recorded separately as a policy exclusion, not silently followed.

To inspect them, open the coverage panel or run auditscan scan . --out report.json and read coverage.skipped. If a real source file is too_large, split the generated artifact out or raise the server limit if you operate the service. The limit: the engine cannot analyse what it did not read, and a skipped vendor directory can still contain shipped code.

What happens when my repository uses a language AuditScan cannot parse?

A language with no measured frontend is disclosed as unparsed:<language> and is treated as uncovered scope, not as a clean result.

The current disclosure list includes Solidity, Vyper, Zig, Haskell, OCaml, Lua, Perl, R, Julia, F#, Visual Basic, COBOL, Pascal, D, Nim, Verilog, SystemVerilog, VHDL, assembly, Groovy, Clojure, Erlang, Elm, Tcl, Ada and several others. The files are counted, named in the report and carried into the capability block. The capability gate marks that language as having no measured rule coverage, the score applies an unparsed deduction, and a clean claim is downgraded to "scope disclosed" instead of "fully assessed".

Code-shaped assets are handled separately. Shell scripts, HTML, CSS, Jinja, SQL, Terraform and notebooks are recorded as unparsed_asset:<ext> skips. They are disclosed but do not gate a control, because a glue script is not the application under test.

The practical effect: a mostly-Solidity repository cannot receive a clean C-INPUT result from a Python-only pass. If you need a claim over that language, the honest options are to add a frontend, narrow the stated scope, or use a different tool for that layer.

The limit: disclosure is not analysis. Naming the unparsed files makes the gap visible; it does not reduce the risk inside them. A repository can also mix languages, so a Python core can be assessed while a Solidity contract layer is disclosed as uncovered.

What is a signed claim, and what does it actually prove?

A signed claim is a statement packaged in a DSSE envelope and signed with an Ed25519 key, so a verifier can prove who signed those exact bytes and that the bytes were not changed.

The NCA claim schema is strict. It carries the claim kind, the subject, the scope, the evidence, the limitations and the signer identity. Unknown fields are rejected, and a limitation section is mandatory. auditscan nca-sign claim.json --key nca-private.pem --out envelope.json validates and signs it. The envelope can be bundled with a ledger inclusion proof.

What it proves: the holder of the private key signed this payload, the payload is byte-identical to what was signed, and, when a Merkle proof is included, the payload was recorded in the stated ledger at the stated tree size. What it does not prove: that the scan was correct, that the code is safe, that the signer is trustworthy, or that the repository still looks like this today. A signature is integrity, not truth.

That distinction matters in procurement. A signed "no request-controlled value reaches a SQL sink" claim is only as strong as its evidence block: measured language coverage, zero unparsed files in scope, and zero confirmed findings of that family.

The limit: a signature can make a false statement tamper-evident, not true. Read the claim's scope and limitations before you rely on it.

How do I verify a bundle offline?

You can verify an attestation bundle or a signed NCA envelope without an account, a network call, or the AuditScan service.

For a proof-carrying attestation, run auditscan verify bundle.json. The command recomputes the canonical SHA-256 digest, checks every claim against its own evidence, confirms that the scope had measured coverage and no unparsed files, and prints a PASS or FAIL line for each check. Add --json for a machine-readable result. The exit code is 0 when every check passes and 1 when anything fails.

For a signed envelope, run auditscan nca-verify envelope.json --key nca-public.pem. If the bundle includes public_pem, the --key flag is optional. The verifier checks the DSSE signature, the claim schema, the limitations block and any Merkle inclusion proof. auditscan verify-proof proof.json does the same for a proof-of-remediation document, optionally chained with --prev.

The public verifier page at https://auditscan.sh/verify.html performs the same checks in the browser with WebCrypto. Nothing is uploaded. It also explains when a pasted document is a scan report rather than an attestation, instead of printing a misleading version error.

The limit: offline verification proves integrity and internal consistency. It cannot tell you that the signed source still matches the current remote branch. For that, re-scan the revision and compare. Keep the bundle and the verification command with the report so a reviewer can repeat the check years later.

What is the NCA layer?

The Neutral Code Authority layer is the attestation trust core: signing keys, strict claim schemas, DSSE envelopes, a Merkle ledger and an offline verifier.

It exists so a third party can check a result without trusting the vendor's dashboard. The pieces are small on purpose. Ed25519 and HKDF come from the cryptography library, never from hand-rolled crypto. The Merkle tree follows RFC 9162 with unbalanced carry, and an inclusion proof requires an explicit tree_size. Claims are validated when produced and when verified. The verify path is dict-in, dict-out, performs no I/O and does not raise on malformed input.

The ledger is tenant-scoped by construction. Keys embed the owner and repository, and stored: false is returned when persistence fails, so the product never claims a record exists when it does not.

The labels are deliberately modest. A checkpoint is server-attested and server-anchored, not immutable, certified or customer-held. rollback_detected is a witness-conflict signal, not proof of an attack. There is no public blockchain and no token.

Use it with auditscan nca-keygen, auditscan nca-sign and auditscan nca-verify, or through the dashboard's proof surfaces. The limit: NCA makes statements tamper-evident and checkable. It does not make the underlying analysis complete, and it cannot stop a server from refusing to publish a record. The value is auditability: a signed statement can be checked by someone who does not run your dashboard.

How do I export an SBOM, and what is in it?

AuditScan exports a software bill of materials in CycloneDX or SPDX JSON, built from the manifests and lockfiles it actually read.

On the command line, add --out-sbom sbom.json for CycloneDX or --out-spdx sbom.json for SPDX to a scan. In the dashboard, call GET /api/sbom?repo_id=<id>&job=<job>&format=cyclonedx, or use format=spdx. Each component carries a package URL, a name and version when resolved, and license data when the manifest provides it. Duplicate occurrences of the same component are deduplicated, and the report records the manifest that produced each row.

The quality depends on resolution. A lockfile gives installed versions. A manifest floor such as ^4.17.0 does not, and AuditScan does not pretend it does. Components without a resolved version are marked, not guessed. System libraries, OS packages and runtime plugins fetched outside the manifests are outside the static SBOM.

On the hosted service, SBOM and VEX export are part of the cra-vex add-on, so a plan without it receives a 402 with an upgrade path. The CLI export is part of the scan and needs a linked account, like every full scan.

The limit: an SBOM is an inventory, not a vulnerability verdict. It tells you what the repository declares. It does not prove what is deployed, and it cannot see a package installed by a base image. Pin the lockfile and keep it in the scan root if you need the inventory to match production.

What does the VEX output mean?

VEX is the advisory decision record: for each known vulnerability that touches a component in the repository, it states whether the component is affected, not affected, fixed, or still under investigation.

AuditScan emits CycloneDX VEX with --out-vex vex.json, or through GET /api/vex?repo_id=<id>&job=<job>. A not_affected decision is only allowed when the usage evidence supports it and the ecosystem's usage coverage is complete. If usage coverage is unsupported or the source inventory is incomplete, the status stays in_triage with a reason such as ecosystem_usage_unsupported or ecosystem_source_incomplete. That is deliberate. A blanket not_affected is the easiest way to hide a real exposure.

A manifest constraint is not a resolved version. lodash: ^4.17.0 does not tell you whether the installed release is vulnerable, so without a lockfile or workspace resolution the row is applicability-inconclusive rather than an asserted production issue.

The advisory feed is opt-in locally with AUDITSCAN_OSV=1. The hosted service runs it with a cache and a one-day freshness window. If the feed degrades during a scan, advisory families become inconclusive and the coverage manifest records osv_degraded: true.

The limit: VEX is a static triage decision. It does not prove that a vulnerable function is unreachable at runtime, and it does not replace a runtime SBOM or an incident assessment. Review every in_triage row before you publish a VEX document, because an unresolved status is visible to the reader.

What does the license inventory check?

The license inventory lists each dependency with a resolved SPDX expression where the manifest or licence file provides one, flags unknown or conflicting declarations, and evaluates the project's own licence.

The report is available at GET /api/licenses?repo_id=<id>&job=<job>, with a Markdown questionnaire at format=markdown. It maps to three controls: C-LIC-INV checks that the inventory is complete, C-LIC-COPYLEFT flags strong-copyleft licences that usually need a legal decision before distribution, and C-LIC-PROJECT checks that the repository declares its own licence. A root LICENSE file using Business Source License is recognised as BUSL-1.1 rather than unknown.

The inventory is built from manifests, lockfiles and notice files. A package with no licence field is reported as unknown, not as permissive. Conflicting declarations across two occurrences of the same package are flagged for review. Transitive completeness depends on the lockfile, so a manifest-only scan can undercount.

On the hosted service, the license surface is part of the license add-on. The output is an engineering inventory, not legal advice.

The limit: a clean inventory means the declared metadata is consistent. It does not grant distribution rights, resolve a copyleft obligation, or replace counsel. Treat C-LIC-COPYLEFT as a question to answer, not a verdict. The inventory also records the manifest path for each component, so a surprising licence can be traced to the file that declared it. Export the questionnaire to give counsel the raw rows rather than a summary.

How does dead code detection work?

Dead code analysis reports functions and services that no entry point can reach, and it separates a proved unreachable function from one the engine simply could not resolve.

The engine builds the call graph from the merged program, marks entry points such as HTTP routes, main, test runners and framework hooks, then walks the edges. A private helper with no path from an entry point is a candidate. A top-level export in a JavaScript, TypeScript or Python file that no other file imports is reported as an unused export, because nothing in the repository can reach it; a class method, a decorator factory and a package root (index.*, lib.rs, __init__.py) stay live API. Test modules, fixtures, examples, generated files and vendored code are excluded from the production graph, so a test-only caller does not keep a production function alive. Unreferenced service candidates are reported separately from function-level dead code.

A published package can be consumed outside this repository, so an unused export is a review lead, not a deletion order.

Dynamic dispatch is where honesty matters. A method called through reflection, a string-built function name, an interface with several implementations, or a callback registered by a framework may look unreachable. Those rows stay inconclusive rather than becoming deletions. Rust conditional compilation is merged across #[cfg] variants on purpose, because a function is dead only if it is unreachable in every variant. Platform-gated files are not bulk-marked incomplete.

The report shows the count and the reason. It never deletes anything. A fix plan can propose a source-only deletion, and you must approve each path explicitly.

The limit: dead code analysis is static reachability over the modelled graph. It cannot see a call made by an external plugin, a scheduler or a runtime configuration you did not include.

What are the code redundancy observations?

Redundancy observations are code rewrites that a proof kernel has shown to be equivalent, reported as quality evidence rather than as security findings.

The pass runs last, after the structural analyzers. It only considers files where the structural pass already observed something, so it does not spend the budget reading an entire repository. It is capped by AUDITSCAN_REDUNDANCY_BUDGET_S, which defaults to 10 seconds. The report records how many files were considered, scanned, certified and abstained, whether the budget was exhausted, and any internal errors.

A certified rewrite carries a certificate id in its evidence and a confirmed support value. When a STRUCT-* candidate exists at the same location, the redundancy row supersedes it so the report does not show two descriptions of one issue. The family is excluded from the security counts in the public review and from the PDF headline, and a "Code redundancy" facts row explains the count.

This is not a linter score. A certified rewrite is a specific, checkable simplification, not a style preference. If the proof does not finish inside the budget, the row is abstained, not guessed.

The limit: certified equivalence is strong for the cases the kernel models. It does not mean the rewrite is desirable, and it does not account for readability, API stability or performance. Review the diff before applying it.

What configuration and infrastructure checks does AuditScan run?

Configuration checks read Dockerfiles, Kubernetes and Compose YAML, Terraform, environment files and application config, then report insecure defaults and unreferenced settings.

The current pattern set includes debug mode enabled, wildcard CORS origins, privileged containers, host namespace sharing (hostNetwork, hostPID, hostIPC), and a Dockerfile that explicitly runs as root. The engine also extracts environment declarations, redacts values for sensitive-looking keys, and cross-references each key with code that reads it through os.getenv, process.env, os.Getenv, env::var or similar calls. That produces a useful pair: a setting declared but never read, or a setting read but never declared for deployment.

Configuration files go through the same file-role classifier as source. Test, fixture, example, vendor and generated configs are skipped so a test compose file does not become a production finding.

This is not a Kubernetes policy engine, a Terraform plan evaluator or a cloud posture scanner. It reads files. It does not apply them, resolve variables from a remote state, or see what the cluster actually runs.

The limit: a configuration finding is a static observation about a file in the repository. A value can be overridden by a secret store, an admission controller or a deployment pipeline. Confirm the deployed path before treating a row as live. The report keeps the declaration and the consumer locations so you can see both sides of the same setting.

How do dependency and OSV checks work?

Dependency checks inventory the packages declared by manifests and lockfiles, then match resolved versions against OSV advisories when the feed is enabled.

Locally the feed is opt-in: set AUDITSCAN_OSV=1 before a scan. The deterministic core makes no network calls by default. The hosted service runs OSV with a cache and a one-day freshness window. The result carries the advisory source digest and query count in the coverage manifest, and a degraded feed sets osv_degraded: true.

Version handling is strict. A resolved version such as 4.17.21 can be queried. A solver constraint such as ^4.17.0, >=2.8.0,<10 or ~> 7.0 cannot, because querying the floor would report applicability for a release that may never be installed. Those rows remain applicability-inconclusive until a lockfile resolves them. Yarn patch: descriptors are the one embedded-spec exception and are unwrapped to the real version.

The VEX layer then records affected, not_affected, fixed or in_triage with a reason. A manifest-only scan cannot make a strong production claim.

The limit: advisory coverage is not exhaustive, and a static match is not proof of exploitability. A vulnerable package that is never loaded may still be a legal or supply-chain issue, but it may not be a runtime one. Keep the advisory digest with the report if you need to show which feed state produced the decision. A lockfile is the single biggest improvement to this surface.

How does compliance mapping work?

Compliance mapping turns the same deterministic findings into control rows for SOC 2, ISO/IEC 27001, PCI DSS, HIPAA, GDPR, OWASP ASVS, the EU Cyber Resilience Act and NIS2.

Each control has an id such as C-SECRETS, C-INPUT, C-EXEC, C-CRYPTO or C-CRA-SBOM, a description, a severity and the frameworks it maps to. A control status is derived from evidence, not from a title match: pass, fail, review or not assessed. A clean control carries a scan-result row with the number of files read and zero matches. A control the engine cannot back for a language is downgraded to not-assessed with a coverage-gap row naming the uncovered languages, rather than shown as a clean pass.

Each framework reports passing, failing and unassessed controls, a percentage over the applicable set, and a stable mapping_id that changes when the control set changes. The percentage is passing divided by passing plus findings, the same formula used in the PDF.

The report is directional. It does not certify a SOC 2 report, an ISO audit or a PCI assessment, and it cannot see organizational, physical or runtime controls.

The limit: a high compliance percentage means the code-verifiable controls in the assessed scope have evidence. It is not an auditor's opinion, and it should not be pasted into a customer questionnaire as a certification. History records the mapping id so a score change can be separated from a rule-set change.

Is the compliance report a certification?

No. The compliance report is a directional engineering signal, not a certification, audit opinion or legal advice.

A certification requires an accredited auditor, a defined management system, evidence over time and a scope that includes people and process. AuditScan reads source and configuration files. It can show that no hardcoded credential was found across the files it read, or that a taint rule found no confirmed injection path in the measured languages. It cannot show that access reviews happened, that backups were tested, that staff were trained or that a production cluster is configured as the repository says.

Every control carries missing_context for exactly this reason. The report also carries for-counsel-review banners on deal and law-adjacent exports. The wording is deliberately narrow: "No confirmed defect in fully assessed scope" is a statement about the scan, not a statement that the company is secure.

What you can do with it: give engineers a prioritized, evidence-backed work list, give a reviewer a reproducible artifact, and give a procurement team a starting point with clear limits. What you cannot do: replace a SOC 2 Type II report, an ISO 27001 certificate, a pen test or a legal opinion.

The limit: a clean report is evidence about code. It is not proof of security, and it is not a signature from an auditor. The honest use is to ask better questions, not to close a questionnaire.

How do I share a report publicly?

You publish a report by creating a share link in Settings, which mints a capability token and a public certificate page at /share/<token>.

The flow is: open the project, choose Share, pick the link scope, and confirm. The server creates the link and returns the URL. A locker scope publishes a frozen scan of the selected job. A review or review_live scope is for a public GitHub repository, and the server rechecks that the repository is still public before it renders anything. The public page shows the repository, pinned revision, score, grade, confirmed and review counts, coverage, compliance summary, VEX summary, licence summary and the findings that are safe to publish. It does not expose credentials or the full private tree.

Indexing is separate from sharing. POST /api/share/index-request asks for search indexing and goes through moderation. POST /api/share/moderate is the operator side. A link can be revoked at any time from the same Settings screen, and revocation takes effect on the next request.

A public review link requires a confirmed email, and the chosen scope must be included in the plan. A local folder cannot be shared at all, because a certificate needs a GitHub-backed or server-side scan. An unverified or read-only account cannot publish.

The limit: a share link is a capability URL. Anyone with it can read the page. Do not publish a private repository, and revoke the link when the engagement ends. The page is served from the app origin, while the marketing site carries the verifier and samples.

What is the difference between a share certificate and a sample page?

A /share/<token> page is the certificate for one frozen scan of one repository, while a /samples/<language>/ page is a curated example that shows what a report looks like.

The share page is evidence about a specific job. It carries the repository name, the pinned revision, the score and grade, the coverage digest, the confirmed and review counts, the compliance summary and the findings that are safe to publish. If the repository changes tomorrow, the share page does not change unless you create a live link or a new job. The URL is a capability: possession grants read access.

A sample page is marketing and documentation. It is built from a known public repository, chosen to demonstrate a language and a report layout. It is not a scan of your code, it is not a statement about your repository, and its numbers are not comparable with your score. A sample can be regenerated when the product changes, so it may show a different engine version and a different score from an old share link.

A /r/<slug> URL is the readable alias form of a share link. It resolves to the same certificate when the slug exists.

The limit: do not cite a sample as evidence in procurement, and do not assume a share page is current. Both are snapshots; only the revision and digest on the page tell you what was assessed.

Why does the PDF differ from the web report?

The PDF and the web certificate are rendered from the same stored scan payload, so a real mismatch usually means you are comparing different versions, different jobs, or a cached file.

First check the revision and the job. A share link can carry ?version_job=<job> and the PDF can be requested for a specific version. If one surface shows an older job, the score, file counts and findings will legitimately differ. The same happens if the report was unpublished and republished after a rescan.

Second, check the cache. Browsers cache PDFs and query strings aggressively. Add a cache-busting parameter, or hard-refresh with Ctrl+Shift+R, then download again from /share/<token>/pdf. On the authenticated side, use /api/scan-report/pdf?repo_id=<id>&job=<job>.

Third, check what each surface is allowed to show. The certificate is a narrower projection than the private workspace. It excludes some review candidates, source excerpts and internal evidence. The PDF is generated from the same certificate payload, not from the full dashboard, so both should agree on score, grade, file totals, confirmed and review counts, compliance percentages and VEX counts.

If they still disagree, export both and compare the job_id, revision, score.value and coverage.digest. A difference there is a bug worth reporting with both files. The limit: a PDF is a rendering, not a second analysis. It cannot contain a finding the scan did not record.

How do I export findings as JSON?

Authenticated users can export findings as JSON, CSV or the Triage exchange format from GET /api/findings/export.

The parameters are repo_id, optional job (the default is the latest completed job), and format=json, format=csv or the default format=triage. The response is an attachment with Cache-Control: no-store. It contains a manifest with the job id, revision, coverage state and digest, an export id, a truncated flag and a record count, followed by the finding rows.

The export is built through the exchange encoder, so sensitive fields such as the claim, justification, derivation, static evidence, runtime evidence and counterfactual are protected rather than emitted in plaintext. That makes it suitable for handing to the Triage app or another team, but it is not the raw internal report. For the raw report, use the CLI --out report.json or the authenticated scan report endpoint.

Two failure shapes matter. If the exchange key is not configured, the server returns 422 with reason exchange_key_missing and a next step. If the record count exceeds the exchange limit, it returns 422 with too_many_records; split the scan or request a bounded set.

The limit: an export is a snapshot of stored findings. It does not include live advisory lookups or a fresh analysis, and the truncated flag means the row set was capped. The CSV form is useful for a spreadsheet review, and the Triage form round-trips into the ticket workflow.

How do I authenticate an API call?

Authenticate API calls with Authorization: Bearer <api-key>; the key is created in Settings and is not your account password.

A minimal call looks like this:

`` curl -H "Authorization: Bearer $AUDITSCAN_API_KEY" "https://app.auditscan.sh/api/dashboard?repo_id=<id>" `

The server hashes the key and looks it up in the api_keys table. A revoked, expired or unknown key returns 401. An account that is banned or scheduled for deletion is refused as well. The key is shown once when created. Store it in a secret manager or an environment variable, never in a repository.

Scopes are push and full. A push key can run the normal scan and import loop but cannot change the account, move money, manage keys or delete projects. A full key can do those things, so use it only where required. Keys also carry an expiry, set in days between 1 and 3650, with 365 as the default.

For the CLI, auditscan configure stores the key in an AuditScan-owned config file. AUDITSCAN_API_KEY overrides the stored value, which is the right choice for CI. The --token` flag also works but is visible in shell history and process lists.

The limit: an API key is a bearer credential. Anyone who has it can act as the account within its scope until it is revoked. Rotate it if it leaks. Every API route that touches tenant data resolves the owner from the key, never from a client-supplied owner id.

What are the API rate limits and quotas?

There is no published per-second request limit on ordinary authenticated read endpoints, but scans are metered and queues are capped.

The metered unit for scans is files per month on the plan. When the quota is exhausted, /api/scan returns 402 with an upgrade message rather than starting a scan that would fail later. Add-on surfaces such as SBOM, VEX, licence and dossier also return 402 when the plan does not include them. The billing status endpoint reports the current used and limit values so a client can check before starting.

The scan fleet has an owner queue cap of 2 and a global queue cap of 20 by default. A request beyond the cap is refused or waits according to the queue path, and the status response carries the position. A queued job can still be refused at dequeue if the owner's quota changed, which is deliberate.

429 responses exist on the authentication, signup, billing reconcile, feedback and public verification paths. They include a Retry-After header and a retry_after field. Treat 429 as retryable with backoff. Do not retry 401, 402 or 403 without changing the credential, plan or account state.

The limit: these are product quotas and abuse controls, not a service-level guarantee. A large CI matrix that fires many scans at once will hit the queue before it hits a request-rate limit.

How do I install the CLI on Windows?

Download the Windows CLI from the dashboard's CLI tile, run the .exe once, and it installs itself for your user.

The download is named auditscan-windows.exe. Running it with no arguments performs the install: it copies the binary into %LOCALAPPDATA%/AuditScan/bin, adds that directory to your user PATH without truncating existing entries, and prints the install path. Restart the terminal so the new PATH is visible, then run:

`` auditscan version auditscan configure `

configure asks for the dashboard URL and an API key. Create the key first in Settings, under API keys. The key is validated before it is saved, so a typo fails immediately instead of at the first scan. You can also set AUDITSCAN_API_KEY in the environment and skip the key prompt.

If Windows SmartScreen warns about an unsigned download, verify the SHA-256 shown on the CLI tile before running it. The dashboard publishes the byte count and hash for each available platform, and auditscan update` refuses a download whose hash does not match.

The limit: there is no MSI, no machine-wide install and no administrator requirement. The binary is per-user. A macOS build is not published yet, and the tile stays disabled with a clear message rather than offering a broken download. The installer writes only inside the AuditScan-owned directory and never touches a project or a system setting.

How do I install the CLI on Linux or macOS?

On Linux, download the published binary, make it executable, and run it once so it installs to ~/.local/bin.

The commands are:

`` curl -fL -o auditscan https://app.auditscan.sh/api/cli/binary?platform=linux chmod +x auditscan ./auditscan `

The last line triggers the self-install. The binary is copied to ~/.local/bin/auditscan, made executable and left there. If ~/.local/bin is not on your PATH, add it in your shell profile, then start a new shell and run auditscan version. On a locked-down machine, place the binary anywhere you can execute it and call it by absolute path instead.

The download endpoint requires authentication, so use the signed-in dashboard or send your API key. The CLI tile lists only platforms the server actually publishes, with bytes and SHA-256. auditscan update` verifies that hash before replacing the binary.

macOS is currently not built. PyInstaller cannot cross-compile a macOS binary from the Linux build host, and no macOS runner is reachable, so the tile stays disabled with "No build is published for this OS yet." Do not use the Linux binary on macOS.

The limit: the Linux build targets glibc. A musl-only container may need a compatible build or a source checkout. The CLI is a single static-ish executable, not a package in your distribution's repository. It still needs a writable home directory for the cache and the configuration file, and it respects the usual proxy variables.

How do I create, rotate and revoke an API key?

Create a key in Settings, give it a name and scope, copy it once, and revoke it when it is no longer needed.

In the dashboard, open Settings and find API keys. Choose a name that identifies the machine or pipeline, choose push for a normal CLI key or full only when the key must manage the account, and set an expiry in days. The server returns the plaintext key once. It stores only a hash, so a lost key cannot be shown again; create a new one instead.

To rotate, create the new key first, run auditscan configure with it on each machine, confirm a scan works, then revoke the old key. Revoking the key used by the current dashboard session is refused with a 409 so you cannot lock yourself out by accident.

To revoke through the API, send POST /api/api-keys/revoke with {"key_id": "<id>"} and a full scope key. The response is {"revoked": true} or 404 if the id is not yours. Every create and revoke is written to the audit log.

The CLI resolves its token in this order: --token, then AUDITSCAN_API_KEY, then the configured file. That order is useful in CI, where the environment should win.

The limit: there are two scopes, not a per-endpoint permission language. A full key is powerful. Use push unless you have a specific reason.

How do I scan a local folder with the CLI?

Run auditscan scan . from the folder, or pass an absolute path, and the CLI runs the full static engine and pushes the report to your linked account.

A typical run:

`` auditscan scan . --out report.json --out-sbom sbom.json -q `

The folder does not need to be a Git repository. If it is one, the report records the branch and commit. If it is not, the scan still works and the revision is local. The scan is static by default and does not execute your code. --runtime is an explicit opt-in for profiling and test discovery, and it runs the scanned repository, so do not use it on untrusted code.

--out writes the full JSON report, --out-sbom and --out-spdx write SBOMs, --out-vex writes VEX, and --out-cra writes a CRA evidence pack. -q reduces terminal output to counts. The scan still pushes to the configured dashboard; use --push to target a different one. If the push fails, the local report remains and the exit code stays 0, unless the key itself was rejected.

Scanning requires a linked account. A bare local analysis with no account is not a supported mode for scan; use auditscan attest` when you need an offline bundle with no account.

The limit: the CLI scans the folder you give it. It will not follow a symlink outside the tree, and it applies the same file and size caps as the server.

How do I scan a GitHub repository URL with the CLI?

Run auditscan scan https://github.com/owner/repo and the CLI shallow-clones the public repository, scans the worktree, and pushes the report.

The clone is --depth 1 --single-branch, so a large history does not have to download. The checkout is cached under the AuditScan store, keyed by owner and repository, and refreshed with a shallow fetch on the next run. Idle clones expire after 30 days by default, and the cache has count and size caps. Use --ref main or --ref <commit> to scan a specific revision:

`` auditscan scan https://github.com/pallets/flask --ref main --out flask.json `

Only public repositories work through this path. The CLI does not attach a GitHub App installation token to a URL scan, so a private repository fails at clone. For private code, connect the repository through the GitHub App in the dashboard, or clone it locally with your own credentials and scan the folder.

A URL scan still needs a linked dashboard account, like every scan. It also obeys the size caps. The Linux kernel is far beyond a single scan, so narrow the target or clone it and scan a subsystem.

The limit: this is a shallow checkout of one ref, not a full history analysis. A commit that is not reachable from the shallow clone may fail to resolve, and submodules are not fetched recursively. A repository URL with a trailing .git` also works, and the report names the remote it cloned.

Can I scan a private repository?

Yes. Connect the repository through the GitHub App in the dashboard, or clone it yourself and scan the local folder with the CLI.

The GitHub App path is the supported hosted flow. You install the app on the account or organization, grant it the repositories you choose, and the dashboard clones read-only for each scan. The clone is a rescan and Fix-PR cache; removing the project deletes it, and idle clones expire after 30 days by default. Fix-PR can open a pull request only with your explicit approval. The app never needs your GitHub password.

The local path is simpler for a one-off. Clone with your normal credential helper, then run auditscan scan /path/to/checkout. The engine reads the working tree, records the remote and commit when available, and pushes findings to your account. Your Git credentials are never sent to AuditScan, and the CLI does not put a token in a remote URL.

Do not paste a personal access token into a repository URL for a hosted scan. It ends up in shell history, process lists and sometimes logs. If you must use a token, use a short-lived, repository-scoped one and revoke it after.

The limit: the dashboard must be able to reach the repository, and the plan must allow the project. A private repository cannot back a public review share link, because the public page rechecks visibility.

How do I scan a branch or a specific commit?

Pass --ref to the CLI, or choose a branch in the dashboard topbar, to scan and read a specific revision.

The CLI form is auditscan scan https://github.com/owner/repo --ref release/2.1 --out report.json, or --ref <full-sha> for a commit. For a local checkout, the CLI uses the working tree; if you need another branch, check it out first or pass the repository URL with --ref.

In the dashboard, the branch selector filters /api/dashboard?branch=<name> strictly. If the branch has no scan yet, the response returns job_id: null, an empty job list and zero findings rather than mixing in data from main. A non-default branch is fetched and scanned only when you explicitly start a scan on it.

Commit resolution has a shallow-clone caveat. A URL scan clones with --depth 1, so an old commit that is not in that history may fail with "unknown git ref". Fetch the commit first in a local clone, or scan the branch tip. A branch name refreshes to the remote tip on the next run; a SHA is immutable.

The report records the branch label and the full commit when Git provides them. The share page pins the revision and is branch-scoped: on a live certificate, ?branch=<name> switches the branch, and a branch with no completed scan shows an empty state instead of another branch's data.

The limit: a branch scan is a snapshot of one tree. It does not compare branches unless you use pr-gate with --base, which scans the base and the head and gates the difference.

A branch certificate is a snapshot of one exact commit on a branch you choose, normally the default branch and your release branches. It is not a property of a moving branch: it names the commit, the rule set and the assessed scope, and it is current only while that commit is the branch head. When the branch moves, a frozen certificate says so and links to the newer scan. You choose the branches in Proof > Certificate scope; the default branch always has a certificate. A public repository can publish it from its permanent share URL; a private repository keeps it inside the authenticated workspace.

The pull request check is a delta, not a second certificate. Exactly one comment is created and edited on every push, and one check run is attached to each commit. PASS means no new confirmed defect in complete scope. PASS WITH SCOPE LIMIT means a clean delta over unparsed or incomplete coverage. BLOCK means a new confirmed finding at or above the blocking severity, or an assessed control regressed. INCONCLUSIVE means the scan could not describe the commit, and it is never green. A newly connected repository starts in a 14-day advisory window: the card says BLOCK, but the required check stays neutral until the printed enforcement date, so a first pull request is not failed for inherited debt. When the rule set or advisory feed changed between base and head, new rows are not attributed to the pull request. Each delta is served as a signed JSON document at /d/<token> with a recomputable digest and an Ed25519 signature; auditscan verify-delta delta.json checks both offline and exits 1 on tampering.

What do the CLI exit codes mean?

auditscan uses 0 for success, 1 for a failed or unverifiable operation, 2 for a refusal that needs configuration or quota action, and 130 for an interrupt.

The common cases:

- 0: the scan completed, the report was written, and the push either succeeded or was not configured. A transient push failure after a successful scan does not change the exit code, because the local report is still valid. - 1: the path does not exist, the tree is not readable, the scan failed, an attestation or proof failed verification, or the dashboard positively rejected the API key with 401 mid-run. pr-gate also returns 1 when the gate fails, even though the scan itself succeeded. - 2: no linked account, a plain HTTP dashboard that is not localhost, a plan or quota refusal detected before the scan, a read-only account refusal, or an update that cannot run because this is a source checkout or no build is published. - 130: Ctrl+C or end of input during an interactive prompt.

attest and verify use 0 and 1 only. update uses 0 for success or already current, 1 for a download or replace failure, and 2 for a missing account or platform build.

Automation should branch on these values rather than scraping text. The limit: the codes describe the command outcome, not the security verdict. A clean scan and a scan with findings both exit 0; read the report to see the result.

How does CLI self-update work?

auditscan update replaces the installed binary with the build your dashboard publishes, after checking the SHA-256.

Run auditscan update --check first. It asks the authenticated /api/cli/platforms endpoint what the current build is, hashes your executable, and reports whether an update exists without installing it. Then run auditscan update to download from /api/cli/binary?platform=<os>. The bytes are hashed and compared with the advertised digest. A mismatch is refused; the binary is not replaced. On Windows the old executable is moved aside, the new one is swapped in, and the old file is removed. On POSIX the replacement is atomic.

The CLI also prints an update hint at most once a day after a scan, comparing the installed hash with the published one. Set AUDITSCAN_NO_UPDATE_CHECK=1 to disable that check. --force reinstalls even when the hash already matches, which is useful after a corrupt install.

A source checkout is not a frozen binary. auditscan update prints "This is a source checkout; update it with git pull" and exits 2. Use git pull and reinstall the package in that case.

The limit: updates are per-platform and only for builds the server actually advertises. macOS is not published yet. A firewall that blocks the download leaves the current binary untouched, which is the intended failure mode. A failed download also leaves the current install in place, so a broken release cannot brick the command.

Why does the CLI return 401 invalid or expired key?

A 401 means the dashboard did not accept the API key itself. It is not a quota problem and not a permission problem; the server does not recognize the credential as a live key.

The usual causes are a key that expired, a key revoked in Settings, a key from a different account than the configured email, a key copied with a missing character, or a dashboard URL that points at a different deployment with a different key table. A key is also refused if the account is banned or scheduled for deletion.

The fix is to create a new key in Settings, then run auditscan configure and paste it. The CLI validates the key against /api/scan-status before saving. If you use CI, update the AUDITSCAN_API_KEY secret and confirm AUDITSCAN_DASHBOARD_URL points at the same host. You can test the credential with:

`` curl -i -H "Authorization: Bearer $AUDITSCAN_API_KEY" https://app.auditscan.sh/api/scan-status ``

A 200 means the key is live. A 401 means replace it. Do not paste the key into a support ticket or a chat; a key id and the account email are enough to investigate.

The limit: a 401 is deliberately terminal for a scan. The CLI stops rather than completing a scan that cannot be attributed to an account, because a full scan without an account would bypass the product boundary.

Why does the CLI return 403 for a read_only account?

A 403 with code: read_only means the account is a read-only launch account: it can sign in and read, but it cannot start or import a scan until AuditScan opens to everyone on 15 February 2027.

This is a seat state, not a plan failure. It exists because the launch signup cap was reached. Past the cap, a new signup is accepted as read-only instead of being refused, so the person can still sign in and read published material. The server refuses /api/scan and /api/import-scan with the code, the launch date and a next step. Browsing, reports and account settings stay open.

In the CLI, the creation probe may catch this before the scan and exit 2 with the reason. If the state changes during the run, the push is rejected and the local report is kept; the CLI prints the rejection rather than pretending the report was imported. Either way, no dashboard project is created.

What to do: wait for the launch date, use an account that has a full seat, or apply an invite code during signup. An operator cannot flip a read-only row to full by editing data in a supported flow; the state is intentional.

The limit: this is not a bug and not a quota you can upgrade around. A read-only account cannot scan through the hosted service, and support cannot grant an exception outside the invite path.

Why does the CLI return 402 or stop on quota?

A 402 means a plan or add-on gate refused the action, not that the scan was wrong. The body usually carries billing: true and an upgrade message.

Scans are metered in files per month. Before a scan starts, the CLI calls /api/billing/status. If the subscription is inactive, or the monthly file allowance is exhausted, it prints the reason and exits 2 without scanning. That is deliberate: a full scan that cannot be stored is wasted work. Add-on surfaces such as SBOM, VEX, licence and dossier return 402 when the plan does not include them.

If the API call itself returns 402, read the body. It names the reason and the next step. Do not retry in a loop; the meter will not reset because you retried. Wait for the monthly reset, upgrade the plan, or use an account with the right entitlement.

A 402 is different from a 403 read_only, which is a launch seat state, and from a 401, which is a bad key. The fix paths are different.

The limit: quotas pause the metered action; they never silently charge an overage. Local single-user servers and the operator allowlist are unmetered, but that is an operator setting, not something a customer account can enable. If you believe the meter is wrong, send the account email, job id and timestamp, never the API key.

What happens when a scan is too large or times out?

When a scan is too large, it stops with a clear limit instead of returning a partial report that looks complete.

The engine has three relevant ceilings: a maximum file count, a maximum total size and a per-scan timeout. The code defaults are 200,000 files, 5 GB and 300 seconds, all configurable by the operator. The hosted service uses much tighter values, currently 3,000 files, 1 GB and 1,200 seconds, with one scan worker and queue caps. The snapshot raises an error such as "repo too large: over 3,000 files. Scan it locally with the CLI and import the report, or narrow the scan root and retry."

The practical fixes are to scan the subsystem you are changing, remove build output and vendored dependencies from the root, or run the CLI locally against the full tree and import the report. A monorepo with several services is usually better scanned one service at a time. A full Linux kernel checkout is beyond the per-scan ceiling.

A timeout is different from a size refusal. The job is marked failed with a timeout reason, and no partial report is published. Check the scan status and the worker heartbeat. A queued job is waiting; a running job with no heartbeat is stale and recovered.

The limit: raising a limit is an operator action on the server, not a client flag. Splitting the scan is the supported answer.

Why does a GitHub tree URL fail with git clone failed?

A GitHub /tree/<ref>/<folder> URL fails in the CLI because the CLI expects a repository root URL. The dashboard accepts the tree form and narrows the scan to the folder, but the CLI does not.

For https://github.com/torvalds/linux/tree/master/fs, the CLI's repository parser expects the last three path segments to be github.com, owner and repo. Here they are tree, master and fs, so it cannot identify the repository. It falls back to a directory name and tries to clone the full tree URL as if it were a repository, which Git rejects. The error is "git clone failed for fs".

Use the repository root and a ref instead:

`` auditscan scan https://github.com/torvalds/linux --ref master --out linux.json `

That scans the whole repository, which is far too large for one hosted scan. For a subsystem, clone locally and scan the folder:

` git clone --depth 1 https://github.com/torvalds/linux auditscan scan ./linux/fs --out linux-fs.json `

The local folder path does not need the tree URL. If you want the dashboard to narrow automatically, paste the tree URL into the dashboard's Add project flow, where the folder is stored and applied after cloning.

The limit: the CLI has no --path` narrowing flag. A subfolder scan is a local scan or a dashboard project, and a tree URL is not a repository URL. If the dashboard is your normal path, prefer its tree URL support because it stores the folder and applies it on every rescan.

How do I fix proxy or TLS certificate errors?

Point HTTPS_PROXY and HTTP_PROXY at your proxy, and make sure the proxy's CA certificate is trusted by the operating system, because the CLI verifies TLS with the OS trust store.

The CLI uses Python's urllib with a context that loads certifi when available and, on Windows, adds the ROOT and CA certificate stores that the browser uses. Git clone uses the same environment proxy variables. If your network performs TLS inspection, the proxy presents its own certificate, and the OS must trust the proxy CA. Installing the CA in the user or machine trust store is the correct fix.

A "certificate verify failed" message means the chain did not validate. Do not disable verification and do not set an insecure flag; there is no supported TLS bypass. AUDITSCAN_ALLOW_INSECURE_HTTP=1 only permits plain HTTP to a non-localhost dashboard for lab use, and it does not affect HTTPS verification.

If the proxy requires authentication, put the credentials in the proxy URL, for example http://user:pass@proxy.example:8080, and keep that value out of shared logs. If a clone fails but the dashboard call works, the proxy may allow HTTPS but block Git's smart HTTP path; test with git ls-remote https://github.com/owner/repo.

The limit: AuditScan cannot validate a certificate your OS does not trust. A corporate MITM proxy is a deployment decision, and the CA has to be distributed by your IT team.

How do I use the CLI in Docker or CI, and how do I uninstall it?

Run the CLI non-interactively in CI with AUDITSCAN_API_KEY and AUDITSCAN_DASHBOARD_URL, and uninstall by deleting only the AuditScan-owned install and config directories.

A minimal CI step, once the binary is installed in the job image, is:

`` export AUDITSCAN_DASHBOARD_URL=https://app.auditscan.sh export AUDITSCAN_API_KEY=${{ secrets.AUDITSCAN_API_KEY }} auditscan scan . --out report.json --out-sbom sbom.json -q `

Do not run auditscan configure in CI; it is interactive. The environment variables are enough. Archive report.json and the SBOM as artifacts, and branch on the exit code. A scan with findings still exits 0, so use pr-gate or parse the report if you want a failing job on a gate. Keep the key in the CI secret store, never in the workflow file.

For a self-hosted stack, docker compose up -d runs the app and triage services. The CLI is a separate binary; you can run it inside a Linux job container or on the runner. The app container is not a CLI distribution.

To uninstall on Windows, remove %LOCALAPPDATA%/AuditScan and delete only that directory from the user PATH. On Linux, remove ~/.local/bin/auditscan and ~/.config/auditscan. For a self-hosted stack, docker compose down -v` also deletes the AuditScan volumes, so back up first.

The limit: uninstalling the CLI does not delete your dashboard account or scans. Use Settings for that, and export first if you need the data. Pin the CLI version in the job image so a report does not change silently between pipeline runs.

API reference

The endpoint list, request shapes and error codes ship inside your workspace: open Docs → API after you sign in. Every route takes your account API key. The two verification routes (/api/nca/verify and the public verifier page) need no account at all.

No hidden scoring. A control verdict is produced by the deterministic engine and its evidence rows, not by this page.