GitXplorerGitXplorer
s

cacador

public
137 stars
23 forks
15 issues

Commits

List of commits on branch master.
Verified
b542ceb95b4f9defd75eec96aa05bdf6ef6f763a

Merge pull request #38 from ninoseki/add-word-boundries-to-hash-regexes

ssroberts committed 7 years ago
Unverified
65e4465cb4285f192d2ae8a94062fcee5bee0b3a

Add word boundries to hash regexes

nninoseki committed 7 years ago
Verified
3e75693b84f6a55b1688fc8d8112d602d094845a

Merge pull request #36 from ninoseki/domain-extraction-improvement

ssroberts committed 7 years ago
Unverified
feb700d0c168310914fad025f5ee94fe0d79f483

Merge branch 'master' into domain-extraction-improvement

nninoseki committed 7 years ago
Verified
bbcf51d81fd6f4a01306b7fa41e6c904d86b3d4d

Merge pull request #37 from sroberts/setup-ci

ssroberts committed 7 years ago
Unverified
f489e5cc603457814ba1ac4ca0338ffc1f4ef462

updated status badge

ssroberts committed 7 years ago

README

The README file for this repository.

cacador

CircleCI Go Report Card

Cacador (Portugese for hunter) is tool for extracting common indicators of compromise from a block of text.

The Short Way: Downloading Cacador

The easiest way to get cacador is to download the latest release for your platform. Good? Great.

The Long Way: Compiling Cacador

  • Install golang
  • go get github.com/sroberts/cacador
  • Compile with go build

Running

Run with ./cacador. It accepts text from stdin and writes a JSON blob of IOCs to stdout. For example cat text.txt | ./cacador | import where text is some IOC rich text and import pushes your new IOCs into your threat management system.

Cacador does recognize two command line flags:

  • -comment="Foo" which makes it possible to leave a note as metadata.
  • -tags="Foo, bar, baz" which adds tags.

Generating a new release

  • Install goreleaser via go get github.com/goreleaser/goreleaser.
  • Push your branch to GitHub.
  • Tag it via git tag -a v1.0.3 -m "Release 1.0.3 - Minor bugfix edition."
  • Push the tag to GitHub via git push origin v1.0.3
  • Ensure you have a GITHUB_TOKEN env var set.
  • Run goreleaser.

Why?

Other tools for doing indicator extraction are pretty awesome (like armbues/ioc_parser or sroberts/jager), but what's nice about cacador is you can compile it and put it in your path and use it for Unix style workflows with pipes and things. Also it's super fast and was a good excuse to learn Go.