nopua

Fail

Audited by Socket on Jul 2, 2026

4 alerts found:

Obfuscated Filex4
Obfuscated FileHIGH
benchmark/test-project/src/training/trainer.py

The provided code is a legitimate LLM fine-tuning orchestration script and contains no explicit malicious payloads. The primary security concern is that it defaults to trust_remote_code=True and loads remote model/tokenizer repositories, which permits execution of arbitrary remote code during model/tokenizer import — creating a supply-chain risk. If operators only load models from trusted sources, the code is acceptable. To reduce risk, make trust_remote_code opt-in (False), validate/trust model sources, and isolate model-loading operations for untrusted repositories.

Confidence: 90%
Obfuscated FileHIGH
benchmark/test-project/src/data_engineering/synthesizer.py

No evidence of deliberate malicious code (no backdoor, reverse shell, dynamic code execution, or obfuscation in runtime behavior). The primary security concern is accidental or unintended data exfiltration: source text (potentially containing secrets or PII) is embedded in prompts and sent to an external API, and the environment API key is used as a Bearer token that will be transmitted to whatever api_base_url is configured. Additionally, the provided snippet contains syntactic/incomplete lines (empty prompt constants and an unclosed method) that must be fixed. Recommend: (1) Do not run with sensitive data in source_dir; add redaction/sanitization before sending; (2) validate and lock api_base_url or confirm trusted endpoint; (3) add retries/backoff and stricter error handling; (4) fix the missing/empty prompt constants and syntax issues before use.

Confidence: 90%
Obfuscated FileHIGH
benchmark/test-project/configs/training_config.yaml

The YAML itself is not executable malware, but it enables potentially dangerous runtime behavior: trust_remote_code:true combined with absolute local dataset paths creates a realistic supply-chain and data-exfiltration risk. The highest-risk action is executing remote model-supplied code (required by some custom quantization/loaders). Mitigations: disable trust_remote_code or audit/pin and vendor the remote code, restrict network egress and filesystem access, and avoid exposing TensorBoard publicly. Treat this configuration as high-risk until the remote model code is reviewed and runtime is sandboxed.

Confidence: 90%
Obfuscated FileHIGH
benchmark/test-project/configs/inference_config.yaml

The configuration file is not itself executable malware, but it contains insecure settings that create substantial supply-chain and runtime risk: an exposed hard-coded API key that is logged in plaintext, use of unencrypted HTTP for backend connections, and trust_remote_code enabled which permits arbitrary code execution from model artifacts. Recommended mitigations: remove hardcoded credentials and use a secrets manager or environment variables (ensure secrets are not logged), disable or avoid trust_remote_code unless models are fully vetted and code-signed, enforce TLS for backend communication (or restrict to a secure loopback interface with network policies), and add startup checks to prevent logging secrets and to validate trusted model sources.

Confidence: 90%
Audit Metadata
Analyzed At
Jul 2, 2026, 03:49 PM
Package URL
pkg:socket/skills-sh/wuji-labs%2Fnopua%2Fnopua%2F@bf4b2b6c1a509375c499fb2fb6454e9afd08913d
Security Audit — socket — nopua