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:
Reviewon a file upload.Blockneeds precise evidence, such as a known-bad hash or a signature. Malware that only the models recognize comes back asReviewon purpose. That's a detection, not a false alarm. See For uploads, refuse Review as well as Block.Informationalinstead ofClean. Formats withminimalcoverage, such as JARs, APKs and Mach-O binaries, never returnClean.Informationalstill means Allow. See How much a verdict is worth.- A score lower than the findings explain. If
safetyScore.suppressedEnginesis present, an engine fired but your profile hides its findings. The verdict still counts them. Turn the engine on in the profile to see what it found.
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#
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#
- Your report is recorded against the scan, with the verdict you reported on and your comment. It's visible to the Surface team.
- It's tied to what fired. Surface notes which engines and rules flagged the content, so a rule that keeps drawing false-positive reports stands out without anyone having to retrain a model.
- It joins a platform-wide tally for that content. Each account counts once per file for each kind of report, however many times it reports. A single report never overrides the engines. When enough independent accounts dispute the same file, it's kept out of the data used to train future models, so a wrong verdict isn't learned as truth.
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:
- File uploads: refusing
Reviewis the safe default. If that refuses too much, holdReviewfiles for a person instead of rejecting them outright. - Agent tool calls:
Reviewmeans "ask the user". The SDK guards hold a Review'd call by default, andon_review(onReview,OnReview) lets you run it or ask the user inline.
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:
source:user_promptfor a person's own words,contentfor text the agent read,tool_callfor an action it's about to take. An override in a user's own prompt is held for Review at most, and HTML or script rules don't holdcontentthat the agent only reads.user_request: what the person actually asked. A requested action is cleared, or held for confirmation if it's risky, instead of being treated as unexplained.principal_domainsandallowed_egress: your domains and the hosts you call, so routine mail and API calls aren't flagged as data leaving.personal_mail_expected: set it if your users routinely write to Gmail and Outlook addresses.strictness:relaxedstops only what's certainly malicious.balancedis the default.
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#
- Treat
Reviewas a stop wherever a miss is expensive. - Raise
strictnesstostrictfor agents that can move money, send mail or change access, and keep a person in the loop for those actions. - Scan scripts with the hosted API when you can. It runs them in a sandbox. The scanner binary analyzes them statically.
- Know the weak formats. For JARs, APKs and other
minimal-coverage formats, pair Surface with runtime controls. See Detection coverage.
Then report it as Missed Threat, so the scan is looked at.
Tendrl