intelowlproject / IntelOwl

IntelOwl: manage your Threat Intelligence at scale
https://intelowlproject.github.io
GNU Affero General Public License v3.0
3.79k stars 426 forks source link

Droidlysis analyzer closes#1591 #2454

Closed g4ze closed 1 month ago

g4ze commented 1 month ago

closes #1591

Description

Please include a summary of the change and link to the related issue.

Type of change

Please delete options that are not relevant.

Checklist

Important Rules

g4ze commented 1 month ago

image

I think there's some issue with the config file. I'm not sure if there's any more details given more that what I have coded here. can you please have a look at it? @mlodic
I think i need to configure some more paths, but i am not sure what do these paths have to point to.

mlodic commented 1 month ago

hey, I'd create a new folder in the malware_tools_analyzers folder for droidlys and put the configuration file there (not in the dockerfile) + the other required software. With the option --config you can choose which config file to launch. Also, please create a python virtual environment where to install droidlys and add a requirements file, similar to other already existing cases.

Then why you disabled json output in the command line?

Also I think that maybe some systems packages are missing. Check the instructions closely

g4ze commented 1 month ago

I'll do what you've asked for here. I think the docs don't specify any more tools than the ones I have already installed, for the config. Still, it seems like there is some unsaid dependency to it.

g4ze commented 1 month ago

image is this some permission problem?

g4ze commented 1 month ago

output.json image

g4ze commented 1 month ago

here also, the test is failing as mentioned here

mlodic commented 1 month ago

same as for the other PR, gtg after fixing the test

g4ze commented 1 month ago

@mlodic the tests seem to failing. Could you have a look at it?

mlodic commented 1 month ago

I think it's the same problem that appeared in the other PR. In this case, I think we can re-arrange it by avoing adding tests for additional file types. You could use application/vnd.android.package-archive which already exists

mlodic commented 1 month ago

nvm the error is for AssertionError: Analyzer DroidLysis with config Droidlysis and mimetype application/vnd.android.package-archive failed Report is empty. Reason: None itself. There's some lower level debugging to do here and try the test locally

g4ze commented 1 month ago

we are gtg here as well @mlodic

g4ze commented 1 month ago

all migrations and test_files taken care of, good to go