subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if _embeddings_available is not None: return _embeddings_available try: result = subprocess.run( ["curl", "-s", "-m", "2", "-X", "POST", EMBEDDINGS_URL, "-H", "Content-Type: application/json", "-d", json.dumps({"input": "test"})],- Confidence
- 90% confidence
- Finding
- The code launches an external program (`curl`) to contact an embeddings service. Although it does not use `shell=True`, invoking a subprocess for network access increases attack surface and, in this skill, causes metacognitive content to leave the local process contrary to the stated self-reflection purpose.
