[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECCGA7RB9QFQ8GD4GJK5EC":3,"skill-same:01M7ECCGA7RB9QFQ8GD4GJK5EC":52},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7ECCGA7RB9QFQ8GD4GJK5EC","firmware-security-reports",null,"Evidence-based security report generation for firmware assessments. Use when the agent needs to create technical security reports from firmware analysis. Covers: (1) Full penetration test reports with executive summaries and technical details, (2) Individual vulnerability findings with CVSS 3.1 scoring, (3) Working notes for documentation during assessment, (4) Integration with firmware analysis skills (extraction, static analysis, Ghidra RE, emulation). Outputs to markdown and PDF formats. Technical audience only. Includes templates for findings, PoC code, remediation guidance, and evidence documentation.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Ffirmware-security-reports\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: firmware-security-reports\ndescription: \"Evidence-based security report generation for firmware assessments. Use when the agent needs to create technical security reports from firmware analysis. Covers: (1) Full penetration test reports with executive summaries and technical details, (2) Individual vulnerability findings with CVSS 3.1 scoring, (3) Working notes for documentation during assessment, (4) Integration with firmware analysis skills (extraction, static analysis, Ghidra RE, emulation). Outputs to markdown and PDF formats. Technical audience only. Includes templates for findings, PoC code, remediation guidance, and evidence documentation.\"\n---\n\n# Firmware Security Report Generation\n\nProfessional technical security reports for firmware assessments, following industry standards from elite American security firms.\n\nAll example findings, products, versions, addresses and scores in this skill\nand its templates are illustrative. Replace them with verified assessment\nevidence; do not carry example results into a deliverable.\n\n## Skill Scope\n\n**Use this skill for:**\n- Generating penetration test reports from firmware analysis\n- Documenting individual security findings\n- Creating working notes during assessments\n- Converting analysis results to professional deliverables\n\n**Output Formats:**\n- Markdown (version-controllable, easy to edit)\n- PDF (via Pandoc, or a separately installed PDF skill if available)\n\n**Integration:**\n- Consumes outputs from: firmware-extraction, firmware-static-analysis, ghidra-re, firmware-emulation\n- Produces: Professional security reports for clients\u002Fstakeholders\n\n## Report Types\n\n### 1. Full Penetration Test Report\n\n**Template:** `assets\u002Fpentest_report_template.md`\n\n**Sections:**\n- Executive Summary (key findings, risk summary, priority recommendations)\n- Scope and Methodology (detailed approach, tools used)\n- Findings (with CVSS scores, PoC, remediation)\n- Technical Analysis Details (architecture, security mitigations, network services)\n- Remediation Roadmap (phased approach with timelines)\n- Appendices (CVSS calculations, exploit code, evidence)\n\n**Usage:**\n```markdown\n# Fill in template placeholders:\n[CLIENT_NAME] → Acme Corporation\n[PRODUCT_NAME] → IoT Gateway Pro\n[FIRMWARE_VERSION] → v2.3.1\n[ARCHITECTURE] → ARM Cortex-A9\netc.\n\n# Add findings from analysis:\nFW-001: Remote Command Injection\nFW-002: Hardcoded Cryptographic Keys\nFW-003: MD5 Password Hashing\n```\n\n### 2. Individual Finding Report\n\n**Template:** `assets\u002Ffinding_template.md`\n\n**Sections:**\n- Finding metadata (severity, CVSS, CWE)\n- Technical description\n- Impact analysis\n- Proof of concept with exploit code\n- Evidence (screenshots, PCAPs, logs)\n- Remediation guidance with code fixes\n- Verification steps\n\n**Usage:**\n```markdown\n# Create one file per finding:\nFW-001-command-injection.md\nFW-002-hardcoded-keys.md\nFW-003-weak-hashing.md\n\n# Compile into main report\n```\n\n### 3. Working Notes\n\n**Template:** `assets\u002Fworking_notes_template.md`\n\n**Sections:**\n- Daily activity log\n- Vulnerability tracking table\n- Technical details and file system map\n- Exploitation notes\n- Evidence file inventory\n- Time tracking\n\n**Usage:**\n```markdown\n# Update daily during assessment\n# Track progress and findings\n# Reference when writing final report\n# Internal documentation only (not for client)\n```\n\n## Workflow\n\n### Phase 1: Assessment Execution\n\nUse your firmware analysis skills to find vulnerabilities:\n\n```bash\n# 1. Extract firmware\nbinwalk -e firmware.bin\n\n# 2. Static analysis\nreadelf -h binary\nstrings binary | grep password\n\n# 3. Ghidra RE (set GHIDRA_INSTALL_DIR\u002FGHIDRA_SCRIPT_DIR as in ghidra-re)\n\"$GHIDRA_INSTALL_DIR\u002Fsupport\u002FanalyzeHeadless\" \u002Fproj Firmware -scriptPath \"$GHIDRA_SCRIPT_DIR\" -import binary \\\n  -postScript find_auth_functions.py \\\n  -postScript find_buffer_overflows.py\n\n# 4. Emulation & testing\nqemu-arm -L .\u002Frootfs\u002F .\u002Fbinary\ncurl -X POST http:\u002F\u002F192.168.1.1\u002Fvuln.cgi -d \"param=;id\"\n\n# 5. Document in working notes\n```\n\n### Phase 2: Finding Documentation\n\nFor each vulnerability discovered:\n\n**Step 1: Copy finding template**\n```bash\ncp assets\u002Ffinding_template.md findings\u002FFW-001-command-injection.md\n```\n\n**Step 2: Fill in details**\n```markdown\n## FW-001: Remote Command Injection in Diagnostic Interface\n\n**Severity:** Critical\n**CVSS v3.1 Score:** 9.8 (Critical)\n**CVSS Vector:** CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:H\n\n**Affected Component:** \u002Fcgi-bin\u002Fdiagnostic.cgi\n**Location:** \u002Fwww\u002Fcgi-bin\u002Fdiagnostic.cgi, line 42\n\n### Description\n\nThe diagnostic.cgi script accepts a 'target' parameter for network ping\nfunctionality. User input is passed directly to system() without validation,\nallowing arbitrary command execution.\n\n[Continue filling template...]\n```\n\n**Step 3: Calculate CVSS**\n\nUse `references\u002Fcvss-scoring.md` for guidance:\n```\nRemote command injection, no auth:\nCVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:H = 9.8\n```\n\n**Step 4: Create PoC**\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\nimport requests\n\ntarget = \"http:\u002F\u002F192.168.1.1\"\npayload = {\"target\": \"127.0.0.1;id\"}\n\nr = requests.post(f\"{target}\u002Fcgi-bin\u002Fdiagnostic.cgi\", data=payload)\nprint(r.text)  # uid=0(root)\n```\n\n**Step 5: Collect evidence**\n```bash\nmkdir -p evidence\u002F\n# Screenshot exploitation\n# Save PCAP\ntcpdump -i tap0 -w evidence\u002Ffw-001-exploit.pcap\n# Save exploit script\ncp exploit.py evidence\u002Ffw-001-exploit.py\n```\n\n### Phase 3: Report Assembly\n\n**Step 1: Start with template**\n```bash\ncp assets\u002Fpentest_report_template.md final_report.md\n```\n\n**Step 2: Fill metadata**\n```markdown\n**Client:** Acme Corporation\n**Product:** IoT Gateway Pro\n**Firmware Version:** v2.3.1\n**Assessment Period:** January 1-15, 2024\n**Report Date:** January 20, 2024\n**Assessed By:** [Your Name]\n```\n\n**Step 3: Add findings summary**\n```markdown\n**Critical Issues:** 2\n**High Severity:** 3\n**Medium Severity:** 5\n**Low Severity:** 2\n**Informational:** 1\n\n| ID | Title | Severity | CVSS |\n|----|-------|----------|------|\n| FW-001 | Remote Command Injection | Critical | 9.8 |\n| FW-002 | Authentication Bypass | Critical | 9.1 |\n| FW-003 | Hardcoded Crypto Keys | High | 7.5 |\n```\n\n**Step 4: Import individual findings**\n```markdown\n# Copy full finding details from FW-001-command-injection.md\n# Paste into Findings section\n# Repeat for each finding\n```\n\n**Step 5: Add technical analysis**\n\nFrom your assessment notes:\n```markdown\n### Architecture Analysis\n- ARM Cortex-A9 (32-bit, little-endian)\n- Entry Point: 0x00400000\n- Base Address: 0x00400000\n\n### Security Mitigations\n| Mitigation | Status | Notes |\n|------------|--------|-------|\n| PIE | No | Example ET_EXEC executable |\n| ASLR | Not tested | Verify runtime policy and mappings |\n| Stack Canaries | Enabled | Present in httpd |\n| NX Stack | Enabled | Non-executable stack |\n\n### Network Services\n- Port 23\u002Ftcp: Telnet (CRITICAL - enabled by default)\n- Port 80\u002Ftcp: HTTP (Multiple vulnerabilities)\n- Port 443\u002Ftcp: HTTPS (Self-signed certificate)\n```\n\n**Step 6: Create remediation roadmap**\n```markdown\n### Phase 1: Critical Issues (0-30 days)\n1. Disable telnet service\n2. Patch command injection (FW-001, FW-004)\n3. Fix authentication bypass (FW-002)\n4. Remove default credentials\n\n### Phase 2: High Severity (30-60 days)\n1. Replace hardcoded keys\n2. Implement input validation framework\n3. Build supported executables as PIE and verify runtime ASLR\n```\n\n**Step 7: Review and polish**\n- Verify all placeholders filled\n- Check CVSS calculations\n- Ensure evidence files referenced\n- Proofread technical content\n\n### Phase 4: PDF Generation\n\n**Option 1: Use a separately installed PDF skill, if available**\n```bash\n# Read pdf skill for conversion\n# Convert markdown to professional PDF\n```\n\n**Option 2: Use Pandoc with XeLaTeX installed**\n\nChoose fonts that cover the report characters, replace unsupported symbols and\nreview the rendered pages for clipping and missing glyphs before delivery.\n```bash\npandoc final_report.md -o final_report.pdf \\\n  --pdf-engine=xelatex \\\n  --toc \\\n  --number-sections \\\n  -V geometry:margin=1in \\\n  --highlight-style=tango\n```\n\n## Integration with Firmware Analysis Skills\n\n### From firmware-extraction\n\n```markdown\n## Filesystem Analysis\n\n**Root Filesystem:** SquashFS (extracted at offset 0x40000)\n**Filesystems Found:**\n- 0x0 - TRX header\n- 0x1C - LZMA compressed kernel\n- 0x40000 - SquashFS root filesystem\n- 0x2C0000 - JFFS2 configuration partition\n\n**Extraction Method:** binwalk -e firmware.bin\n**Total Files Extracted:** 1,247\n```\n\n### From firmware-static-analysis\n\n```markdown\n## Binary Security Analysis\n\n**Binaries Analyzed:** 15 (in \u002Fusr\u002Fsbin\u002F)\n\n**Key Findings:**\n- \u002Fusr\u002Fsbin\u002Fhttpd: No PIE, stack canaries present\n- \u002Fusr\u002Fsbin\u002Ftelnetd: No security mitigations\n- \u002Fusr\u002Flib\u002Flibcrypto.so: AES implementation uses OpenSSL 1.0.2k\n\n**Architecture:** ARM 32-bit, little-endian\n**Calling Convention:** ARM EABI\n```\n\n### From ghidra-re\n\n````markdown\n## Reverse Engineering Findings\n\n**Authentication Function Analysis:**\n\nFunction: `check_password` at 0x00401234\n- Uses strcmp(); assess whether a remotely measurable secret-dependent timing difference exists\n- Rate limiting and empty-password acceptance require separate verification; the snippet alone does not establish them\n\nDecompiled code:\n```c\nint check_password(char *username, char *password) {\n    char stored_hash[32];\n    load_user_hash(username, stored_hash);\n    \n    if (strcmp(password_hash(password), stored_hash) == 0) {\n        return AUTH_SUCCESS;\n    }\n    return AUTH_FAIL;\n}\n```\n\n**Cryptographic Analysis:**\n- AES S-box found at 0x0040A000\n- MD5 constants in auth_daemon\n- Hardcoded key: `0x0123456789ABCDEF0123456789ABCDEF`\n````\n\n### From firmware-emulation\n\n````markdown\n## Dynamic Analysis Results\n\n**Emulation Environment:**\n- QEMU system-mode (ARM versatilepb)\n- Kernel: Extracted from firmware (Linux 4.9.118)\n- Network: TAP interface (192.168.100.1\u002F24)\n\n**Runtime Behavior:**\n- Firmware boots successfully in 45 seconds\n- All services start automatically\n- Debug logging enabled (sensitive data in logs)\n\n**Network Traffic Analysis:**\n```\ntcpdump capture: evidence\u002Fnetwork_traffic.pcap\nKey findings:\n- Cleartext credentials in HTTP POST\n- No TLS for admin interface\n- API keys in HTTP headers: X-API-Key: 0x123456...\n```\n\n**Exploitation:**\n```bash\n# Successful RCE via command injection\n$ curl -X POST http:\u002F\u002F192.168.100.2\u002Fcgi-bin\u002Fadmin.cgi \\\n  -d \"cmd=;id\"\n\nResponse: uid=0(root) gid=0(root)\n```\n````\n\n## Best Practices\n\n### Writing Technical Findings\n\n**DO:**\nUse precise technical language\nInclude addresses, file paths, line numbers\nProvide working proof-of-concept code\nShow before\u002Fafter code for remediation\nCalculate accurate CVSS scores\nInclude evidence (screenshots, PCAPs)\nExplain impact clearly\n\n**DON'T:**\nUse vague descriptions (\"security issue found\")\nOver-hype severity without justification\nProvide theoretical exploits without validation\nSkip remediation guidance\nForget to include CWE\u002FOWASP references\n\n### CVSS Scoring\n\nAlways justify your scores. Use `references\u002Fcvss-scoring.md` for guidance.\n\n**Example:**\n```markdown\n**CVSS v3.1 Score:** 9.8 (Critical)\n**CVSS Vector:** CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:H\n\n**Justification:**\n- AV:N - Exploitable remotely over network\n- AC:L - No special conditions required, reliable exploitation\n- PR:N - No authentication required\n- UI:N - No user interaction needed\n- S:U - Impact contained to vulnerable component\n- C:H - Full file system access as root\n- I:H - Complete system modification possible\n- A:H - Can crash or brick device\n```\n\n### Evidence Organization\n\n```\nproject\u002F\n├── final_report.md\n├── findings\u002F\n│   ├── FW-001-command-injection.md\n│   ├── FW-002-auth-bypass.md\n│   └── FW-003-hardcoded-keys.md\n├── evidence\u002F\n│   ├── screenshots\u002F\n│   │   ├── fw-001-ghidra-analysis.png\n│   │   ├── fw-001-exploitation.png\n│   │   └── fw-002-admin-access.png\n│   ├── pcaps\u002F\n│   │   ├── fw-001-exploit.pcap\n│   │   └── full-session.pcap\n│   ├── exploits\u002F\n│   │   ├── fw-001-exploit.py\n│   │   └── fw-002-bypass.py\n│   └── binaries\u002F\n│       ├── httpd\n│       └── auth_daemon\n└── working_notes.md\n```\n\n### Report Quality Checklist\n\n**Before delivery:**\n\n- [ ] All placeholders filled in\n- [ ] CVSS scores calculated correctly\n- [ ] Evidence files referenced and included\n- [ ] PoC code tested and working\n- [ ] Remediation guidance is actionable\n- [ ] Technical details are accurate\n- [ ] Grammar and spelling checked\n- [ ] Sensitive client data redacted (if sharing publicly)\n- [ ] PDF generated and reviewed\n- [ ] Executive summary tells coherent story\n\n## Common Report Sections\n\n### Executive Summary\n\n**Purpose:** High-level overview for decision-makers\n\n**Template:**\n```markdown\nThis assessment of [PRODUCT] version [VERSION] identified [COUNT] security\nvulnerabilities, including [COUNT] critical issues that allow remote attackers\nto [PRIMARY_IMPACT].\n\nThe most severe finding is [FW-ID]: [TITLE], which enables [ATTACK_SCENARIO].\nImmediate remediation is recommended for all critical findings.\n\nKey recommendations:\n1. [ACTION_1] - Addresses FW-001, FW-002\n2. [ACTION_2] - Addresses FW-003, FW-004\n3. [ACTION_3] - Improves overall security posture\n```\n\n### Methodology\n\n**Purpose:** Establish credibility, explain approach\n\n**Template:**\n```markdown\nThe assessment followed a structured methodology:\n\n1. **Firmware Acquisition** - [How firmware was obtained]\n2. **Extraction** - Tools: binwalk, jefferson, sasquatch\n3. **Static Analysis** - Binary analysis, configuration review\n4. **Reverse Engineering** - Ghidra-based deep analysis\n5. **Dynamic Analysis** - QEMU emulation, runtime testing\n6. **Exploitation** - PoC development and validation\n7. **Documentation** - Report generation and evidence collection\n\nTime invested: [HOURS] over [DAYS] days\n```\n\n### Risk Summary\n\n**Purpose:** Quantify overall risk\n\n**Template:**\n```markdown\n### Risk Distribution\n\n[Chart showing Critical\u002FHigh\u002FMedium\u002FLow distribution]\n\n**Critical Risks (9.0-10.0):** 2 findings\n- Enable remote code execution without authentication\n- Full device compromise possible\n\n**High Risks (7.0-8.9):** 3 findings\n- Require authentication but lead to privilege escalation\n- Sensitive data disclosure\n\n**Overall Risk:** HIGH\nThe device is vulnerable to remote compromise. Immediate action required.\n```\n\n## Templates Reference\n\nAll templates located in `assets\u002F` directory:\n\n1. **pentest_report_template.md** - Complete assessment report\n2. **finding_template.md** - Individual vulnerability documentation\n3. **working_notes_template.md** - Assessment tracking and notes\n\nAdditional reference:\n\n4. **references\u002Fcvss-scoring.md** - CVSS 3.1 calculation guide with examples\n\n## Quick Start\n\n```bash\n# 1. During assessment - keep working notes\ncp assets\u002Fworking_notes_template.md working_notes.md\n# Update daily with findings\n\n# 2. For each vulnerability - create finding\ncp assets\u002Ffinding_template.md findings\u002FFW-001-vuln-name.md\n# Fill in technical details, PoC, remediation\n\n# 3. At end - assemble full report\ncp assets\u002Fpentest_report_template.md final_report.md\n# Import findings, add analysis, create roadmap\n\n# 4. Generate PDF (use pdf skill or pandoc)\n# pandoc final_report.md -o final_report.pdf --pdf-engine=xelatex\n```\n\n## Integration Example\n\nComplete workflow from analysis to report:\n\n```bash\n# Day 1-3: Analysis\nbinwalk -e firmware.bin\nreadelf -h binary\n\"$GHIDRA_INSTALL_DIR\u002Fsupport\u002FanalyzeHeadless\" \u002Fproj Firmware -scriptPath \"$GHIDRA_SCRIPT_DIR\" -import binary -postScript find_crypto.py\nqemu-arm -g 1234 -L .\u002Frootfs\u002F .\u002Fbinary\n\n# Day 3-5: Documentation\ncp assets\u002Ffinding_template.md findings\u002FFW-001-cmdinj.md\n# Fill in details from Ghidra\u002FQEMU analysis\n\n# Day 5-7: Report Writing\ncp assets\u002Fpentest_report_template.md acme_iot_gateway_report.md\n# Compile all findings into main report\n\n# Day 7: Delivery\npandoc acme_iot_gateway_report.md -o acme_iot_gateway_report.pdf --pdf-engine=xelatex\n# Send to client\n```\n\n## Professional Standards\n\nReports should distinguish verified findings, unverified candidates, test\nlimitations and informational observations. This repository does not claim\nendorsement or certification by a security consultancy. Use the agreed\nassessment methodology and the applicable FIRST CVSS specification.\n\n**Key principles:**\n1. **Accuracy** - Support claims with reproducible evidence; state what a PoC actually demonstrates\n2. **Reproducibility** - Clear exploitation steps\n3. **Actionability** - Specific remediation guidance\n4. **Evidence** - Screenshots, PCAPs, code samples\n5. **Professionalism** - Technical depth without fluff\n\nReview all generated reports against the engagement scope and evidence before delivery.\n","# Firmware Security Report Generation\n\nProfessional technical security reports for firmware assessments, following industry standards from elite American security firms.\n\nAll example findings, products, versions, addresses and scores in this skill\nand its templates are illustrative. Replace them with verified assessment\nevidence; do not carry example results into a deliverable.\n\n## Skill Scope\n\n**Use this skill for:**\n- Generating penetration test reports from firmware analysis\n- Documenting individual security findings\n- Creating working notes during assessments\n- Converting analysis results to professional deliverables\n\n**Output Formats:**\n- Markdown (version-controllable, easy to edit)\n- PDF (via Pandoc, or a separately installed PDF skill if available)\n\n**Integration:**\n- Consumes outputs from: firmware-extraction, firmware-static-analysis, ghidra-re, firmware-emulation\n- Produces: Professional security reports for clients\u002Fstakeholders\n\n## Report Types\n\n### 1. Full Penetration Test Report\n\n**Template:** `assets\u002Fpentest_report_template.md`\n\n**Sections:**\n- Executive Summary (key findings, risk summary, priority recommendations)\n- Scope and Methodology (detailed approach, tools used)\n- Findings (with CVSS scores, PoC, remediation)\n- Technical Analysis Details (architecture, security mitigations, network services)\n- Remediation Roadmap (phased approach with timelines)\n- Appendices (CVSS calculations, exploit code, evidence)\n\n**Usage:**\n```markdown\n# Fill in template placeholders:\n[CLIENT_NAME] → Acme Corporation\n[PRODUCT_NAME] → IoT Gateway Pro\n[FIRMWARE_VERSION] → v2.3.1\n[ARCHITECTURE] → ARM Cortex-A9\netc.\n\n# Add findings from analysis:\nFW-001: Remote Command Injection\nFW-002: Hardcoded Cryptographic Keys\nFW-003: MD5 Password Hashing\n```\n\n### 2. Individual Finding Report\n\n**Template:** `assets\u002Ffinding_template.md`\n\n**Sections:**\n- Finding metadata (severity, CVSS, CWE)\n- Technical description\n- Impact analysis\n- Proof of concept with exploit code\n- Evidence (screenshots, PCAPs, logs)\n- Remediation guidance with code fixes\n- Verification steps\n\n**Usage:**\n```markdown\n# Create one file per finding:\nFW-001-command-injection.md\nFW-002-hardcoded-keys.md\nFW-003-weak-hashing.md\n\n# Compile into main report\n```\n\n### 3. Working Notes\n\n**Template:** `assets\u002Fworking_notes_template.md`\n\n**Sections:**\n- Daily activity log\n- Vulnerability tracking table\n- Technical details and file system map\n- Exploitation notes\n- Evidence file inventory\n- Time tracking\n\n**Usage:**\n```markdown\n# Update daily during assessment\n# Track progress and findings\n# Reference when writing final report\n# Internal documentation only (not for client)\n```\n\n## Workflow\n\n### Phase 1: Assessment Execution\n\nUse your firmware analysis skills to find vulnerabilities:\n\n```bash\n# 1. Extract firmware\nbinwalk -e firmware.bin\n\n# 2. Static analysis\nreadelf -h binary\nstrings binary | grep password\n\n# 3. Ghidra RE (set GHIDRA_INSTALL_DIR\u002FGHIDRA_SCRIPT_DIR as in ghidra-re)\n\"$GHIDRA_INSTALL_DIR\u002Fsupport\u002FanalyzeHeadless\" \u002Fproj Firmware -scriptPath \"$GHIDRA_SCRIPT_DIR\" -import binary \\\n  -postScript find_auth_functions.py \\\n  -postScript find_buffer_overflows.py\n\n# 4. Emulation & testing\nqemu-arm -L .\u002Frootfs\u002F .\u002Fbinary\ncurl -X POST http:\u002F\u002F192.168.1.1\u002Fvuln.cgi -d \"param=;id\"\n\n# 5. Document in working notes\n```\n\n### Phase 2: Finding Documentation\n\nFor each vulnerability discovered:\n\n**Step 1: Copy finding template**\n```bash\ncp assets\u002Ffinding_template.md findings\u002FFW-001-command-injection.md\n```\n\n**Step 2: Fill in details**\n```markdown\n## FW-001: Remote Command Injection in Diagnostic Interface\n\n**Severity:** Critical\n**CVSS v3.1 Score:** 9.8 (Critical)\n**CVSS Vector:** CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:H\n\n**Affected Component:** \u002Fcgi-bin\u002Fdiagnostic.cgi\n**Location:** \u002Fwww\u002Fcgi-bin\u002Fdiagnostic.cgi, line 42\n\n### Description\n\nThe diagnostic.cgi script accepts a 'target' parameter for network ping\nfunctionality. User input is passed directly to system() without validation,\nallowing arbitrary command execution.\n\n[Continue filling template...]\n```\n\n**Step 3: Calculate CVSS**\n\nUse `references\u002Fcvss-scoring.md` for guidance:\n```\nRemote command injection, no auth:\nCVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:H = 9.8\n```\n\n**Step 4: Create PoC**\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\nimport requests\n\ntarget = \"http:\u002F\u002F192.168.1.1\"\npayload = {\"target\": \"127.0.0.1;id\"}\n\nr = requests.post(f\"{target}\u002Fcgi-bin\u002Fdiagnostic.cgi\", data=payload)\nprint(r.text)  # uid=0(root)\n```\n\n**Step 5: Collect evidence**\n```bash\nmkdir -p evidence\u002F\n# Screenshot exploitation\n# Save PCAP\ntcpdump -i tap0 -w evidence\u002Ffw-001-exploit.pcap\n# Save exploit script\ncp exploit.py evidence\u002Ffw-001-exploit.py\n```\n\n### Phase 3: Report Assembly\n\n**Step 1: Start with template**\n```bash\ncp assets\u002Fpentest_report_template.md final_report.md\n```\n\n**Step 2: Fill metadata**\n```markdown\n**Client:** Acme Corporation\n**Product:** IoT Gateway Pro\n**Firmware Version:** v2.3.1\n**Assessment Period:** January 1-15, 2024\n**Report Date:** January 20, 2024\n**Assessed By:** [Your Name]\n```\n\n**Step 3: Add findings summary**\n```markdown\n**Critical Issues:** 2\n**High Severity:** 3\n**Medium Severity:** 5\n**Low Severity:** 2\n**Informational:** 1\n\n| ID | Title | Severity | CVSS |\n|----|-------|----------|------|\n| FW-001 | Remote Command Injection | Critical | 9.8 |\n| FW-002 | Authentication Bypass | Critical | 9.1 |\n| FW-003 | Hardcoded Crypto Keys | High | 7.5 |\n```\n\n**Step 4: Import individual findings**\n```markdown\n# Copy full finding details from FW-001-command-injection.md\n# Paste into Findings section\n# Repeat for each finding\n```\n\n**Step 5: Add technical analysis**\n\nFrom your assessment notes:\n```markdown\n### Architecture Analysis\n- ARM Cortex-A9 (32-bit, little-endian)\n- Entry Point: 0x00400000\n- Base Address: 0x00400000\n\n### Security Mitigations\n| Mitigation | Status | Notes |\n|------------|--------|-------|\n| PIE | No | Example ET_EXEC executable |\n| ASLR | Not tested | Verify runtime policy and mappings |\n| Stack Canaries | Enabled | Present in httpd |\n| NX Stack | Enabled | Non-executable stack |\n\n### Network Services\n- Port 23\u002Ftcp: Telnet (CRITICAL - enabled by default)\n- Port 80\u002Ftcp: HTTP (Multiple vulnerabilities)\n- Port 443\u002Ftcp: HTTPS (Self-signed certificate)\n```\n\n**Step 6: Create remediation roadmap**\n```markdown\n### Phase 1: Critical Issues (0-30 days)\n1. Disable telnet service\n2. Patch command injection (FW-001, FW-004)\n3. Fix authentication bypass (FW-002)\n4. Remove default credentials\n\n### Phase 2: High Severity (30-60 days)\n1. Replace hardcoded keys\n2. Implement input validation framework\n3. Build supported executables as PIE and verify runtime ASLR\n```\n\n**Step 7: Review and polish**\n- Verify all placeholders filled\n- Check CVSS calculations\n- Ensure evidence files referenced\n- Proofread technical content\n\n### Phase 4: PDF Generation\n\n**Option 1: Use a separately installed PDF skill, if available**\n```bash\n# Read pdf skill for conversion\n# Convert markdown to professional PDF\n```\n\n**Option 2: Use Pandoc with XeLaTeX installed**\n\nChoose fonts that cover the report characters, replace unsupported symbols and\nreview the rendered pages for clipping and missing glyphs before delivery.\n```bash\npandoc final_report.md -o final_report.pdf \\\n  --pdf-engine=xelatex \\\n  --toc \\\n  --number-sections \\\n  -V geometry:margin=1in \\\n  --highlight-style=tango\n```\n\n## Integration with Firmware Analysis Skills\n\n### From firmware-extraction\n\n```markdown\n## Filesystem Analysis\n\n**Root Filesystem:** SquashFS (extracted at offset 0x40000)\n**Filesystems Found:**\n- 0x0 - TRX header\n- 0x1C - LZMA compressed kernel\n- 0x40000 - SquashFS root filesystem\n- 0x2C0000 - JFFS2 configuration partition\n\n**Extraction Method:** binwalk -e firmware.bin\n**Total Files Extracted:** 1,247\n```\n\n### From firmware-static-analysis\n\n```markdown\n## Binary Security Analysis\n\n**Binaries Analyzed:** 15 (in \u002Fusr\u002Fsbin\u002F)\n\n**Key Findings:**\n- \u002Fusr\u002Fsbin\u002Fhttpd: No PIE, stack canaries present\n- \u002Fusr\u002Fsbin\u002Ftelnetd: No security mitigations\n- \u002Fusr\u002Flib\u002Flibcrypto.so: AES implementation uses OpenSSL 1.0.2k\n\n**Architecture:** ARM 32-bit, little-endian\n**Calling Convention:** ARM EABI\n```\n\n### From ghidra-re\n\n````markdown\n## Reverse Engineering Findings\n\n**Authentication Function Analysis:**\n\nFunction: `check_password` at 0x00401234\n- Uses strcmp(); assess whether a remotely measurable secret-dependent timing difference exists\n- Rate limiting and empty-password acceptance require separate verification; the snippet alone does not establish them\n\nDecompiled code:\n```c\nint check_password(char *username, char *password) {\n    char stored_hash[32];\n    load_user_hash(username, stored_hash);\n    \n    if (strcmp(password_hash(password), stored_hash) == 0) {\n        return AUTH_SUCCESS;\n    }\n    return AUTH_FAIL;\n}\n```\n\n**Cryptographic Analysis:**\n- AES S-box found at 0x0040A000\n- MD5 constants in auth_daemon\n- Hardcoded key: `0x0123456789ABCDEF0123456789ABCDEF`\n````\n\n### From firmware-emulation\n\n````markdown\n## Dynamic Analysis Results\n\n**Emulation Environment:**\n- QEMU system-mode (ARM versatilepb)\n- Kernel: Extracted from firmware (Linux 4.9.118)\n- Network: TAP interface (192.168.100.1\u002F24)\n\n**Runtime Behavior:**\n- Firmware boots successfully in 45 seconds\n- All services start automatically\n- Debug logging enabled (sensitive data in logs)\n\n**Network Traffic Analysis:**\n```\ntcpdump capture: evidence\u002Fnetwork_traffic.pcap\nKey findings:\n- Cleartext credentials in HTTP POST\n- No TLS for admin interface\n- API keys in HTTP headers: X-API-Key: 0x123456...\n```\n\n**Exploitation:**\n```bash\n# Successful RCE via command injection\n$ curl -X POST http:\u002F\u002F192.168.100.2\u002Fcgi-bin\u002Fadmin.cgi \\\n  -d \"cmd=;id\"\n\nResponse: uid=0(root) gid=0(root)\n```\n````\n\n## Best Practices\n\n### Writing Technical Findings\n\n**DO:**\nUse precise technical language\nInclude addresses, file paths, line numbers\nProvide working proof-of-concept code\nShow before\u002Fafter code for remediation\nCalculate accurate CVSS scores\nInclude evidence (screenshots, PCAPs)\nExplain impact clearly\n\n**DON'T:**\nUse vague descriptions (\"security issue found\")\nOver-hype severity without justification\nProvide theoretical exploits without validation\nSkip remediation guidance\nForget to include CWE\u002FOWASP references\n\n### CVSS Scoring\n\nAlways justify your scores. Use `references\u002Fcvss-scoring.md` for guidance.\n\n**Example:**\n```markdown\n**CVSS v3.1 Score:** 9.8 (Critical)\n**CVSS Vector:** CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:H\n\n**Justification:**\n- AV:N - Exploitable remotely over network\n- AC:L - No special conditions required, reliable exploitation\n- PR:N - No authentication required\n- UI:N - No user interaction needed\n- S:U - Impact contained to vulnerable component\n- C:H - Full file system access as root\n- I:H - Complete system modification possible\n- A:H - Can crash or brick device\n```\n\n### Evidence Organization\n\n```\nproject\u002F\n├── final_report.md\n├── findings\u002F\n│   ├── FW-001-command-injection.md\n│   ├── FW-002-auth-bypass.md\n│   └── FW-003-hardcoded-keys.md\n├── evidence\u002F\n│   ├── screenshots\u002F\n│   │   ├── fw-001-ghidra-analysis.png\n│   │   ├── fw-001-exploitation.png\n│   │   └── fw-002-admin-access.png\n│   ├── pcaps\u002F\n│   │   ├── fw-001-exploit.pcap\n│   │   └── full-session.pcap\n│   ├── exploits\u002F\n│   │   ├── fw-001-exploit.py\n│   │   └── fw-002-bypass.py\n│   └── binaries\u002F\n│       ├── httpd\n│       └── auth_daemon\n└── working_notes.md\n```\n\n### Report Quality Checklist\n\n**Before delivery:**\n\n- [ ] All placeholders filled in\n- [ ] CVSS scores calculated correctly\n- [ ] Evidence files referenced and included\n- [ ] PoC code tested and working\n- [ ] Remediation guidance is actionable\n- [ ] Technical details are accurate\n- [ ] Grammar and spelling checked\n- [ ] Sensitive client data redacted (if sharing publicly)\n- [ ] PDF generated and reviewed\n- [ ] Executive summary tells coherent story\n\n## Common Report Sections\n\n### Executive Summary\n\n**Purpose:** High-level overview for decision-makers\n\n**Template:**\n```markdown\nThis assessment of [PRODUCT] version [VERSION] identified [COUNT] security\nvulnerabilities, including [COUNT] critical issues that allow remote attackers\nto [PRIMARY_IMPACT].\n\nThe most severe finding is [FW-ID]: [TITLE], which enables [ATTACK_SCENARIO].\nImmediate remediation is recommended for all critical findings.\n\nKey recommendations:\n1. [ACTION_1] - Addresses FW-001, FW-002\n2. [ACTION_2] - Addresses FW-003, FW-004\n3. [ACTION_3] - Improves overall security posture\n```\n\n### Methodology\n\n**Purpose:** Establish credibility, explain approach\n\n**Template:**\n```markdown\nThe assessment followed a structured methodology:\n\n1. **Firmware Acquisition** - [How firmware was obtained]\n2. **Extraction** - Tools: binwalk, jefferson, sasquatch\n3. **Static Analysis** - Binary analysis, configuration review\n4. **Reverse Engineering** - Ghidra-based deep analysis\n5. **Dynamic Analysis** - QEMU emulation, runtime testing\n6. **Exploitation** - PoC development and validation\n7. **Documentation** - Report generation and evidence collection\n\nTime invested: [HOURS] over [DAYS] days\n```\n\n### Risk Summary\n\n**Purpose:** Quantify overall risk\n\n**Template:**\n```markdown\n### Risk Distribution\n\n[Chart showing Critical\u002FHigh\u002FMedium\u002FLow distribution]\n\n**Critical Risks (9.0-10.0):** 2 findings\n- Enable remote code execution without authentication\n- Full device compromise possible\n\n**High Risks (7.0-8.9):** 3 findings\n- Require authentication but lead to privilege escalation\n- Sensitive data disclosure\n\n**Overall Risk:** HIGH\nThe device is vulnerable to remote compromise. Immediate action required.\n```\n\n## Templates Reference\n\nAll templates located in `assets\u002F` directory:\n\n1. **pentest_report_template.md** - Complete assessment report\n2. **finding_template.md** - Individual vulnerability documentation\n3. **working_notes_template.md** - Assessment tracking and notes\n\nAdditional reference:\n\n4. **references\u002Fcvss-scoring.md** - CVSS 3.1 calculation guide with examples\n\n## Quick Start\n\n```bash\n# 1. During assessment - keep working notes\ncp assets\u002Fworking_notes_template.md working_notes.md\n# Update daily with findings\n\n# 2. For each vulnerability - create finding\ncp assets\u002Ffinding_template.md findings\u002FFW-001-vuln-name.md\n# Fill in technical details, PoC, remediation\n\n# 3. At end - assemble full report\ncp assets\u002Fpentest_report_template.md final_report.md\n# Import findings, add analysis, create roadmap\n\n# 4. Generate PDF (use pdf skill or pandoc)\n# pandoc final_report.md -o final_report.pdf --pdf-engine=xelatex\n```\n\n## Integration Example\n\nComplete workflow from analysis to report:\n\n```bash\n# Day 1-3: Analysis\nbinwalk -e firmware.bin\nreadelf -h binary\n\"$GHIDRA_INSTALL_DIR\u002Fsupport\u002FanalyzeHeadless\" \u002Fproj Firmware -scriptPath \"$GHIDRA_SCRIPT_DIR\" -import binary -postScript find_crypto.py\nqemu-arm -g 1234 -L .\u002Frootfs\u002F .\u002Fbinary\n\n# Day 3-5: Documentation\ncp assets\u002Ffinding_template.md findings\u002FFW-001-cmdinj.md\n# Fill in details from Ghidra\u002FQEMU analysis\n\n# Day 5-7: Report Writing\ncp assets\u002Fpentest_report_template.md acme_iot_gateway_report.md\n# Compile all findings into main report\n\n# Day 7: Delivery\npandoc acme_iot_gateway_report.md -o acme_iot_gateway_report.pdf --pdf-engine=xelatex\n# Send to client\n```\n\n## Professional Standards\n\nReports should distinguish verified findings, unverified candidates, test\nlimitations and informational observations. This repository does not claim\nendorsement or certification by a security consultancy. Use the agreed\nassessment methodology and the applicable FIRST CVSS specification.\n\n**Key principles:**\n1. **Accuracy** - Support claims with reproducible evidence; state what a PoC actually demonstrates\n2. **Reproducibility** - Clear exploitation steps\n3. **Actionability** - Specific remediation guidance\n4. **Evidence** - Screenshots, PCAPs, code samples\n5. **Professionalism** - Technical depth without fluff\n\nReview all generated reports against the engagement scope and evidence before delivery.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","03-逆向工程\u002Ffirmware-security-reports",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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill firmware-security-reports",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill firmware-security-reports",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill firmware-security-reports","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Ffirmware-security-reports\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fcvss-scoring.md","REFERENCE","参考文档",10093,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Ffirmware-security-reports\u002Freferences\u002Fcvss-scoring.md",[53,61,66,73,80,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":60},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":62,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":60},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":60},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":60},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":60},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":60},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]