skip to content

Your SOC wants VirusTotal lookups in its SOAR playbooks, and analysts already use the free website daily. What policy and licensing do you set?

level: principalimportance: should knowfreq 28%

answer

  1. what do the Public API terms forbid
  2. hash first, no automatic upload
  3. enrichment, not detection
  4. a licence costs money, an accident costs data
  5. what happens when the lookup fails

basics

~20 s

Do not build on the Public API, whose terms bar commercial use. License premium access or drop the integration, then set rules: hash-first lookups, no automatic upload, enrichment rather than detection, and defined failure and accident handling.

solid answer

~40 s

The Public API is not an option for a company's playbooks. Beyond 500 requests a day and 4 a minute, its terms bar commercial products and business workflows that do not contribute new files, and multiple accounts to get round that are not allowed. So the choice is a licensed tier or no integration, and I would price that against analyst time saved on enrichment. Then the policy matters more than the plug-in. Playbooks look up hashes and never upload automatically, because reported mail contains business files. Results enrich a case and never close one. A quota error or an outage leaves the alert for a person. Uploads need a named rule and an accident route, and I would review those rules against what analysts actually do on the website.

code

python · 12 lines
python
import vt


def file_enrichment(client: vt.Client, sha256: str) -> dict:
    """Hash lookup only: this function never uploads a file."""
    try:
        report = client.get_object(f"/files/{sha256}")
    except vt.error.APIError as err:
        if err.code == "NotFoundError":
            return {"status": "unknown"}  # no report is not a clean result
        return {"status": "lookup_failed", "reason": err.code}  # hand to a person
    return {"status": "found", "stats": report.last_analysis_stats}

go deeper

for a junior

Be ready to say that the free API has rate limits and usage restrictions, and that you follow your team's rule on what may be uploaded.

for a middle

Expect to explain the difference between Public and Premium API access, and why a playbook must separate a not-found result and a quota error from a clean one.

for a senior

An interviewer wants a playbook design: hash-only lookups, caching, visible failure handling, and sensitive links withheld, along with what you do when a burst uses up the quota.

for a principal

Be prepared to make and defend the buy, replace or remove decision with measured enrichment value, and to own the upload policy, its accident route and its review.

## Start with what the terms allow This decision starts with a licensing fact that surprises many teams. VirusTotal's API reference states these constraints on the **Public API**: - It is limited to **500 requests per day and 4 requests per minute**. - It **must not** be used in commercial products or services. - It **must not** be used in business workflows that do not contribute new files. - You may not register multiple accounts to overcome those limits. The service overview adds that VirusTotal is free to end users for non-commercial use, under its terms of service. So the question to raise with the team and counsel is wider than the playbook: analysts using the website daily for company work may also fall under those terms. Read the current terms with whoever owns vendor compliance, and do not settle this from memory. ## The decision is genuinely open A commercial SOC has three defensible options, and none is automatically right: | Option | Gains | Costs | |---|---|---| | Licensed premium access | Limits set by your licensed service step, more context, an SLA, sample downloads and hunting | Budget, and a dependency to manage | | Another reputation source already licensed | Less new spend, one vendor fewer | Possibly less coverage, and a change for analysts | | No automated integration | No spend, no automation risk | Slower enrichment, and manual habits persist | Price the first option against measured enrichment time and how often the lookup changes a verdict. If the data shows that analysts only confirm what EDR already said, a licence is hard to defend. If lookups regularly redirect cases, it may pay for itself quickly. The vendor's own wording helps set expectations: it positions the integration with SIEM, SOAR, EDR or AV **for enrichment, not detection**. ## The rules that outlast the purchase Whichever option you choose, the policy needs to be written down. 1. **Lookups before uploads.** Playbooks search by hash. They do not upload attachments automatically, because reported mail includes real business documents. 2. **Named upload authority.** Say who may upload what, including how a file is judged shareable. Offer a sanctioned alternative for files that are not, such as an internal sandbox or licensed Private Scanning. 3. **Sensitive indicators.** Links carrying tokens or addresses are stripped or withheld, since the vendor warns that submitted indicators join its dataset. 4. **Enrichment only.** A result can raise priority or add context to a case. It does not close a case, and a zero-detection result never closes one automatically. 5. **Accident route.** A mistaken upload is treated as a possible data exposure: report it, use the vendor's private-upload contact form, tell the data owner. Assume removal is not guaranteed to come before someone has seen it. ## Designing for failure VirusTotal describes API quotas as having per-minute, daily and monthly limits, and API v3 answers **429** once one is reached. A premium key's limits come from its licensed step, so it can still run out. A burst of phishing can use up a quota precisely when lookups are most wanted. Decide what happens in advance: - **Cache results** by hash, with an expiry, so repeated alerts do not spend quota. Keep the analysis date, so analysts can see how old a result is. - **Fail visibly.** A failed lookup leaves a note on the case and hands it to a person. It must not read as "no detections". - **Handle "unknown" separately.** A hash with no report returns a not-found error, and the playbook must not turn that into a clean result. ## Keeping the policy honest Rules on paper drift from the daily habit of a browser tab. Review a sample of uploads made under the organisation's accounts where your licence shows them, include the rule in analyst onboarding, and make the sanctioned route quicker than the unsanctioned one. Then measure what the integration changed: enrichment time, how often a verdict moved, and how many accidental submissions occurred. Those numbers are what you bring to the renewal, and they are also how you find out that the policy has stopped matching the work.

  • A team lead says the free API key has worked fine for a year, so why pay? How do you answer?
    Working is not the same as permitted. The Public API's terms bar commercial use and business workflows that do not contribute new files, so we would be relying on a service outside its terms, with no SLA. I would show the cost of a licence against the enrichment time saved, or remove the integration.
  • Analysts want automatic upload for attachments from reported mail, because many have no report. Where do you land?
    I would refuse automatic upload, because that queue contains real business files and their contents may reach premium customers. I would send unknown attachments to an internal or licensed private sandbox, and let an analyst upload a file once it is judged shareable. The price is some speed and some lost reports.

  • A free API key is fine for company playbooks as long as you stay under the rate limit.
  • Registering a second account is a sensible way round the Public API limit.
  • A failed or empty lookup can safely be treated as no detections.
  • Once VirusTotal is integrated, the playbook can close alerts on the detection count.