Upload a file

🚧

Special privileges required

Private Scanning is only available to users with the Google Threat Intelligence Enterprise or Enterprise Plus licenses.

Upload and analyse a file with Private Scanning

📘

File size

If the file to be uploaded is bigger than 32MB, please use the /private/files/upload_url endpoint instead which admits files up to 650MB.

Password-Protected Archives and Documents

When uploading password-protected archives (.zip, .7z, .rar) or encrypted documents (.pdf, Microsoft Office) to Private Scanning, include the optional password multipart form field (a UTF-8 string up to 128 characters).

The provided password is used to:

  • Decrypt and extract inner files privately, staging them under the Relations tab (bundled_files) as files you may choose to analyze.
  • Analyze encrypted archives and documents in supported private dynamic analysis sandboxes.
curl --request POST \
     --url https://www.virustotal.com/api/v3/private/files \
     --header "x-apikey: YOUR_API_KEY" \
     --header "accept: application/json" \
     --header "content-type: multipart/form-data" \
     --form "file=@/path/to/archive.zip" \
     --form "password=infected"
Body Params

File to scan

string

Command line arguments to use when running the file in sandboxes.

string
Defaults to false

If true, then the file won't be detonated in sandbox environments. False by default.

string
Defaults to false

If the file should have internet access when running in sandboxes. False by default.

file
required
string
Defaults to false

Intercept HTTPS/TLS/SSL communication. Intercept HTTPS to view encypted URLS, hostnames and HTTP headers. This is detectable by any sample that checks certificates, and makes JA3 hashes unusable.

string

Optional password (up to 128 UTF-8 characters) to decrypt password-protected archives (ZIP, 7z, RAR) and encrypted documents (PDF, Office), extract bundled inner files, and analyze them in supported private dynamic analysis sandboxes.

int32
1 to 28
Defaults to 1

Optional, number of days the report and file are kept in VT (between 1 and 28). If not set it defaults to the group's retention policy preference (1 day by default).

string
enum

Optional, storage region where the file will be stored. By default uses the group's private_scanning.storage_region preference. Allowed values are US, CA, EU, GB

Allowed:
string
enum

Select the sandbox desired for interactive use.

Allowed:
int32
60 to 1800
Defaults to 60

Interaction timeout in seconds, minimum value: 60. (1 minute.) Max value: 1800: (30 minutes)

string
enum
Defaults to EN_US

Preferred sandbox locale. On windows this selection will change the language and keyboard settings of the analysis machine.

Allowed:
Headers
string
required

Your API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json