curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=image" \
-F "file=@screenshot.png"
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "image",
"content_base64": "BASE64_ENCODED_IMAGE",
"filename": "screenshot.png"
}'
{
"success": true,
"message": "No threats found.",
"result": {
"scan_id": "scn_7d2e9f01b4a6",
"kind": "image",
"status": "done",
"verdict": "clean",
"score": 0,
"sha256": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2",
"data_residency": "global",
"image": {
"format": "png",
"width": 1280,
"height": 720
},
"file_type": "PNG image data",
"signals": [],
"iocs": [
{
"type": "sha256",
"value": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
Malware
Image Scan
Inspect an image for malware and suspicious content.
POST
/
api
/
lookup
/
malware
/
scan
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=image" \
-F "file=@screenshot.png"
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "image",
"content_base64": "BASE64_ENCODED_IMAGE",
"filename": "screenshot.png"
}'
{
"success": true,
"message": "No threats found.",
"result": {
"scan_id": "scn_7d2e9f01b4a6",
"kind": "image",
"status": "done",
"verdict": "clean",
"score": 0,
"sha256": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2",
"data_residency": "global",
"image": {
"format": "png",
"width": 1280,
"height": 720
},
"file_type": "PNG image data",
"signals": [],
"iocs": [
{
"type": "sha256",
"value": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
Image Scan analyzes an uploaded image for malware, suspicious content, and embedded indicators.
To send JSON instead, base64-encode the image into
The example is shortened. A full image result can also include
See Malware Scan for every image field.
Authentication
Send your API key asAuthorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Request
The image to scan, uploaded as
multipart/form-data. Send this field or
content_base64. When you omit filename, the uploaded file’s name is used.For a JSON body, send this field or
file. The base64-encoded image. Send raw base64 only. A data URL prefix such as
data:image/png;base64, returns 400.Example request
Upload the image from disk asmultipart/form-data. Replace screenshot.png with the path to your image.
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=image" \
-F "file=@screenshot.png"
content_base64:
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "image",
"content_base64": "BASE64_ENCODED_IMAGE",
"filename": "screenshot.png"
}'
Example response
{
"success": true,
"message": "No threats found.",
"result": {
"scan_id": "scn_7d2e9f01b4a6",
"kind": "image",
"status": "done",
"verdict": "clean",
"score": 0,
"sha256": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2",
"data_residency": "global",
"image": {
"format": "png",
"width": 1280,
"height": 720
},
"file_type": "PNG image data",
"signals": [],
"iocs": [
{
"type": "sha256",
"value": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
hashes,
metadata, appended_data, steganography, ocr_text, ocr_urls, and
url_scans.
Image result fields
Evidence for the verdict. Each item is an object with
source, malicious, detail, and optional severity.Errors
The API returns400 for invalid base64 content (including a data: URL prefix) or an unsupported image, 401 for a missing or invalid API key, 402 when your account has insufficient credits, and 429 when you exceed a rate limit.
Credits
A successful scan costs 1 credit. Repeating the same scan kind and content is deduplicated for billing.curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=image" \
-F "file=@screenshot.png"
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "image",
"content_base64": "BASE64_ENCODED_IMAGE",
"filename": "screenshot.png"
}'
{
"success": true,
"message": "No threats found.",
"result": {
"scan_id": "scn_7d2e9f01b4a6",
"kind": "image",
"status": "done",
"verdict": "clean",
"score": 0,
"sha256": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2",
"data_residency": "global",
"image": {
"format": "png",
"width": 1280,
"height": 720
},
"file_type": "PNG image data",
"signals": [],
"iocs": [
{
"type": "sha256",
"value": "f2ca1bb6c7e907d06dafe4687e579fce76b37e4e93b7605022da52e6ccc26fd2"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
Was this page helpful?