Skip to main content

forensic_hashdb/
types.rs

1/// Source database a known-bad hash came from.
2#[derive(Debug, Clone, PartialEq, Eq)]
3pub enum BadFileSource {
4    MalwareBazaar,
5    VirusShare,
6    Malshare,
7    AlienVaultOtx,
8    Custom(&'static str),
9}
10
11/// Provenance record for a known-bad file hash.
12#[derive(Debug, Clone)]
13pub struct BadFileInfo {
14    pub sha256: [u8; 32],
15    pub source: BadFileSource,
16    pub malware_family: Option<String>,
17    pub tags: Vec<String>,
18}
19
20/// A known-vulnerable or known-malicious Windows driver.
21#[derive(Debug, Clone)]
22pub struct DriverInfo {
23    pub name: &'static str,
24    pub sha256: [u8; 32],
25    pub cves: &'static [&'static str],
26    pub description: &'static str,
27}