Skip to content
forked from ninoseki/ayashige

Ayashige provides a list of suspicious newly registered domains as a JSON feed

License

Notifications You must be signed in to change notification settings

bslavin/ayashige

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ayashige

Build Status Coverage Status Codacy Badge

Ayashige provides a list of suspicious newly registered domains as a JSON feed.

How it works

  • It collects newly registered domains via WebAnalyzer, WhoisDS, DomainWatch and Certififate Transparency log servers.
  • It computes a suspicious score of a given domain.
  • It stores suspicious domains into a Redis instance.
  • It provides suspicious domains as a JSON via /feed endpoint.

Installation

git clone https://github.com/ninoseki/ayashige
bundle install --path vendor/bundle

Usage

Please set following environment variables before using.

REDIS_HOST = YOUR_REDIS_HOST
REDIS_PORT = YOUR_REDIS_PORT
REDIS_PASSWORD = YOUR_REDIS_PASSWORD

Run Cron jobs

# Grab domains from CT log servers
bundle exec ruby bin/ct_job.rb

# Grab domains from DomainWatch
bundle exec ruby bin/domain_watch_job.rb

# Grab domains from WebAnalyzer (it should be a daily job)
bundle exec ruby bin/web_analyzer_job.rb

# Grab domains from WhoisDS (it should be a daily job)
bundle exec ruby bin/whoisds_job.rb
  • It checks a suspicious score of a given each domain and stores a suspicious one into a Redis instance with TTL 24 hours.
    • You can specify your own default TTL via DEFAULT_TTL environment variable.

Run a Web app

bundle exec puma config.ru

Demo

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ninoseki/ayashige.

License

The gem is available as open source under the terms of the MIT License.

About

Ayashige provides a list of suspicious newly registered domains as a JSON feed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 97.5%
  • HTML 2.5%