ultradoc
Audited by Socket on Jun 28, 2026
2 alerts found:
Anomalyx2No strong evidence of intentional malware/backdoor behavior in this module. The primary security risk is privacy/data exfiltration and operational impact: it transmits repository contents and user queries to an Ollama endpoint and stores chunk snippets in Qdrant, while network destinations are fully environment-configurable and Qdrant rebuild involves a destructive DELETE+recreate. Additionally, it executes Docker Compose commands and can pull a model based on an environment variable; although classic shell injection is less likely due to argument-array usage, the sh() helper implementation is not visible. Overall: treat as a networked indexing component that must run with trusted configuration and restricted network access.
No explicit malware indicators (no network calls, file writes, persistence, obfuscated payloads, or obvious exfiltration) are present in the provided fragment. The dominant security concern is that the exported sh()/have() functions provide direct, synchronous OS command execution with caller-controlled cmd/args and optional stdin/env inheritance. If upstream usage is not strictly allowlisted/controlled, this creates a realistic arbitrary command execution risk. The keyword matcher portion is mostly deterministic text processing; it can still be abused for availability issues via regex compilation/testing overhead if inputs are attacker-controlled, but it does not show clear malicious behavior on its own.