byted-bytehouse-data-asset-analyzer

Warn

Audited by Socket on Sep 21, 2026

2 alerts found:

AnomalySecurity
AnomalyLOW
scripts/data_asset_analyzer.py

The code is a database metadata analysis utility and contains no clear malicious payload or intentional data theft behavior. It does handle database credentials and potentially sensitive schema metadata as part of its stated purpose. Security weaknesses include disabled TLS certificate verification, SQL construction through unsanitized string interpolation, and use of an unsanitized database name in output filenames. These should be fixed before use with untrusted input or production databases.

Confidence: 98%Severity: 62%
SecurityMEDIUM
scripts/export_config.sh

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).

Confidence: 52%Severity: 74%
Audit Metadata
Analyzed At
Sep 21, 2026, 03:16 PM
Package URL
pkg:socket/skills-sh/bytedance%2Fagentkit-samples%2Fbyted-bytehouse-data-asset-analyzer%2F@de935306da743ec5d20277b6b3ca2670a720aae530cab9f740e6ef852c5fd8cb