[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HBQP6CWD5363APV2GFMQR2":3,"skill-same:01M6HBQP6CWD5363APV2GFMQR2":115},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":6,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M6HBQP6CWD5363APV2GFMQR2","analyzing-golang-malware-with-ghidra",null,"Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"golang","malware","ghidra","with","analyzing golang malware with ghidra","analyzing","for","cybersecurity","reverse","type","reverse engineer","engineer","cm","specialized","analysis","t1059","disassembly","go-malware","binary-analysis","reverse-engineering","2026-11-10 10:12:30",false,"---\nname: analyzing-golang-malware-with-ghidra\ndescription: Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.\ndomain: cybersecurity\nsubdomain: malware-analysis\ntags:\n- golang\n- ghidra\n- reverse-engineering\n- malware-analysis\n- binary-analysis\n- go-malware\n- disassembly\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.AE-02\n- RS.AN-03\n- ID.RA-01\n- DE.CM-01\nmitre_attack:\n- T1027\n- T1620\n- T1140\n- T1059\ncategory: analyzing-golang-malware-with-ghidra\n---\n# Analyzing Golang Malware with Ghidra\n\n## Overview\n\nGo (Golang) has become a popular language for malware authors due to its cross-compilation capabilities, static linking that produces self-contained binaries, and the complexity it introduces for reverse engineering. Go binaries contain the entire runtime, standard library, and all dependencies statically linked, resulting in large binaries (often 5-15MB) with thousands of functions. Ghidra struggles with Go-specific string formats (non-null-terminated), stripped function names, and goroutine concurrency patterns. Specialized tools like GoResolver (Volexity, 2025) use control-flow graph similarity to automatically deobfuscate and recover function names in stripped or obfuscated Go binaries.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing golang malware with ghidra\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Ghidra 11.0+ with JDK 17+\n- GoResolver plugin (for function name recovery)\n- Go Reverse Engineering Tool Kit (go-re.tk)\n- Python 3.9+ for helper scripts\n- Understanding of Go runtime internals (goroutines, channels, interfaces)\n- Familiarity with Go binary structure (pclntab, moduledata, itab)\n\n## Key Concepts\n\n### Go Binary Structure\n\nGo binaries embed rich metadata in the `pclntab` (PC Line Table) structure, which maps program counters to function names, source files, and line numbers. Even stripped binaries retain this metadata. The `moduledata` structure contains pointers to type information, itabs (interface tables), and the pclntab itself. Go strings are stored as a pointer-length pair rather than null-terminated C strings.\n\n### Function Recovery in Stripped Binaries\n\nDespite stripping symbol tables, Go binaries retain function names within the pclntab. However, obfuscation tools like garble rename functions to random strings. GoResolver addresses this by computing control-flow graph signatures of obfuscated functions and matching them against a database of known Go standard library and third-party package functions.\n\n### Crate\u002FDependency Extraction\n\nGo's dependency management embeds module paths and version strings in the binary. Extracting these reveals the malware's third-party dependencies (HTTP libraries, encryption packages, C2 frameworks), which provides insight into capabilities without full reverse engineering.\n\n## Workflow\n\n### Step 1: Initial Binary Analysis\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Analyze Go binary metadata for malware analysis.\"\"\"\nimport struct\nimport sys\nimport re\n\n\ndef find_go_build_info(data):\n    \"\"\"Extract Go build information from binary.\"\"\"\n    # Go buildinfo magic: \\xff Go buildinf:\n    magic = b'\\xff Go buildinf:'\n    offset = data.find(magic)\n    if offset == -1:\n        return None\n\n    print(f\"[+] Go build info at offset 0x{offset:x}\")\n\n    # Extract Go version string nearby\n    go_version = re.search(rb'go\\d+\\.\\d+(?:\\.\\d+)?', data[offset:offset+256])\n    if go_version:\n        print(f\"  Go Version: {go_version.group().decode()}\")\n\n    return offset\n\n\ndef find_pclntab(data):\n    \"\"\"Locate the pclntab (PC Line Table) structure.\"\"\"\n    # pclntab magic bytes vary by Go version\n    magics = {\n        b'\\xfb\\xff\\xff\\xff\\x00\\x00': \"Go 1.2-1.15\",\n        b'\\xfa\\xff\\xff\\xff\\x00\\x00': \"Go 1.16-1.17\",\n        b'\\xf1\\xff\\xff\\xff\\x00\\x00': \"Go 1.18-1.19\",\n        b'\\xf0\\xff\\xff\\xff\\x00\\x00': \"Go 1.20+\",\n    }\n\n    for magic, version in magics.items():\n        offset = data.find(magic)\n        if offset != -1:\n            print(f\"[+] pclntab found at 0x{offset:x} ({version})\")\n            return offset, version\n\n    return None, None\n\n\ndef extract_function_names(data, pclntab_offset):\n    \"\"\"Extract function names from pclntab.\"\"\"\n    if pclntab_offset is None:\n        return []\n\n    functions = []\n    # Function name strings follow specific patterns\n    func_pattern = re.compile(\n        rb'(?:main|runtime|fmt|net|os|crypto|encoding|io|sync|'\n        rb'syscall|reflect|strings|bytes|path|time|math|sort|'\n        rb'github\\.com|golang\\.org)[\u002F\\.][\\w\u002F.]+',\n    )\n\n    for match in func_pattern.finditer(data):\n        name = match.group().decode('utf-8', errors='replace')\n        if len(name) > 4 and len(name) \u003C 200:\n            functions.append(name)\n\n    return sorted(set(functions))\n\n\ndef extract_go_strings(data):\n    \"\"\"Extract Go-style strings (pointer+length pairs).\"\"\"\n    # Go strings are not null-terminated; extract readable sequences\n    strings = []\n    ascii_pattern = re.compile(rb'[\\x20-\\x7e]{10,}')\n\n    for match in ascii_pattern.finditer(data):\n        s = match.group().decode('ascii')\n        # Filter for interesting malware strings\n        interesting = [\n            'http', 'https', 'tcp', 'udp', 'dns',\n            'cmd', 'shell', 'exec', 'upload', 'download',\n            'encrypt', 'decrypt', 'key', 'token', 'password',\n            'c2', 'beacon', 'agent', 'implant', 'bot',\n            'mutex', 'persist', 'registry', 'scheduled',\n        ]\n        if any(kw in s.lower() for kw in interesting):\n            strings.append(s)\n\n    return strings\n\n\ndef extract_dependencies(data):\n    \"\"\"Extract Go module dependencies from binary.\"\"\"\n    deps = []\n    # Module paths follow pattern: github.com\u002Fuser\u002Frepo\n    dep_pattern = re.compile(\n        rb'((?:github\\.com|gitlab\\.com|golang\\.org|gopkg\\.in|'\n        rb'go\\.etcd\\.io|google\\.golang\\.org)\u002F[^\\x00\\s]{5,80})'\n    )\n\n    for match in dep_pattern.finditer(data):\n        dep = match.group().decode('utf-8', errors='replace')\n        deps.append(dep)\n\n    unique_deps = sorted(set(deps))\n    return unique_deps\n\n\ndef analyze_go_binary(filepath):\n    \"\"\"Full analysis of Go malware binary.\"\"\"\n    with open(filepath, 'rb') as f:\n        data = f.read()\n\n    print(f\"[+] Analyzing Go binary: {filepath}\")\n    print(f\"  File size: {len(data):,} bytes\")\n    print(\"=\" * 60)\n\n    # Build info\n    find_go_build_info(data)\n\n    # pclntab\n    pclntab_offset, go_version = find_pclntab(data)\n\n    # Functions\n    functions = extract_function_names(data, pclntab_offset)\n    print(f\"\\n[+] Recovered {len(functions)} function names\")\n\n    # Categorize functions\n    categories = {\n        \"network\": [], \"crypto\": [], \"os_exec\": [],\n        \"file_io\": [], \"main\": [], \"third_party\": [],\n    }\n    for f in functions:\n        if 'net\u002F' in f or 'http' in f.lower():\n            categories[\"network\"].append(f)\n        elif 'crypto' in f:\n            categories[\"crypto\"].append(f)\n        elif 'os\u002Fexec' in f or 'syscall' in f:\n            categories[\"os_exec\"].append(f)\n        elif 'os.' in f or 'io\u002F' in f:\n            categories[\"file_io\"].append(f)\n        elif f.startswith('main.'):\n            categories[\"main\"].append(f)\n        elif 'github.com' in f or 'golang.org' in f:\n            categories[\"third_party\"].append(f)\n\n    for cat, funcs in categories.items():\n        if funcs:\n            print(f\"\\n  [{cat}] ({len(funcs)} functions):\")\n            for fn in funcs[:10]:\n                print(f\"    {fn}\")\n\n    # Dependencies\n    deps = extract_dependencies(data)\n    print(f\"\\n[+] Dependencies ({len(deps)}):\")\n    for dep in deps[:20]:\n        print(f\"    {dep}\")\n\n    # Suspicious strings\n    sus_strings = extract_go_strings(data)\n    print(f\"\\n[+] Suspicious strings ({len(sus_strings)}):\")\n    for s in sus_strings[:20]:\n        print(f\"    {s}\")\n\n\nif __name__ == \"__main__\":\n    if len(sys.argv) \u003C 2:\n        print(f\"Usage: {sys.argv[0]} \u003Cgo_binary>\")\n        sys.exit(1)\n    analyze_go_binary(sys.argv[1])\n```\n\n### Step 2: Ghidra Analysis Script\n\n```python\n# Ghidra script (run within Ghidra's script manager)\n# Save as AnalyzeGoBinary.py in Ghidra scripts directory\n\n# @category MalwareAnalysis\n# @description Analyze Go binary structure and recover metadata\n\ndef analyze_go_binary_ghidra():\n    \"\"\"Ghidra script for Go binary analysis.\"\"\"\n    from ghidra.program.model.mem import MemoryAccessException\n\n    program = getCurrentProgram()\n    memory = program.getMemory()\n    listing = program.getListing()\n\n    print(\"[+] Go Binary Analysis Script\")\n    print(f\"  Program: {program.getName()}\")\n\n    # Find pclntab\n    pclntab_magics = [\n        bytes([0xf0, 0xff, 0xff, 0xff]),  # Go 1.20+\n        bytes([0xf1, 0xff, 0xff, 0xff]),  # Go 1.18-1.19\n        bytes([0xfa, 0xff, 0xff, 0xff]),  # Go 1.16-1.17\n        bytes([0xfb, 0xff, 0xff, 0xff]),  # Go 1.2-1.15\n    ]\n\n    for magic in pclntab_magics:\n        addr = memory.findBytes(\n            program.getMinAddress(), magic, None, True, None\n        )\n        if addr:\n            print(f\"[+] pclntab found at {addr}\")\n            # Create label\n            program.getSymbolTable().createLabel(\n                addr, \"go_pclntab\", None,\n                ghidra.program.model.symbol.SourceType.ANALYSIS\n            )\n            break\n\n    # Fix Go string definitions\n    # Go strings are ptr+len, not null terminated\n    print(\"[+] Fixing Go string references...\")\n\n    # Search for function names containing package paths\n    symbol_table = program.getSymbolTable()\n    func_count = 0\n    for symbol in symbol_table.getAllSymbols(True):\n        name = symbol.getName()\n        if ('.' in name and\n            any(pkg in name for pkg in\n                ['main.', 'runtime.', 'net.', 'crypto.', 'os.'])):\n            func_count += 1\n\n    print(f\"[+] Found {func_count} Go function symbols\")\n\n\n# Execute\nanalyze_go_binary_ghidra()\n```\n\n## Validation Criteria\n\n- Go version and build information extracted from binary\n- pclntab located and parsed for function name recovery\n- Third-party dependencies identified revealing malware capabilities\n- Main package functions enumerated for targeted analysis\n- Network, crypto, and OS exec functions categorized\n- Ghidra analysis correctly labels Go runtime structures\n\n## References\n\n- [CUJO AI - Reverse Engineering Go Binaries with Ghidra](https:\u002F\u002Fcujo.com\u002Fblog\u002Freverse-engineering-go-binaries-with-ghidra\u002F)\n- [Volexity GoResolver](https:\u002F\u002Fwww.volexity.com\u002Fblog\u002F2025\u002F04\u002F01\u002Fgoresolver-using-control-flow-graph-similarity-to-deobfuscate-golang-binaries-automatically\u002F)\n- [Go Reverse Engineering Tool Kit](https:\u002F\u002Fgo-re.tk\u002Fabout\u002F)\n- [SentinelOne AlphaGolang](https:\u002F\u002Fwww.sentinelone.com\u002Flabs\u002Falphagolang-a-step-by-step-go-malware-reversing-methodology-for-ida-pro\u002F)\n- [Go Binary Reversing Notes](https:\u002F\u002Fgist.github.com\u002F0xdevalias\u002F4e430914124c3fd2c51cb7ac2801acba)\n","# Analyzing Golang Malware with Ghidra\n\n## Overview\n\nGo (Golang) has become a popular language for malware authors due to its cross-compilation capabilities, static linking that produces self-contained binaries, and the complexity it introduces for reverse engineering. Go binaries contain the entire runtime, standard library, and all dependencies statically linked, resulting in large binaries (often 5-15MB) with thousands of functions. Ghidra struggles with Go-specific string formats (non-null-terminated), stripped function names, and goroutine concurrency patterns. Specialized tools like GoResolver (Volexity, 2025) use control-flow graph similarity to automatically deobfuscate and recover function names in stripped or obfuscated Go binaries.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing golang malware with ghidra\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Ghidra 11.0+ with JDK 17+\n- GoResolver plugin (for function name recovery)\n- Go Reverse Engineering Tool Kit (go-re.tk)\n- Python 3.9+ for helper scripts\n- Understanding of Go runtime internals (goroutines, channels, interfaces)\n- Familiarity with Go binary structure (pclntab, moduledata, itab)\n\n## Key Concepts\n\n### Go Binary Structure\n\nGo binaries embed rich metadata in the `pclntab` (PC Line Table) structure, which maps program counters to function names, source files, and line numbers. Even stripped binaries retain this metadata. The `moduledata` structure contains pointers to type information, itabs (interface tables), and the pclntab itself. Go strings are stored as a pointer-length pair rather than null-terminated C strings.\n\n### Function Recovery in Stripped Binaries\n\nDespite stripping symbol tables, Go binaries retain function names within the pclntab. However, obfuscation tools like garble rename functions to random strings. GoResolver addresses this by computing control-flow graph signatures of obfuscated functions and matching them against a database of known Go standard library and third-party package functions.\n\n### Crate\u002FDependency Extraction\n\nGo's dependency management embeds module paths and version strings in the binary. Extracting these reveals the malware's third-party dependencies (HTTP libraries, encryption packages, C2 frameworks), which provides insight into capabilities without full reverse engineering.\n\n## Workflow\n\n### Step 1: Initial Binary Analysis\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Analyze Go binary metadata for malware analysis.\"\"\"\nimport struct\nimport sys\nimport re\n\n\ndef find_go_build_info(data):\n    \"\"\"Extract Go build information from binary.\"\"\"\n    # Go buildinfo magic: \\xff Go buildinf:\n    magic = b'\\xff Go buildinf:'\n    offset = data.find(magic)\n    if offset == -1:\n        return None\n\n    print(f\"[+] Go build info at offset 0x{offset:x}\")\n\n    # Extract Go version string nearby\n    go_version = re.search(rb'go\\d+\\.\\d+(?:\\.\\d+)?', data[offset:offset+256])\n    if go_version:\n        print(f\"  Go Version: {go_version.group().decode()}\")\n\n    return offset\n\n\ndef find_pclntab(data):\n    \"\"\"Locate the pclntab (PC Line Table) structure.\"\"\"\n    # pclntab magic bytes vary by Go version\n    magics = {\n        b'\\xfb\\xff\\xff\\xff\\x00\\x00': \"Go 1.2-1.15\",\n        b'\\xfa\\xff\\xff\\xff\\x00\\x00': \"Go 1.16-1.17\",\n        b'\\xf1\\xff\\xff\\xff\\x00\\x00': \"Go 1.18-1.19\",\n        b'\\xf0\\xff\\xff\\xff\\x00\\x00': \"Go 1.20+\",\n    }\n\n    for magic, version in magics.items():\n        offset = data.find(magic)\n        if offset != -1:\n            print(f\"[+] pclntab found at 0x{offset:x} ({version})\")\n            return offset, version\n\n    return None, None\n\n\ndef extract_function_names(data, pclntab_offset):\n    \"\"\"Extract function names from pclntab.\"\"\"\n    if pclntab_offset is None:\n        return []\n\n    functions = []\n    # Function name strings follow specific patterns\n    func_pattern = re.compile(\n        rb'(?:main|runtime|fmt|net|os|crypto|encoding|io|sync|'\n        rb'syscall|reflect|strings|bytes|path|time|math|sort|'\n        rb'github\\.com|golang\\.org)[\u002F\\.][\\w\u002F.]+',\n    )\n\n    for match in func_pattern.finditer(data):\n        name = match.group().decode('utf-8', errors='replace')\n        if len(name) > 4 and len(name) \u003C 200:\n            functions.append(name)\n\n    return sorted(set(functions))\n\n\ndef extract_go_strings(data):\n    \"\"\"Extract Go-style strings (pointer+length pairs).\"\"\"\n    # Go strings are not null-terminated; extract readable sequences\n    strings = []\n    ascii_pattern = re.compile(rb'[\\x20-\\x7e]{10,}')\n\n    for match in ascii_pattern.finditer(data):\n        s = match.group().decode('ascii')\n        # Filter for interesting malware strings\n        interesting = [\n            'http', 'https', 'tcp', 'udp', 'dns',\n            'cmd', 'shell', 'exec', 'upload', 'download',\n            'encrypt', 'decrypt', 'key', 'token', 'password',\n            'c2', 'beacon', 'agent', 'implant', 'bot',\n            'mutex', 'persist', 'registry', 'scheduled',\n        ]\n        if any(kw in s.lower() for kw in interesting):\n            strings.append(s)\n\n    return strings\n\n\ndef extract_dependencies(data):\n    \"\"\"Extract Go module dependencies from binary.\"\"\"\n    deps = []\n    # Module paths follow pattern: github.com\u002Fuser\u002Frepo\n    dep_pattern = re.compile(\n        rb'((?:github\\.com|gitlab\\.com|golang\\.org|gopkg\\.in|'\n        rb'go\\.etcd\\.io|google\\.golang\\.org)\u002F[^\\x00\\s]{5,80})'\n    )\n\n    for match in dep_pattern.finditer(data):\n        dep = match.group().decode('utf-8', errors='replace')\n        deps.append(dep)\n\n    unique_deps = sorted(set(deps))\n    return unique_deps\n\n\ndef analyze_go_binary(filepath):\n    \"\"\"Full analysis of Go malware binary.\"\"\"\n    with open(filepath, 'rb') as f:\n        data = f.read()\n\n    print(f\"[+] Analyzing Go binary: {filepath}\")\n    print(f\"  File size: {len(data):,} bytes\")\n    print(\"=\" * 60)\n\n    # Build info\n    find_go_build_info(data)\n\n    # pclntab\n    pclntab_offset, go_version = find_pclntab(data)\n\n    # Functions\n    functions = extract_function_names(data, pclntab_offset)\n    print(f\"\\n[+] Recovered {len(functions)} function names\")\n\n    # Categorize functions\n    categories = {\n        \"network\": [], \"crypto\": [], \"os_exec\": [],\n        \"file_io\": [], \"main\": [], \"third_party\": [],\n    }\n    for f in functions:\n        if 'net\u002F' in f or 'http' in f.lower():\n            categories[\"network\"].append(f)\n        elif 'crypto' in f:\n            categories[\"crypto\"].append(f)\n        elif 'os\u002Fexec' in f or 'syscall' in f:\n            categories[\"os_exec\"].append(f)\n        elif 'os.' in f or 'io\u002F' in f:\n            categories[\"file_io\"].append(f)\n        elif f.startswith('main.'):\n            categories[\"main\"].append(f)\n        elif 'github.com' in f or 'golang.org' in f:\n            categories[\"third_party\"].append(f)\n\n    for cat, funcs in categories.items():\n        if funcs:\n            print(f\"\\n  [{cat}] ({len(funcs)} functions):\")\n            for fn in funcs[:10]:\n                print(f\"    {fn}\")\n\n    # Dependencies\n    deps = extract_dependencies(data)\n    print(f\"\\n[+] Dependencies ({len(deps)}):\")\n    for dep in deps[:20]:\n        print(f\"    {dep}\")\n\n    # Suspicious strings\n    sus_strings = extract_go_strings(data)\n    print(f\"\\n[+] Suspicious strings ({len(sus_strings)}):\")\n    for s in sus_strings[:20]:\n        print(f\"    {s}\")\n\n\nif __name__ == \"__main__\":\n    if len(sys.argv) \u003C 2:\n        print(f\"Usage: {sys.argv[0]} \u003Cgo_binary>\")\n        sys.exit(1)\n    analyze_go_binary(sys.argv[1])\n```\n\n### Step 2: Ghidra Analysis Script\n\n```python\n# Ghidra script (run within Ghidra's script manager)\n# Save as AnalyzeGoBinary.py in Ghidra scripts directory\n\n# @category MalwareAnalysis\n# @description Analyze Go binary structure and recover metadata\n\ndef analyze_go_binary_ghidra():\n    \"\"\"Ghidra script for Go binary analysis.\"\"\"\n    from ghidra.program.model.mem import MemoryAccessException\n\n    program = getCurrentProgram()\n    memory = program.getMemory()\n    listing = program.getListing()\n\n    print(\"[+] Go Binary Analysis Script\")\n    print(f\"  Program: {program.getName()}\")\n\n    # Find pclntab\n    pclntab_magics = [\n        bytes([0xf0, 0xff, 0xff, 0xff]),  # Go 1.20+\n        bytes([0xf1, 0xff, 0xff, 0xff]),  # Go 1.18-1.19\n        bytes([0xfa, 0xff, 0xff, 0xff]),  # Go 1.16-1.17\n        bytes([0xfb, 0xff, 0xff, 0xff]),  # Go 1.2-1.15\n    ]\n\n    for magic in pclntab_magics:\n        addr = memory.findBytes(\n            program.getMinAddress(), magic, None, True, None\n        )\n        if addr:\n            print(f\"[+] pclntab found at {addr}\")\n            # Create label\n            program.getSymbolTable().createLabel(\n                addr, \"go_pclntab\", None,\n                ghidra.program.model.symbol.SourceType.ANALYSIS\n            )\n            break\n\n    # Fix Go string definitions\n    # Go strings are ptr+len, not null terminated\n    print(\"[+] Fixing Go string references...\")\n\n    # Search for function names containing package paths\n    symbol_table = program.getSymbolTable()\n    func_count = 0\n    for symbol in symbol_table.getAllSymbols(True):\n        name = symbol.getName()\n        if ('.' in name and\n            any(pkg in name for pkg in\n                ['main.', 'runtime.', 'net.', 'crypto.', 'os.'])):\n            func_count += 1\n\n    print(f\"[+] Found {func_count} Go function symbols\")\n\n\n# Execute\nanalyze_go_binary_ghidra()\n```\n\n## Validation Criteria\n\n- Go version and build information extracted from binary\n- pclntab located and parsed for function name recovery\n- Third-party dependencies identified revealing malware capabilities\n- Main package functions enumerated for targeted analysis\n- Network, crypto, and OS exec functions categorized\n- Ghidra analysis correctly labels Go runtime structures\n\n## References\n\n- [CUJO AI - Reverse Engineering Go Binaries with Ghidra](https:\u002F\u002Fcujo.com\u002Fblog\u002Freverse-engineering-go-binaries-with-ghidra\u002F)\n- [Volexity GoResolver](https:\u002F\u002Fwww.volexity.com\u002Fblog\u002F2025\u002F04\u002F01\u002Fgoresolver-using-control-flow-graph-similarity-to-deobfuscate-golang-binaries-automatically\u002F)\n- [Go Reverse Engineering Tool Kit](https:\u002F\u002Fgo-re.tk\u002Fabout\u002F)\n- [SentinelOne AlphaGolang](https:\u002F\u002Fwww.sentinelone.com\u002Flabs\u002Falphagolang-a-step-by-step-go-malware-reversing-methodology-for-ida-pro\u002F)\n- [Go Binary Reversing Notes](https:\u002F\u002Fgist.github.com\u002F0xdevalias\u002F4e430914124c3fd2c51cb7ac2801acba)\n",{"name":5,"tags":44,"author":46,"domain":26,"license":15,"version":47,"category":5,"nist_csf":48,"subdomain":45,"description":7,"mitre_attack":53},[19,21,38,45,37,36,35],"malware-analysis","mahipal","1.0",[49,50,51,52],"DE.AE-02","RS.AN-03","ID.RA-01","DE.CM-01",[54,55,56,57],"T1027","T1620","T1140","T1059","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fanalyzing-golang-malware-with-ghidra",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill analyzing-golang-malware-with-ghidra",{"tool":72,"command":73},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill analyzing-golang-malware-with-ghidra",{"tool":75,"command":76},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill analyzing-golang-malware-with-ghidra","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002FSKILL.md",true,[80,86,91,97,101,105,111],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"assets\u002Ftemplate.md","ASSET","资产文件",752,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002Fassets\u002Ftemplate.md",{"path":87,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002FLICENSE",{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fapi-reference.md","REFERENCE","参考文档",2602,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002Freferences\u002Fapi-reference.md",{"path":98,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fstandards.md",882,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002Freferences\u002Fstandards.md",{"path":102,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Fworkflows.md",1606,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002Freferences\u002Fworkflows.md",{"path":106,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fagent.py","SCRIPT","脚本",9117,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002Fscripts\u002Fagent.py",{"path":112,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Fprocess.py",4706,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fanalyzing-golang-malware-with-ghidra\u002Fscripts\u002Fprocess.py",[116,146,171,193,209,229],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":127,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[122],{"categoryNo":123,"categoryName":124,"taxonomyType":125,"taxonomyTypeDesc":126},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[128,129,130,131,25,132,26,133,134,135,136,137,138,139,140,141,142,143,144,145],"integrity","backup","recovery","validating backup integrity for recovery","testing","validate","verification","hash-verification","incident-response","ransomware","detection","t1078","t1490","disaster-recovery","restore","incident","disaster recovery","ransomware response",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[153,154,155,156,22,26,157,158,159,160,161,162,163,164,165,166,167,168,169,170],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[178,179,143,26,180,181,182,139,140,33,183,184,185,186,187,188,189,190,191,192],"security","triaging security incident","actions","soc","NIST","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","conversion","isolation","scope","impact","consistency",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[178,200,201,179,143,22,26,202,181,136,203,204,139,140,205,183,166,206,207,208],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[178,216,217,218,219,220,26,221,222,223,181,224,139,225,226,227,186,31,143,228],"security alerts","splunk","triaging security alerts in splunk","alerts","review","siem","dashboard","search","correlation-search","t1566","notable-events","incident-review","de",{"skillNo":230,"name":231,"nameZh":6,"description":232,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":233,"categories":234,"keywords":235,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[236,237,238,239,26,240,241,242,243,244,245,225,246,247,31,248,228,249,250,251],"infrastructure","tracking threat actor infrastructure","tracking","threat","monitoring","mitre-attack","threat-actor","threat-intelligence","command-and-control","dns","command","exploit","intelligence","domains","kit","hosts"]