library-rag

Warn

Audited by Socket on Oct 5, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
scripts/mcp_server.py

No explicit malicious code (e.g., eval/exec, reverse shells, hardcoded secrets, or obvious exfiltration endpoints) is present in this fragment. The main security concern is operational: the 'add_book' tool takes an externally supplied file_path and passes it to conversion/indexing routines without validation/allowlisting, which could enable unintended local file access/conversion and database/file-system modification if the server is reachable by untrusted callers. External network access is likely via get_embedding/load_api_key, but the destination/exfiltration behavior is not visible here. Overall, this looks more like a RAG service with a potentially risky ingestion surface than a clearly malicious package, but additional review of the imported modules and deployment exposure is recommended.

Confidence: 55%Severity: 55%
AnomalyLOW
scripts/rag_common.py

This module primarily acts as an embeddings client (HTTPS requests with a Bearer API key) and includes deterministic vector utilities. There is no clear evidence of embedded malware/backdoors in the snippet. The main security concern is the sensitive pattern of enabling and loading a native SQLite extension via sqlite_vec.load(conn), which elevates supply-chain/code-execution risk depending on sqlite_vec provenance and loaded artifacts. A minor additional issue is a likely bug in connect_db() returning an undefined variable (`con`). Overall: low likelihood of intentional malicious logic in this code, with moderate-to-high security risk driven by native extension loading and external API credential/data handling.

Confidence: 66%Severity: 60%
Audit Metadata
Analyzed At
Oct 5, 2026, 09:56 PM
Package URL
pkg:socket/skills-sh/moonlight-lupin%2Fagent-skills%2Flibrary-rag%2F@ea800e74d436796bc4e344c2f60cad6607d63c93171f1a1baaa1834553cf528b