byted-bytehouse-hybrid-search
Audited by Socket on Sep 21, 2026
2 alerts found:
AnomalySecurityThe fragment appears to implement database connectivity and hybrid-search scaffolding, not malware. The principal security issue is verify=False, which disables TLS certificate validation and can expose database credentials and traffic to man-in-the-middle attacks. The SQL construction is malformed and unused in this fragment, but direct table_name interpolation would become a SQL-injection risk if executed with untrusted input. No clear malicious behavior is identified.
This module is security-sensitive because it turns external JSON file content into shell code and executes it using eval. Even with jq @sh applied to values, the JSON keys are not validated as safe shell identifiers, leaving a potential command-injection vector if an attacker can modify ~/.bytehouse_config.json (or otherwise influence its contents). No explicit malware (exfiltration/persistence/backdoors) is visible in the provided fragment, but the eval-based design is a significant risk that warrants review and likely replacement with a safer non-eval approach (e.g., strict key validation and direct environment assignment).