Closed landw1re closed 9 years ago
I'm not sure I understand your network configuration, but why do you have privatebr0 in auxiliary.conf and privatebr1 in virtualbox.conf?
I'm using a bridged networking setup. I have 2 bridge adapters configured on my Ubuntu 14.04 host machine (Dell R710 Server) using bridge-utils and 1 physical NIC (em1 = 10.0.0.62)
auto privatebr0
iface privatebr0 inet static
address 192.168.56.1
netmask 255.255.255.0
pre-up brctl addbr privatebr0
post-down brctl delbr privatebr0
auto privatebr1
iface privatebr1 inet static
address 192.168.57.1
netmask 255.255.255.0
pre-up brctl addbr privatebr1
post-down brctl delbr privatebr1
I have iptables rules in place to forward all traffic from privatebr1 to em1 (Dell's eth0 equivalent) for external access. I also have TOR running and listening on port 9040 on the em1 interface which the traffic is routed through (iptables rules below). All of this works with the exception of cuckoo capturing the traffic.
The Victim VM is configured with 2 NICs:
IPTABLES RULES - output from iptables-save
# Generated by iptables-save v1.4.21 on Tue Apr 14 14:40:13 2015
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [4:304]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -s 192.168.57.0/24 -p tcp -j DNAT --to-destination 10.0.0.62:9040
-A PREROUTING -s 192.168.57.0/24 -p icmp -j DNAT --to-destination 10.0.0.62:9040
-A PREROUTING -s 192.168.57.0/24 -p udp -j DNAT --to-destination 10.0.0.62:53
-A POSTROUTING -o em1 -j MASQUERADE
COMMIT
# Completed on Tue Apr 14 14:40:13 2015
# Generated by iptables-save v1.4.21 on Tue Apr 14 14:40:13 2015
*filter
:INPUT ACCEPT [12:2306]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [5:356]
-A FORWARD -i em1 -o privatebr1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i privatebr1 -o em1 -j ACCEPT
COMMIT
# Completed on Tue Apr 14 14:40:13 2015
@botherder what is your networking setup for your sandbox environment? Are you just using Host-only with iptables forwarding as outlined in the docs? Also, what is the dump_sorted.pcap used for and when does that get introduced/created in the analysis process? The only mention of it is within the mongodb.py and network.py files from what I can see.
I've been racking my brain on why cuckoo doesn't see any network traffic. If I open up a separate terminal window (as the cuckoo user) while cuckoo is running an analysis task and issue the same tcpdump syntax as cuckoo is using, I see the traffic without issue.
I completely changed around my network configuration and went back to using 1 NIC on the guest VM. Everything is working as expected now.
I am configuring cuckoo and followed the installation guide properly but still at end on running cuckoo.py i m getting following errors:
2016-11-01 16:50:42,217 [lib.cuckoo.core.resultserver] WARNING: Cannot bind ResultServer on port 2042, trying another port. 2016-11-01 16:50:42,217 [lib.cuckoo.core.resultserver] WARNING: Cannot bind ResultServer on port 2043, trying another port. 2016-11-01 16:50:42,219 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" as machine manager 2016-11-01 16:50:42,493 [lib.cuckoo.common.abstracts] WARNING: Configuration details about machine win7 are missing: Option win7 is not found in configuration, error: Config instance has no attribute 'win7'
First of all you're apparently running multiple Cuckoo instances. Secondly, as @doomedraven pointed out, your virtualbox.conf
is incorrect as it's missing a win7
entry.
i` m getting the following error WARNING: Configuration details about machine windowsxp are missing: Option windowsxp is not found in configuration, error: Config instance has no attribute 'windowsxp' 2016-11-10 12:22:23,600 [root] CRITICAL: CuckooCriticalError: No machines available.
my virtualbox.conf file has following contents
mode = headless interface = vboxnet0 machines = windowsxp label = windowsxp platform = windows ip = 192.168.56.10 snapshot = snapshot1
the label name is correct as per my knowledge and my host and guest machine can ping each other
Actually sometimes cuckoo don't find the virtual machine as non sudo. Do the following:
It worked in my case.
Sudo it is bad idea, just add your user to virtualbox and enjoy
Best regards Andriy
El 10 nov 2016, a las 8:14, microbot007 notifications@github.com escribió:
Actually sometimes cuckoo don't find the virtual machine as non sudo. Do the following:
- Sudo virtualbox
- configure that virtual box with your windows xp.
- then run cuckoo.py
It worked in my case.
Best Regards
Sonali Tyagi M.Tech (ISM) (+91 9582952543) TnP Coordinator ISEA Student Member
DeitY, Govt. of India https://in.linkedin.com/in/sonali-tyagi-92309798
On Thu, Nov 10, 2016 at 12:40 PM, mishamehra notifications@github.com wrote:
i m getting the following error WARNING: Configuration details about machine windowsxp are missing: Option windowsxp is not found in configuration, error: Config instance has no attribute 'windowsxp' 2016-11-10 12:22:23,600 [root] CRITICAL: CuckooCriticalError: No machines available. m virtualbox.conf file is [virtualbox] Specify which VirtualBox mode you want to run your machines on. Can be "gui", "sdl" or "headless". Refer to VirtualBox's official documentation to understand the differences.
mode = headless Path to the local installation of the VBoxManage utility.
path = /usr/bin/VBoxManage Default network interface.
interface = vboxnet0 Specify a comma-separated list of available machines to be used. For each specified ID you have to define a dedicated section containing the details on the respective machine. (E.g. cuckoo1,cuckoo2,cuckoo3)
machines = windowsxp
[cuckoo1] Specify the label name of the current machine as specified in your VirtualBox configuration.
label = windowsxp Specify the operating system platform used by current machine [windows/darwin/linux].
platform = windows Specify the IP address of the current virtual machine. Make sure that the IP address is valid and that the host machine is able to reach it. If not, the analysis will fail.
ip = 192.168.56.10 (Optional) Specify the snapshot name to use. If you do not specify a snapshot name, the VirtualBox MachineManager will use the current snapshot. Example (Snapshot1 is the snapshot name):
snapshot = snapshot1 (Optional) Specify the name of the network interface that should be used when dumping network traffic from this machine with tcpdump. If specified, overrides the default interface specified in auxiliary.conf Example (vboxnet0 is the interface name): interface = vboxnet0 (Optional) Specify the IP of the Result Server, as your virtual machine sees it. The Result Server will always bind to the address and port specified in cuckoo.conf, however you could set up your virtual network to use NAT/PAT, so you can specify here the IP address for the Result Server as your machine sees it. If you don't specify an address here, the machine will use the default value from cuckoo.conf. NOTE: if you set this option you have to set result server IP to 0.0.0.0 in cuckoo.conf. Example: resultserver_ip = 192.168.56.1 (Optional) Specify the port for the Result Server, as your virtual machine sees it. The Result Server will always bind to the address and port specified in cuckoo.conf, however you could set up your virtual network to use NAT/PAT, so you can specify here the port for the Result Server as your machine sees it. If you don't specify a port here, the machine will use the default value from cuckoo.conf. Example: resultserver_port = 2042 (Optional) Set your own tags. These are comma separated and help to identify specific VMs. You can run samples on VMs with tag you require. tags = windows_xp_sp3,32_bit,acrobat_reader_6
[honeyd] For more information on this VM please refer to the "services" section of the conf/auxiliary.conf configuration file. This machine is a bit special in the way that its used as an additional VM for an analysis. NOTE that if this functionality is used, the VM should be registered in the "machines" list in the beginning of this file.
label = honeyd platform = linux ip = 192.168.56.102 The tags should at least contain "service" and the name of this service. This way the services auxiliary module knows how to find this particular VM.
tags = service, honeyd Not all services actually have a Cuckoo Agent running in the VM, for those services one can specify the "noagent" option so Cuckoo will just wait until the end of the analysis instead of trying to connect to the non-existing Cuckoo Agent. We can't really intercept any inter-VM communication from the host / gateway so in order to dump traffic between VMs we have to use a different network dumping approach. For this machine we use the "nictrace" functionality from VirtualBox (which is basically their internal tcpdump) and thus properly dumps inter-VM traffic.
options = nictrace noagent
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cuckoosandbox/cuckoo/issues/529#issuecomment-259617537, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHXjQdKxquxZX-AayBMvrdNocySSx2uks5q8sNkgaJpZM4EFLYB .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
thanks for the replies guys, but i am already running the setup with sudo.. for running my virtual machine i issue the following command sudo vboxsetup startvm windowsxp and for run cuckoo.py i use sudo python cuckoo.py infact i have also assigned my user with the group through this command sudo usermod -a -G vboxusers misha
is there anything else i am missing...
I m new to cuckoo.I have installed cuckoo in VM ware workstation and analysed few malware pcap files.I m able to generate reports in html and carry out the required analysis except the Network analysis shows Nothing to display. as shown in the file I have installed the sanbox and enabled the network behavior.Can somebody guide how to rectify this.Thanks in advance
post analysis log
The analysis log is attached analysis.txt when i run it in debug mode i find that Network analysis module has executed but no shown in the analysis.txt. The pic is att In configuration I have enabled network analysis in processing module. and i m also getting dump.pcap for every malware file.Analysis of these dump.pcap only shows DLL protocols What i require is to determine DNS traffic, domains, IPs, HTTP requests, IRC and SMTP traffic. I have tested the malware pcap in wireshark for existence of network related info of TCP connection etc it shows but when i analyse in cuckoo it does not. Thank u for your patience.
looks like you have a lot of missed dependencies, and some crash inside of vm, change to gui mode and see what happens in vm, also look if pcap exists inside of analysis folder as network part is parsed from pcap
the folder containing the pcap is shown that include dump.pcap and dump_sorted.pcap. . I changed the virtualbox config from headless to GUI and found that IE was opening but not opening the website. Does this means that the VM inside cuckoo must also be connected to the Internet. In my case cuckoo is inside VM workstation connected to internet but windows Xp inside cuckoo is not connected to internet. what all dependencies are required...can you pl elaborate i will try it.. thanks indeed.
just read http://docs.cuckoosandbox.org/en/latest/
hi, i want to use cuckoo sandbox in such a way thant i can automatically redirect document/files stored on some server to the machine where cuckoo is running.. and there i would like to run the sample and analyse the reports. Instead of fully parsing the reports..i only want to know whether the submitted file/document is infected or not.. Do we have any module already available with the cuckoo community which has automate this process. Why i am asking this is because i was going through book on cuckoo, and there was a mention of Cuckoo MX which automaticlaly re-direct email atachments.
On 17 February 2017 at 20:45, doomedraven notifications@github.com wrote:
just read http://docs.cuckoosandbox.org/en/latest/
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cuckoosandbox/cuckoo/issues/529#issuecomment-280676475, or mute the thread https://github.com/notifications/unsubscribe-auth/AJaopHdiQWjYrQOD-vuVRV2treLApknmks5rdbl0gaJpZM4EFLYB .
These are some things that we're working on, but currently that would require quite some effort because various parts are not in-place yet ;-) @doomedraven did some additional work on top of Cuckoo MX, but if you google Cuckoo MX you'll find the code for it. With that in place you're mostly good to go, I guess.
I believe I have everything configured correctly for cuckoo and everything seems to be running as expected with the exception of behavioral analysis as it relates to network activity. I get results for pretty much everything but now network activity at all.
I have the following in place as per the cuckoo documentation:
Here is the interface setup of the interface I've configured my VM in the virtualbox.conf to listen to.
TEST SCENARIO I submitted a URL to the sandbox via the Django interface. Once the VM loaded and submitted the URL to IE, I then started just surfing around to different pages on the internet to generate network traffic. All the networking works fine between the VM and the outside world and I was able to get out to any of the sites that I went to.
At the same time, I ran Tcpdump as the cuckoo user by itself in another terminal window and I was able to see all the traffic that I would expect to see while interacting with the VM. When the analysis stopped, I receive only one WARNING in the cuckoo console output (see below). When I look in that directory noted in that warning (/cuckoo/storage/analyses/39/) all I see is a dump.pcap and not a dump_sorted.pcap. Also, the dump.pcap is only 24 bytes in size and doesn't contain anything other than a simple header.
Any idea what might be going on or if there is a configuration parameter that I have missed? All of my pertinent configuration files are below.
Console Output
CUCKOO.CONF
AUXILIARY.CONF
VIRTUALBOX.CONF
PROCESSING.CONF