[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AFSMKKWCCSVVZ57TXTHH8Z":3,"skill-same:01M6AFSMKKWCCSVVZ57TXTHH8Z":137},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":92,"commitSha":93,"skillDirectory":94,"forksCount":95,"repositoryHtmlUrl":96,"repositoryHomepageUrl":97,"ownerHtmlUrl":98,"ownerBlogUrl":99,"ownerDescription":100,"updatedAt":101,"install":102,"resources":115},"01M6AFSMKKWCCSVVZ57TXTHH8Z","performing-firmware-extraction-with-binwalk","binwalk固件提取与分析","Performs firmware image extraction and analysis using binwalk to identify embedded filesystems, compressed archives, bootloaders, kernel images, and cryptographic material. Covers entropy analysis for detecting encrypted or compressed regions, recursive extraction of nested archives, SquashFS\u002FCramFS\u002FJFFS2 filesystem mounting, and string analysis for credential and configuration discovery. Activates for requests involving firmware reverse engineering, IoT device analysis, embedded system security assessment, or router\u002Fcamera firmware extraction.","使用 binwalk 执行固件镜像提取与分析，识别嵌入式文件系统、压缩归档、引导加载程序、内核镜像及加密材料。涵盖用于检测加密或压缩区域的熵分析、嵌套归档的递归提取、SquashFS\u002FCramFS\u002FJFFS2 文件系统挂载，以及用于发现凭证和配置信息的字符串分析。适用于固件逆向工程、IoT 设备分析、嵌入式系统安全评估或路由器\u002F摄像头固件提取等请求。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-firmware-extraction-with-binwalk\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"performing firmware extraction with binwalk","extraction","firmware","reconnaissance","binwalk","credentials","analysis","initial-access","t1059","t1078","entropy","iot-security","image","reverse-engineering","iot","assessment","pr","customer","cybersecurity","kernel","2026-11-10 10:12:30",false,"---\nname: performing-firmware-extraction-with-binwalk\ndescription: 'Performs firmware image extraction and analysis using binwalk to identify\n  embedded filesystems, compressed archives, bootloaders, kernel images, and cryptographic\n  material. Covers entropy analysis for detecting encrypted or compressed regions,\n  recursive extraction of nested archives, SquashFS\u002FCramFS\u002FJFFS2 filesystem mounting,\n  and string analysis for credential and configuration discovery. Activates for requests\n  involving firmware reverse engineering, IoT device analysis, embedded system security\n  assessment, or router\u002Fcamera firmware extraction.\n\n  '\ndomain: cybersecurity\nsubdomain: firmware-analysis\ntags:\n- firmware\n- binwalk\n- extraction\n- entropy\n- IoT-security\n- reverse-engineering\nversion: 1.0.0\nauthor: mukul975\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-01\n- PR.PS-01\n- DE.AE-02\nmitre_attack:\n- T1078\n- T1190\n- T1059\n- T1003\n- T1110\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - reconnaissance\n  - initial-access\n  techniques:\n  - id: T1555\n    name: Credentials from Password Stores\n    tactic: reconnaissance\n    source: attack\n  - id: F1029\n    name: Gather Customer Information\n    tactic: reconnaissance\n    source: f3\n  - id: T1110.001\n    name: 'Brute Force: Password Guessing'\n    tactic: initial-access\n    source: attack\n  - id: F1006.001\n    name: 'Account Takeover: Exposed API Key'\n    tactic: initial-access\n    source: f3\n  - id: F1006.002\n    name: 'Account Takeover: Exposed Login Credential'\n    tactic: initial-access\n    source: f3\n---\n\n# Performing Firmware Extraction with Binwalk\n\n## When to Use\n\n- Analyzing IoT device firmware downloaded from vendor sites or extracted from flash chips\n- Reverse engineering router, camera, or embedded device firmware for vulnerability research\n- Identifying embedded filesystems (SquashFS, CramFS, JFFS2, UBIFS) within firmware blobs\n- Detecting encrypted or compressed regions using entropy analysis\n- Extracting hardcoded credentials, API keys, certificates, or configuration files from firmware\n- Performing security assessments of embedded devices in authorized penetration tests\n\n**Do not use** for analyzing standard desktop application binaries or malware samples that are not firmware images; use dedicated malware analysis tools instead.\n\n## Prerequisites\n\n- binwalk v3.x installed (`pip install binwalk3` or from system package manager)\n- Python 3.8+ with standard libraries (struct, math, hashlib, subprocess)\n- SquashFS tools (`unsquashfs`) for mounting extracted SquashFS filesystems\n- Jefferson for JFFS2 filesystem extraction (`pip install jefferson`)\n- Sasquatch for non-standard SquashFS variants used by vendors like TP-Link and D-Link\n- `strings` utility (GNU binutils) for string extraction\n- Optional: firmware-mod-kit for repacking modified firmware images\n\n## Workflow\n\n### Step 1: Initial Firmware Reconnaissance\n\nPerform a signature scan to identify embedded file types and their offsets:\n\n```bash\n# Basic signature scan - identify all recognized file types\nbinwalk firmware.bin\n\n# Scan with verbose output showing confidence levels\nbinwalk -v firmware.bin\n\n# Scan for specific file types only\nbinwalk -y \"squashfs\" firmware.bin\nbinwalk -y \"gzip\\|lzma\\|xz\" firmware.bin\n\n# Opcode scan to identify CPU architecture\nbinwalk -A firmware.bin\n\n# Scan for raw strings to find version info, URLs, credentials\nbinwalk -R \"password\" firmware.bin\nbinwalk -R \"http:\u002F\u002F\" firmware.bin\n```\n\n### Step 2: Entropy Analysis\n\nAnalyze entropy to identify encrypted, compressed, and plaintext regions:\n\n```bash\n# Generate entropy plot\nbinwalk -E firmware.bin\n\n# Entropy with specific block size for higher resolution\nbinwalk -E -K 256 firmware.bin\n\n# Combined entropy and signature scan\nbinwalk -BE firmware.bin\n```\n\nInterpreting entropy values:\n- **0.0 - 1.0**: Empty or padding regions (null bytes, 0xFF fill)\n- **1.0 - 5.0**: Plaintext data, code, ASCII strings, configuration\n- **5.0 - 7.0**: Compressed data (gzip, LZMA, zlib)\n- **7.0 - 7.99**: Strongly compressed or encrypted data\n- **~8.0**: Maximum entropy, likely encrypted or random data\n\n### Step 3: Extract Embedded Files\n\nExtract all identified components from the firmware image:\n\n```bash\n# Automatic extraction of known file types\nbinwalk -e firmware.bin\n\n# Recursive extraction (matryoshka mode) for nested archives\nbinwalk -Me firmware.bin\n\n# Recursive extraction with depth limit\nbinwalk -Me -d 5 firmware.bin\n\n# Extract specific file type with custom handler\nbinwalk -D \"squashfs filesystem:squashfs:unsquashfs %e\" firmware.bin\n\n# Manual extraction of data at a known offset\ndd if=firmware.bin of=extracted.squashfs bs=1 skip=327680 count=4194304\n```\n\n### Step 4: Mount and Inspect Extracted Filesystems\n\nMount extracted filesystems for deep inspection:\n\n```bash\n# Mount SquashFS filesystem\nmkdir \u002Ftmp\u002Fsquashfs_root\nunsquashfs -d \u002Ftmp\u002Fsquashfs_root extracted.squashfs\n\n# Mount CramFS filesystem\nmkdir \u002Ftmp\u002Fcramfs_root\nmount -t cramfs -o loop extracted.cramfs \u002Ftmp\u002Fcramfs_root\n\n# Extract JFFS2 filesystem\njefferson extracted.jffs2 -d \u002Ftmp\u002Fjffs2_root\n\n# Inspect the extracted filesystem\nls -la \u002Ftmp\u002Fsquashfs_root\u002F\nfind \u002Ftmp\u002Fsquashfs_root -name \"*.conf\" -o -name \"*.cfg\" -o -name \"*.key\"\nfind \u002Ftmp\u002Fsquashfs_root -name \"passwd\" -o -name \"shadow\"\n```\n\n### Step 5: String Analysis and Credential Discovery\n\nSearch extracted filesystem and raw firmware for sensitive data:\n\n```bash\n# Extract all printable strings\nstrings -a firmware.bin > all_strings.txt\nstrings -n 12 firmware.bin | sort -u > long_strings.txt\n\n# Search for credentials and secrets\ngrep -rni \"password\\|passwd\\|secret\\|api_key\\|token\" \u002Ftmp\u002Fsquashfs_root\u002Fetc\u002F\ngrep -rni \"BEGIN.*PRIVATE KEY\" \u002Ftmp\u002Fsquashfs_root\u002F\n\n# Find hardcoded URLs and endpoints\ngrep -rnoE \"https?:\u002F\u002F[a-zA-Z0-9.\u002F?=_-]+\" \u002Ftmp\u002Fsquashfs_root\u002F\n\n# Search for certificate files\nfind \u002Ftmp\u002Fsquashfs_root -name \"*.pem\" -o -name \"*.crt\" -o -name \"*.key\" -o -name \"*.p12\"\n\n# Identify busybox and service versions\nstrings \u002Ftmp\u002Fsquashfs_root\u002Fbin\u002Fbusybox | grep \"BusyBox v\"\ncat \u002Ftmp\u002Fsquashfs_root\u002Fetc\u002Fbanner 2>\u002Fdev\u002Fnull\n```\n\n### Step 6: Generate Firmware Analysis Report\n\nCompile comprehensive extraction and analysis findings:\n\n```\nReport should include:\n- Firmware metadata (vendor, model, version, build date)\n- Identified components with offsets and sizes (bootloader, kernel, filesystem, config)\n- Entropy analysis summary with regions of interest\n- Extracted filesystem structure and key contents\n- Discovered credentials, keys, certificates\n- Identified services, daemons, and their versions\n- Known CVEs applicable to identified component versions\n- Recommendations for hardening or vulnerability remediation\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Firmware** | Software embedded in hardware devices providing low-level control; typically contains a bootloader, kernel, root filesystem, and configuration data |\n| **Entropy Analysis** | Statistical measurement of randomness in binary data; high entropy indicates encryption or compression, low entropy indicates plaintext or structured data |\n| **SquashFS** | Read-only compressed filesystem commonly used in embedded Linux devices; supports LZMA, gzip, LZO, and zstd compression |\n| **Magic Bytes** | Known byte sequences at fixed offsets that identify file types; binwalk uses a database of magic signatures to detect embedded files |\n| **Matryoshka Extraction** | Recursive extraction mode where binwalk re-scans extracted files for additional embedded content, handling deeply nested archives |\n| **CramFS** | Compressed ROM filesystem designed for embedded systems with limited flash storage; supports only zlib compression |\n| **JFFS2** | Journalling Flash File System version 2, designed for NOR and NAND flash memory in embedded devices |\n\n## Tools & Systems\n\n- **binwalk**: Primary firmware analysis tool for signature scanning, entropy analysis, and automated extraction of embedded files\n- **unsquashfs**: SquashFS extraction utility for mounting read-only compressed filesystems found in router and IoT firmware\n- **jefferson**: Python tool for extracting JFFS2 flash filesystem images commonly found in embedded devices\n- **sasquatch**: Patched SquashFS utility supporting non-standard vendor-modified SquashFS variants\n- **firmware-mod-kit**: Toolkit for extracting, modifying, and repacking firmware images for security testing\n\n## Common Scenarios\n\n### Scenario: Extracting and Auditing Router Firmware for Hardcoded Credentials\n\n**Context**: A security researcher is performing an authorized assessment of a consumer router. The firmware update file was downloaded from the vendor's support page. The goal is to identify hardcoded credentials, insecure default configurations, and known vulnerable components.\n\n**Approach**:\n1. Run `binwalk -e firmware.bin` to perform initial extraction\n2. Use `binwalk -E firmware.bin` to check entropy and identify encrypted regions\n3. Locate the SquashFS root filesystem in the extracted output\n4. Mount with `unsquashfs` and inspect `\u002Fetc\u002Fpasswd`, `\u002Fetc\u002Fshadow`, and web server configs\n5. Search for hardcoded credentials with `grep -rni \"password\" \u002Ftmp\u002Froot\u002Fetc\u002F`\n6. Identify service versions and cross-reference with CVE databases\n7. Check for debug interfaces (telnet, UART, JTAG references) in startup scripts\n8. Examine web application code for authentication bypass or command injection\n\n**Pitfalls**:\n- Some vendors use non-standard SquashFS with custom compression; use sasquatch instead of unsquashfs\n- Encrypted firmware requires decryption keys often found in bootloader or previous unencrypted versions\n- Firmware headers may need to be stripped before binwalk can identify the embedded filesystem\n- Obfuscated strings may evade simple grep searches; use entropy analysis to locate data blobs\n\n## Output Format\n\n```\nFIRMWARE EXTRACTION REPORT\n====================================\nFirmware:         TP-Link TL-WR841N v14\nFile:             wr841nv14_en_3_16_9_up.bin\nSize:             3,932,160 bytes (3.75 MB)\nSHA-256:          a1b2c3d4e5f6...\n\nSIGNATURE SCAN RESULTS\nOffset       Type                          Size\n------       ----                          ----\n0x00000000   U-Boot bootloader header      64 bytes\n0x00020000   LZMA compressed data          1,048,576 bytes\n0x00120000   SquashFS filesystem v4.0      2,752,512 bytes\n0x003B0000   Configuration partition       131,072 bytes\n\nENTROPY ANALYSIS\nRegion 0x000000-0x020000: 4.21 (bootloader - plaintext code)\nRegion 0x020000-0x120000: 7.89 (kernel - LZMA compressed)\nRegion 0x120000-0x3B0000: 7.45 (filesystem - SquashFS compressed)\nRegion 0x3B0000-0x3C0000: 1.12 (config - mostly empty)\n\nEXTRACTED FILESYSTEM\nRoot filesystem: SquashFS v4.0, LZMA compression\nTotal files: 847\nTotal dirs: 112\nBusyBox version: 1.19.4\n\nSECURITY FINDINGS\n[CRITICAL] Hardcoded root password in \u002Fetc\u002Fshadow (hash: $1$...)\n[HIGH]     Telnet daemon enabled by default in \u002Fetc\u002Finit.d\u002FrcS\n[HIGH]     Private RSA key at \u002Fetc\u002Fssl\u002Fprivate\u002Fserver.key\n[MEDIUM]   BusyBox 1.19.4 (CVE-2021-42373, CVE-2021-42374)\n[MEDIUM]   Dropbear SSH 2014.63 (CVE-2016-3116)\n[LOW]      UPnP service enabled by default\n```\n","# Performing Firmware Extraction with Binwalk\n\n## When to Use\n\n- Analyzing IoT device firmware downloaded from vendor sites or extracted from flash chips\n- Reverse engineering router, camera, or embedded device firmware for vulnerability research\n- Identifying embedded filesystems (SquashFS, CramFS, JFFS2, UBIFS) within firmware blobs\n- Detecting encrypted or compressed regions using entropy analysis\n- Extracting hardcoded credentials, API keys, certificates, or configuration files from firmware\n- Performing security assessments of embedded devices in authorized penetration tests\n\n**Do not use** for analyzing standard desktop application binaries or malware samples that are not firmware images; use dedicated malware analysis tools instead.\n\n## Prerequisites\n\n- binwalk v3.x installed (`pip install binwalk3` or from system package manager)\n- Python 3.8+ with standard libraries (struct, math, hashlib, subprocess)\n- SquashFS tools (`unsquashfs`) for mounting extracted SquashFS filesystems\n- Jefferson for JFFS2 filesystem extraction (`pip install jefferson`)\n- Sasquatch for non-standard SquashFS variants used by vendors like TP-Link and D-Link\n- `strings` utility (GNU binutils) for string extraction\n- Optional: firmware-mod-kit for repacking modified firmware images\n\n## Workflow\n\n### Step 1: Initial Firmware Reconnaissance\n\nPerform a signature scan to identify embedded file types and their offsets:\n\n```bash\n# Basic signature scan - identify all recognized file types\nbinwalk firmware.bin\n\n# Scan with verbose output showing confidence levels\nbinwalk -v firmware.bin\n\n# Scan for specific file types only\nbinwalk -y \"squashfs\" firmware.bin\nbinwalk -y \"gzip\\|lzma\\|xz\" firmware.bin\n\n# Opcode scan to identify CPU architecture\nbinwalk -A firmware.bin\n\n# Scan for raw strings to find version info, URLs, credentials\nbinwalk -R \"password\" firmware.bin\nbinwalk -R \"http:\u002F\u002F\" firmware.bin\n```\n\n### Step 2: Entropy Analysis\n\nAnalyze entropy to identify encrypted, compressed, and plaintext regions:\n\n```bash\n# Generate entropy plot\nbinwalk -E firmware.bin\n\n# Entropy with specific block size for higher resolution\nbinwalk -E -K 256 firmware.bin\n\n# Combined entropy and signature scan\nbinwalk -BE firmware.bin\n```\n\nInterpreting entropy values:\n- **0.0 - 1.0**: Empty or padding regions (null bytes, 0xFF fill)\n- **1.0 - 5.0**: Plaintext data, code, ASCII strings, configuration\n- **5.0 - 7.0**: Compressed data (gzip, LZMA, zlib)\n- **7.0 - 7.99**: Strongly compressed or encrypted data\n- **~8.0**: Maximum entropy, likely encrypted or random data\n\n### Step 3: Extract Embedded Files\n\nExtract all identified components from the firmware image:\n\n```bash\n# Automatic extraction of known file types\nbinwalk -e firmware.bin\n\n# Recursive extraction (matryoshka mode) for nested archives\nbinwalk -Me firmware.bin\n\n# Recursive extraction with depth limit\nbinwalk -Me -d 5 firmware.bin\n\n# Extract specific file type with custom handler\nbinwalk -D \"squashfs filesystem:squashfs:unsquashfs %e\" firmware.bin\n\n# Manual extraction of data at a known offset\ndd if=firmware.bin of=extracted.squashfs bs=1 skip=327680 count=4194304\n```\n\n### Step 4: Mount and Inspect Extracted Filesystems\n\nMount extracted filesystems for deep inspection:\n\n```bash\n# Mount SquashFS filesystem\nmkdir \u002Ftmp\u002Fsquashfs_root\nunsquashfs -d \u002Ftmp\u002Fsquashfs_root extracted.squashfs\n\n# Mount CramFS filesystem\nmkdir \u002Ftmp\u002Fcramfs_root\nmount -t cramfs -o loop extracted.cramfs \u002Ftmp\u002Fcramfs_root\n\n# Extract JFFS2 filesystem\njefferson extracted.jffs2 -d \u002Ftmp\u002Fjffs2_root\n\n# Inspect the extracted filesystem\nls -la \u002Ftmp\u002Fsquashfs_root\u002F\nfind \u002Ftmp\u002Fsquashfs_root -name \"*.conf\" -o -name \"*.cfg\" -o -name \"*.key\"\nfind \u002Ftmp\u002Fsquashfs_root -name \"passwd\" -o -name \"shadow\"\n```\n\n### Step 5: String Analysis and Credential Discovery\n\nSearch extracted filesystem and raw firmware for sensitive data:\n\n```bash\n# Extract all printable strings\nstrings -a firmware.bin > all_strings.txt\nstrings -n 12 firmware.bin | sort -u > long_strings.txt\n\n# Search for credentials and secrets\ngrep -rni \"password\\|passwd\\|secret\\|api_key\\|token\" \u002Ftmp\u002Fsquashfs_root\u002Fetc\u002F\ngrep -rni \"BEGIN.*PRIVATE KEY\" \u002Ftmp\u002Fsquashfs_root\u002F\n\n# Find hardcoded URLs and endpoints\ngrep -rnoE \"https?:\u002F\u002F[a-zA-Z0-9.\u002F?=_-]+\" \u002Ftmp\u002Fsquashfs_root\u002F\n\n# Search for certificate files\nfind \u002Ftmp\u002Fsquashfs_root -name \"*.pem\" -o -name \"*.crt\" -o -name \"*.key\" -o -name \"*.p12\"\n\n# Identify busybox and service versions\nstrings \u002Ftmp\u002Fsquashfs_root\u002Fbin\u002Fbusybox | grep \"BusyBox v\"\ncat \u002Ftmp\u002Fsquashfs_root\u002Fetc\u002Fbanner 2>\u002Fdev\u002Fnull\n```\n\n### Step 6: Generate Firmware Analysis Report\n\nCompile comprehensive extraction and analysis findings:\n\n```\nReport should include:\n- Firmware metadata (vendor, model, version, build date)\n- Identified components with offsets and sizes (bootloader, kernel, filesystem, config)\n- Entropy analysis summary with regions of interest\n- Extracted filesystem structure and key contents\n- Discovered credentials, keys, certificates\n- Identified services, daemons, and their versions\n- Known CVEs applicable to identified component versions\n- Recommendations for hardening or vulnerability remediation\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **Firmware** | Software embedded in hardware devices providing low-level control; typically contains a bootloader, kernel, root filesystem, and configuration data |\n| **Entropy Analysis** | Statistical measurement of randomness in binary data; high entropy indicates encryption or compression, low entropy indicates plaintext or structured data |\n| **SquashFS** | Read-only compressed filesystem commonly used in embedded Linux devices; supports LZMA, gzip, LZO, and zstd compression |\n| **Magic Bytes** | Known byte sequences at fixed offsets that identify file types; binwalk uses a database of magic signatures to detect embedded files |\n| **Matryoshka Extraction** | Recursive extraction mode where binwalk re-scans extracted files for additional embedded content, handling deeply nested archives |\n| **CramFS** | Compressed ROM filesystem designed for embedded systems with limited flash storage; supports only zlib compression |\n| **JFFS2** | Journalling Flash File System version 2, designed for NOR and NAND flash memory in embedded devices |\n\n## Tools & Systems\n\n- **binwalk**: Primary firmware analysis tool for signature scanning, entropy analysis, and automated extraction of embedded files\n- **unsquashfs**: SquashFS extraction utility for mounting read-only compressed filesystems found in router and IoT firmware\n- **jefferson**: Python tool for extracting JFFS2 flash filesystem images commonly found in embedded devices\n- **sasquatch**: Patched SquashFS utility supporting non-standard vendor-modified SquashFS variants\n- **firmware-mod-kit**: Toolkit for extracting, modifying, and repacking firmware images for security testing\n\n## Common Scenarios\n\n### Scenario: Extracting and Auditing Router Firmware for Hardcoded Credentials\n\n**Context**: A security researcher is performing an authorized assessment of a consumer router. The firmware update file was downloaded from the vendor's support page. The goal is to identify hardcoded credentials, insecure default configurations, and known vulnerable components.\n\n**Approach**:\n1. Run `binwalk -e firmware.bin` to perform initial extraction\n2. Use `binwalk -E firmware.bin` to check entropy and identify encrypted regions\n3. Locate the SquashFS root filesystem in the extracted output\n4. Mount with `unsquashfs` and inspect `\u002Fetc\u002Fpasswd`, `\u002Fetc\u002Fshadow`, and web server configs\n5. Search for hardcoded credentials with `grep -rni \"password\" \u002Ftmp\u002Froot\u002Fetc\u002F`\n6. Identify service versions and cross-reference with CVE databases\n7. Check for debug interfaces (telnet, UART, JTAG references) in startup scripts\n8. Examine web application code for authentication bypass or command injection\n\n**Pitfalls**:\n- Some vendors use non-standard SquashFS with custom compression; use sasquatch instead of unsquashfs\n- Encrypted firmware requires decryption keys often found in bootloader or previous unencrypted versions\n- Firmware headers may need to be stripped before binwalk can identify the embedded filesystem\n- Obfuscated strings may evade simple grep searches; use entropy analysis to locate data blobs\n\n## Output Format\n\n```\nFIRMWARE EXTRACTION REPORT\n====================================\nFirmware:         TP-Link TL-WR841N v14\nFile:             wr841nv14_en_3_16_9_up.bin\nSize:             3,932,160 bytes (3.75 MB)\nSHA-256:          a1b2c3d4e5f6...\n\nSIGNATURE SCAN RESULTS\nOffset       Type                          Size\n------       ----                          ----\n0x00000000   U-Boot bootloader header      64 bytes\n0x00020000   LZMA compressed data          1,048,576 bytes\n0x00120000   SquashFS filesystem v4.0      2,752,512 bytes\n0x003B0000   Configuration partition       131,072 bytes\n\nENTROPY ANALYSIS\nRegion 0x000000-0x020000: 4.21 (bootloader - plaintext code)\nRegion 0x020000-0x120000: 7.89 (kernel - LZMA compressed)\nRegion 0x120000-0x3B0000: 7.45 (filesystem - SquashFS compressed)\nRegion 0x3B0000-0x3C0000: 1.12 (config - mostly empty)\n\nEXTRACTED FILESYSTEM\nRoot filesystem: SquashFS v4.0, LZMA compression\nTotal files: 847\nTotal dirs: 112\nBusyBox version: 1.19.4\n\nSECURITY FINDINGS\n[CRITICAL] Hardcoded root password in \u002Fetc\u002Fshadow (hash: $1$...)\n[HIGH]     Telnet daemon enabled by default in \u002Fetc\u002Finit.d\u002FrcS\n[HIGH]     Private RSA key at \u002Fetc\u002Fssl\u002Fprivate\u002Fserver.key\n[MEDIUM]   BusyBox 1.19.4 (CVE-2021-42373, CVE-2021-42374)\n[MEDIUM]   Dropbear SSH 2014.63 (CVE-2016-3116)\n[LOW]      UPnP service enabled by default\n```\n",{"name":5,"tags":56,"author":10,"domain":49,"license":16,"version":58,"mitre_f3":59,"nist_csf":80,"subdomain":84,"description":85,"mitre_attack":86},[33,35,32,41,57,44],"IoT-security","1.0.0",{"tactics":60,"version":61,"techniques":62},[34,38],"1.1",[63,67,71,74,77],{"id":64,"name":65,"source":66,"tactic":34},"T1555","Credentials from Password Stores","attack",{"id":68,"name":69,"source":70,"tactic":34},"F1029","Gather Customer Information","f3",{"id":72,"name":73,"source":66,"tactic":38},"T1110.001","Brute Force: Password Guessing",{"id":75,"name":76,"source":70,"tactic":38},"F1006.001","Account Takeover: Exposed API Key",{"id":78,"name":79,"source":70,"tactic":38},"F1006.002","Account Takeover: Exposed Login Credential",[81,82,83],"ID.RA-01","PR.PS-01","DE.AE-02","firmware-analysis","Performs firmware image extraction and analysis using binwalk to identify embedded filesystems, compressed archives, bootloaders, kernel images, and cryptographic material. Covers entropy analysis for detecting encrypted or compressed regions, recursive extraction of nested archives, SquashFS\u002FCramFS\u002FJFFS2 filesystem mounting, and string analysis for credential and configuration discovery. Activates for requests involving firmware reverse engineering, IoT device analysis, embedded system security assessment, or router\u002Fcamera firmware extraction.\n",[87,88,89,90,91],"T1078","T1190","T1059","T1003","T1110","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fperforming-firmware-extraction-with-binwalk",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":103,"prompt":113,"zipAvailable":114},[104,107,110],{"tool":105,"command":106},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-firmware-extraction-with-binwalk",{"tool":108,"command":109},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-firmware-extraction-with-binwalk",{"tool":111,"command":112},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-firmware-extraction-with-binwalk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-firmware-extraction-with-binwalk\u002FSKILL.md",true,[116,121,127,133],{"path":117,"resourceType":117,"resourceTypeDesc":118,"sizeBytes":119,"sourceHtmlUrl":120},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-firmware-extraction-with-binwalk\u002FLICENSE",{"path":122,"resourceType":123,"resourceTypeDesc":124,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fapi-reference.md","REFERENCE","参考文档",4999,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-firmware-extraction-with-binwalk\u002Freferences\u002Fapi-reference.md",{"path":128,"resourceType":129,"resourceTypeDesc":130,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fagent.py","SCRIPT","脚本",16687,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-firmware-extraction-with-binwalk\u002Fscripts\u002Fagent.py",{"path":134,"resourceType":129,"resourceTypeDesc":130,"sizeBytes":135,"sourceHtmlUrl":136},"scripts\u002Fprocess_transactions.py",14569,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Flesserpowers\u002Fskills\u002Ffinancial-summary\u002Fscripts\u002Fprocess_transactions.py",[138,169,197,228,257,289],{"skillNo":139,"name":140,"nameZh":141,"description":142,"descriptionZh":143,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":144,"categories":145,"keywords":150,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[146,147],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":148,"categoryName":149,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[151,152,153,154,155,49,156,157,47,158,159,160,161,162,163,164,165,166,167,168],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","security","incident response","identity","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":170,"name":171,"nameZh":172,"description":173,"descriptionZh":174,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":175,"categories":176,"keywords":181,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[177,178],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":179,"categoryName":180,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[182,165,183,184,155,185,49,47,186,187,33,188,189,190,191,192,193,194,195,196],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":198,"name":199,"nameZh":200,"description":201,"descriptionZh":202,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":203,"categories":204,"keywords":211,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[205,208],{"categoryNo":206,"categoryName":207,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":209,"categoryName":210,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[191,212,213,214,215,49,216,217,186,218,219,220,221,222,223,40,224,225,226,227],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":229,"name":230,"nameZh":231,"description":232,"descriptionZh":233,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":234,"categories":235,"keywords":238,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[236,237],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[239,240,241,49,242,243,244,245,246,247,248,249,250,251,252,253,188,254,255,256],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":258,"name":259,"nameZh":260,"description":261,"descriptionZh":262,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":263,"categories":264,"keywords":269,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[265,268],{"categoryNo":266,"categoryName":267,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[270,271,272,49,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":290,"name":291,"nameZh":292,"description":293,"descriptionZh":294,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":295,"categories":296,"keywords":301,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[297,298],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":299,"categoryName":300,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[155,302,49,303,304,305,306,307,308,309,310,40,311,224,37,312,313,314,315,316],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]