Skip to content

A CLI client for malware bazaar and urlhaus feed

Notifications You must be signed in to change notification settings

buzzer-re/bazzar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bazzar-CI bazzar-CD

Bazzar

A tiny and comfy CLI written in Go to interact with Malware Bazaar samples and Urlhaus database.

Why

I really enjoy navigate and use abuse.ch services when I'm doing any kind of threat research or malware analysis, and I always wanted a simple CLI tool to use their services just to pick some useful attributes of a malware or url, that's why I built this simple yet useful tool.

Features

With bazzar you can:

  • Query sample info in raw text and json format
  • Query url info in raw text and json format
  • Download any malware sample available in Malware Bazzar

Usage:

Interact with abuse.ch intel feed

Usage:
  bazzar [command]

Available Commands:
  help        Help about any command
  sample      Interact with samples in Malware Bazzar
  url         Query urlhaus information

Flags:
  -h, --help   help for bazzar

Use "bazzar [command] --help" for more information about a command.

Right now you can interact with the sample subcommand and the url subcommand

Sample subcommand

Usage:
  bazzar sample [flags] sha256

Flags:
  -h, --help            help for sample
  -i, --info            Get sample info
  -j, --json            Output info in json format
  -l, --list-last       List last 100 entries in Malware Bazzar
  -o, --output string   Output sample path

You need to pass at least the sample hash, but you can normally list

URL subcommand

Usage:
  bazzar url url|host [flags]

Flags:
  -h, --help         help for url
  -j, --json         Output in JSON format
  -l, --list         List new urls
  -n, --num int      Number of urls to list (default 20)
  -u, --url string   Get URL information

You need to pass a url or host, but you can normally list

Example

Sample interaction

URL interaction

Installing

Using go (best way):

$ go install github.com/aandersonl/bazzar@latest

This will download and compile everything in your GOPATH, make sure to have $GOPATH/bin in your path in order to work.

Releases:

You can also go to releases and grab the latest version avaiable.

Roadmap

As this is not a finish tool, I will soon add other features like:

  • Query by imphash,tlsh,ssdeep (This queries don't work in the current api spec)
  • Download daily generated samples batch
  • Correlate samples with urlhaus
  • Generate MISP events

Thanks.