Solving malware with symbolic execution

From meltedinhex/analyst-ai-pack · View interactive version

Solving malware with symbolic execution is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Uses symbolic execution (angr) to solve constraint-based malware problems — finding inputs that reach a target branch, recovering keys/passwords from a check routine, and brute-forcing opaque predicates — by generating a ready-to-edit angr harness. Activates for requests to use symbolic execution, s

How to use this skill

Skill file

Solving Malware With Symbolic Execution

When to Use

an environment guardrail, or an opaque predicate — without manual constraint solving.

Do not use angr's unicorn/concrete execution against untrusted code outside isolation — and

do not treat symbolic execution as a substitute for understanding the routine. This skill generates

a harness; run it in an isolated environment.

Prerequisites

script degrades gracefully and reports availability if absent).

Safety & Handling

Workflow

Step 1: Check availability and generate a harness

python scripts/analyst.py check
python scripts/analyst.py harness --binary sample.bin --find 0x401234 --avoid 0x401260 \
    --out solve.py

Emits an angr script that loads the binary, sets a symbolic stdin/argument, explores to --find

while avoiding --avoid, and prints the solving input.

Step 2: Constrain the input

Edit the harness to add the input's length/charset constraints (printable, specific size) so the

solver converges quickly.

Step 3: Run and interpret

Run the harness; the recovered concrete input is the key/password/flag that reaches the target.

Step 4: Validate manually

Confirm the recovered input actually drives the intended path in a debugger/disassembler.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.