Vector35 / Vector35/binaryninja-api

Rule-based rewriting of expressions

Open
#3,882 2 comments 24 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Core Effort: Medium Impact: Medium
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Description

We should add an optimization pass to rewrite IL expressions according to a given set of rules, doing pattern matching and replacement of IL instructions to allow a sort of pseudo patching support. For example, https://github.com/Vector35/binaryninja-api/issues/3881. It will also make https://github.com/Vector35/binaryninja-api/issues/2043 easier, which is not very convenient to deal with right now.

Ideally, we should also allow the users to plug their own rules into the system.

This idea might has been proposed earlier and discussed internally before. I am creating this issue so we have a better point to refer to when we discuss it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked issues 3881 and 2043, then review the prior internal discussion referenced in this issue. The scope is not yet defined; completion would require an agreed rule-based IL expression rewrite pass and a clear design for user-provided rules.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, reverse-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.