/network-forensics:verify-iot-lockdownfrom network-forensics
Apply and validate an internet block on an IoT device (IP camera), then record what happened afterwards. Does RTSP/ONVIF/NVR recording keep working, does the vendor app work on the LAN, what does the device keep trying to reach, does it survive a reboot while blocked? Tested at 10 min, 1 h and 24 h.
Ships in network-forensics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The remediation and validation half of lockdown-iot-device (which covers probing,
capture and documentation). It ends with a dated post-block.md for the device, which
settles the rubric criteria that need a block to test (L1, L2, L4, L5, L7 in
score-device-security).
Precondition: the device's egress has been captured and documented before this
(lockdown-iot-device Phases 1-3). Once the block is in, that traffic is gone.
OPNSENSE_URL, OPNSENSE_KEY, OPNSENSE_SECRET
(calls in ../lockdown-iot-device/references/opnsense-api.md). Other routers use the
same steps in their UI.Record each of these in post-block.md under "Baseline". They are the comparison for
every later check.
ffprobe -v error -rtsp_transport tcp -show_entries stream=codec_name,width,height -of csv \
"rtsp://$USER:$PW@$DEV:554/<path>" # stream answers
date -u; curl -s -H 'Content-Type: application/soap+xml' "http://$DEV:<onvif-port>/onvif/device_service" -d \
'<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Body><GetSystemDateAndTime xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope>' \
| grep -oE '<tt:(Hour|Minute|Second)>[0-9]+' | head -3 # device clock vs router clock
Plus: a state-table snapshot (all flows), the vendor app on the LAN (works?), the vendor app on mobile data (works?), and the NVR's last recording segment time.
Show the user the exact rule set and get a yes. It changes the router, and the vendor app stops working off the LAN. Then:
SetNTP, web UI or app).
Record whether it accepts an IP or only a hostname.Run each check at each checkpoint, using a /loop or scheduled wake-ups for the later
ones. Record pass/fail with the exact output line.
| Check | How | Expected |
|---|---|---|
| RTSP stream | ffprobe as in the baseline | Same codec and resolution |
| ONVIF | GetSystemDateAndTime (and an authenticated GetDeviceInformation) | Answers |
| NVR recording | NVR UI/API: segments continuous since the block, no gaps | No gap beyond normal |
| Clock | Device time vs router time | Drift < 2 s at 24 h (with local NTP) |
| State table | Flows for the device | LAN and router only |
| Firewall log | Blocked attempts by destination and port, per hour | The ongoing record of what it tries |
| Vendor app, LAN | User opens the app on home Wi-Fi | Record exactly what works: live view, playback, settings, PTZ, talk-back |
| Vendor app, off-LAN | User on mobile data | Fails to connect (that is success) |
# blocked attempts per destination:port over the log window
api "diagnostics/firewall/log?limit=2000" | jq -r --arg d "$DEV" \
'.[] | select(.src==$d and .action=="block") | "\(.dst):\(.dstport // "-") \(.protoname // .proto)"' \
| sort | uniq -c | sort -rn | head -20
# retry rate: blocked packets per minute
api "diagnostics/firewall/log?limit=2000" | jq -r --arg d "$DEV" \
'.[] | select(.src==$d and .action=="block") | .__timestamp__[0:16]' | uniq -c | tail -10
Compare the blocked destinations with the pre-block findings. New destinations (a fallback server, DNS-over-HTTPS, a different hard-coded resolver) are findings in their own right: whois them and add them to the flow table.
Power-cycle the device with the block in place, and capture across it (host $DEV,
RTSP excluded; see the reboot window in lockdown-iot-device). Answers:
Write forensics/<YYYY-MM-DD>-<model>/post-block.md from templates/post-block.md:
baseline, rules, the matrix at each checkpoint, the blocked-attempts table, the reboot
result, and anything that broke (feature lockout, nag, reboot loop, time drift). Mark
each claim tested or assumed.
Then:
score-device-security): L1, L2, L4, L5, L7 move from
unknown (or documented) to tested. Re-run the scorer and update the published
tables.fail. Say so plainly; that is the most important finding for anyone buying it.What SKILL.md sets; muted values are Claude Code's defaults
network-forensics@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin network-forensics3 skills in this plugin
/lockdown-iot-deviceLock an IoT device (IP camera, smart plug) to the LAN - probe it, capture and trace its cloud egress at the firewall, document, block, verify./score-device-securityRate an IoT device (IP camera, hub) for local-only use and cloud exposure on a fixed 100-point rubric, from its forensics findings and vendor docs. Produces a score file, a grade with red flags, and the list of what is still untested.Other plugins' skills for the same job