Tool Parameter Abuse
- Category
- Tool Misuse
- Confidence
- 99% confidence
- Finding
This is tool parameter abuse:
read_cmdis effectively a free-form shell payload supplied through tool configuration, then executed by the skill. In the context of an agent skill, untrusted project state or instructions can steer the tool into running attacker-chosen commands during seemingly harmless backup verification operations.- Content
python return {"reachable": True, "max_gen": mx, "entries": entries, "note": f"file ledger at {p}"} if adapter == "command": r = subprocess.run(led["read_cmd"], shell=True, capture_output=True, text=True, timeout=120) if r.returncode != 0: note = f"ledger read command failed (rc={r.returncode}): {r.stderr.strip()[:200]}"
