subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""Run gitnexus analyze --force.""" gitnexus_bin = get_gitnexus_bin() try: result = subprocess.run( [gitnexus_bin, "analyze", "--force"], cwd=project, capture_output=True,- Confidence
- 86% confidence
- Finding
- The script executes a gitnexus binary that may come either from a bundled path or from the global PATH, with no integrity or trust verification. In a developer-tooling skill, invoking an attacker-controlled or trojaned binary can lead to arbitrary code execution in the context of the user when initializing a repository.
