database-skill
Audited by Socket on Sep 21, 2026
3 alerts found:
SecurityAnomalyx2The code is a legitimate-looking database operations toolbox, not evident malware. It accesses credentials, executes arbitrary SQL, creates schema/data-change tickets, writes secrets and sensitive query data to local files, and can terminate database sessions. The primary concrete vulnerability is SQL injection in _pg_get_table_info() through unescaped schema and table values. Credential-file handling, temporary artifact exposure, broad process termination, and globals()-based CLI dispatch also warrant hardening. No obfuscated payload, exfiltration destination, reverse shell, persistence, or destructive behavior unrelated to database administration is present.
The code is a data-analysis CLI with no clear malicious behavior or obfuscation. It contains security risks when exposed to untrusted input: unrestricted SQL execution, unvalidated SQL identifiers, arbitrary local file ingestion, and use of a predictable shared temporary database. These risks are potentially serious in a service or multi-user context, but they are not evidence of malware in this standalone fragment.
The fragment is a readable local workflow utility with no apparent malware or network-based malicious behavior. It contains a meaningful path traversal and workspace-integrity risk because caller-controlled step_name, filename, and analysis_id are used in filesystem paths without validation. Exploitability depends on whether untrusted callers can supply these values, so the code requires review and input validation before use in a multi-user or exposed application.