Rugosa
Rugosa is a static malware analysis library and tool developed using the disassembler-agnostic dragodis API. It incorporates a binary emulation framework along with utilities for regex and YARA searching, string extraction, and function discovery within disassembled code. These features enhance capabilities for comprehensive malware analysis and metadata extraction.
Rugosa utilizes an in-house developed emulation engine entirely written in Python to achieve full control of the execution context and offer high-level abstractions for emulated artifacts. It adopts a targeted approach employing branch path tracing to emulate portions of code without the need to fully emulate preceding code or modify the binary to accommodate such control flow.
Currently, x86 and ARM processors are supported.
Install
pip install rugosa
You will also need to setup a backend disassembler by following Dragodis's installation instructions.
Utilities
The following utilities are included with Rugosa:
Configuration
All options are configurable through a settings.toml file. This file can be modified to configure Rugosa.
Rugosa looks for a user defined configuration file at either ~/.config/rugosa/settings.toml or %LOCALAPPDATA%\dc3\rugosa\settings.toml
to overwrite the default settings.
To view the current configuration run the following:
python -m rugosa.config list
To edit the configuration run the following to open the file in a text editor. (This will copy the default configuration into a user directory)
python -m rugosa.config edit
To create a new user configuration file without editing:
python -m rugosa.config create
We use Dynaconf which provides conveniences like setting configuration using environment variables
prefixed with RUGOSA_.
For example, to change the computer name used during emulation:
export RUGOSA_MACHINE__COMPUTER_NAME=BOB_PC # '__' to access nested field.
Interactive Shell
Rugosa includes an interactive shell created with cmd2 for emulating and traversing a given binary. For more information on how to use the tool, please see the documentation.
Emulator Plugin
Rugosa includes a IDA and Ghidra plugin which provides a GUI for using the emulation utility. For more information on how to install and use the plugin please see the documentation.
Metadata
Release files for rugosa 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rugosa-1.3.0.tar.gz | 157.3 kB | Without provenance | Details for rugosa-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rugosa-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for rugosa-1.3.0-py3-none-any.whl |
Total release size: 342.0 kB
Release files / rugosa-1.3.0.tar.gz
| Download URL | rugosa-1.3.0.tar.gz |
|---|---|
| Size | 157.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
221d2d7aafe696b56904c221084d9737b72293d5716afea30d6aff41541fa756
|
|
BLAKE2b-256 checksum How to use checksums |
d7ef3f4a9bfded25c612af6cd68b3002f25b4b94883b823a3eafa06e4b2c129c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / rugosa-1.3.0-py3-none-any.whl
| Download URL | rugosa-1.3.0-py3-none-any.whl |
|---|---|
| Size | 184.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27b9dfd2b808299c5efdf2c4a42805a1b3802bb1e325acddb251adb147cd79df
|
|
BLAKE2b-256 checksum How to use checksums |
14db3f851e2012ed83c0357815b158438e98b6b4f1d6256de2a34c9276b091f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for rugosa 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.