
Suspicious File Scanner API
Security
Is this file safe? Spot disguised executables, fake extensions, macros and active content, and get a SHA-256 for a VirusTotal lookup. Runs in your browser.
Authentication
All API requests require a valid API key passed in the Authorization header as a Bearer token.
Rate Limit
20 requests per minute
Endpoints
1 endpoint available
Overview
Inspect a file's structure for warning signs without opening or running it:
- Its real type from its first bytes, and whether the extension matches.
- Programs, scripts and Windows shortcuts, including ones disguised as documents.
- Right-to-left override characters hiding the real extension.
- PDF actions (Launch, JavaScript, OpenAction, embedded files), scripts and event handlers in HTML and SVG, and macros in Office files.
It also returns the file's SHA-256 so you can look it up on VirusTotal. This is a heuristic check, not antivirus: a clean result does not prove a file is safe.
Verdict
verdict is the worst finding: danger, warn or ok. Findings have a severity, a title and sometimes a detail.
Limits
- One file of any type, up to 25 MB. Text checks read the first 5 MB.
Endpoints
POST
https://opentools.ca/api/v1/tools/suspicious-file-scannerCheck a file for disguises and active content
Request Body
Content-Type: multipart/form-data
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Required | The file to inspect, any type, up to 25 MB. |
Response Example
{
"success": true,
"name": "invoice.pdf.exe",
"size": 48213,
"claimedExtension": "exe",
"detectedType": {
"label": "Windows executable / DLL (PE)",
"category": "executable",
"extensions": [
"exe",
"dll",
"scr",
"sys",
"com",
"ocx",
"drv"
]
},
"verdict": "danger",
"findings": [
{
"severity": "danger",
"title": "This is a program, not a document",
"detail": "Detected as: Windows executable / DLL (PE). Only run it if you completely trust the source."
}
],
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}Error Codes
400
Bad Request - missing or invalid fields (see details)401
Unauthorized - missing or invalid API key403
Forbidden - API key inactive or expired, or request IP not allowed413
Payload Too Large - a file is over 25 MB429
Too Many Requests - more than 20 requests per minute for this key500
Internal Server ErrorCode Examples
curl -X POST https://opentools.ca/api/v1/tools/suspicious-file-scanner \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@attachment.docm"Rather use it in your browser? Open the Suspicious File Scanner