14 releases

new 0.1.4 Oct 31, 2024
0.1.1 Aug 28, 2024
0.0.9 Jul 21, 2024
0.0.4 Mar 17, 2024
0.0.3 Dec 30, 2023

#318 in Cryptography

Download history 65/week @ 2024-07-13 222/week @ 2024-07-20 232/week @ 2024-07-27 84/week @ 2024-08-03 205/week @ 2024-08-10 102/week @ 2024-08-17 186/week @ 2024-08-24 224/week @ 2024-08-31 206/week @ 2024-09-07 191/week @ 2024-09-14 119/week @ 2024-09-21 125/week @ 2024-09-28 83/week @ 2024-10-05 89/week @ 2024-10-12 69/week @ 2024-10-19 213/week @ 2024-10-26

469 downloads per month
Used in 3 crates

Apache-2.0

76KB
1.5K SLoC

VirusTotal Client

TestLintCrates.io VersionOpenSSF Scorecard

This is logic for interacting with VirusTotal's V3 API. At present, only the following actions are supported:

  • Fetch file report: this gets the anti-virus scan data for a given sample, and there are examples in the testdata/ directory.
  • Request re-scan: ask VirusTotal to run a given sample through their collection of anti-virus applications and analysis tools.
  • Submit a sample: send a sample to VirusTotal for analysis.
  • Download a sample: download the original sample from VirusTotal (not fully tested, requires VirusTotal Premium).
  • Search: find the hashes of files which match some search criteria (not fully tested, requires VirusTotal Premium, uses older V2 API). See VirusTotal's doc for more information.
  • The file report object and error types can be useful when interacting with VirusTotal using another crate or using VT's API directly; you don't have to use the client object in this crate to use the data (and error) types in this crate.

VirusTotal supports these actions given a MD5, SHA-1, or SHA-256 hash.

Additionally, this provides a client application (in bin/, or malwaredb-virustotal-bin) for the supported operations on the command line.

MUSL Targets

It's recommended to use the native-tls-vendored feature to avoid OpenSSL build errors when compiling for Linux MUSL targets. See the example Cargo.toml entry below:

[target.'cfg(target_env = "musl")'.dependencies]
malwaredb-virustotal = { version = "0.1", features = ["native-tls-vendored"] }

Dependencies

~5–19MB
~293K SLoC