akamai / luda

Malicious actors often reuse code to deploy their malware, phishing website or CNC server. As a result, similiaries can be found on URLs path by inspecting internet traffic. Moreover, deep learning models or even regular ML model do not fit for inline deployment in terms of running performance. However, regexes ( or YARA rules ) can be deployed on a proxy and work in real time on all the traffic. LUDA can take a set of malicious and benign URLs and return a list of regexes ready to be deployed inline !
GNU General Public License v3.0
74 stars 16 forks source link

Issue with parallelization #2

Open drewhogg opened 3 years ago

drewhogg commented 3 years ago

Hello. I'm trying to use LUDA on a set of URLs. Due to environmental/ use case constraints, I am running the code as a package rather than with Docker. I'm running into this:

AttributeError: 'DistanceMatrix' object has no attribute '__create_matrix_distance'

I can remove the multiprocessing part and the code will run. Any insight?

Thanks!

JordanGarzon commented 3 years ago

Hi,

Sorry for the late answer. Yes you can run the code without the multiprocessing part. It should work.

Abou the issue, you're trying to access a private method. Python is doing name mangling ( read more here https://www.afternerd.com/blog/python-private-methods/)

If you really want to access it just do:

your_obj._DistanceMatrix__get_argument_create_matrix(a,b)

Hope it helped