[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EBFPWX5QC5WMD9DWERNDP2":3,"skill-same:01M7EBFPWX5QC5WMD9DWERNDP2":81},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7EBFPWX5QC5WMD9DWERNDP2","analyzing-golang-malware-with-ghidra",null,"Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped\u002Fobfuscated function names (e.g. via GoResolver), and extracting embedded module\u002Fdependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a garble-packed Go binary, or recovering function names and third-party dependencies from a stripped Go executable.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-golang-malware-with-ghidra\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analyzing-golang-malware-with-ghidra\ndescription: Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo\n  and pclntab structures, recovering stripped\u002Fobfuscated function names (e.g. via\n  GoResolver), and extracting embedded module\u002Fdependency strings and types from Go\n  binaries. Use when analyzing a Go-language malware sample, deobfuscating a garble-packed\n  Go binary, or recovering function names and third-party dependencies from a stripped\n  Go executable.\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\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":24,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":28,"description":7,"mitre_attack":40},[25,26,27,28,29,30,31],"golang","ghidra","reverse-engineering","malware-analysis","binary-analysis","go-malware","disassembly","mahipal","cybersecurity","1.0",[36,37,38,39],"DE.AE-02","RS.AN-03","ID.RA-01","DE.CM-01",[41,42,43,44],"T1027","T1620","T1140","T1059","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","03-逆向工程\u002Fanalyzing-golang-malware-with-ghidra",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill analyzing-golang-malware-with-ghidra",{"tool":59,"command":60},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill analyzing-golang-malware-with-ghidra",{"tool":62,"command":63},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill analyzing-golang-malware-with-ghidra","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-golang-malware-with-ghidra\u002FSKILL.md",true,[67,73,77],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-reference.md","REFERENCE","参考文档",2602,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-golang-malware-with-ghidra\u002Freferences\u002Fapi-reference.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fstandards.md",882,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-golang-malware-with-ghidra\u002Freferences\u002Fstandards.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fworkflows.md",1606,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-golang-malware-with-ghidra\u002Freferences\u002Fworkflows.md",[82,90,97,104,111,118],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7EXRM12046G0GM1WGMMFXCN","ci-cd-and-automation","Automates CI\u002FCD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fci-cd-and-automation\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7EXRFYYSJ3Y15AGPDDEWWQD","chrome-devtools","Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration).","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fchrome-devtools\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7EXR6EYPE4X5X1BTAE6QJRV","chrome-cdp","Drive a real Chrome via the Chrome DevTools Protocol (CDP). Ensures a\ndebuggable Chrome is running (launching it if needed) so the agent can\nnavigate, read page content, inspect the DOM, run JavaScript, and take\nscreenshots — without the user typing any launch command. Includes a\nfirst-class \"review a live running app\" flow: point Chrome at the app under\ndevelopment and inspect\u002Fscreenshot the REAL page (what a static-artifact tool\ncannot do). Backed by Glimpse and the chrome-devtools MCP server. Use when\nasked to \"use chrome\", \"open chrome\", \"drive my browser\", \"read the page in\nchrome\", \"review the running app\", \"screenshot the app\", or \"\u002Fchrome-cdp\".","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fchrome-cdp\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7EXR1Y7E79KQKG4J798XGH6","check-identity-pack","Run an AFP 100-point or AUSTRAC safe-harbour identity check over a set of documents, and report exactly what's missing. Use when the user asks to check identity documents, verify someone's ID for onboarding, or assess whether a document pack satisfies Australian identity requirements.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fcheck-identity-pack\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7EXQXW7C7PGREJW9ZZTZ16H","changelog","Auto-generates a changelog from git commits, sprint data, and design documents. Produces both internal and player-facing versions.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fchangelog\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7EXQMH2ZME3ANN8Q8MEWPFB","cellxgene-census","Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs\u002Fdownloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fcellxgene-census\u002FSKILL.md",[],[]]