thixotropist / ghidra_import_tests

Experimental framework for testing Ghidra binary import support
1 stars 0 forks source link

Perform a case study of ISA extension impact on inspecting a Machine Learning application #14

Closed thixotropist closed 8 months ago

thixotropist commented 10 months ago

Suppose we had to inspect a Machine Learning or LLM app for malware. Would the presence of ISA extensions like vector instructions make the inspection materially harder? We'll use the whisper.cpp voice-to-text application as the first exemplar, compiling it for various riscv64 and x86_64 platforms:

In each case we will use the recommended whisper.cpp compilation options -O3 and -ffast-math. As a stretch goal, we might run all versions through BSIM analysis, hoping that the platform variations do not hugely impact BSIM similarity vectors.

Note: whisper.cpp source includes many riscv-64 vector intrinsic functions. The source code is relatively new, with unclear levels of testing and verification

thixotropist commented 9 months ago

Let's refine the goals a bit:

thixotropist commented 9 months ago

Preliminary results: