mandiant / mandiant/capa

Ghidra: backend may identify functions as labels

Open
#1,750 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug ghidra
Dominant language
Python
Stars
6.2k
Forks
726
Avg merge
11d 11h
Merged PRs (30d)
7

Description

### Description

One Ghidra backend limitation found during testing is that it may identify what should be a function as a label during its analysis.

### Steps to Reproduce

See mimikatz.exe_:0x40e5c2

![image](https://github.com/mandiant/capa/assets/66766340/3d237363-b631-463b-a55c-1e49584b6107)

**Expected behavior:**

Should be identified as a function (FUN_0040e5c2)

**Actual behavior:**

Ghidra identifies this address as a label instead (LAB_0040e5c2)

### Versions


```
Ghidra 10.3.2
capa 6.0.0
```

Contributor guide

Open the contributing guide

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 reproducing the Ghidra backend behavior at mimikatz.exe_:0x40e5c2 with Ghidra 10.3.2 and capa 6.0.0. Trace how the backend classifies that address, then verify that the result identifies FUN_0040e5c2 as a function rather than LAB_0040e5c2.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
reverse-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.