Atlantiraptor Docs

Server.Enrichment.Virustotal

Type: Server · Author: Wes Lambert – @therealwlambert, Whitney Champion – @shortxstack

Enriches a file hash or IP address with VirusTotal threat intelligence results.

Note that the default public API rate limit is 4 requests/min, as the time of writing.

This artifact can be called from within another artifact (such as one looking for files) to enrich the data made available by that artifact.

Examples:

SELECT * from Artifact.Server.Enrichment.Virustotal(Hash=$YOURHASH) SELECT * from Artifact.Server.Enrichment.Virustotal(IP=$YOURIP,QueryType='ip')

TODO: Implement a timer to spread out requests

Parameters

Name Type Default Description
QueryType choices hash The type of query–hash or IP
Hash string The file hash to submit to Hybrid Analysis (MD5, SHA1, SHA256).
IP string The IP address to submit to Hybrid Analysis.
VirustotalKey string API key for Virustotal. Leave blank here if using server metadata store.

Source

Defined in artifacts/definitions/Server/Enrichment/Virustotal.yaml.

name: Server.Enrichment.Virustotal
author: Wes Lambert -- @therealwlambert, Whitney Champion -- @shortxstack
description: |
  Enriches a file hash or IP address with VirusTotal threat
  intelligence results.

  Note that the default public API rate limit is 4 requests/min, as
  the time of writing.

  This artifact can be called from within another artifact (such as one looking
  for files) to enrich the data made available by that artifact.

  **Examples:**

  `SELECT * from Artifact.Server.Enrichment.Virustotal(Hash=$YOURHASH)`
  `SELECT * from Artifact.Server.Enrichment.Virustotal(IP=$YOURIP,QueryType='ip')`

  TODO: Implement a timer to spread out requests

type: SERVER

parameters:
    - name: QueryType
      type: choices
      description: The type of query--hash or IP
      default: hash
      choices:
         - hash
         - ip

    - name: Hash
      type: string
      description: The file hash to submit to Hybrid Analysis (MD5, SHA1, SHA256).
      default:

    - name: IP
      type: string
      description: The IP address to submit to Hybrid Analysis.
      default:

    - name: VirustotalKey
      type: string
      description: API key for Virustotal. Leave blank here if using server metadata store.
      default:

sources:
  - query: |
        LET Creds = if(
           condition=VirustotalKey,
           then=VirustotalKey,
           else=server_metadata().VirustotalKey)

        LET URL = if(
           condition= QueryType='hash',
           then= 'https://www.virustotal.com/api/v3/files/' + Hash,
           else= 'https://www.virustotal.com/api/v3/ip_addresses/' + IP)

        LET Data = SELECT parse_json(data=Content) AS VTData
        FROM http_client(url=URL, headers=dict(`x-apikey`=Creds))

        SELECT format(format='%v/%v',
             args=[VTData.data.attributes.last_analysis_stats.malicious,
                   VTData.data.attributes.last_analysis_stats.malicious +
                   VTData.data.attributes.last_analysis_stats.undetected]) As VTRating,
            timestamp(epoch=VTData.data.attributes.first_seen_itw_date) AS FirstSeen,
            timestamp(epoch=VTData.data.attributes.first_submission_date) AS FirstSubmitted,
            timestamp(epoch=VTData.data.attributes.last_analysis_date) AS LastAnalysis,
            VTData.data.attributes.as_owner AS Owner,
            VTData.data.attributes.whois AS WhoIs,
            VTData.data.attributes.crowdsourced_yara_results AS YARAResults,
            VTData AS _Data
        FROM Data

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.