fkie-cad / cwe_checker

cwe_checker finds vulnerable patterns in binary executables
https://docs.cwe-checker.io
GNU Lesser General Public License v3.0
1.11k stars 117 forks source link

Broken IDA export script? #217

Open Hamid-K opened 3 years ago

Hamid-K commented 3 years ago

Hi, It seems that the cwe_checker_to_ida.py script fails to properly generate output for IDA, when a valid JSON input file is supplied to the script. I have tested both latest and stable releases.

The result is the same regardless of provided json input, generated from different binaries. Ghidra v10.0 is installed on the system running the script. The json file loads fine in Ghidra and the plugin correctly highlights the findings, so it is not in a corrupt state.

Am I missing something?

This seems to be similar to a previously fixed and closed issue: https://github.com/fkie-cad/cwe_checker/issues/34

image

Enkelmann commented 3 years ago

Unfortunately, the IDA export script is just broken at the moment. Currently I do not have access to a version of IDA Pro to test any fixes due to working from home. And the free version of IDA does not support python scripting. So it may take some weeks until I can start working on fixing the script myself.

In the meantime any help in fixing the script would be greatly appreciated! Below is a list of problems with the current script (at least those that I am aware of):

Enkelmann commented 2 years ago

A short update on this: Most of the issues were fixed in PRs #279 and #281. It may still take some time until I can properly test everything to see whether some unfixed issues remain. I will leave the issue open until then.