slim icon indicating copy to clipboard operation
slim copied to clipboard

Files deleted on probing stage aren't included in reports

Open iximiuz opened this issue 2 years ago • 1 comments

Expected Behavior

When a file is deleted during probing, it should appear in the slim version of the image. Deleting a file means access, and that automatically should qualify the file as used.


Actual Behavior

When some files are deleted during probing, they aren't included in the creport.json file and the files folder. It happens because the artifact dumping logic fails to copy those files. Preserving files also don't mitigate the issue because that same logic iterates over the preserved files, but tries to check the existence of the original files too (and fails).


Steps to Reproduce the Problem

Here is a (skipped for now) E2E test


Specifications

  • Version: 1.37+
  • Platform: All

iximiuz avatar Sep 29 '22 13:09 iximiuz

Good that we just need the file name... We have it in the initial file list that the agent collects before kicking off the target app.

kcq avatar Jun 09 '23 20:06 kcq