skills-lock
Warn
Audited by Gen Agent Trust Hub on Jul 18, 2026
Risk Level: MEDIUMCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/validate-skills-lock.shcontains a command injection vulnerability. It interpolates the shell variable$SKILL_NAME(derived from local directory paths found viafind) directly into a Python command string passed topython3 -c. Because the variable is placed inside single quotes within the Python command without any sanitization or escaping, an attacker who can create directories in the target repository could execute arbitrary Python code. For example, a directory namedskills/name');import os;os.system('ls');#would terminate the intended Python string and execute the injectedos.systemcommand. This represents a significant security risk if the agent is instructed to validate a repository containing untrusted file or directory names.
Audit Metadata