Check and detonate files in VirusTotal automatically
Build a workflow that accepts a file (upload page or attachment). Compute its SHA-256 and query the VirusTotal file report endpoint. If the hash is already known, return the existing verdict; if not, upload the file, poll the analysis endpoint until complete, and email the results to the requester. Respect VirusTotal rate limits with backoff, handle very large files and API errors, and never expose the API key. Output the detection ratio and a link to the VirusTotal report.
What this prompt builds
Hash-check a file in VirusTotal and, if unseen, upload it for analysis and email the verdict.
The problem
Analysts manually hash files and paste them into VirusTotal, then re-check later for results, which is slow and easy to forget. Unknown files sit un-analyzed while a decision waits.
Solution and impact
This workflow computes a file's hash, looks it up in VirusTotal, and if it's new, uploads the file, waits for the scan, and emails the results. File verdicts arrive automatically without an analyst babysitting the lookup.