剑庭安
首页
黑客安全首页全部安全栏目 黑客技术黑客技术、渗透测试、漏洞利用工具与教程 安全软件安全工具、扫描器、检测与审计软件 病毒分析恶意软件分析、样本、逆向与沙箱 CTF思路CTF 题目、writeup、解题思路与工具 防护思路防御技术、加固、检测响应与蓝队 红蓝攻防红队攻击模拟、蓝队对抗、攻防演练 漏洞知识库漏洞、CVE、PoC、EXP 与安全研究
逆向|反编译
PHP源码PHP 网站源码、程序、系统 APP源码安卓/iOS APP 源码 ASP源码ASP 网站源码与程序 NET源码.NET 网站源码与系统 小程序源码微信/支付宝小程序源码 Dedecms风格模板Dedecms 织梦风格模板 Empirecms风格模板EmpireCMS 帝国风格模板 Discuz商业模板/插件Discuz 商业模板与插件 WordPress主题/插件WordPress 主题与插件 其它源码、模板其它各类源码与模板 游戏源码游戏源码与引擎项目 加密货币源码加密货币、区块链、钱包、USDT/比特币相关源码与工具 手游源码手机游戏源码、服务端、客户端与引擎项目 传奇源码热血传奇、传奇世界、复古传奇等客户端/服务端/引擎源码 页游源码网页游戏、H5 游戏、浏览器游戏源码 端游源码电脑单机游戏、PC 网游客户端/服务端源码
最新万能免驱动支持所有型号打印机下载程序 日历天气老黄历 · 每天同步真实日期与天气
站长工具站长工具 自助开通会员浏览该分类 其他资源qtziy SEO工具SEO工具 站群源码站群源码 泛程序泛程序 蜘蛛模板蜘蛛模板 蜘蛛池蜘蛛池 外链工具外链工具
搜索 自助开通会员🔓 破甲 API
登录 注册
首页 分类列表 病毒分析 dorothy2 - A malware/botnet …
病毒分析
作者:admin 发布:2026-10-05

dorothy2 - A malware/botnet analysis framework written in Rub

项目说明Dorothy2A malware/botnet analysis framework written in Ruby.For a perfect view of this document (images and links), open it through the project&#0…
资源可下载 免费下载 0 条讨论
会员资源
开通会员后即可下载全部资源。
登录后开通会员
会员方案
219浏览量
0讨论
2下载链接
可下载资源状态
内容可验证
更新 2026-10-05
人工审核发布
评论区答疑

项目说明

Dorothy2

A malware/botnet analysis framework written in Ruby.

For a perfect view of this document (images and links), open it through the project's code repository.

For any issue, use our Redmine

A wiki page for dorothy2 is under construction. Please take a look at it.

![Gem ]()

##Introduction

Dorothy2 is a framework created for suspicious binary analysis.
Its main strengths are a very flexible modular en, and an interacti framework with a particular care of the network analysis.
Additionally, it is able to recognise new spawned processes by comparing them with a pre created baseline.
Static binary analysis and an impro behaviour analysis will be shortly introduced in the next .
Dorothy2 analyses binaries by the use of pre-configured _analysis profiles_. An analysis profile is composed by the following elements:

* A certain sandbox OS type
* A certain sandbox OS
* A certain sandbox OS language
* A fixed analysis timeout (how long to wait before re the VM)
* The number of screenshots requested (and the delay between them)
* A list of the supported extensions, and how the guest OS should execute them

The use of profiles gives the researcher the possibility to run analysis on a set of binaries by using different en. As it is known, some malwares are configured to run only in specific en. A CSIRT, might use them to test suspicious malwares only against an en that reflects the one of its customers.
Sources can also be configured to be automatically analysed by certain profiles (e.g. use Profile_Windows_30sc for all the binaries retrieved by Kippo_source).

Dorothy2 is a continuation of my Bachelor degree's final project (Dorothy: inside the Storm ) that I presented on Feb 2009. More information about the whole project can be found on the Italian Honeyproject website.

The framework is mainly composed by fi that can be e separately.
The following picture gives an o of the current modules and how they are connected each others.
>!dorothy.modules

* The Binary Fetcher Module (BFM)

In charge of retrieving the binaries from the configured sources. Currently a “binary source” can be system folder, an email-box, or a host reachable by ssh. Once the binaries have been retrieved, the BFM will populate the analysis queue.

* The Dorothy analysis engine

In charge of analysing the queue by executing the scheduled binaries into a sandbox, and then storing the generated network traffic and its screenshots into the analysis folder (moreo Dorothive with the basic information of the file, and CouchDB with the network pcaps).

* The (network) Data Extraction Module (old dparser)

In charge of dissecting the pcaps file, and storing the most relevant information (flows data, GeoIP info, etc) into Dorothive. In addition, it extracts all the files downloaded by the sandbox through HTTP/HTTPS and store them into the binary file's analysis folder.

* The (dummy) Webgui

A dummy Sinatra application which gives an interacti on all the acquired data. WARNING: this module is intended to be executed in an controlled en. The author strongly discourage to expose it on the Internet.

* The Ja Drone (Mainly coded by Patrizia Martemucci and Domenico Chiarito, but not part of this gem and not publicly a.)

Our botnet infiltration module, refers to this ppt presentation for an o.

The first four modules are publicly released under GPL 3 license as tribute to the the Honeynet Project Alliance.
All the information generated by the framework - i.e. binary info, timestamps, dissected network analysis - are stored into a postgres DB (Dorothive) in order to be used for further analysis.
A no-SQL database (CouchDB) is also used to mass store all the traffic dumps thanks to the pcapr/xtractr technology.

I started to code this project in late 2009 while learning Ruby at the same time. Since then, I´ve been changing/improving it as long as my Ruby coding skills were improving. Because of that, you may find some parts of code not-really-tidy :)

##Requirements

>WARNING:
The current of Dorothy only utilises ESX5 as its Sandbox Module (VSM). Thus, the free of ESXi is not supported due to its limitations in using the
5 API.
However, the o framework could be easily customised in order to use another engine. Dorothy2 is
very modular,and any customisation or modification is very welcome.

Dorothy needs the following software (not expressly in the same host) in order to be executed:

* ESX >= 5.0 (tip: if you download ESXi, you can e ESX for 30 days)
* Ruby 1.9.3
* Postgres >= 9.0
* At least one Windows machine
* One unix-like machine dedicated to the Network Analysis Engine(NAM) (tcpdump/ssh needed)
* pcapr-local (only used by doroParser)
* MaxMind libraries (only used by doroParser)

Regarding the Operating System

* Dorothy has been designed to run on any *nix system. So far it was successfully tested on OSX and Linux.
* The machines used as sandboxes are meant to be Windows based (successfully tested on XP)
* Only pcapr-local strictly requires Linux, if you want to use a Mac for executing this gem (like I do), install it into the NAM (as this guide suggests)

Installation

It is recommended to follow this step2step process:

1. Set your ESX en
* Sample setup
2. Install the required software
3. Install Dorothy and libmagic libraries
4. Start Dorothy, and configure it
5. Use Dorothy

1. Set your ESX en


1. Basic configuration (ssh)
* From :

Configuration->Security Profile->Ser>Proprieties->SSH->Options->Start and Stop with host->Start->OK

2. Configure two separate networks, one dedicated exclusively to the SandBoxes (See Sample Setups)

3. Configure the Windows VMs used for sandboxing

* Disable Windows firewall (preferred)
* Tools must be installed in the Windows guest system.
* Configure a static IP
* After configuring e on the Guest OS, create a snapshot of the sandbox VM from console. Dorothy will use it when re the a binary execution.

4. From , create a unix to the NAM

* Install tcpdump and sudo

#apt-get install tcpdump sudo

* Create a dedicated user for dorothy (e.g. "dorothy")

#useradd dorothy

* Create a directory inside the dorothy user's home where storing the network dumps

#su dorothy
$mkdir /home/dorothy/pcaps

* Add dorothy's user permission to execute/kill tcpdump to the sudoers file:

#
add the following line:
dorothy ALL = NOPASSWD: /usr/sbin/tcpdump, /bin/kill, /usr/bin/killall

* If you want to install pcapr on this machine (if you want to use dorohy from a MacOSX machine, you have to do it) install also these packages (refer to this blog post for a detailed howto). However, if you are installing Dorothy into a Linux machine, I recommended you to install pcapr on the same machine where the Dorothy gem was installed.

#apt-get install ruby1.9.3 rubygems tshark zip couchdb

* Start the couchdb server

#/etc/init.d/couchdb start

* Install pcapr-local

#gem install pcapr-local

* Start pcapr-local by using the dorothy's system account and configure it. When prompted, insert the folder path used to store the network dumps

$startpcapr
....
Which directory would you like to scan for indexable pcaps? [/root/pcapr.Local/pcaps]
/home/dorothy/pcaps

In addition, remember to allow pcapr to run on all the interfaces

What IP address should pcapr.Local run on? Use 0.0.0.0 to listen on all interfaces [127.0.0.1]
0.0.0.0

* If e went fine, you should be able to browse to

http//{ip-used-by-NAM}:8000

5 From , configure the NIC on the machine that will be used for the network sniffing purpose (NAM).
>The where the vNIC resides must allow the promisc mode, to enable it from :

>Configuration->Networking->Proprieties on the used for the analysis->Double click on the network used for the analysis->Securiry->Tick "Promiscuous Mode", then select "Accept" from the list menu.

>WARNING:
If you are ESX from a Linux host machine, remember to give the right pri to the network interface used by / Workstation in order to allow promiscuous mode:

> chmod a+rw /de

#### * Sample Setups
1. Basic setup
> In the following example, the Dorothy gem is installed in the same host where Dorothive (the DB) resides.
> This setup is strongly recommended

>!dorothy.basicsetup

2. Ad setup
> This setup is recommended if Dorothy is going to be installed in a Corporate en.
> By le a private VPN, all the sandbox traffics exits from the Corporate network with an external IP addresses.

>!dorothy.ad

2. Install the required software

1. Install postgres

$sudo apt-get install postgresql-9.1
or

2. Configure a dedicated postgres user for Dorothy (or use the default postgres user instead, up to you :)

> Note:
> If you want to use Postgres "as is", and then configure Dorothy to use "postgres" default the user, configure a password for this user at least (by default it comes with no password)

3. Install the following packages

$sudo apt-get install ruby1.9.3 rubygems postgresql-ser.1 libxml2-de libmagic-dev

>For OSX users: all the abo are a through mac ports. A tip for libmagic: use brew instead:
>
$ brew install libmagic
$ brew link libmagic

In case you want to install pcapr here do this as well:

$sudo apt-get install tshark zip couchdb

3. Install Dorothy gem

*Install Dorothy gem

$ sudo gem install dorothy2

4. Start Dorothy, and configure it!

0. Install MaxMind libraries
* GeoLiteCity
* GeoLite ASN
* Copy GeoLiteCity.dat and GeoIPASNum.dat into Dorothy's etc/geo/ folder

1. Start Dorothy

$ dorothy_start -v
The following message should appear

[WARNING] It seems that the Dorothy configuration file is not present,
please answer to the following question in order to create it now.

2. Follow the instruction to configure
* The en (db, esx server, etc)
* The Dorothy sources (where to get new binaries)
* The ESX machines used for the analysis

The first time you execute Dorothy, it will ask you to fill those information in order to create the required configuration files into the etc/ folder. However, you are free to modify/create such files directly - configuration example files can be found there too.
Finally, check out the file extensions.yml within the /etc folder: it instructs Dorothy's sandboxes about how to process the binaries to analize.

###5. Use Dorothy
1. Copy a .exe or .bat file into $yourdorothyhome/opt/bins/manual/
2. Execute dorothy with the malwarefolder source type (if you left the default one)

$ dorothy_start -v -s malwarefolder

Usage

Dorothy usage:

Usage:
dorothy2 [options]
where [options] are:
--, -V: Print the current .
--, -v: Enable mode
--infoflow, -i: Print the analysis flow
--baseline, -b <s>: Create a new process baseline
--source, -s <s>: Choose a source (from the ones defined in etc/sources.yml)
--CreateSource, -C: Create new source file
--daemon, -d <s>: (start|stop) Execute/kill the selected module (-W, -B, -A) in backround. If no modules are specified, it will exec/kill all of them.
--debug, -e: Add extensive log trails
--manual, -m: Start e, copy the file, and wait for me.
--SandboxUpdate, -S: Update Dorothive with the new Sandbox file
--Dorothi, -D <s>: (RE)Install the Dorothy Database (Dorothive)
--queue, -q: Show the analysis queue
--Analyser, -A: Execute only the Analyser Module (will analalyse only the current queue)
--BFM, -B: Execute only the Binary Fetcher Module (BFM)
--DEM, -E: Execute only the network Data Extation Module (DEM) aka doroParser
--WebGUI, -W: Execute the WebGUI Module (WGUI)
--help, -h: Show this message

>Example

> $dorothy2 -v -d start
> This will execute all the modules in background

The first time dorothy2 is executed it will drive the user into configuring the analysis en, more specifically the user will get through the following configuration steps:

* Configuring the general en ($home/.dorothy.yml)
* Configuring the BFM sources ($dorothyhome/etc/sources.yml)
* Configuring the sandboxes ($dorothyhome/etc/sandboxes.yml)
* Configuring the analysis profiles (auto-filled) ($dorothyhome/etc/profiles.yml)

Once the configuration step will be performed, the user will be always able to edit the configuration files at anytime.

###6. Debugging problems

I do recognise that setting up Dorothy is not the easiest task of the world.
By considering that the whole framework consists in the union of several 3rd pats, it is very likely that one of them will fail during the process.
Below there are some tips about how understand the root-cause of your crash.

1. Set the flag (- executing dorothy, or the —debug flag for additional debugging trails.

> $dorothy_start -v -d -s malwarefolder

2. If any error occours, go to our Redmine and raise a bug-ticket!

3. Write at dorothy2 at googlegroups.com

------------------------------------------

Acknowledgements

Thanks to all the people who ha in making the Dorothy2 project up&running:

* Marco C. (Research)
* Davide C. (Dorothive)
* Federico S. - Calogero L. (Infrastructure)
* Domenico C. - Patrizia P. (Dorothi)
* All the graduating students from UniMI who ha.
* Sabrina P. (our students "headhunter" :)

Contributing

1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request

Every contribution is more than welcome!
For any help, please don't hesitate in contacting us at :
info at honeynet.it
or through our ML:
dorothy2 at googlegroups.com

License

Dorothy is copyrighted by Marco Riccardi and is licensed under the
following GNU General Public License 3.

GNU GENERAL PUBLIC LICENSE
3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <
E is permitted to copy and distribute copies
of this license document, but changing it is not allowed.

项目信息

开发语言:Ruby

Star 数:195

技术要点

该项目属于病毒分析方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A malware/botnet analysis framework written in Ruby.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。

从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。

使用与学习建议

1. 下载源码压缩包,解压到本地环境。

2. 根据项目类型准备对应的运行环境与依赖。

3. 按照 README 中的步骤完成配置与部署。

4. 在隔离的测试环境中运行验证,避免影响生产系统。

免责声明

本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。

资源标题dorothy2 - A malware/botnet analysis framework written in Rub
所属分类病毒分析
发布作者admin
发布时间2026-10-05 23:28:56
下载权限 免费下载
附件数量2 个下载链接
浏览次数219
讨论数量0
主题状态正常讨论中

本资源免费,登录后即可在本页「下载链接」区域获取全部附件。

请在评论区留言说明具体链接,或联系作者补档。楼主更新后本页会同步最新的下载地址。

请先阅读正文中的授权说明;未注明的默认仅限站内学习交流,禁止直接搬运到其他站点二次售卖。
还没有讨论,快来抢沙发~
登录 后才能参与讨论
下载链接
会员才能下载
登录后开通会员
同分类推荐
暂无同类资源
免费登录即可下载
查看会员
放大预览

© 2026 剑庭安 - 网站开发定制 SEO 优化蜘蛛池代做 在线看手相算命. 保留所有权利。

Powered by 酷像SEOv3.0

网站地图 Sitemap.xml
首页 全部分类 黑客安全 逆向|反编译 精品源码 站长工具自助开通会员其他资源SEO工具站群源码泛程序蜘蛛模板蜘蛛池外链工具创意乐园 搜索 会员服务 登录 注册