solidworks-automation
Audited by Socket on Sep 8, 2026
6 alerts found:
Anomalyx4Securityx2No clear, explicit malware behavior is present in this fragment (no hardcoded secrets, no obvious network exfiltration). However, this worker is a high-privilege orchestrator that executes external provider CLIs via subprocess using commands influenced by environment variables and queued job content. It also performs runtime sys.path insertion and imports modules dynamically, with a fail-open capability gate if imports fail. These patterns create meaningful supply-chain/job-injection risk and warrant deeper review of build_provider_command(), validate_codex_job(), and the scripts/ modules it imports.
No overt malicious logic is evident in this Python fragment (no eval/exec, no network activity, no obvious credential theft/backdoor/persistence). However, the module executes a locally discovered native solver binary selected from environment/PATH/Windows registry/standard directories without hash/signature verification, creating a potentially high-impact execution-trust risk if an attacker can influence discovery inputs. Result parsing is defensively implemented but lacks explicit resource bounds for large solver outputs. Overall: low malware likelihood in the Python code itself, with moderate-to-elevated security risk due to external executable integrity.
Suspicious behavior pattern: this wrapper dynamically compiles native C++ (cl.exe), generates a SWBasic macro referencing the produced DLL, and executes it inside SolidWorks via COM (RunMacro2). It also compiles and runs a C# EXE. There is an opt-in guard for known-bad builds, and no network/exfiltration code is visible in this fragment, but the dynamic native code execution + macro execution makes the overall supply-chain risk non-trivial. Confidence is limited because the compiled source code files are not included in the provided fragment.
No clear evidence of stealthy malware, data theft, or overt backdoor behavior is present in the provided fragment. The dominant risk is operational/supply-chain: the code can automatically run `pip install -r requirements.txt` (executing/possibly downloading third-party packages) and then registers an attacker-influencable Python command/server path into multiple client configurations. Treat as a security-sensitive installer/registrar and ensure requirements.txt and input options are trusted; also review the unshown implementations of run()/resolvePython()/parseArgs for potential command-injection behaviors. Confidence is limited because the excerpt appears partially malformed at the beginning and critical helper functions are not included.
This is a high supply-chain risk installer wrapper. It fetches and updates code from a remote GitHub repository and then immediately executes a script shipped within that repository, followed by Python dependency installation. While the wrapper itself shows no explicit credential theft/exfiltration or obfuscation, the security of the installation entirely depends on the integrity of the upstream repository and its dependency chain. Treat as potentially dangerous until the referenced repository content is audited/pinned (e.g., by commit hash) and installation sources are verified.
The package triggers execution of local JavaScript during installation (postinstall -> node install.js) and exposes CLI entrypoints that run package code. This is a legitimate pattern for installers but is also a high-risk behavior because those scripts can perform arbitrary and potentially malicious actions. You should inspect install.js and ./mcp-server/register_all_ai_mcp.js (and any files they require or download) before installing or running the package. If you cannot review the scripts, install only in a sandboxed environment or with lifecycle scripts disabled.