AGENT SKILL

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

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, udevadm available; root or adm group 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