Built-in bntl definitions for Objective-C types override analysis

Đang mở
#8,567 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
objective-c
Lĩnh vực
reverse-engineering

Hướng nghiên cứu

Start by opening the dyld shared cache and loading AppKit, then inspect a function on NSWindow that accesses ivars. Compare the built-in NSWindow definition with the runtime-derived type and verify that the recovered ivar layout remains named NSWindow rather than NSWindow_1 and is used in decompilation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Component: Objective-C Workflow Component: Type Libraries File Format: SharedCache Impact: Medium Language: Objective-C

Version and Platform (required):

  • Binary Ninja Version: 6.1.10695-dev (13194322)
  • Edition: Commercial
  • OS: macOS
  • OS Version: 27.2 (26B5086k)
  • CPU Architecture: Apple silicon

Bug Description:
When analyzing system frameworks, Binary Ninja correctly parses Objective-C runtime metadata to generate detailed type layout for objects (e.g. it can identify ivars). However this usually does not get applied, because before analysis runs, some type library definitions are loaded first. These type libraries provide degenerate definitions of these classes (e.g. NSWindow is defined as just objc_object *) and this shifts the nicely-annotated versions into names like NSWindow_1 and this makes a bunch of the decompilation not be able to use it.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Open the dyld shared cache and load AppKit.
  2. Load a function on NSWindow that accesses its ivars.

Expected Behavior:
I expect to see clear ivar accesses, because Binary Ninja is able to recover all of these. I also expect that these are defined on a type named NSWindow, not NSWindow_1.

Screenshots/Video Recording:
Image

Binary:
Ask me if you really need the shared cache I guess

Ngôn ngữ chính
C++
Star
1.3k
Fork
298
Merge trung bình
5 ngày 5 giờ
Pull request đã merge (30 ngày)
19

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Vector35/binaryninja-api

Tất cả issue của Vector35/binaryninja-api

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.