Shellcode mode as an option within IDA plugin
See original GitHub issueSummary
It would be useful if it were possible to run the IDA plugin against Shellcode within IDA. One potential place to add this option might be where we currently have file
, function
, basic block
or somewhere else within settings.
Motivation
I noticed today whilst working on a shellcode sample that the Capa plugin within IDA threw the following error
[ERROR] Failed to extract capabilities from database (error: ('file format: %s', 'Binary file')) (form:load_capa_results)
I ran capa in -sc32 mode outside of IDA against the same sample and received a few results.
My current understanding is that this happens because shellcode is a different “mode” to Windows or ELF analysis. But if this is by the unexpected behavior when running the plugin against Windows x86 shellcode and it should actually just run then feel free to close this request.
Describe alternatives you’ve considered
Manually translating capa json output results into IDA by defining code at block locations matched as containing certain functionality.
Additional context
One sample that this applies to is the following
Warning, this sample is potentially malicious if ran
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
This is addressed by #918. Please re-open if you continue to experience problems. Thank you!
Our thoughts exactly. The expected behavior is for capa explorer to process PE, ELF, and binary files. We check the architecture (as seen by IDA) for all three file types to ensure 32- or 64-bit Intel.
To process shellcode a user can import as a binary file and set the architecture to 32- or 64-bit Intel. If a user sets the architecture to something like ARM or MIPS capa explorer should fail.