hardware-usb-device-detect
Detect unauthorized, suspicious, or newly connected USB devices on Linux systems using udev rules, dmesg, lsusb, and audit log correlation.
- License 许可
- MIT
- 最近更新
- 2026-09-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- hardware-usb-device-detect
- tags
- [ "linux", "usb", "hardware", "detect" ]
- capec
- []
- model
- sonnet
- tools
- [ "Read", "Bash", "Glob", "Grep" ]
- domain
- cybersecurity
- maxTurns
- 15
- nist_csf
- [ "DE.CM-01", "PR.AC-02" ]
- subdomain
- hardware-security
- description
- Detect unauthorized, suspicious, or newly connected USB devices on Linux systems using udev rules, dmesg, lsusb, and audit log correlation.
- mitre_attack
- [ "T1200" ]
02 资源文件 1
- 参考文档index.json628 B
03 SKILL.md 正文
Hardware USB Device Detect
Overview
Detect unauthorized or suspicious USB devices on Linux endpoints using kernel event logs, udev, and audit log correlation.
Prerequisites
lsusb,udevadmavailable; root oradmgroup for dmesg
Procedure
Step 1 — Enumerate connected devices
lsusb
dmesg | grep -iE "usb|hid|storage" | tail -50
journalctl -k --since "1 hour ago" | grep -iE "usb|hid"
Step 2 — Audit log correlation
ausearch -m USER_DEVICE 2>/dev/null | tail -20
Step 3 — Record artifact
ARTIFACT="/tmp/usb-devices-$(date +%s).txt"
lsusb -v > "$ARTIFACT" 2>&1
HASH=$(b2sum -l 256 "$ARTIFACT" | awk '{print $1}')
echo "blake2b:$HASH $ARTIFACT"
MITRE ATT&CK
| Technique | Name |
|---|---|
| T1200 | Hardware Additions |
| T1091 | Replication Through Removable Media |
04 同仓库更多 Skills
devel-jb-algorithmic-art
- Embed algorithms inline in the HTML artifact (don't create separate .
services-wmi-persistence-detect
Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.
services-wmi-exec-exploit
Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.
registry-artifact-extract
Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.
processes-token-impersonate-detect
Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.
processes-thread-injection-detect
Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.