yichen-wechat-local-vault
Audited by Socket on Sep 10, 2026
2 alerts found:
SecurityAnomalyThe code is a local WeChat database key-extraction tool rather than ordinary application functionality. It instruments WeChat, captures cryptographic material, tests it against encrypted databases, and stores recovered keys locally. No direct exfiltration or destructive malware behavior is evident in the supplied fragment, but extracting and persisting encryption keys is a high-impact privacy and security action. The absent FRIDA_JS/FRIDA_HOST definitions prevent complete assessment, and the fragment is syntactically incomplete. Use only with explicit authorization and review the missing Frida payloads before execution.
The code appears to be a local WeChat database decryption utility, not malware. It has a concrete path traversal vulnerability in key_name_to_rel(): arbitrary slash-containing .db names can escape the configured source and output directories. The explicit recursive deletion option also creates destructive-use risk when given an unsafe path. No network exfiltration, reverse shell, cryptomining, obfuscated payload, or credential theft behavior is present. The shown fragment also has an incomplete final main() invocation and would not run exactly as pasted.