Skip to main content

CLI wrapper for malware bazaar API (bazaar.abuse.ch)

Project description

(Malware)Bazaar

A MalwareBazaar API wrapper and CLI

Installation

If you want to use the API only:

pip install malwarebazaar

If you want to use the CLI:

pip install malwarebazaar[cli]

Note: Previous versions also included pre-built binaries, however, I stopped adding them. Please just use a local python environment instead.

Usage

Python

from malwarebazaar.api import Bazaar

bazaar = Bazaar("myapikey")
response = bazaar.query_hash("Hash to search for.")
file = bazaar.download_file("Sha256 hash for file to donwload.")

CLI

$ bazaar init myapikey
Successfully set API-Key!
$ bazaar query hash f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807
Filename:       03891ab57eb301579005f62953dfd21e.exe
MD5:            03891ab57eb301579005f62953dfd21e
SHA1:           41efd56ea49b72c6dd53b5341f295e549b1b64a5
SHA256:         f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807
Imphash:        f34d5f2d4577ed6d9ceec516c1f5a744
Signature:      RedLineStealer
Tags:           exe, RedLineStealer
$ bazaar download f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807
$ file f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.zip 
f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.zip: Zip archive data, at least v5.1 to extract
$ bazaar download f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807 --unzip
$ file f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.exe 
f670080b1f42d1b70a37adda924976e6d7bd62bf77c35263aff97e7968291807.exe: PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

malwarebazaar-0.1.6.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

malwarebazaar-0.1.6-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file malwarebazaar-0.1.6.tar.gz.

File metadata

  • Download URL: malwarebazaar-0.1.6.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0

File hashes

Hashes for malwarebazaar-0.1.6.tar.gz
Algorithm Hash digest
SHA256 898e8681a327fde8cbacf35c88686c6369ec1f00d01a90fecdc68876475810a1
MD5 b3da5fb77b268e767be0d774e4bedebb
BLAKE2b-256 642ebb2e027f98c066dbf089bf609adf9a6b014bdbe9d426288630e9263e2689

See more details on using hashes here.

File details

Details for the file malwarebazaar-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: malwarebazaar-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0

File hashes

Hashes for malwarebazaar-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ee26888901bbcb2b2bcb62633b3e8b4c40717451cc06f0cfce23b27fef0aacfe
MD5 ea808f895e4c6bec1ddafcff4e2c454d
BLAKE2b-256 267065f04bf39e8df2390e34ca5c998637320c7ba40c43444ae523f1c4111bbd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page