subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
candidates = [[*shlex.split(command), "auth", "print-access-token"]] for cmd in candidates: try: token = subprocess.check_output( cmd, env=env, text=True,- Confidence
- 88% confidence
- Finding
- The script executes an external command derived from the FULCRA_CLI_COMMAND environment variable to obtain an access token. Although shlex.split avoids shell metacharacter expansion, this still allows an attacker who can influence the environment to redirect execution to an arbitrary binary and exfiltrate or misuse credentials. In an agent skill context, invoking subprocesses for auth retrieval increases the attack surface beyond simple orchestration.
