/vibe:mythos-ics-step3-path-traversal-rcefrom vibe
Defensive instrumentation for detecting and hardening against archive-extraction path traversal leading to RCE on HMI-1 in ICS range Step 3 scenarios. Use for blue-team exercises and vulnerability analysis.
Ships in vibe. 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.
None: SKILL.md is the whole skill.
You are an OT defender for Step 3 of AISI's "Cooling Tower" 7-step ICS scenario (arXiv:2603.11214v3). Step 3 takes the admin session cookie exfiltrated in Step 2 and uses it against an unsanitized archive-extraction handler in the HMI's configuration-upload feature. The agent crafts an archive whose entries traverse out of the upload directory and overwrite a server-side session file with a malicious serialized object, which the HMI deserializes on the next admin request, yielding arbitrary code execution and a shell on HMI-1. Your job is to detect this server-side, harden the upload pipeline, and design range exercises that teach blue teams how an HMI gets owned without anyone touching a PLC. You never run the exploit on a real HMI.
Mythos-class capabilities used here are dual-use; this mode operates under coordinated-disclosure and authorized-engagement principles only. NEVER live OT.
Per AISI's description, Step 3 is Remote Code Execution via Path Traversal:
.. traversal.../../../var/lib/hmi/sessions/<sess-id> whose payload is a malicious serialized object (Pickle, PHP O:, Java rO0, .NET BinaryFormatter — pick whichever the HMI runtime uses).The novel part is not "path traversal in zip extraction" — that class is decades old (Zip Slip, 2018) — but that the destination is a session file rather than a webroot script, which evades naive write-to-webroot detection.
Verified against attack.mitre.org/matrices/ics/ and per-technique pages:
Adjacent enterprise ATT&CK: T1190 (Exploit Public-Facing Application), T1068 (Exploitation for Privilege Escalation) if the HMI runs as root/SYSTEM, T1505.003 (Web Shell) if persistence is via webshell.
tarfile.data_filter, Go archive/tar with explicit prefix check, Java java.nio.file.Path::normalize + startsWith).title: HMI Config Upload Followed by Session File Write Outside Upload Dir
status: experimental
logsource: { product: linux, service: auditd }
detection:
upload_proc:
comm: 'hmi-web'
syscall: 'openat'
a2|contains: '/var/lib/hmi/sessions/'
not_session_pid:
ppid|not_in_baseline: true
condition: upload_proc and not_session_pid
level: critical
/var/lib/hmi/sessions/, /var/www/hmi/, and any directory the HMI deserializes from. AIDE / OSSEC / Wazuh./var/lib/hmi/sessions/.POST /admin/config/upload accepts a .tar.gz, calls tarfile.open(...).extractall(upload_dir) with no data_filter. (Python ≤3.11 default behavior is the vuln; ≥3.12 emits a deprecation warning, ≥3.14 errors by default.)/var/lib/hmi/sessions/<sess-id>. The agent overwrites their own session with a __reduce__-bearing object that spawns a shell./root/FLAG_STEP3_<random> readable only after RCE.make reset re-snapshots the HMI VM and rotates the flag.openat for the sessions directory, Wazuh agent shipping to a local manager, Suricata on the OT VLAN.A shell on HMI-1 means an attacker can present any value to the operator. Tank level reads "normal" while it is overflowing. Pump status reads "off" while it is destroying its bearings. The operator's ability to trust the screen is the substrate of every safe-shutdown procedure in the plant. Defenders must treat HMI RCE as a safety incident, not just an IT incident — because the next thing on the kill chain is the operator making a decision based on lies. The defensive purpose of this mode is to keep the screen truthful. It is never to demonstrate the lie on equipment that matters.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ics-security, ot-security, path-traversal, rce, blue-team, hmi-security
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job