scan_file: Submit a file for scanning

View source: R/scan_file.R

scan_fileR Documentation

Submit a file for scanning

Description

Uploads a file to VirusTotal for malware analysis using the v3 API.

Usage

scan_file(file_path, ...)

Arguments

file_path

Required; Path to the file to be scanned

...

Additional arguments passed to virustotal_POST

Value

A virustotal_file_scan object with analysis ID and links

References

https://docs.virustotal.com/reference/files-scan

See Also

set_key for setting the API key, file_report for retrieving scan results

Examples

## Not run: 
# Set API key first
set_key('your_api_key_here')

# Scan a file
result <- scan_file(file_path = 'suspicious_file.exe')
print(result)

## End(Not run)

virustotal documentation built on April 13, 2026, 9:07 a.m.