Web3 Smart Contract Auditor

Warn

Audited by Socket on Aug 3, 2026

3 alerts found:

SecurityAnomalyx2
SecurityMEDIUM
rag/retriever.py

This is a largely standard RAG retrieval/reranking component, but it contains a critical supply-chain/runtime security footgun: it loads bm25_dump.pkl using pickle.load without integrity/authenticity verification. If an attacker can influence bm25_dump.pkl, the code path can result in arbitrary code execution. Aside from this, the main additional concerns are that retrieved chunk text and metadata are propagated into build_context() (prompt injection/privacy risk in downstream LLM usage) and that it delegates to external embedding/vector-store/reranker components whose network behavior is not shown in this snippet.

Confidence: 70%Severity: 78%
AnomalyLOW
rag/loader.py

No clear evidence of intentional malware (no obfuscated payloads, no eval/exec, no subprocesses, no reverse shells, no direct credential harvesting beyond using a provided Jina API key for a known extraction service). The main security concerns are supply-chain/environment privacy and data exposure: the code can read many local file types and can make outbound requests to arbitrary user-provided URLs, including sending URLs to a third-party (`r.jina.ai`) for extraction (potential unintended disclosure of which resources are being fetched and what content is returned into `LoadedDoc.text`).

Confidence: 68%Severity: 52%
AnomalyLOW
rag/index.py

This module is primarily a RAG indexing component. It does not show explicit malware behavior (no obvious backdoor/exfiltration/reverse shell in the fragment). However, it uses unsafe deserialization (pickle.load) on a local file under config.rag_dir. If an attacker can influence the pickle file contents or the rag_dir path/placement, this creates a serious arbitrary code execution risk. Additional moderate concerns include broad exception suppression around pickle operations and potential information leakage via printing d.source.

Confidence: 66%Severity: 62%
Audit Metadata
Analyzed At
Aug 3, 2026, 07:55 PM
Package URL
pkg:socket/skills-sh/XSpoonAi%2Fspoon-awesome-skill%2Fweb3-smart-contract-auditor%2F@99c283e87b31cd4e980b74ce59b5f8a8ddb963d6
Security Audit — socket — Web3 Smart Contract Auditor