eval-systematic-optimization

Fail

Audited by Socket on Mar 1, 2026

1 alert found:

Obfuscated File
Obfuscated FileHIGH
run.py

This script is a benign repository utility but contains two significant security weaknesses: (1) command injection via subprocess.run(..., shell=True) using interpolated, caller-controllable arguments; (2) arbitrary file read and return via result_file without path restrictions. Additionally, importing repository-local modules at startup runs untrusted repo code if the repository is not trusted. If this script is used in contexts that accept input from untrusted sources, it can be abused to execute arbitrary commands and to leak local files. Recommendations: use subprocess.run with a list of arguments (avoid shell=True), validate and sanitize all input fields, restrict result_file to an allowlist or canonicalized safe directory, avoid blindly inserting repository paths into sys.path or ensure imports are from vetted modules, and treat load_repo_dotenv execution with caution.

Confidence: 98%
Audit Metadata
Analyzed At
Mar 1, 2026, 12:36 AM
Package URL
pkg:socket/skills-sh/cklxx%2Felephant.ai%2Feval-systematic-optimization%2F@b61ec7bc40323d9a691620c06fba035e21ff16a2