Firmware files not always processed when firmware is a single archive #1463
Labels
bug
Something isn't working
Core modules (Sxx)
The core scanning modules (Sxx modules)
EMBA
Extractor (Pxx)
some extractor thing (Pxx modules)
Describe the bug
This occurs at least on some instances of "partial firmwares" (i.e. small parts of a Linux file system), but I can't tell in general what kind of input trigger the bug.
When the partial firmware is provided to EMBA as a
.tar.gz
, none of the binary files are analyzed (the don't even appear inp99_prepare_analyzer.csv
). But if the archive is manually extracted before running emba (then giving it the unpacked folder instead as the source), all files are properly analyzed.I can't share the very interesting case I had, but I made a trivial one from 2 libraries below.
To Reproduce
Steps to reproduce the behavior:
There are no report about files in the archive. Furthermore, P99 csv log contains only a single line, for
/firmware
, the tar archive itself, but nothing about files within.Extract the archive and try again on the unpacked folder:
4. tar -xf lib64.tar.gz
5. sudo ./emba -p ./scan-profiles/default-sbom.emba -l <output_folder> -f /path/to/lib64
There should be reports on
.so
files, and P99 csv log should list them (at least unique ones)Note: there might be missing reports because of another issue: #1464 . Therefore checking P99 csv log for presence of extracted files (or lack thereof in this case) is more reliable than the final report to validate the unexpected behavior.
Expected behavior
Files inside the archive should be analyzed, not the
/firmware
file itself (at least, not only that file, but I don't expect that file to be analyzed at all)Screenshots
Desktop (please complete the following information):
Priority issue
Are you already a [Sponsor]? - No
Additional context
The text was updated successfully, but these errors were encountered: