Aurore54F / JStap

Modular static malicious JavaScript detection system

Home Page:https://swag.cispa.saarland/papers/fass2019jstap.pdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sharing global variable features2int_dict between processes

JordanGarzon opened this issue · comments

Hi,

On static_analysis.py, we have p = Process(target=worker_get_features_vector, args=(my_queue, out_queue, except_queue))

There you are running worker_get_features_vector that uses inside it features2int_dict.

This variable is initialized at the beginning of the program ( where we run classifier.py) but it comes back to None when you create a separate process... And then the classifier is not working

Maybe on a specific python version sharing this global variables across processes is possible?

Hi Jordan, thanks for reaching out!
I tried running JStap with python 3.7.4 and did not encounter any issues. Which python version are you using? And which exact error message did you get?

Could you try running JStap based on the indications from the file demo.pdf, so on the samples provided and with the scripts provided (you can test with the analysis level ast and features ngrams as given in the document as an example). I'm trying to rule out the possibility that the issue could come from the samples you used or the way you invoked the functions.

When I am importing your functions from another Python script, it is working well, so I stay like this :)

Thanks for your answer