Skip to content

Improve analysis of React Native TurboModules and JSI calls #102

Open

Description

@trufae

Support recognizing and annotating React Native TurboModule/JSI access patterns in Hermes bytecode.

Goal: help analysts trace JS property accesses and calls to native module names and methods, including TurboModuleRegistry.get/getEnforcing and generated bindings, rather than treating every JS call as a native import.

  • Identify common TurboModule lookup patterns and preserve module/method names where statically recoverable.
  • Expose useful flags, comments and xrefs in radare2, including unresolved/dynamic cases.
  • Keep legacy NativeModules support working; avoid assuming the HBC contains direct native symbol addresses.
  • Add a small synthetic React Native fixture and r2r coverage for both architectures.

Start with a short investigation of actual compiled HBC patterns and choose the smallest useful implementation. No need for full JSI emulation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions