pralab / secml_malware

Create adversarial attacks against machine learning Windows malware detectors
https://secml-malware.readthedocs.io/
GNU General Public License v3.0
203 stars 46 forks source link

No such file or directory: 'secml_malware/data/malware_samples/test_folder' #39

Closed baiyouming closed 1 year ago

baiyouming commented 1 year ago

As the question shows, does this file or folder need to be created by yourself? What does this folder do? image

zangobot commented 1 year ago

Good day!

Are you using SecML malware through git clone or did you installed it? If you cloned it, you should fill that folder with samples in order to make it work, or provide a folder reachable from the tutorial where the notebook can extract samples.

baiyouming commented 1 year ago

I tried many types of PE files, but they didn't work properly. What type of samples can be run? Can you provide a sample source? Thank you.

zangobot commented 1 year ago

I can't reproduce the issue, since I either change that folder to point towards one containing PE samples, or using it inside the repository (and filling the pointed directory). Try to comment out the check on the prediction (maybe the file you are using are seen as goodware and hence discarded).