T03 · Remote Payload Retrieval and Execution
- Location
README.md:340- Finding
Unverified Third-Party Executable Is Recommended and Subsequently Executed
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill openly controls Chameleon Ultra RFID hardware, but its unsafe setup path and broad card-cloning command authority need careful review before installation.
Install only if you are authorized to operate the target cards and readers. Before running it, replace the third-party executable download with an official, verified ChameleonUltra release, check hashes or signatures, avoid unpinned runtime package installation, and require explicit confirmation before cloning, writing, emulating, changing BLE keys, or running attack commands.
README.md:340Unverified Third-Party Executable Is Recommended and Subsequently Executed
scripts/chameleon_control.py:94Runtime Installation of Unpinned Python Dependencies
The README encourages natural-language control of connected RFID hardware for reading, cloning, emulation, and attack workflows without a prominent safety warning that plain-language requests may trigger real-world hardware actions immediately. In this context, that omission is dangerous because it reduces user awareness and increases the chance of accidental or unauthorized execution of sensitive operations.
The README frames the tool as limited to authorized card backup, but it also explicitly exposes a bulk-execution mode for arbitrary CLI commands. In this skill context, that materially lowers friction for misuse of cloning, emulation, scanning, and attack features at scale, making the documentation misleading and increasing abuse potential.
The skill explicitly instructs use of shell execution, persistent file writes to config.json, and file reads, but declares no permissions or allowed-tools scope. That creates an over-privileged, under-specified skill boundary where an agent may invoke powerful capabilities without policy-level constraints, increasing the chance of unsafe command execution or unintended persistence.
The activation criteria are very broad: the skill says it should be used for essentially any Chameleon Ultra CLI-related request, including automation of arbitrary chameleon_cli_main commands. In context, this is more dangerous because the skill can drive hardware operations, perform RFID attacks, modify device settings, and persist configuration, so overbroad triggering raises the likelihood of misuse or execution in insufficiently reviewed contexts.
This markdown file documents commands such as hf mf eload, hf mf wrbl, and lf em 410x write that can write data to emulator slots or card-related state, but the surrounding documentation does not include a warning about data modification, reversibility, or the need to confirm the target before use. Under the markdown-specific SQP-2 criteria, safety-relevant behaviors affecting device or card data should be disclosed to the user.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
print("[*] First run: creating local venv and installing pywinpty (one-time)...",
file=sys.stderr)
try:
subprocess.run([sys.executable, "-m", "venv", venv_dir], check=True)
subprocess.run([venv_python, "-m", "pip", "install", "-q", "--upgrade", "pip"],
check=True)
subprocess.run([venv_python, "-m", "pip", "install", "-q", "pywinpty"], check=True)
The script performs automatic pip self-upgrade on first run, pulling code from package repositories over the network without pinning or integrity verification. This introduces a software supply-chain risk: if package resolution is tampered with, an index is malicious, or a MITM/internal mirror is compromised, arbitrary code can execute during installation with the user's privileges.
file=sys.stderr)
try:
subprocess.run([sys.executable, "-m", "venv", venv_dir], check=True)
subprocess.run([venv_python, "-m", "pip", "install", "-q", "--upgrade", "pip"],
check=True)
subprocess.run([venv_python, "-m", "pip", "install", "-q", "pywinpty"], check=True)
except subprocess.CalledProcessError as e:
Automatically installing pywinpty from pip at runtime is a genuine supply-chain execution risk because installation runs untrusted package code fetched from external repositories. In this skill context, that risk is heightened because the tool already manages hardware access and persistent configuration, so compromise of the bootstrap path could give an attacker a durable foothold in an environment likely used for sensitive RFID operations.
subprocess.run([sys.executable, "-m", "venv", venv_dir], check=True)
subprocess.run([venv_python, "-m", "pip", "install", "-q", "--upgrade", "pip"],
check=True)
subprocess.run([venv_python, "-m", "pip", "install", "-q", "pywinpty"], check=True)
except subprocess.CalledProcessError as e:
print(f"[!] Failed to install pywinpty: {e}", file=sys.stderr)
print(" Make sure network access is available, then retry.", file=sys.stderr)
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
# NOTE: use subprocess.run (not os.execv) so the child's stdout/stderr
# are inherited and captured by the calling shell; on some Windows
# setups os.execv silently drops the child's output.
subprocess.run([venv_python, __file__, *sys.argv[1:]], check=True)
sys.exit(0)
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
pass
master, slave = pty.openpty()
proc = subprocess.Popen([exe_path], stdin=slave, stdout=slave, stderr=slave,
close_fds=True)
os.close(slave)
stop = threading.Event()
Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
The document presents fixed language sections and does not state that the skill lets the user choose its operating language or locale. Under the policy, forcing a specific language or locale without user opt-in can be a violation; here the skill appears multilingual but lacks any explicit user-choice statement for runtime behavior.
The usage section says the program only supports Windows, but the technical description later states the skill uses the built-in pty module on Linux/macOS. This is a direct platform-scope mismatch in the documented behavior of the skill.
This is not merely an omission: one part of the README explicitly restricts the skill to Windows, while a later section explicitly describes Linux/macOS-specific implementation behavior. The documentation therefore conflicts with itself about intended platform support.