Skip to content

A tool that fetches DNS records from various DNS management and cloud providers and normalize all records to a unified format.

License

Notifications You must be signed in to change notification settings

rotemplay/D-Collector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D-Collector

TLDR; D-Collector is a tool that fetches DNS records from various DNS management and cloud providers and normalize all records to a unified format.


Description

Most of the enterprises nowadays are using multiple different cloud providers and DNS registrars. That creates a fertile ground for shadow IT to grow and makes it extremely hard for information security teams to map, manage and scan their attack surface.

The above led us to create D-Collector. Now, we can continuously scan our infrastructure for security vulnerabilities and drastically reduce the risk of shadow IT.

Who is this tool for?

This tool has been created for IT and information security practitioners to easily automate their domains management and attack surface management.

How it works?

  • Provide D-Collector with your cloud providers API tokens/keys.
  • D-Collector to fetch all DNS records from the given cloud providers.
  • D-Collector to create a unified structured "domains.json" file with all the DNS records.
  • Harness the magic for your needs.

Installation

Prerequisites

  • Copy 'config.py.example' to 'config.py'.
    cp config.py.example config.py
  • Fill the relevant variables (empty configs will be ignored).
  • Define your company's known internal domain suffixes for the tool to classify as private. E.g., .corp, .internal.

PIP (recommended)

pip install d-collector

Manual

git clone https://github.com/rotemreiss/D-Collector.git
cd D-Collector
pip install .

Usage

  dcollector

Output Example

Output Domains file will be in the following format (JSON):

[{"name": "domain name", "record_type": "DNS type (CNAME,A)", "record_value": "value (ip,ec2 domain name)", "is_private": "false/true"}]

Cloud Providers and Tools Support

  • Static domains from file
  • AWS
  • GCP
  • Digital Ocean
  • Prisma® Cloud (by Palo Alto Networks)

Roadmap

  • Support for more cloud providers and DNS registrars.

Contributing

Feel free to fork the repository and submit pull-requests.


License

License

About

A tool that fetches DNS records from various DNS management and cloud providers and normalize all records to a unified format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%