> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/virustotal.md).

# VirusTotal

Submit URLs and files for analysis and inspect VirusTotal threat reports.

## Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector  | Authentication |
| ---------- | -------------- |
| VirusTotal | API Key        |

### VirusTotal

Connect to VirusTotal to submit URLs and files and inspect threat reports.

#### Set up in VirusTotal

1. Prepare the VirusTotal account or service that the workflow will access. Grant access to the required resources and operations.
2. Create or obtain the API credential identified in the fields below. Use the provider instructions linked with those fields to find its key-management page.

#### Set up in StackAI

1. Open **Settings → Connections**, add a connection, and select **VirusTotal**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required | What to enter                                                                                                                                                                                                                                                      |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| API Key       | Yes      | Open your VirusTotal profile, select API key, and copy the key shown there. Commercial use requires a Premium API key; Community API keys are not permitted in commercial products or services. [Provider instructions](https://www.virustotal.com/gui/my-apikey). |

### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

## Use an action

1. Add the required **VirusTotal** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

## Actions

### Scan URL

Submit a public URL to VirusTotal for security analysis.

#### Inputs

| Field | Type   | Required | Description                         |
| ----- | ------ | -------- | ----------------------------------- |
| URL   | string | Yes      | Public URL to scan with VirusTotal. |

#### Outputs

| Field         | Type   | Description                          |
| ------------- | ------ | ------------------------------------ |
| Analysis ID   | string | VirusTotal analysis identifier.      |
| Analysis Type | string | Type of analysis VirusTotal created. |

### Get File Report by Hash

Retrieve VirusTotal's latest report for a file hash.

#### Inputs

| Field     | Type   | Required | Description                              |
| --------- | ------ | -------- | ---------------------------------------- |
| File Hash | string | Yes      | MD5, SHA-1, or SHA-256 hash of the file. |

#### Outputs

| Field           | Type    | Description                                       |
| --------------- | ------- | ------------------------------------------------- |
| File ID         | string  | VirusTotal file identifier.                       |
| SHA-256         | string  | SHA-256 digest reported by VirusTotal.            |
| SHA-1           | string  | SHA-1 digest reported by VirusTotal.              |
| MD5             | string  | MD5 digest reported by VirusTotal.                |
| Meaningful Name | string  | Most representative filename known to VirusTotal. |
| Size            | integer | File size in bytes.                               |
| File Type       | string  | File type identified by VirusTotal.               |
| Reputation      | integer | VirusTotal community reputation score.            |
| Tags            | array   | VirusTotal tags for the file.                     |
| Analysis Stats  | object  | Latest antivirus verdict counts.                  |

### Get Domain Report

Retrieve VirusTotal's security report for a domain.

#### Inputs

| Field  | Type   | Required | Description                 |
| ------ | ------ | -------- | --------------------------- |
| Domain | string | Yes      | Domain name to investigate. |

#### Outputs

| Field          | Type    | Description                                |
| -------------- | ------- | ------------------------------------------ |
| Domain         | string  | Domain returned by VirusTotal.             |
| Registrar      | string  | Domain registrar, when known.              |
| Reputation     | integer | VirusTotal community reputation score.     |
| Categories     | object  | Security-vendor categories for the domain. |
| Tags           | array   | VirusTotal tags for the domain.            |
| Analysis Stats | object  | Latest domain scanner verdict counts.      |

### Get IP Address Report

Retrieve VirusTotal's security report for an IP address.

#### Inputs

| Field      | Type   | Required | Description                          |
| ---------- | ------ | -------- | ------------------------------------ |
| IP Address | string | Yes      | IPv4 or IPv6 address to investigate. |

#### Outputs

| Field                      | Type    | Description                                   |
| -------------------------- | ------- | --------------------------------------------- |
| IP Address                 | string  | IP address returned by VirusTotal.            |
| AS Owner                   | string  | Organization that owns the autonomous system. |
| ASN                        | integer | Autonomous system number.                     |
| Country                    | string  | Country code associated with the IP address.  |
| Network                    | string  | Network range containing the IP address.      |
| Regional Internet Registry | string  | Registry responsible for the IP address.      |
| Reputation                 | integer | VirusTotal community reputation score.        |
| Tags                       | array   | VirusTotal tags for the IP address.           |
| Analysis Stats             | object  | Latest IP scanner verdict counts.             |

### Upload File for Analysis

Download a public file and submit it to VirusTotal for analysis.

#### Inputs

| Field    | Type   | Required | Description                                                                                                                   |
| -------- | ------ | -------- | ----------------------------------------------------------------------------------------------------------------------------- |
| File URL | string | Yes      | Public HTTPS URL of the file to submit. VirusTotal may share submitted files; never submit confidential or regulated content. |
| Filename | string | No       | Optional filename to send to VirusTotal.                                                                                      |

#### Outputs

| Field         | Type   | Description                                 |
| ------------- | ------ | ------------------------------------------- |
| Analysis ID   | string | VirusTotal analysis identifier.             |
| Analysis Type | string | Type of analysis VirusTotal created.        |
| Filename      | string | Sanitized filename submitted to VirusTotal. |

## Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/virustotal.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
