šŸ”’ Private Files

Information about private files

🚧

Premium feature

Private Scanning is only available to VirusTotal Enterprise users with a Private Scanning license.

Private files are similar to Files, but they are only visible to users of the uploader's group who have access to Private Scanning and to the file (see Sharing private analyses).

A private file object ID is its SHA256 hash.

Object attributes

Most File's attributes are present in private files, except for last_analysis_stats and last_analysis_results since private files are not run by antivirus.

{
	"data": {
		"attributes": {
			"androguard": <dict>,
			"authentihash": <string>,
			"bundle_info": <dict>,
			"class_info": <dict>,
			"creation_date": <int: timestamp>,
			"crowdsourced_yara_results": [
				{
					"description": <string>,
					"match_in_subfile": <boolean>,
					"rule_name": <string>,
					"ruleset_id": <string>,
					"ruleset_name": <string>,
					"source": <string>
				}
			],
			"deb_info": <dict>,
			"dmg_info": <dict>,
			"dot_net_assembly": <dict>,
			"dot_net_guids": <dict>,
			"elf_info": <dict>,
			"exiftool": <dict>,
			"html_info": <dict>,
			"image_code_injections": <string>,
			"ipa_info": <dict>,
			"isoimage_info": <dict>,
			"jar_info": <dict>,
			"javascript_info": <dict>,
			"magic": <string>,
			"macho_info": [
				<dict>,
				...
			],
			"main_icon": <dict>,
			"md5": <string>,
			"office_info": <dict>,
			"openxml_info": <dict>,
			"pdf_info": <dict>,
			"packers": <dict>,
			"pe_info": <dict>,
			"powershell_info": <dict>,
			"rombios_info": <dict>,
			"rtf_info": <dict>,
			"sandbox_verdicts": {
				<string: sandbox_name>: {
					"category": <string>,
					"confidence": <int>,
					"malware_classification": [
						<string>
					],
					"malware_names": [
						<string>
					],
					"sandbox_name": <string>
				},
			},
			"sha1": <string>,
			"sha256": <string>,
			"signature_info": <dict>,
			"size": <int>,
			"ssdeep": <string>,
			"swf_info": <dict>,
			"tags": [
				<string>,
				...
			],
			"telfhash": <string>,
			"tlsh": <string>,
			"trid": [
				<dict>,
				...
			],
			"type_description": <string>,
			"type_extension": <string>,
			"type_tag": <string>,
			"vba_info": <dict>,
			"vhash": <string>
		},
		"context_attributes": {
			"role": "<string>",
			"shared_with_me": <boolean>
		},
		"type": "private_file",
		"id": <string>,
		"links": {
			"self": "https://www.virustotal.com/api/v3/private/files/<id>"
		}
	}
}
{
  "data": {
    "attributes": {
      "sha1": "7bae8076a5771865123be7112468b79e9d78a640",
      "magic": "ASCII text",
      "tags": [
        "text"
      ],
      "exiftool": {
        "MIMEType": "text/plain",
        "LineCount": "1",
        "MIMEEncoding": "us-ascii",
        "FileTypeExtension": "txt",
        "FileType": "TXT",
        "WordCount": "1",
        "Newlines": "Unix LF"
      },
      "trid": [
        {
          "file_type": "file seems to be plain text/ASCII",
          "probability": 0.0
        }
      ],
      "vhash": "9eecb7db59d16c80417c72d1e1f4fbf1",
      "sha256": "11a77c3d96c06974b53d7f40a577e6813739eb5c811b2a86f59038ea90add772",
      "ssdeep": "3:tdn:T",
      "md5": "e5828c564f71fea3a12dde8bd5d27063",
      "size": 5
    },
    "context_attributes": {
      "role": "owner",
      "shared_with_me": false
    },
    "type": "private_file",
    "id": "11a77c3d96c06974b53d7f40a577e6813739eb5c811b2a86f59038ea90add772",
    "links": {
      "self": "https://www.virustotal.com/api/v3/private/files/11a77c3d96c06974b53d7f40a577e6813739eb5c811b2a86f59038ea90add772"
    }
  }
}

Context Attributes

Responses returning full private_file objects include a context_attributes object describing the authenticated caller's sharing relationship to the file:

  • role: <string> the caller's effective role on the private file, evaluated in priority order:
    • "owner": the file's owner or a group administrator of the owning group.
    • "editor": a user granted edit access directly or through the owning group.
    • "viewer": a user granted view access directly or through the owning group.
  • shared_with_me: <boolean> true if the private file has been explicitly shared with the caller or with the caller's active group (in viewers or editors); false for the direct owner. For a group administrator of the owning group, if the group is in viewers or editors, role is "owner" and shared_with_me is true.

context_attributes is returned on full private_file objects from GET /private/files/{id}, GET /private/files, and relationships that return full private_file objects (such as GET /private/analyses/{id}/item).

šŸ“˜

Exceptions and relationship-specific context attributes

  • If a SHA-256 queried via GET /private/files/{id} only represents hash metadata for a file seen as a child or dropped file without a full private file report, it has no sharing permissions and does not include role or shared_with_me.
  • When a private_file object is returned through a relationship (such as dropped_files), context_attributes may also include attributes specific to that relationship (for example paths, type, present_in_public_vt, last_analysis_stats, or last_analysis_date).

Relationships

In addition to the previously described attributes, private file objects contain relationships with other objects in our dataset that can be retrieved as explained in the Relationships section.

The following table shows a summary of available relationships.

RelationshipDescriptionReturn object type
behavioursSandbox behaviour reports generated for the private file.List of Private File Behaviours
dropped_filesFiles dropped during sandbox execution of the private file.List of Private Files
editorsUsers (including service accounts) and the owning group with edit access to the private file. Empty by default.List of Users and Groups
execution_parentsPrivate files observed dropping this file during sandbox execution.List of Private Files
ownerUser who owns the private file (the original submitter). Read-only.A single User
viewersUsers (including service accounts) and the owning group with read-only access to the private file. Contains the owning group by default.List of Users and Groups

Default sharing permissions and rules

  • Defaults on creation: When a private_file is created, owner is set to the submitting user, viewers contains only the owning group ({"type": "group", "id": "<group_id>"}), and editors is empty ([]).
  • Group administrators: Administrators of the owning group automatically have effective owner permissions on all private files in their group.
  • Repeated submissions: If another user from the same group submits the same file, that user is automatically added to editors.
  • Strictly intra-group scope: Private files are always private and can never be made public. They can only be shared with users (including service accounts) belonging to the owning group or with the owning group itself—never with users from other organizations, other groups (including parent groups or child/sibling tenants), or Group Tokens.
  • Automatic role transitions: Adding a viewer to editors automatically removes them from viewers, and adding an editor to viewers automatically removes them from editors.