Special privileges requiredPrivate Scanning is only available to users with the Google Threat Intelligence Enterprise or Enterprise Plus licenses.
For uploading files smaller than 32MB you can simply use the POST /private/files endpoint, but for larger files you need to obtain a special upload URL first, and then send the POST request to the upload URL instead of sending it to /private/files. The POST request should have the same format expected by the POST /private/files endpoint. Each upload URL can be used only once.
Password-Protected Archives and Documents
For password-protected archives (.zip, .7z, .rar) or encrypted documents larger than 32 MB (up to 650 MB), the optional password parameter (a UTF-8 string up to 128 characters) can be supplied:
-
Recommended: As a
multipart/form-datafield when sending thePOSTrequest with the file to the returned upload URL (recommended to avoid exposing decryption passwords in URL query strings):curl --request POST \ --url "UPLOAD_URL" \ --header "x-apikey: YOUR_API_KEY" \ --form "file=@/path/to/large_archive.zip" \ --form "password=infected" -
As a query parameter (
GET ?password=) when requesting the upload URL (also supported):curl --request GET \ --url "https://www.virustotal.com/api/v3/private/files/upload_url?password=infected" \ --header "x-apikey: YOUR_API_KEY" \ --header "accept: application/json"
Google TI uses the password to stage extracted inner files privately under bundled_files as files you may choose to analyze, and to analyze encrypted samples in supported private dynamic analysis sandboxes.