I have looked at this as a personal project, the 4 queries per minute put me off...
SHA256 has limitations being exposed by DNS, 64 digits are required to represent a SHA256 hash, DNS is limited to 63 characters per label, this could be resolved by splitting on the 32nd char to make subdomains in DNS. I have a plugin already developed which already extracts attachments and can check the MD5/SHA1 against a DNS resolver, the logic to add SHA256 support would be simple and easy to add. Paul On 17/04/2018, 20:32, "John Hardin" <[email protected]> wrote: Folks: I was reading an analysis of recent ransomware spams at SANS and the mention of the SHA256 hash of the payload and VirusTotal got me thinking... Would it be a good idea to have a plugin that generates VirusTotal-compatible SHA256 hashes of attachments and queries the VirusTotal API to see if they hit? *potentially* we as Apache may have enough oomph to get VirusTotal to expose the SHA256 values via DNS vs. via http, to further improve performance and leverage existing code... This does duplicate local A/V, but it may still be attractive in that VirusTotal aggregates the results of many A/V tools and thus potentially has better coverage than any one locally-installed A/V scanner. VirusTotal already publishes a (reference to a) script for MailScanner, so they appear to be open to this use of their services... https://www.darksh3ll.gr/index.php/49-perl-script-check-with-mailscanner-and-generic-wrapeer-sha256-signatures-against-virustotal (Sadly, CloudFlare says "piss off!" for that link.) or: http://perlgems.blogspot.com.es/2012/05/using-virustotal-api-v20.html It would apparently require a (free?) user account at VirusTotal for API access. Hmmm. This might be a deal-killer, even with a local cache of hash hits to reduce query load: The Public API is limited to 4 requests per minute. ...however, if we *could* get them to publish via DNS that limit might be increased. Thoughts? -- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ [email protected] FALaholic #11174 pgpk -a [email protected] key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- Our government should bear in mind the fact that the American Revolution was touched off by the then-current government attempting to confiscate firearms from the people. ----------------------------------------------------------------------- 2 days until the 243rd anniversary of The Shot Heard 'Round The World -- Paul Stead Senior Engineer (Tools & Technology) Zen Internet Direct: 01706 902018 Web: zen.co.uk Winner of 'Services Company of the Year' at the UK IT Industry Awards This message is private and confidential. If you have received this message in error, please notify us and remove it from your system. Zen Internet Limited may monitor email traffic data to manage billing, to handle customer enquiries and for the prevention and detection of fraud. We may also monitor the content of emails sent to and/or from Zen Internet Limited for the purposes of security, staff training and to monitor quality of service. Zen Internet Limited is registered in England and Wales, Sandbrook Park, Sandbrook Way, Rochdale, OL11 1RY Company No. 03101568 VAT Reg No. 686 0495 01
