codaprobe: live app testing

codaprobe tests a live application over the network, only on targets a scope file authorizes; any ambiguity in the scope means refusal.

Before any packet leaves, the target must be on the scope's allowlist. That is why this guide starts with authorization.

License. In the public binary, codaprobe needs a paid plan license. Without one it exits with code 40 (3 is a scope refusal). check-scope, check-script, schema, verify-audit and completions stay free. See pricing.

1. Authorization and scope (read before running)

The scope is a JSON file declaring who authorized and what is authorized:

{
  "authorization": {
    "attestation": "authorized pentest — ticket SEC-4210, approved by Maria Silva (CISO) on 2026-07-20",
    "granted": true
  },
  "entries": [
    { "host": "app.customer.test", "port": 443, "path_prefix": "/api", "mutating_opt_in": false }
  ]
}
FieldMeaningIf wrong
attestationfree-text provenance (who, ticket, date); goes into the reportthe report loses its value as evidence
grantedthe operator declares the authorization; absent = falseeverything is refused
host · porttarget in canonical form, explicit portnon-canonical form fails loading; a different port is refused
path_prefixprefix matched on whole segments (/api covers /api/x, not /apix); requireda misspelled key fails loading instead of authorizing the whole host
mutating_opt_inallows POST/PUT/PATCH/DELETE on this target; absent = falsemutating methods are refused before the network

An unknown field fails loading: a typo cannot become permission. Check without touching the network:

codaprobe check-scope --scope scope.json --url https://app.customer.test/api/

2. Scan

# passive — legitimate traffic only, no payloads (headers, cookies, CORS, leaks)
codaprobe scan --scope scope.json --url https://app.customer.test/api > report.json

# active, driven by the contract (OpenAPI 3 JSON/YAML, Postman collection or HAR)
codaprobe scan --scope scope.json --url https://app.customer.test/api \
  --contract openapi.yaml --active --auth-file auth.txt --audit-out audit.json > report.json

# no contract: discover the surface by browserless crawl
codaprobe scan --scope scope.json --url https://app.customer.test --crawl --active > report.json

# GraphQL from introspection (no --active; the protocol's POST needs mutating_opt_in)
codaprobe scan --scope scope.json --url https://app.customer.test/graphql --graphql introspection.json

Active mode tests query, header, cookie, form, path segment and the parameter name. Payloads are benign: they reveal the flaw without exploiting it. For flaws with no visible response there is --temporal; out-of-band detection (--oob) is off by default and uses a collaborator you run, on a machine the target can reach: codaprobe oob-collaborator --bind 0.0.0.0:8088 there and --oob http://<address>:8088 in the scan. It keeps only the interaction marker.

Flags that change the result: --rps <n> (total rate, default 5), --concurrency <n> (threads, default 4), --fail-on <sev> (fails only on confirmed findings), --ca-cert <pem> (prefer it over --insecure, which also disables hostname checking), --correlate-src <envelope> (cross-matches with the codafort envelope), --plan-from <findings> (directs the active scan to the routes and CWEs reported by codafort). The full list is in codaprobe scan --help.

Session: --auth-file (one Name: value line, or the CODAPROBE_AUTH variable) or --login-file, a JSON file with the login endpoint, the body, the token field and the username and password; the login POST needs mutating_opt_in. A second identity (--auth-file-b or --login-file-b) proves BOLA: the scanner creates an object as A and reads it as B, and the finding comes out confirmed. With a single identity, API authorization findings stay candidates.

3. .dast scenarios (--script, check-script, --hook)

For multi-step business-logic flows — creating a resource as user A, trying to read or mutate it as user B, signing requests with HMAC, or checking application invariants — codaprobe runs .dast Rhai scripts (// codaprobe-script/1) inside the same engine guardrails (fail-closed scope, per-hop IP validation, --rps, audit chain, URL redaction, and instruction and memory budgets).

// codaprobe-script/1
let order = param("ORDER_ID", "1042");
let control = http.get(`/api/orders/${order}`);
let probe = http_b.get(`/api/orders/${order}`);

prove(#{
    id: "BOLA-ORDER-READ",
    title: "Cross-user order read",
    cwe: 639,
    severity: "high",
    probe: probe,
    control: control,
    when: probe.status == 200 && control.status == 200
          && probe.json("$.owner_id") == control.json("$.owner_id"),
    evidence: `order ${order} read by the second identity with status ${probe.status}`
});

