data-encryption
Audited by Socket on Sep 16, 2026
2 alerts found:
SecurityAnomalyThis is ordinary PostgreSQL encryption example code, not malware. It has meaningful security weaknesses: a hardcoded encryption key, plaintext sensitive values in source and query results, possible bytea-to-text encryption errors in the trigger, missing configuration handling, and no automatic encryption on updates. The code should not be used unchanged for production sensitive-data protection.
The fragment is a conventional cryptography utility and contains no evident malware or supply-chain backdoor. The primary security concerns are the hardcoded RSA passphrase fallback, import-time execution with sensitive logging, and unrestricted caller-supplied filesystem paths. These issues warrant remediation before production or package distribution, but the code shows no unauthorized network, credential-theft, or system-compromise behavior.