router-control
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill extensively uses the
subprocessmodule to execute system utilities and third-party CLI tools on the local machine. cli.pyand multiple drivers (adb.py,broadlink.py,ssh.py) usesubprocess.runto calladb,ssh,nc,ping,arp, andopenssl.- Shell scripts in the
scripts/directory perform network probing and system configuration tasks. references/troubleshooting.mdcontains instructions for usingddto create swap files on a router, which is a legitimate administrative task but involves potentially destructive system commands.- [REMOTE_CODE_EXECUTION]: The skill provides mechanisms to execute arbitrary or templated commands on remote network devices.
drivers/ssh.pyanddrivers/adb.pysubstitute user-provided parameters into command templates that are then executed on routers or Android devices.scripts/run.shallows execution of arbitrary commands on the router via SSH, though it implements a basic command allowlist and user confirmation prompt.- [CREDENTIALS_UNSAFE]: The skill handles authentication for local network devices and includes hardcoded credentials.
scripts/connect.shcontains a list of common default passwords (e.g., 'admin', 'password', 'root', '12345678') that it automatically attempts when connecting to a router via SSH.drivers/ssap.py(LG TV control) andscripts/connect.shstore sensitive pairing keys and router credentials in~/.lan-control/usingchmod 0600to restrict access.- [INDIRECT_PROMPT_INJECTION]: The skill's discovery logic represents a surface for indirect injection as it ingests untrusted data from the local network.
- Ingestion points:
scripts/devices.shreads DHCP lease hostnames, andscripts/discover.shcaptures HTTP titles, SSH banners, and mDNS service data. - Boundary markers: No explicit boundary markers or instructions to ignore embedded commands are used when processing this network metadata.
- Capability inventory: The skill possesses extensive local and remote command execution capabilities via
subprocessandssh. - Sanitization: Metadata is matched against device profiles using regex patterns in
registry.pybut is not otherwise sanitized before being used to identify and interact with devices. - [DYNAMIC_EXECUTION]: The skill uses dynamic loading and conditional execution patterns to maintain broad compatibility.
drivers/broadlink.pyanddrivers/ssap.pyuse lazy imports and conditional logic to switch between Python libraries (likecryptographyoryaml) and system CLI tool fallbacks.registry.pyutilizes__import__('sys')to accessstderrwithin an exception handler.- [EXTERNAL_DOWNLOADS]: The
drivers/ssap.pydriver includes functionality to download image files (specifically TV screenshots) from a dynamically determined IP address on the local network usingsocketandssl.
Audit Metadata