It can retrieve the following type of results:
- Traces of win32 API calls performed by all processes spawned by the malware.
- Files being created, deleted and downloaded by the malware during its execution.
- Memory dumps of the malware processes.
- Network traffic trace in PCAP format.
- Screenshots of Windows desktop taking during the execution of the malware.
- Full memory dumps of the machines.
Cuckoo (version 0.5) has been developed in Python and integrated with MongoDB, Yara, SSDEEP, Tcpdump for different purposes. That is why my recommendation is to install all these packages including Cuckoo Python dependencies. Here are the necessary steps to do it:
1.- Installing Python and dependencies
$ apt-get install python # installed by default
$ apt-get install python-magic # for identifying file formats
$ apt-get install python-dpkt # for extracting info from pcaps
$ apt-get install python-mako # for rendering html reports and web gui
$ apt-get install python-sqlalchemy
$ apt-get install python-jinja2 # necessary for web.py utility
$ apt-get install python-bottle # necessary for web.py utility
2.- Installing SSDEEP for calculating fuzzy hashes
$ apt-get install ssdeep
$ apt-get install python-pyrex # required for pyssdeep installation
$ apt-get install subversion
$ apt-get install libfuzzy-dev
$ svn checkout http://pyssdeep.googlecode.com/svn/trunk/ pyssdeep
$ cd pyssdeep
$ python setup.py build
$ python setup.py install # run as root user
3.- Installing MongoDB and Python support
$ apt-get install python-pymongo # for mongodb support
$ apt-get install mongodb # includes server and clients
4.- Installing Yara and Python support
$ apt-get install g++
$ apt-get install libpcre3 libpcre3-dev
$ wget http://yara-project.googlecode.com/files/yara-1.6.tar.gz
$ tar -xvzf yara-1.6.tar.gz
$ cd yara-1.6
$ ./configure
$ make
$ make check
$ make install # finished yara installation
$ wget http://yara-project.googlecode.com/files/yara-python-1.6.tar.gz
$ tar -xvzf yara-python-1.6.tar.gz
$ cd yara-python-1.6
$ python setup.py build
$ python setup.py install # finished python support installation
5.- Modifying Tcpdump running privileges
This is necessary so Cuckoo can run Tcpdump as non-root user. $ apt-get install libcap2-bin
$ setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
$ getcap /usr/sbin/tcpdump # to check changes have been applied
6.- Installing Cuckoo Sandbox
$ sudo useradd cuckoo
$ usermod -a -G vboxusers cuckoo # add cuckoo to vboxusers group
$ id cuckoo # checks cuckoo user details
$ apt-get install git
$ git clone git://github.com/cuckoobox/cuckoo.git
7.- Configuring Windows Guest virtual machine
At this point we need to install Cuckoo python agent in the virtual machine that we want to use to run the malware. I am going to continue the work described in my previous post and use WindowsXPVM1 for this purpose.First steps to prepare the Windows Guest system:
- Install Pyton for Windows: http://python.org/download/
- Install PIL Python module to created desktop screenshots: http://www.pythonware.com/products/pil/
- Deactivate automatic Windows updates
- Deactivate local firewall
- Optional: Install third party applications (Office 2003/2007, Acrobat Reader...): http://www.oldapps.com/
$ cp /home/santiago/cuckoo/cuckoo/agent/agent.py /home/santiago/cuckoo/shares/WindowsXPVM1/
I also renamed it to agent.pyw to prevent the command prompt from showing. We can run it manually or configure it to run at Windows startup following these steps:- Copy to C:\Python27\agent.pyw
- Add it to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run: Name:'Agent' Type:'REG_SZ' Data:"C:\Python27\agent.pyw"
Our virtual machine is now ready to run malware so it's time to save the system state creating a VirtualBox snapshot.
$ vboxmanage snapshot "WindowsXPVM1" take "WindowsXPVM1Snap01" --pause
And these are the commands we can use to restore the snapshot. $ vboxmanage controlvm "WindowsXPVM1" poweroff
$ vboxmanage snapshot "WindowsXPVM1" restorecurrent
$ vboxheadless --startvm "WindowsXPVM1"
8.- Starting Cuckoo sandbox
Before starting Cuckoo for the first time, we need to configure Cuckoo VirtualBox settings to specify the virtual machine the system will use to analyze a malware sample. To do it we edit cuckoo/conf/virtualbox.conf file and set the following variables. [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
# 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 = WindowsXPVM1
[WindowsXPVM1]
# Specify the label name of the current machine as specified in your
# VirtualBox configuration.
label = WindowsXPVM1
# Specify the operating system platform used by current machine
# [windows/darwin/linux].
platform = windows
# Specify the IP address of the current 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.101
Finally we can start our freshly installed Cuckoo sandbox. root@donkey:/home/santiago/cuckoo/cuckoo# python cuckoo.py
_|
_|_|_| _| _| _|_|_| _| _| _|_| _|_|
_| _| _| _| _|_| _| _| _| _|
_| _| _| _| _| _| _| _| _| _|
_|_|_| _|_|_| _|_|_| _| _| _|_| _|_|
Cuckoo Sandbox 0.5
www.cuckoosandbox.org
Copyright (c) 2010-2012
Checking for updates...
Good! You have the latest version available.
2013-01-26 23:25:33,216 [lib.cuckoo.core.scheduler] INFO: Using "virtualbox" machine manager
2013-01-26 23:25:33,290 [lib.cuckoo.core.scheduler] INFO: Loaded 1 machine/s
2013-01-26 23:25:33,290 [lib.cuckoo.core.scheduler] INFO: Waiting for analysis tasks...
9.- Analyzing a malware sample
I decided to analyze the following malware sample: efeb717fdbb98d8043eb4c51254d9b74 You can find virustotal description here. We can use submit.py util for it. root@donkey:/home/santiago/cuckoo/cuckoo/utils# python submit.py /home/santiago/binaries/efeb717fdbb98d8043eb4c51254d9b74
Success: File "/home/santiago/binaries/efeb717fdbb98d8043eb4c51254d9b74" added as task with ID 4
And these are Cuckoo logs while performing the malware analysis.
2013-01-26 23:34:00,275 [lib.cuckoo.core.scheduler] INFO: Starting analysis of FILE "/home/santiago/binaries/efeb717fdbb98d8043eb4c51254d9b74" (task=4)
2013-01-26 23:34:00,286 [lib.cuckoo.core.scheduler] INFO: File already exists at "/home/santiago/cuckoo/cuckoo/storage/binaries/8dafb21e7d106a6c98f745f30c2577ee7b0984ec7ba2c4107f7ddcd0d127baf6"
2013-01-26 23:34:00,304 [lib.cuckoo.core.scheduler] INFO: Task #4: acquired machine WindowsXPVM1 (label=WindowsXPVM1)
2013-01-26 23:34:00,312 [lib.cuckoo.core.sniffer] INFO: Started sniffer (interface=vboxnet0, host=192.168.56.101, dump path=/home/santiago/cuckoo/cuckoo/storage/analyses/4/dump.pcap)
2013-01-26 23:34:02,063 [lib.cuckoo.core.scheduler] INFO: Task #4: analysis procedure completed
Then we can web.py Cuckoo tool to view the output of the analysis.
root@donkey:/home/santiago/cuckoo/cuckoo/utils# python web.py
Bottle server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.
And at this point we can connect to our host through the web http://192.168.0.200:8080 and see our analysis report.References
http://www.cuckoosandbox.org/http://www.virtualbox.org/
http://www.virustotal.com/
http://blog.michaelboman.org/
i'm sorry, i can't understand :
ReplyDeleteAdd it to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run: Name:'Agent' Type:'REG_SZ' Data:"C:\Python27\agent.pyw"
what's that meaning?
thanks,,
Hi,
Deletetry this:
Run cmd.exe with administrator privileges, then type:
reg.exe ADD "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run" -v "Agent" -t REG_SZ -d "C:\Python27\agent.pyw"
This article is very very helpful thanks for the author!!!! But i have 1 doubt i m not getting the database in the cuckoo folder can ne1 help me???
ReplyDeleteThank you!! My contact mail is yenumulasudhirkumar@gmail.com
This installation part is very useful and I have followed everything that's working fine. But still if author is able to provide how to integrate mongo DB and Yara rule into the cuckoo sandbox means it will be very useful. Could you please provide the information ?
ReplyDeleteI used your guide and it was very helpful. Other than installations methods for various things (i used pip for most python stuff), I changed nothing except the names of my VMs and other harmless changes. But I am stuck at pending on all submits. It never fires up the VM or does anything after I submit a binary. So I am thinking a step is missing from your walkthrough. I may be wrong(it has happened on occasion). I'll find a solution but I wanted to let you know in case something needs to be updated here.
ReplyDeleteI missed the point where I needed to install python on my guest machine. Installing Python solved the issue for me.
DeleteI am getting an error "44,989 [lib.cuckoo.core.scheduler] ERROR: VBoxManage exited with error restoring the machine's snapshot" not sure what could be the error i have tried this procedure earlier with physical machine and it worked fine. However when i used it with a VM in VBoxManage, i am getting errors. please help
ReplyDeleteCan you update the links?
ReplyDelete2016-09-14 18:03:04,341 [lib.cuckoo.core.scheduler] ERROR: VBoxManage exited with error restoring the machine's snapshot
ReplyDelete2016-09-14 18:03:04,614 [lib.cuckoo.core.scheduler] CRITICAL: A critical error has occurred trying to use the machine with name Cuckoo during an analysis due to which it is no longer in a working state, please report this issue and all of the related environment details to the developers so we can improve this situation. (Note that before we would simply remove this VM from doing any more analyses, but as all the VMs will eventually be depleted that way, hopefully we'll find a better solution now).
I am receiving the same error.
DeleteBalıkesir
ReplyDeleteBursa
Mersin
Konya
Van
YLT
bingöl
ReplyDeleteelazığ
hakkari
sakarya
erzincan
260N
van
ReplyDeleteerzincan
sivas
ağrı
manisa
VWD7
Malatya Lojistik
ReplyDeleteAntep Lojistik
Urfa Lojistik
Sivas Lojistik
Erzurum Lojistik
PD0UO
https://istanbulolala.biz/
ReplyDelete0UMİ
urfa evden eve nakliyat
ReplyDeletemalatya evden eve nakliyat
burdur evden eve nakliyat
kırıkkale evden eve nakliyat
kars evden eve nakliyat
KH0
B253D
ReplyDeleteTunceli Lojistik
Elazığ Parça Eşya Taşıma
Ardahan Evden Eve Nakliyat
Karaman Evden Eve Nakliyat
Nevşehir Lojistik
ADC67
ReplyDeleteKonya Şehir İçi Nakliyat
Muş Parça Eşya Taşıma
Çerkezköy Oto Boya
Konya Evden Eve Nakliyat
Maraş Lojistik
Mardin Şehirler Arası Nakliyat
Çerkezköy Kurtarıcı
Sivas Şehir İçi Nakliyat
Btcturk Güvenilir mi
6B878
ReplyDeleteMardin Şehirler Arası Nakliyat
Diyarbakır Şehirler Arası Nakliyat
Sakarya Parça Eşya Taşıma
Sincan Fayans Ustası
Bilecik Şehir İçi Nakliyat
Bitlis Evden Eve Nakliyat
Şırnak Şehirler Arası Nakliyat
Kütahya Şehir İçi Nakliyat
Çerkezköy Mutfak Dolabı
8D79E
ReplyDeleteAmasya Lojistik
Kripto Para Borsaları
Artvin Şehir İçi Nakliyat
Erzincan Şehirler Arası Nakliyat
Siirt Şehirler Arası Nakliyat
Silivri Duşa Kabin Tamiri
Aksaray Şehirler Arası Nakliyat
Tokat Şehir İçi Nakliyat
Antep Parça Eşya Taşıma
82355
ReplyDeleteBitmex Güvenilir mi
Binance Güvenilir mi
Trabzon Evden Eve Nakliyat
Isparta Parça Eşya Taşıma
Uşak Parça Eşya Taşıma
Silivri Boya Ustası
Erzincan Şehirler Arası Nakliyat
Van Şehir İçi Nakliyat
Isparta Lojistik
97E51
ReplyDeleteBingöl Lojistik
Tunceli Parça Eşya Taşıma
Trabzon Evden Eve Nakliyat
Trabzon Parça Eşya Taşıma
Giresun Evden Eve Nakliyat
Muş Evden Eve Nakliyat
Mersin Lojistik
Tunceli Şehirler Arası Nakliyat
Bybit Güvenilir mi
C4CA0
ReplyDeleteSincan Boya Ustası
Ardahan Evden Eve Nakliyat
Bitget Güvenilir mi
Silivri Cam Balkon
Düzce Evden Eve Nakliyat
Ünye Koltuk Kaplama
Bitfinex Güvenilir mi
Hotbit Güvenilir mi
Batıkent Boya Ustası
48C31
ReplyDeletereferans kodu %20
AB78A
ReplyDeletebinance %20
2EEE8
ReplyDeleteKripto Para Madenciliği Siteleri
Binance Nasıl Üye Olunur
Kripto Para Kazanma
Binance Para Kazanma
Coin Çıkarma Siteleri
Coin Madenciliği Nedir
Coin Nasıl Oynanır
Coin Nasıl Üretilir
Kripto Para Üretme
61410
ReplyDeleteKripto Para Oynama
Binance Para Kazanma
Binance Kaldıraçlı İşlem Nasıl Yapılır
Bitcoin Çıkarma Siteleri
Coin Nedir
Kripto Para Çıkarma
Kripto Para Üretme Siteleri
Binance Komisyon Ne Kadar
Binance Ne Zaman Kuruldu
25FE9
ReplyDeleteantep görüntülü sohbet uygulamaları ücretsiz
trabzon görüntülü sohbet ücretsiz
igdir ücretsiz görüntülü sohbet uygulamaları
muğla sohbet
görüntülü sohbet yabancı
rastgele sohbet siteleri
trabzon mobil sohbet sitesi
sesli sohbet sesli chat
igdir canlı görüntülü sohbet uygulamaları
76CB9
ReplyDeletegörüntülü sohbet
kars canlı ücretsiz sohbet
artvin mobil sohbet
zonguldak parasız sohbet siteleri
Afyon Görüntülü Sohbet
Adana Sohbet Sitesi
bedava sohbet odaları
van parasız görüntülü sohbet uygulamaları
tunceli canlı sohbet siteleri ücretsiz
6BFDF
ReplyDeleteparasız görüntülü sohbet
istanbul canlı sohbet siteleri
erzurum canlı görüntülü sohbet odaları
canlı sohbet bedava
canlı sohbet et
Ordu Rastgele Görüntülü Sohbet Uygulaması
antalya en iyi sesli sohbet uygulamaları
ücretsiz sohbet uygulamaları
ığdır en iyi ücretsiz sohbet siteleri
AA3EA
ReplyDeleteAksaray Kadınlarla Görüntülü Sohbet
kars yabancı görüntülü sohbet siteleri
batman ücretsiz sohbet odaları
Eskişehir Rastgele Sohbet Uygulaması
hatay ücretsiz sohbet siteleri
şırnak telefonda rastgele sohbet
Adıyaman Parasız Sohbet
yozgat kadınlarla sohbet
manisa sohbet sitesi
66BB2
ReplyDeleteKripto Para Kazma Siteleri
Jns Coin Hangi Borsada
Periscope Beğeni Hilesi
Görüntülü Sohbet Parasız
Bitcoin Oynama
Görüntülü Sohbet Parasız
Coin Nedir
Referans Kimliği Nedir
Snapchat Takipçi Hilesi
F2C3E
ReplyDeleteBinance Borsası Güvenilir mi
Loop Network Coin Hangi Borsada
Shibanomi Coin Hangi Borsada
Threads Takipçi Satın Al
Threads Beğeni Hilesi
Sohbet
Binance Ne Kadar Komisyon Alıyor
Clubhouse Takipçi Hilesi
Threads Beğeni Satın Al
ED699
ReplyDeleteTesla Coin Hangi Borsada
Parasız Görüntülü Sohbet
Discord Sunucu Üyesi Hilesi
Binance Referans Kodu
Coin Nasıl Çıkarılır
NWC Coin Hangi Borsada
Gate io Borsası Güvenilir mi
Mefa Coin Hangi Borsada
Binance Hesap Açma
AEA58
ReplyDeleteBinance Komisyon Ne Kadar
Twitter Retweet Hilesi
Kripto Para Kazma Siteleri
Coin Üretme
Facebook Grup Üyesi Satın Al
Kripto Para Madenciliği Nasıl Yapılır
Chat Gpt Coin Hangi Borsada
Görüntülü Sohbet
Bitranium Coin Hangi Borsada
7B304
ReplyDeleteKripto Para Nasıl Alınır
Kripto Para Oynama
Likee App Takipçi Hilesi
Okex Borsası Güvenilir mi
Lunc Coin Hangi Borsada
Satoshi Coin Hangi Borsada
Parasız Görüntülü Sohbet
Star Atlas Coin Hangi Borsada
Kripto Para Kazma
EEBAC
ReplyDeleteavax wallet
bitbox wallet web
ledger
wallet ledger live
trezor web
web trust wallet
trezor suite web
ellipal
trust wallet
03001
ReplyDelete4g proxy
gate io
kripto para haram mı
toptan sabun
kripto para nasıl alınır
çörek otu sabunu
binance referans kimliği
kredi kartı ile kripto para alma
bitexen
6A7ED
ReplyDeletebingx
referans kodu
bitexen
bybit
binance referans kimliği nedir
probit
paribu
sohbet canlı
gate io
636E4
ReplyDeleteparibu
bitget
probit
kripto para telegram grupları
filtre kağıdı
canli sohbet
kripto para kanalları telegram
filtre kağıdı
bitmex
C8CF9
ReplyDeletebinance
bybit
bitexen
bitget
bitcoin hesabı nasıl açılır
okex
probit
kucoin
kripto para kanalları telegram
wbvcbhfghgfhgy
ReplyDeleteشركة تنظيف افران بجدة
Nurses in Australia earn competitive salaries that reflect their skills and experience. Entry-level registered nurses typically start with salaries around AUD 65,000 to AUD 70,000 per year. As they gain experience and take on additional responsibilities, salaries can rise to between AUD 80,000 and AUD 95,000 annually. Specialised nursing roles, such as nurse practitioners or advanced practice nurses, can command even higher salaries, often exceeding AUD 100,000. In addition to base salaries, many nurses benefit from overtime pay, shift allowances, and bonuses that can significantly boost their overall income. The Australian healthcare system also offers attractive working conditions, job security, and opportunities for professional development, making the nursing profession an appealing career choice. Furthermore, the financial rewards are complemented by a robust support system for relocating nurses, ensuring a smooth transition into the Australian workforce. Overall, nursing in Australia provides a rewarding career both financially and personally.
ReplyDeletehttps://www.dynamichealthstaff.com/how-much-do-nurses-get-paid-in-australia
شركة مكافحة حشرات بخميس مشيط BN9ELJcgvc
ReplyDeleteشركة تنظيف مساجد بالجبيل 4fgLZcoLmd
ReplyDelete