Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
gimphash — Imphash-like calculation on Golang binaries | Kitploit
Tools/GitHubGitHub/nextronsystems/gimphash
Hash AnalysisReverse EngineeringMalware AnalysisBinary Analysis
GitHubnextronsystems/gimphash

gimphash

Imphash-like calculation on Golang binaries

View Repository
501504 years agoReviewed by Kitploit
Share

gimphash

gimphash is a proposed method to calculate an imphash equivalent for Go binaries. It's name stands for Go-import-hash.

Golang binaries contain their dependencies as part of the executable. These dependencies include both standard library packages and third party dependencies and can be used, analogous to a classical imphash, to identify a Golang project.

The dependencies can be listed using the pclntab that is part of each Golang binary (also see this blog post by Mandiant). The pclntab contains a number of interesting elements for reverse engineering; for the gimphash we will use the function names that are contained there.

Calculation

  1. Locate the pclntab within a Golang binary
  2. Enumerate golang functions using the functab within the pclntab and iterate over their names:
    1. Ignore function names starting with go. or type. (compile artefacts, runtime internals)
    2. If a function name contains vendor/, discard that substring and everything before it (e.g. transform vendor/golang.org/x/text to golang.org/x/text)
    3. Ignore function names containing internal/
    4. Ignore function names that start with one of the following standard library packages:
      • runtime
      • sync
      • syscall
      • type
      • time
      • unicode
      • reflect
      • strconv
    5. Ignore function names that are not public or where their receivers are not public. In order to do so:
      1. Find the last / in the function name. If no / is found, use the start instead. Starting from that position, find the next ..
      2. Extract the base function name as everything after that .. If no . was found, use everything after the / index calculated in the previous step.
      3. Ignore the function if the first alphanumeric character in the base function name is a lower case character.
      4. If another . exists within the base function name, ignore the function if the first alphanumeric character after that . is a lower case character.
    6. Store the resulting name, if it was not ignored so far, in an ordered list
  3. Calculate the SHA-256 hash over the concatenated names (no delimiter)

Proof of Concept Implementations

This repository contains proof-of-concept code in the following languages:

  • C
  • Go

The release section contains prebuilt binaries for Windows and Linux.

Usage Examples

Run the Gimphash calculator on a single file

./c_gimphash_linux /mnt/malware-repo/Godoh/godoh-windows64.exe
8200e76e42c4e9cf2bb308d76c017cbdcde5cbbf95e99e02b14d05e7b21505f3 /mnt/mal/Godoh/godoh-windows64.exe

Run the Gimphash calculator on a malware repository

find /mnt/malware-repo/ -type f -exec ./go_gimphash_linux {} \; 2>/dev/null
...

Clustering Example

Screenshot 2022-07-02 at 10 11 38

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    524
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    478
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    357
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    317
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    305
  • 6

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    275

Explore all tools

Browse our collection of tools

View all tools →