Check syntax offline without touching the network, then run in a scan (--script does not require --active and can be repeated):

# validate syntax offline (exit 0 valid · 20 error with line and column; free without a license)
codaprobe check-script --file bola.dast

# run the scenario with two identities and an external parameter
codaprobe scan --scope scope.json --url https://app.customer.test/api \
  --auth-file auth-a.txt --auth-file-b auth-b.txt \
  --script bola.dast --script-param ORDER_ID=1042 --audit-out audit.json > report.json

# run multiple scripts in parallel (sharing --rps) and attach a signing hook to every scan request
codaprobe scan --scope scope.json --url https://app.customer.test/api \
  --contract openapi.yaml --active --hook hmac.dast \
  --script bola.dast --script checkout.dast --script-parallel > report.json
  • Proofs vs candidates: prove(#{ id, title, cwe, severity, probe, control, when, evidence }) requires two distinct live exchanges (probe and control with distinct seq IDs) and emits SD-SCRIPT-<ID> as confirmed only when when holds on probe and is false on control. prove_temporal (slow samples above baseline + delay plus fast controls) and prove_oob (confirmed callback on --oob) follow the same rule. candidate(...) records a hypothesis without a differential control and never fails --fail-on.
  • Contract iteration and reuse: if a script defines fn on_endpoint(ep), the engine calls it once per endpoint loaded from --contract. import "lib.dast" as lib; imports relative helpers from the same directory (depth 1).
  • **Request hooks (--hook <file.dast>):** a script defining fn on_request(req) can attach per-request headers (req.set_header(name, value) — for example hmac_sha256(secret("HMAC_KEY"), req.body) with nonce() and now_unix()) without changing the method, URL, or body and without seeing session credentials.
  • Report traceability: meta.scripts records name@sha256, meta.script.<name> records the outcome (ok, error:L:C, budget, or panic), meta.hooks lists the hooks, and meta.script_params lists only parameter names (never values). verify-audit --report checks that every seq cited by an SD-SCRIPT-<ID> finding exists in the audit log with matching URL and method.

4. The report, the audit log and the evidence

The report is coda-dast/1: moment: run findings, redacted URL (no userinfo, no query), the authorization text and the audit log anchor. The audit log (--audit-out) is SHA-256-chained and the coda-evidence/1 contribution (modality: dast) are verified and generated like this:

codaprobe verify-audit --file audit.json --report report.json    # exit 0 INTACT · 21 TAMPERED
codaprobe evidence --report report.json > dast-ev.json           # coda-evidence/1 (modality: dast)

With --report (or --expect-anchor), the command checks the log against the anchor in the report and answers INTACT (exit 0) or TAMPERED (exit 21). Without them, the best possible verdict is CONSISTENT: whoever edits the log can recompute the chain, and only the anchor in the report catches a removal with the chain rebuilt. Always verify with the report.

5. In the pipeline

codaprobe scan --scope scope.json --url "$TARGET" --contract openapi.yaml --active \
  --auth-file auth.txt --rps 10 --fail-on high --audit-out audit.json > report.json

Only a confirmed finding fails the build; a candidate does not.

ExitMeaning
0ran (findings are not errors)
1--fail-on failed
2usage error: unknown or missing flag, or one that needs another
3target refused by scope
20invalid input (scope, contract, .dast script, credential, absurd --rps)
21verify-audit: broken chain, anchor mismatch, or script proof missing from audit log
30I/O or network error at start, or an --audit-out that could not be written
40no license (see above)
130interrupted (Ctrl-C)

What it does not see

  • Routes outside the surface: active mode tests the endpoints from the contract or the crawl; the rest was not tested, and zero findings there does not mean safe.
  • Out-of-band classes without --oob: the report says in meta.oob_frontier that they were not measured.
  • Probes that never arrived: meta.transport_failures and the not_tested part of coverage show what got no response; untested never becomes clean.
  • DOM-XSS: the sink runs in the victim's browser. --browser uses Chrome only to discover a SPA's routes.

What it never does

It never relaxes scope, non-destructive mode or URL redaction to find more. It keeps no secrets in the report.