hardware-security – skill Bảo mật cho agent AI
Nghiên cứu bảo mật phần cứng và giao diện nhúng được ủy quyền: phát hiện UART/JTAG, phân loại debug-pad, tổng quan secure-boot và phân tích firmware ngoại tuyến.
Cài skill hardware-security bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/hardware-security-0b236.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /hardware-security – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/hardware-security-0b236.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $hardware-security – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/hardware-security-0b236.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /hardware-security – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/hardware-security-0b236.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /hardware-security – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
> ⚠️ AUTHORIZED USE ONLY
> This skill is for educational purposes or authorized security assessments only.
> You must have explicit, written permission from the system owner before using this tool.
> Misuse of this tool is illegal and strictly prohibited.
> Mandatory confirmation gate
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
> 1. Ask the user to state the exact target URL, IP, account, or resource.
> 2. Ask the user to confirm written authorization and the permitted scope.
> 3. Show the exact command(s) and explain their expected effect.
> 4. Wait for explicit confirmation in the current conversation.
>
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
Hardware / Embedded Interface Security
When to Use
- Physical security review of a device you own or are authorized to test.
- Locating and documenting exposed debug interfaces.
适用场景
- UART / JTAG / SWD 调试口发现
- 启动日志、root shell、引导打断
- 配合拆机提取 Flash
- 安全启动/加密 Flash 的可行性评估(非破坏性优先)
工作流
□ 拆解授权设备;拍照标注测试点
□ 万用表找 GND/VCC/TX/RX;逻辑电平 1.8/3.3/5V
□ 断电确认接线与电平;不要将 USB-TTL VCC 直接接到已供电目标,避免反向供电
□ USB-TTL 先仅连接 GND 与适配器 RX 读取目标 TX;记录波特率
□ JTAG:枚举 IDCODE;评估是否锁定
□ 提取镜像 → 交接 firmware-pentest / ghidra工具链
| 工具 | 用途 |
|------|------|
| USB-TTL / logic analyzer | UART |
| J-Link / CMSIS-DAP | 调试 |
| bus pirate / flipper(实验室) | 多协议 |
| binwalk / flashrom | 提取 |
参考
references/debug-interface-triage.md../firmware-pentest/../ot-ics/
路由上下文
上游: MASTER R34
MUST NOT: 未授权拆机/损坏他人设备
任务完成自检
- [ ] 是否记录接口电平与引脚图?
- [ ] 镜像是否哈希保全?
- [ ] Checklist?
Limitations
- Requires physical access and basic HW tooling (adapters, multimeter).
- Soldered or disabled debug ports raise the difficulty sharply.
> Adapted from [zhaoxuya520/reverse-skill](https://github.com/zhaoxuya520/reverse-skill) (MIT).
Skill liên quan
- skill-security-auditor – Công cụ kiểm tra bảo mật và quét lỗ hổng cho skill của AI agent trước khi cài đặt. Dùng…
- hipaa-compliance – Triển khai các quy tắc bảo mật và quyền riêng tư HIPAA. Cấu hình bảo vệ PHI và yêu cầu…
- soc2-audit-prep – /compliance-os:soc2-audit-prep [scope] — Bộ câu hỏi sàng lọc 6 câu đánh giá mức độ sẵn…
- soc2-compliance – Dùng khi người dùng yêu cầu chuẩn bị cho kiểm toán SOC 2, ánh xạ Trust Service Criteria…
- hunt-auth-bypass – Skill săn lỗ hổng vượt qua xác thực.
- hunt-business-logic – Skill săn lỗ hổng logic nghiệp vụ.
- hunt-cache-poison – Skill săn lỗ hổng cache poisoning.
- hunt-cicd – Tìm lỗ hổng trong pipeline CI/CD