subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
vault_resolver = os.environ.get("VAULT_RESOLVER", "vault-resolver") if os.path.isfile(vault_resolver): try: proc = subprocess.run( [vault_resolver, "resolve"], input=json.dumps({"ids": [VAULT_ITEM]}).encode(), capture_output=True, timeout=20- Confidence
- 92% confidence
- Finding
- The script executes a helper binary whose path is taken from the VAULT_RESOLVER environment variable, with only an os.path.isfile check before execution. In an agent or automation context, an attacker who can influence environment variables or place a file at that path can cause arbitrary code execution under the skill's privileges.
