Skip to content

Application for retrieving and storing domain names from various sources

License

Notifications You must be signed in to change notification settings

aau-network-security/gollector

Repository files navigation

Gollector

Tool for the collection (and planned enhancement) of domain names from different sources. The purpose of gollector is to enable the analysis of different vantage points of domain name collection, such as zone files, passive DNS logs and more.

IMPORTANT The performance of the tool is heavily important by the optimizations setup in the Postgres database. A couple optimizations have been implemented in gollector, but in order to rely on index-only scans, manual indexes must be added.

Components

gollector consists of various components, which can be ran independently of each other. The core of the tool is a cache process that provides a gRPC api to the other components to insert entries in an underlying (PostgreSQL) database. A set of collectors processes can run in parallel. View the README files for more details about the components:

How to configure

Each component is configure individually with a .yml configuration file. In order to get started, copy one of the template configuration files in the config/ directory.

Running the tool

The tool can be compiled and run with Golang, or run using Docker containers.

Golang

  • Golang (tested with version 1.13)
  • A running PostgreSQL database

Docker-compose

All components are dockerized and can be run with docker-compose. Note that that the cache is expected to be running for any of the collectors to work, so the order in which to start the Docker containers matters. The following is an example:

$ docker-compose build cache zones
$ docker-compose up -d cache
...
...
$ docker-compose up -d zones

Make sure the correct environment variables are set before running with docker-compose (or via a .env file in the root of the project).
Take a look at docker-compose.yml for the environment variables to set.

Contribute

Protobuf

After updating the Protobuf file (api/proto/api.proto), run the following to generate the associated golang source code:

$ cd api/proto
$ protoc --go_out=. --go-grpc_out=. api.proto    

About

Application for retrieving and storing domain names from various sources

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •