False Positives and Missed Threats

No scanner is right every time. When Surface flags something benign (a false positive) or lets something harmful through (a missed threat), there are two things to do: report it, so the verdict can be looked at, and adjust how your integration acts on verdicts, so the same thing doesn't hurt you again in the meantime.

First, read what the verdict says#

Some results that look wrong are working as intended:

To see why a scan was flagged, open it from Scan History. The detail page lists the findings with short redacted excerpts of the text that matched, which is usually enough to tell a real hit from a coincidence.

Report a wrong verdict#

From the dashboard#

Open the scan from Scan History. Its detail page has a Was this result accurate? card with three choices:

Choice Use it when
Correct The verdict was right
False Positive Surface flagged something benign
Missed Threat Surface let something harmful through

Add an optional comment saying what you expected, choose Submit Feedback, and confirm. The card then shows "You reported this as …", and Scan History marks the row with a small icon. You can change your report later. A new report on the same scan replaces the old one.

On plans that include analytics, the Dashboard's Accuracy card summarizes the reports your account has submitted.

From the API#

bash

curl -X POST https://app.tendrl.com/surface/api/feedback \
  -H "Authorization: Bearer $SURFACE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "scanId": "3f6c1e2a-…",
    "feedback": "false_positive",
    "verdict": "Suspicious",
    "comment": "Our own release build, signed by us"
  }'
Field Required Description
scanId One of scanId or fileHash The scan's ID: the id of the scan in scan history, or the scanId from a deferred scan
fileHash One of scanId or fileHash The file_hash of a file your account has scanned, as scan history shows it. Surface uses your most recent scan of that hash
feedback Yes false_positive, false_negative (a missed threat) or correct
verdict No The threat level you're reporting on, such as Suspicious. Recorded as unknown if omitted
comment No Free text: what you expected, and why

A successful report returns {"status": "recorded"}. The endpoint is also available at /api/feedback on the direct host.

Status error What it means
400 feedback must be false_positive, false_negative, or correct feedback is missing or misspelled
400 fileHash or scanId is required Neither identifier was sent
403 you can only submit feedback for files your account has scanned Your account has no scan of that hash
403 that scan is no longer available — … The scanId has aged out of your plan's retention window. If it was a file, send its fileHash instead: Surface can still confirm that your account scanned it
429 feedback rate limit exceeded, try again later Your account has sent too many reports today. Reports are capped at about 50 per account per day

The SDKs, the MCP servers and tendrl-cli don't have a feedback command. Call the endpoint directly, or use the dashboard.

What happens after you report#

A report doesn't change the verdict on the scan you reported, and it doesn't by itself change how the same content scores the next time it's scanned. Until it's addressed, use the mitigations below.

Mitigations you can apply yourself#

Act on recommendedAction, and decide what Review means for you#

Branch on safetyScore.recommendedAction, not on the score or on threatLevel == "Clean". Then decide what Review does in your app:

The SDKs' reject option sets which levels raise an error. The request middleware rejects Block by default. See Tune strictness and reject.

Tune engines in a custom profile#

Each payload engine's sensitivity decides which of its findings count. strict (the default) counts every finding, normal drops low severity, and permissive keeps high severity only. You can also turn an engine off, so it can't cause a Review or Block at all.

Built-in profiles can't be edited, so create a custom profile, tune it, and link your API key to it. Restricting Allowed types to what you actually accept also removes whole classes of surprises. See Engine configuration.

Give payload scans context#

Most false positives on prompts and tool calls come from missing context:

Build these values from your own app state, never from the payload being scanned. See Context fields and Screen agent tool calls.

If Surface missed something#

Then report it as Missed Threat, so the scan is looked at.