An open API service indexing awesome lists of open source software.

https://github.com/53845714nf/malwarebazaar

A minimal Python wrapper for the MalwareBazaar API ๐Ÿงช, designed to simplify interaction with the malware sample repository provided by abuse.ch.
https://github.com/53845714nf/malwarebazaar

api cybersecurity malware python3 threat-intelligence wrapper

Last synced: about 1 year ago
JSON representation

A minimal Python wrapper for the MalwareBazaar API ๐Ÿงช, designed to simplify interaction with the malware sample repository provided by abuse.ch.

Awesome Lists containing this project

README

          

> [!CAUTION]
> Caution, this program downloads real malware samples. Always use this in a secure and isolated environment.

# ๐Ÿ MalwareBazaar Lib
A minimal Python wrapper for the [MalwareBazaar API](https://bazaar.abuse.ch/api/) ๐Ÿงช, designed to simplify interaction with the malware sample repository provided by **abuse.ch**.

## โœจ Features
- ๐Ÿ” Search for malware samples by:
- ๐Ÿท๏ธ Tag
- File Type
- Hash (SHA256)
- ๐Ÿ“ฅ Download malware samples

## ๐Ÿ“ฆ Installation
The lib need `7z` Command Line tool:

```bash
sudo apt install 7zip
```

Install the lib via `pip`:

```bash
pip install
```

## ๐Ÿ› ๏ธ Usage

Create a new bazaar Instance:
```python
from mawarebazaar import Bazaar

bazaar = Bazaar(api_key='your-api-key')
```

Use functions like `query_tag`:

```python
bazaar.query_tag('mirai', 100)
```

## โœ… API Coverage

Feature | Supported
-------------------------------------------------- | ------------
Submission Policy | โŒ
Submit (upload) a malware sample | โŒ
Retrieve (download) a malware sample | โœ…
Query a malware sample (hash) | โœ… (Only SHA256)
Query tag | โœ…
Query signature | โŒ
Query filetype | โœ…
Query ClamAV signature | โŒ
Query imphash | โŒ
Query TLSH | โŒ
Query telfhash | โŒ
Query gimphash | โŒ
Query icon dhash | โŒ
Query YARA rule | โŒ
Query Code Signing Certificates (by Issuer CN) | โŒ
Query Code Signing Certificates (by Subject CN) | โŒ
Query Code Signing Certificates (by Serial Number) | โŒ
Update an entry | โŒ
Add a comment | โŒ
Query latest malware samples (recent additions) | โŒ
Query Code Signing Certificate Blocklist (CSCB) | โŒ

## ๐Ÿค Contributing
Contributions are very welcome! ๐ŸŽ‰
Whether it's fixing a bug ๐Ÿž, improving the docs ๐Ÿ“, or adding a new feature ๐Ÿš€ โ€” feel free to submit a pull request.