cuckoosandbox / cuckoo

Cuckoo Sandbox is an automated dynamic malware analysis system
http://www.cuckoosandbox.org
Other
5.56k stars 1.7k forks source link

Error when running cuckoo #2341

Open Krook9d opened 6 years ago

Krook9d commented 6 years ago

hello, I have a problem with the launch of cuckoo

My issue is: Cuckoo does not start
My Cuckoo version and operating system are: Cuckoo Sanbox 2.0.6
This can be reproduced by:
The log, error, files etc can be found at:

2018-06-26 05:50:01,977 [cuckoo] ERROR: KeyError: 'label' Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/cuckoo/main.py", line 234, in main cuckoo_main(maxcount) File "/usr/local/lib/python2.7/dist-packages/cuckoo/main.py", line 182, in cuckoo_main sched.start() File "/usr/local/lib/python2.7/dist-packages/cuckoo/core/scheduler.py", line 903, in start self.initialize() File "/usr/local/lib/python2.7/dist-packages/cuckoo/core/scheduler.py", line 838, in initialize machinery.initialize(machinery_name) File "/usr/local/lib/python2.7/dist-packages/cuckoo/common/abstracts.py", line 175, in initialize self._initialize(module_name) File "/usr/local/lib/python2.7/dist-packages/cuckoo/common/abstracts.py", line 211, in _initialize label=options[self.LABEL], KeyError: 'label'

I do not understand where these errors come from

if anyone could enlighten me that would be very nice

RicoVZ commented 6 years ago

Hi jakilla,

Thanks for posting an issue.

I suspect this error is caused by missing fields in a machinery config file. Are you using Virtualbox? If so, please post the output of $CWD/conf/virtualbox.conf. If you are using another machinery module, please post its config.

Krook9d commented 6 years ago

[virtualbox]

[analys]

Thank you for your prompt response

after looking at my virtualbox configuration file, i noticed that there was a small mistake, after adjusting it, the errors that i have indicated are gone but there is a critical error that indicates that cuckoo n can not find my virtual machine

CuckooCriticalError: Please update your configuration. Unable to shut 'analys' down or find the machine in its proper state: The virtual machine 'analys' doesn't exist! Please create one or more Cuckoo analysis VMs and properly fill out the Cuckoo configuration!

my vm communicates well with my cuckoo...

image

RicoVZ commented 6 years ago

@jakilla Great, that is one error solved! :smile:

This error is shows when the VM specified is not found by Virtualbox. This usually occurs when Cuckoo is started with sudo, as this starts Cuckoo as the root user and search on that user for your VM.

What is the full command you use to start Cuckoo?

Also, please make sure your analysis VM is not running when starting Cuckoo.

Krook9d commented 6 years ago

image

I was able to solve the problem by not passing through the root as you indicated it to me, however I still have errors in the analysis (it goes forward 😄 )

doomedraven commented 6 years ago

If you read the output you have links to solutions

Krook9d commented 6 years ago

If you read the output you have links to solutions

I followed the link for the communication problem with my vm, nothing clearly explained my case, however I think I found the source of the problem, the python agent python.py should not be done correctly because the cmd windows does not move (see screen)

moreover it does not tell me where it stops at the level of the script, do you know or could I see it ?

image

doomedraven commented 6 years ago

Do search in issues it was answered a lot of times :)