Skip to content

BIND

Overview

BIND is an implementation of the Domain Name System (DNS) of the Internet. It performs both of the main DNS server roles, acting as an authoritative name server for domains, and acting as a recursive resolver in the network.

The following Sekoia.io built-in rules match the intake BIND. This documentation is updated automatically and is based solely on the fields used by the intake which are checked against our rules. This means that some rules will be listed but might not be relevant with the intake.

SEKOIA.IO x BIND on ATT&CK Navigator

SEKOIA.IO Intelligence Feed

Detect threats based on indicators of compromise (IOCs) collected by SEKOIA's Threat and Detection Research team.

  • Effort: elementary
Sliver DNS Beaconing

Detects suspicious DNS queries known from Sliver beaconing

  • Effort: intermediate

Event Categories

The following table lists the data source offered by this integration.

Data Source Description
DNS records BIND provides detailed logs on handled DNS queries

Event Samples

Find below few samples of events and how they are normalized by Sekoia.io.

{
    "message": "client @0x7f62b80115d0 192.168.101.70#55575 (docs.sekoia.io): query: docs.sekoia.io IN AAAA + (192.168.100.102)",
    "dns": {
        "header_flags": [
            "RD"
        ],
        "question": {
            "class": "IN",
            "name": "docs.sekoia.io",
            "registered_domain": "sekoia.io",
            "subdomain": "docs",
            "top_level_domain": "io",
            "type": "AAAA"
        },
        "type": "query"
    },
    "related": {
        "hosts": [
            "docs.sekoia.io"
        ],
        "ip": [
            "192.168.101.70"
        ]
    },
    "source": {
        "address": "192.168.101.70",
        "ip": "192.168.101.70",
        "port": 55575
    }
}
{
    "message": "client 192.168.101.70#55575 (docs.sekoia.io): query: docs.sekoia.io IN AAAA +TC (192.168.100.102)",
    "dns": {
        "header_flags": [
            "CD",
            "RD"
        ],
        "question": {
            "class": "IN",
            "name": "docs.sekoia.io",
            "registered_domain": "sekoia.io",
            "subdomain": "docs",
            "top_level_domain": "io",
            "type": "AAAA"
        },
        "type": "query"
    },
    "network": {
        "transport": "tcp"
    },
    "related": {
        "hosts": [
            "docs.sekoia.io"
        ],
        "ip": [
            "192.168.101.70"
        ]
    },
    "source": {
        "address": "192.168.101.70",
        "ip": "192.168.101.70",
        "port": 55575
    }
}
{
    "message": "client 192.168.103.66#42811 (ipv6.google.com): query: ipv6.google.com IN A +EDC (192.168.100.102)",
    "dns": {
        "header_flags": [
            "CD",
            "RD"
        ],
        "question": {
            "class": "IN",
            "name": "ipv6.google.com",
            "registered_domain": "google.com",
            "subdomain": "ipv6",
            "top_level_domain": "com",
            "type": "A"
        },
        "type": "query"
    },
    "related": {
        "hosts": [
            "ipv6.google.com"
        ],
        "ip": [
            "192.168.103.66"
        ]
    },
    "source": {
        "address": "192.168.103.66",
        "ip": "192.168.103.66",
        "port": 42811
    }
}
{
    "message": "client @0x7f4f8003d9e0 192.168.101.61#38251 (global.vortex.data.trafficmanager.net): query: global.vortex.data.trafficmanager.net IN AAAA +E(0) (192.168.100.102)",
    "dns": {
        "header_flags": [
            "RD"
        ],
        "question": {
            "class": "IN",
            "name": "global.vortex.data.trafficmanager.net",
            "registered_domain": "trafficmanager.net",
            "subdomain": "global.vortex.data",
            "top_level_domain": "net",
            "type": "AAAA"
        },
        "type": "query"
    },
    "related": {
        "hosts": [
            "global.vortex.data.trafficmanager.net"
        ],
        "ip": [
            "192.168.101.61"
        ]
    },
    "source": {
        "address": "192.168.101.61",
        "ip": "192.168.101.61",
        "port": 38251
    }
}
{
    "message": "client 192.168.103.66#57980 (ipv6.google.com): query: ipv6.google.com IN AAAA - (192.168.100.102)",
    "dns": {
        "header_flags": [],
        "question": {
            "class": "IN",
            "name": "ipv6.google.com",
            "registered_domain": "google.com",
            "subdomain": "ipv6",
            "top_level_domain": "com",
            "type": "AAAA"
        },
        "type": "query"
    },
    "related": {
        "hosts": [
            "ipv6.google.com"
        ],
        "ip": [
            "192.168.103.66"
        ]
    },
    "source": {
        "address": "192.168.103.66",
        "ip": "192.168.103.66",
        "port": 57980
    }
}
{
    "message": "client 192.168.103.66#45041 (107.100.168.192.in-addr.arpa): query: 107.100.168.192.in-addr.arpa IN PTR +E (192.168.100.102)",
    "dns": {
        "header_flags": [
            "RD"
        ],
        "question": {
            "class": "IN",
            "name": "107.100.168.192.in-addr.arpa",
            "registered_domain": "192.in-addr.arpa",
            "subdomain": "107.100.168",
            "top_level_domain": "in-addr.arpa",
            "type": "PTR"
        },
        "type": "query"
    },
    "related": {
        "hosts": [
            "107.100.168.192.in-addr.arpa"
        ],
        "ip": [
            "192.168.103.66"
        ]
    },
    "source": {
        "address": "192.168.103.66",
        "ip": "192.168.103.66",
        "port": 45041
    }
}
{
    "message": "client 192.168.101.70#55575 (docs.sekoia.io): query: docs.sekoia.io IN AAAA +ET (192.168.100.102)",
    "dns": {
        "header_flags": [
            "RD"
        ],
        "question": {
            "class": "IN",
            "name": "docs.sekoia.io",
            "registered_domain": "sekoia.io",
            "subdomain": "docs",
            "top_level_domain": "io",
            "type": "AAAA"
        },
        "type": "query"
    },
    "network": {
        "transport": "tcp"
    },
    "related": {
        "hosts": [
            "docs.sekoia.io"
        ],
        "ip": [
            "192.168.101.70"
        ]
    },
    "source": {
        "address": "192.168.101.70",
        "ip": "192.168.101.70",
        "port": 55575
    }
}

Extracted Fields

The following table lists the fields that are extracted, normalized under the ECS format, analyzed and indexed by the parser. It should be noted that infered fields are not listed.

Name Type Description
dns.header_flags keyword Array of DNS header flags.
dns.question.class keyword The class of records being queried.
dns.question.name keyword The name being queried.
dns.question.type keyword The type of record being queried.
dns.type keyword The type of DNS event captured, query or answer.
network.transport keyword Protocol Name corresponding to the field iana_number.
source.ip ip IP address of the source.
source.port long Port of the source.

Configure

As of now, the main solution to collect BIND logs leverages the Rsyslog recipe. Please share your experiences with other recipes by editing this documentation.

Rsyslog

This Section shows how to configure BIND to forward its events to your rsyslog server. The reader is also invited to consult the Rsyslog Transport documentation to forward these logs to Sekoia.io.

First, you need to configure your BIND daemon to log queries and forward them to your rsyslog instance. If rsyslog and BIND are installed on the same box, you can simply add the following statement in your BIND’s main configuration file:

logging {
        channel syslog_chan {
                syslog daemon;
                severity dynamic;
        };
        category default { syslog_chan; };
        category queries { syslog_chan; };
        category config { syslog_chan; };
        category security { syslog_chan; };
};

You can find more informations on how to configure your BIND instance on its official website.