subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
cmd.extend(extra_args) try: result = subprocess.run( cmd, cwd=skill_path, capture_output=True,- Confidence
- 93% confidence
- Finding
- The code executes a discovered skill's local cli.py via subprocess using a skill_path that originates from the skill discovery layer, and it passes attacker-influenced arguments such as token and business identifiers into that untrusted code. Even though shell injection is avoided by using a list argv, this still creates an arbitrary local code execution boundary if a malicious or trojanized ISV skill is discovered or installed, which is especially risky in an agent ecosystem where skills are treated as pluggable components.
