re-crypto-decrypt

re-crypto-decrypt is a skill for Claude Code from dslsdzc/rev-skills. It costs 42 tokens per session (4,566 once invoked), scanned A, original, Apache-2.0.

A process for turning encrypted data, such as files, traffic, or configuration blobs, back into readable data when the algorithm and key are known. It can also reconstruct the program’s decryption logic as a separate script.

In plain words
What is it for?
It helps decrypt batches of data, reproduce a sample’s decryption routine, and work from memory dumps or decompiler output using Python and cryptographic libraries.
Why use it?
It separates decryption from running the original sample, making the result easier to repeat and automate. When the algorithm or key is missing, it points to the preceding analysis needed to find them.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It helps decrypt batches of data, reproduce a sample’s decryption routine, and work from memory dumps or decompiler output using Python and cryptographic libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-crypto-decrypt
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dslsdzc/rev-skills --skill re-crypto-decrypt
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for re-crypto-decrypt

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-crypto-decrypt/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-crypto-decrypt)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-crypto-decrypt"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-crypto-decrypt/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re-crypto-decrypt

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-crypto-decrypt"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-crypto-decrypt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.04566
Opus 5.5 $0.00017 $0.01826
Sonnet 5.5 $0.00008 $0.00913
Haiku 4.5 $0.00004 $0.00457

Measured 1mo ago against content hash 415cb871501b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

re-crypto-decrypt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/re-crypto-decrypt/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

加密数据还原

何时使用 / 何时不用

  • 用:需要把密文(数据 blob / 流量 / 配置段)还原成明文
  • 用:算法与密钥已知(或已由 [[re-crypto-id]] / [[re-crypto-keys]] 得出),需要批量解密
  • 用:从样本里还原解密逻辑并重写为独立可复用的脚本
  • 不用:算法/密钥都未知(先 [[re-crypto-id]] → [[re-crypto-keys]])
  • 不用:静态可读的明文([[re-triage]] 熵低直接读)
  • 不用:想跑原样本看输出(那是 [[re-behavior]] / [[re-sandbox]] 的活——解密脚本是为了脱离样本复现)

工具准备

所有工具先验证再使用。本技能处理的是转储/反编译产物与密文数据,运行样本环节在 [[re-sandbox]] 内([[re-analyze/platform-tips]] 最高原则)。

python3 + pycryptodome —— 解密脚本主力

  • Linux: apt install python3 python3-pip / dnf install python3 python3-pip / pacman -S python python-pip
  • macOS: brew install python
  • Windows: python.org 安装包(勾选 Add to PATH);WSL 内 Linux 版
  • 加密库: pip install pycryptodome(AES/DES/RSA/ChaCha 等标准算法)
  • 验证: python3 -c "from Crypto.Cipher import AES; print('ok')";python3 --version

目标程序转储/反编译产物 —— 还原算法的依据

  • 转储: [[re-memdump]] 默认转储(gcore)——定位密文输入点与解密调用现场
  • 反编译: [[re-ghidra]] / [[re-ida]] / [[re-radare2]] 的产物(函数反编译视图)
  • 验证: file out 是 ELF core;反编译器里能找到目标函数(ghidra / rizin 可启动)

angr(可选)—— 符号执行补足难还原的逻辑

  • 全平台: pip install angr——Python 版本兼容性以 [[re-angr]] 的「工具准备」为准(版本矩阵只在该处维护一份,避免多处漂移);依赖多,建议 venv: python3 -m venv venv && venv/bin/pip install angr
  • 验证: venv/bin/python -c "import angr; print(angr.__version__)"
  • 用途: 反编译分支爆炸/混淆严重时,用符号执行求解密函数输出(加载目标二进制 → 设密文输入为符号 → 约束求解)

操作步骤

按顺序执行,每步记下结果。前提:算法([[re-crypto-id]])与密钥([[re-crypto-keys]])已确认或至少有一方候选;脚本与验证结果(明文样本 + sha256)存档供报告引用。

  1. 证伪"密文":先定位真实密文边界(跳过此步是加密分析最常见的失败方式):
    • 高熵段可能是"伪密文"——容器/压缩数据流被误当加密层(如 zip 数据本体、附加在图片后的压缩流)。压缩数据熵同样是 8.0,与加密不可区分
    • 先做整体结构观察:文件头/尾魔数、格式 marker 分布(JPEG 逐段统计大小)、尾部已知结构当锚点(zip EOCD 的 cd_offset/cd_size 反推数据起点,EOCD 签名是已知明文)
    • 定格式边界不要用 first/last 裸 marker 搜索:标记字节对可以合法出现在载荷里——PNG 的 IEND 字样可落在 tEXt chunk 数据内、JPEG 的 FF D9 可落在 APP1 等 length-delimited 段内(拿首个命中当结尾会截掉合法数据)。正确做法是按格式规范解析:PNG 从 8 字节签名起按 Length/Type/Data/CRC 逐 chunk 遍历,直到结构合法且长度为 0 的 IEND(必要时逐块验 CRC);JPEG 从 SOI 起按 marker/segment 解析,进入 SOS 后按 FF00 stuffing 与 RSTn 规则处理,语法位置成立的 EOI 才是结尾。裸字节搜索只能用来产生候选位置,候选要经结构校验后才能定边界
    • 同尺寸文件先比尾部 16 字节/整体哈希——"换头副本"(同一 payload 的第二种封装,仅头部不同)直接省掉一整条支线
    • 压缩率是信号:解压后明显变大的层说明内容有结构(可压=编码/明文),接近 1:1 说明内层已压缩或加密
    • 确认是孤立高熵 blob 后再进入步骤 1 的密文定位

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 415cb871501b
  2. 2mo ago Changed 3210ddb07188
  3. 2mo ago Changed · +1 lines de64ee752483
  4. 3mo ago First seen · 119 lines · 42 tokens per session scan A 885f609e373b

Subscribe to this mod's changes

re-crypto-decrypt is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 42 tokens to every session and 4,566 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

re-crypto-decrypt compared with skills from other repositories

re-crypto-decrypt next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re-crypto-decryptdslsdzc/rev-skillsSkill2751mo agoApache-2.0A42Claude Code
analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-UpSkill43mo agoMITA95Claude Code, Codex
analyzing-golang-malware-with-ghidramukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0A95Claude Code
analyzing-golang-malware-with-ghidra26zl/cybersec-toolkitSkill114todayMITA95Claude Code
reverse-engineering-binaries-with-ghidrameltedinhex/analyst-ai-packSkill253d agoApache-2.0A80Claude Code, Codex
reverse-engineering-shellcodemeltedinhex/analyst-ai-packSkill253d agoApache-2.0A68Claude Code, Codex
reverse-engineering-arm-binariesmeltedinhex/analyst-ai-packSkill253d agoApache-2.0A69Claude Code, Codex