Investigate a file hash

Work out which algorithm produced a hash, check it against multi-scanners and malware databases, and read a no-results answer for what it is.

Starts with
File hash
Useful for
A hash found in a phishing email, a log, an incident report or a forum post, when you cannot or should not handle the file itself.
Time
15–45 minutes
Progress
0 of 6 steps ·

Type a value into any step and every step of the same type fills in, with direct search links. Values stay in this tab and are not saved; only which steps you ticked is remembered, in your browser.

  1. 1. Identify the hash before you look it up

    Why: A hash is an answer, not a name. Thirty-two characters is normally MD5, forty is SHA-1, sixty-four is SHA-256, and services match on the exact algorithm and case.

    Do: Check the length and character set, convert it between uppercase and lowercase versions if a service is fussy, and decode it only if the source described it as encoded rather than hashed.

    Look for:
    • A length that fits one algorithm exactly, rather than a truncated or doubled value
    • A prefix such as sha256:, md5= or a leading 0x that names the algorithm for you
    • Suspicious characters that mean the value is Base64 or hex of something else
  2. 2. Check the multi-scanners

    Why: A multi-scanner tells you how many engines know the file and what they call it. Searching by hash means the file itself never leaves your machine.

    Do: Search the hash, not the file, on each scanner and record the detection ratio, the family names and the first-seen date with each result.

    Look for:
    • A high detection count, which is a strong signal the file is known malware
    • Engines that agree on one family name rather than a scatter of generic labels
    • A first-seen date that matches when the campaign in front of you started
  3. 3. Look it up in the malware databases

    Why: The databases are curated by researchers, so they carry family names, tags, delivery URLs and the infrastructure the sample talked to.

    Do: Search the hash in the malware sample and indicator databases, then read the tags and the network indicators rather than only the family name.

    Look for:
    • The malware family and the aliases other vendors use for it
    • Command-and-control domains or IPs seen with this sample
    • Related hashes from the same campaign, which give you other files to trace
  4. 4. Read the sandbox reports

    Why: A sandbox report shows what the file did rather than what a signature calls it, which is often the useful part when the detection names disagree.

    Do: Open the existing reports for the hash and read the behaviour, the dropped files and the network section.

    Look for:
    • A run that talks to the same domains you found elsewhere in the case
    • Behaviour that fits a dropper, a stealer or a loader, which changes what to look for next
    • Reports dated after the campaign, which is where the hash is already publicly attributed
  5. 5. Check whether the file is a known good one

    Why: A hit on a legitimate file changes the whole case, because an installer, a library or a standard document in your dataset is not malware, and the hash just identifies which version it is.

    Do: Look the hash up in the known-file and software identity services and in the vulnerability databases when the hash belongs to an application.

    Look for:
    • A named product, version and publisher, which tells you what the file is
    • A published vulnerability for that exact version
  6. 6. Say what a no-results answer means

    Why: An empty result is the most misread one in this work, and the record has to survive someone re-running your search.

    Do: Write down each service you queried, the date, and whether it returned nothing, returned a detection or held no report at all. Then state plainly that a hash nobody has submitted is unknown and not clean, because a new or privately targeted sample is exactly the one no scanner has seen. Finish with the indicator you do have, such as where the hash came from and who sent it.

    Look for:
    • Services that hold no report, which is not the same as reporting the file as safe
    • A detection ratio that moved between your two checks, which dates the coverage
    • Anything that lets a reader repeat the search without asking you

Other playbooks