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.
- Host: GitHub
- URL: https://github.com/53845714nf/malwarebazaar
- Owner: 53845714nF
- Created: 2025-04-10T20:09:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-10T22:23:17.000Z (about 1 year ago)
- Last Synced: 2025-04-11T04:43:53.789Z (about 1 year ago)
- Topics: api, cybersecurity, malware, python3, threat-intelligence, wrapper
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.