Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: RightUp 1.0.2 — Minor update available for module rightup (1.0.2). Release: CronWatch 0.12.1 — Minor update available for module cronwatch (0.12.1). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Virustotal is a service that analyzes suspicious files and URLs and facilitates the quick detection of viruses, worms, trojans, and all kinds of malware detected by antivirus engines. More information...

This module integrates the VirusTotal API service
It provides an API for developers and Rules 2.x integration
(but does nothing out of the box). (7.x)

It provides reports list in the admin area and has cron features for retrieving actual file status once per day. You can use Ultimate cron module to reconfigure this behaviour. Also, the module has an additional useful feature - admin notification via email about infected files. (8.x)

How to use it?

Install as usual. (7.x)
Install as usual. (8.x)

Configuration (6.x, 7.x)

  • Goto admin/config/system/virustotal and paste in a valid personal API key. If you are registered to the VirusTotal community you will find you key at your profile on the "API key" tab.

D8 version configuration: (8.x)

  • Goto /admin/config/system/virustotal/api_settings and paste a valid personal API key.
  • If you are registered to the VirusTotal community you will find you key at your profile on the "API key" tab.
  • Also you will be able to enable admin notifications to get information about viruses found at your website.

Sitebuilding (7.x)

  • If you just need the basic API functionality you should have a look at the VirusTotal Rules submodule. With Rules 2.x and the VirusTotal API Rules integration you can handle most of the API functionality without writing any line of code. Instructions..

Development (6.x, 7.x)

  • If you want to use or extend the VirusTotal API you should have a look at the VirusTotal API Examples submodule. It will show you how to use the all functionality in detail.

API Functionality

(7.x)

Functions of the VirusTotal API Class

  • scanFile() Sends a File to VirusTotal service to queue it for scanning.
  • getFileReport() Tries to retrieve a file scan report.
  • scanUrl() Sends an URL to VirusTotal service and queue it for scanning.
  • getUrlReport() Tries to retrieve a URL scan report.
  • makeComment() Creates a comment on a file or URL report.

Hooks (7.x)

  • hook_virustotal_query_alter Modules may make changes to the query data before it is send to VirusTotal.
  • hook_virustotal_result_alter Modules may make changes to the response data before it is returned.

Requirements

No other modules are required but a valid VirusTotal community account is needed and cURL library must be installed.

D8 Module version

Entity Events
GuzzleHTTP v6+ library
GuzzleHttp folder should be placed to your project 'vendor' directory
and included in the project default autoload.

If you are using composer module version all dependencies
will be downloaded automatically.

A word of warning

As VirusTotal.com is a free service please remember to protect them from "junk". Don't send images (like .png, .jpgs and .gif) or plain-text files (like .txt) to Virustotal, it is very unlikely that these files contain harmful stuff. Really vulnerable files (that are worth sending to VT) are executables (.exe, .scr, .pif, .bat) and typical files like .pdf's, java-applet's or flash applications. Also rather think about requesting an existing scan-report before checking the same file twice.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jun 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.0 Stable Jun 13, 2023
2.0.x-dev Dev Jun 13, 2023