yichen-wecom-local-vault

Decrypt and query local WeCom 5.x macOS databases into read-only plaintext snapshots.

Updated Sep 21, 2026
Ready to run
npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill yichen-wecom-local-vault-tangyixiao
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: yichen-wecom-local-vault
Source: https://github.com/tangyixiao/tangyixiao-skills/tree/main/yichen-wecom-local-vault
Command: npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill yichen-wecom-local-vault-tangyixiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pycryptodome, frida, and includes scripts (resource) and references (resource) components.

What problem does it solve? WeCom (企业微信) 5.x on macOS stores chats, contacts, and sessions in encrypted wxSQLite3 databases that cannot be opened directly. This Skill captures the database key with explicit authorization, builds a private plaintext snapshot, and lets you search and export message history without touching the original app or data. ## Core Features & Use Cases - Key Capture with Consent Gates: Passively attach to a running WeCom process via Frida, spawn an ad-hoc re-signed copy, or run a read-only Mach VM scan of DbKeyManager; candidate keys are validated against the database first page before being saved with 0600 permissions. - Read-Only Snapshot Decryption: Decrypt wxSQLite3 AES-128-CBC pages and merge committed WAL frames into a new timestamped snapshot, never modifying the source databases. - Query and Export: List sessions and contacts, filter message history by chat and time range, full-text search, and export conversations to Markdown or JSON in a private vault. - Use Case: You need a structured archive of a project group chat from your own Mac WeCom client. Run status to inspect the databases, capture the key with explicit confirmation, decrypt a snapshot, then export the conversation to Markdown. ## Quick Start Use the yichen-wecom-local-vault skill to check the status of my local WeCom databases and, after my explicit confirmation, decrypt a snapshot and export a chosen conversation.

Frequently Asked Questions about yichen-wecom-local-vault

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decrypt WeCom local database files on macOS?▼

Capture the 16-byte raw key from the running WeCom process using Frida attach, a re-signed copy, or a read-only memory scan, then run the decrypt command to build a plaintext snapshot. Keys are validated against the database first page before saving.

How to export WeCom chat history to Markdown?▼

After creating a decrypted snapshot, run the export command with a conversation name or ID, optional start and end dates, and markdown format. The file is written to the private vault exports directory with 0600 permissions and never overwrites existing files.

What encryption does WeCom 5.x use for local databases?▼

WeCom 5.x uses wxSQLite3-style AES-128-CBC page encryption with a 16-byte raw key. Each page key is derived by MD5 over the raw key, little-endian page number, and the tag sAlT, with a page-number-driven IV.

Does this work with personal WeChat databases?▼

No. Personal WeChat 4.x uses SQLCipher AES-256 with HMAC and an 80-byte reserve area, which is incompatible with the WeCom wxSQLite3 format. Use the separate yichen-wechat-local-vault skill for personal WeChat data.

Why does WeCom key capture fail or time out on macOS?▼

Capture fails when macOS denies task_for_pid, Frida is missing, or no page decryption call occurs during the capture window. Alternatives are the spawn-signed-copy mode or the read-only DbKeyManager memory scan with sudo.

What are the limitations of WeCom message export?▼

Image, voice, and file message bodies are output only as type placeholders since media is not decrypted. Snapshots contain only data present at creation time, and sender direction requires a confirmed internal user ID.