Closed littlejob closed 7 years ago
test this https://cuckoo.sh/docs/faq/index.html#unsupported-method-get with all vms
So I tried the new REST API agent, I still experience the same issue.
2017-03-17 07:55:38,515 [lib.cuckoo.core.resultserver] DEBUG: ResultServer running on 192.168.139.135:2042.
2017-03-17 07:55:38,517 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" as machine manager
2017-03-17 07:55:38,648 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 07:55:38,803 [modules.machinery.virtualbox] DEBUG: Machine Win7 status poweroff
2017-03-17 07:55:38,838 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s
2017-03-17 07:55:38,864 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks.
2017-03-17 07:56:45,844 [lib.cuckoo.core.scheduler] DEBUG: Processing task #3
2017-03-17 07:56:45,860 [lib.cuckoo.core.scheduler] INFO: Starting analysis of FILE "price_list.doc_104700.doc" (task #3, options "route=none,procmemdump=yes")
2017-03-17 07:56:45,907 [lib.cuckoo.core.scheduler] INFO: Task #3: acquired machine Win7 (label=Win7)
2017-03-17 07:56:45,918 [modules.auxiliary.sniffer] INFO: Started sniffer with PID 2596 (interface=vboxnet0, host=192.168.56.101, pcap=/apps/cuckoo/storage/analyses/3/dump.pcap)
2017-03-17 07:56:45,919 [lib.cuckoo.core.plugins] DEBUG: Started auxiliary module: Sniffer
2017-03-17 07:56:45,987 [modules.machinery.virtualbox] DEBUG: Starting vm Win7
2017-03-17 07:56:45,988 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 07:56:46,171 [modules.machinery.virtualbox] DEBUG: Machine Win7 status poweroff
2017-03-17 07:56:46,204 [modules.machinery.virtualbox] DEBUG: Using current snapshot for virtual machine Win7
2017-03-17 07:56:46,297 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 07:56:46,458 [modules.machinery.virtualbox] DEBUG: Machine Win7 status saved
2017-03-17 07:56:50,248 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 07:56:50,442 [modules.machinery.virtualbox] DEBUG: Machine Win7 status running
2017-03-17 07:56:50,483 [lib.cuckoo.core.guest] INFO: Starting analysis on guest (id=Win7, ip=192.168.56.101)
2017-03-17 07:56:51,489 [lib.cuckoo.core.guest] DEBUG: Win7: not ready yet
2017-03-17 07:56:52,493 [lib.cuckoo.core.guest] DEBUG: Win7: not ready yet
2017-03-17 07:56:53,487 [lib.cuckoo.core.guest] DEBUG: Win7: not ready yet
Same not ready yet errors
2017-03-17 07:59:50,965 [lib.cuckoo.core.guest] DEBUG: Win7: not ready yet
2017-03-17 07:59:50,969 [lib.cuckoo.core.scheduler] ERROR: Error from the Cuckoo Guest: Win7: the guest initialization hit the critical timeout, analysis aborted.
2017-03-17 07:59:51,025 [lib.cuckoo.core.plugins] WARNING: Unable to stop auxiliary module: Error running tcpdump to sniff the network traffic during the analysis; stdout = '' and stderr = "tcpdump: vboxnet0: You don't have permission to capture on that device\n(socket: Operation not permitted)\n". Did you enable the extra capabilities to allow running tcpdump as non-root user and disable AppArmor properly (the latter only applies to Ubuntu-based distributions with AppArmor)?
2017-03-17 07:59:51,027 [modules.machinery.virtualbox] DEBUG: Stopping vm Win7
2017-03-17 07:59:51,027 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 07:59:51,218 [modules.machinery.virtualbox] DEBUG: Machine Win7 status running
2017-03-17 07:59:52,238 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 07:59:52,451 [modules.machinery.virtualbox] DEBUG: Machine Win7 status poweroff
but no output from that checks...
I am confused on your statement. If I open the agent on the guest VM, all I see is a black screen no text. With the legacy agent included in the dev release, i get the starting agent on message, but that is all. no confirmation text or what not.
you just shoud do curl vm_ip:8000
to each vm and they should responde 501 if there no problem in communication with agent
My apologies:
With the new REST API, it appears to work.
master@ubuntu:~$ curl 192.168.56.10:8000
{"message": "Cuckoo Agent!", "version": "0.7", "features": ["execpy", "pinning", "logs", "largefile", "unicodepath"]}
The legacy agent included in the release gives me an error.
I noticed my VM snapshot still had the legacy client running. Switched with the new agent, deleted current snapshot, recaptured saved with the same name to avoid updating the config file, attempted to resubmit an analysis again, same issue persists.
2017-03-17 10:17:57,935 [modules.machinery.virtualbox] DEBUG: Starting vm Win7
2017-03-17 10:17:57,936 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 10:17:58,229 [modules.machinery.virtualbox] DEBUG: Machine Win7 status saved
2017-03-17 10:17:58,247 [modules.machinery.virtualbox] DEBUG: Using current snapshot for virtual machine Win7
2017-03-17 10:17:58,370 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 10:17:58,493 [modules.machinery.virtualbox] DEBUG: Machine Win7 status saved
2017-03-17 10:18:02,157 [modules.machinery.virtualbox] DEBUG: Getting status for Win7
2017-03-17 10:18:02,295 [modules.machinery.virtualbox] DEBUG: Machine Win7 status running
2017-03-17 10:18:02,327 [lib.cuckoo.core.guest] INFO: Starting analysis on guest (id=Win7, ip=192.168.56.101)
2017-03-17 10:18:03,334 [lib.cuckoo.core.guest] DEBUG: Win7: not ready yet
2017-03-17 10:18:04,339 [lib.cuckoo.core.guest] DEBUG: Win7: not ready yet
2017-03-17 10:18:05,332 [lib.cuckoo.core.guest] DEBUG: Win7: not ready yet
That error with legacy agent is ok, mesn it works, no idea what can be wrong
I've had this same issue, it appears to be virtualbox, I don't know what or where, I cloned the VM deleted the old one and the clone worked, it was most strange as I could ping in both directions and telnet to the agent, but for some reason wouldn't work until I cloned it .
Hope this helps
Sent from my spaceship...
On 18/03/2017 6:27 AM, "doomedraven" notifications@github.com wrote:
That error with legacy agent is ok, mesn it works, no idea what can be wrong
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cuckoosandbox/cuckoo/issues/1343#issuecomment-287419356, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ_imFUj_n39PRJQyyEYm14_wvidyBiLks5rmsKTgaJpZM4Mgoih .
Per your suggestion, I have tried the above, still to no prevail That is when I noticed something in my virtualbox config, I was missing an octet for the statically assigned vm......... (frusterating)
After correcting this, and re-submitting a sample, I was able to process the submission, to then continue to get additional errors.
Question, at what point does the processing stop? Is it just a time limit? If so, that explains the below.
2017-03-17 11:36:05,769 [lib.cuckoo.core.guest] DEBUG: Win7Clone: analysis still processing
2017-03-17 11:36:05,832 [lib.cuckoo.core.resultserver] DEBUG: File upload request for shots/0042.jpg
2017-03-17 11:36:05,853 [lib.cuckoo.core.resultserver] DEBUG: Uploaded file length: 58497
2017-03-17 11:36:06,789 [lib.cuckoo.core.guest] DEBUG: Win7Clone: analysis still processing
2017-03-17 11:36:07,790 [lib.cuckoo.core.scheduler] ERROR: Error from the Cuckoo Guest: The analysis hit the critical timeout, terminating.
Yes it has timeout of run to kill vm
Where is this time-out defined? I shall mark this closed after one more test! (I guess i could alter in the advanced settings in the web GUI.. )
Thanks everyone for your help!
The time out is located in your cuckoo.conf file, I think the timeout is defaulted to 120 seconds
On Sat, Mar 18, 2017 at 8:22 AM, littlejob notifications@github.com wrote:
Where is this time-out defined? I shall mark this closed after one more test!
Thank everyone for their help!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cuckoosandbox/cuckoo/issues/1343#issuecomment-287448450, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ_imBIke5MHpgpnTfIZ-xwExHW8AMc_ks5rmt2PgaJpZM4Mgoih .
awesome, was able to tweak and get working accordingly.
@littlejob for our information, what did you tweak to get it working?
Was reading through the open/closed issues. Have had mixed luck with this one:
I submit a file sample for review, VM is loaded, but it appears something is timing out.
Several VM not ready errors latter... I then get the below:
During these "not ready errors" vboxmanage does report that the VM is running. From the VM i can ping my host. From the host I can ping my VM. Host is Win7, UAC and local firewall is disabled.