Aurore54F / JaSt

Syntactic detection of malicious (obfuscated) JavaScript files
https://swag.cispa.saarland/research.html
GNU General Public License v3.0
71 stars 20 forks source link

Missing ground truth? #10

Closed joshlarsen closed 4 years ago

joshlarsen commented 5 years ago

Is there a way to supply ground truth to the classifier? The example provided works fine, but does output the message:

WARNING: No ground truth given: unable to evaluate the accuracy of the classifier's predictions
Aurore54F commented 5 years ago

You can supply the ground truth with the --l option for example:

python3 <path-of-classifier.py> --d BAD-FOLDER GOOD-FOLDER --l malicious benign --m MODEL

(But I'll change the WARNING for an INFO, because it's fine and normal for JaSt to also classify samples with an unknown ground truth.)