SV-272435r1124068_rule
V-272435
SRG-APP-000439-DNS-000063
BIND-9X-002010
CAT I
10
Configure the BIND 9.x server to use TSIG keys.
Add a key statement to the "named.conf" file for TSIG that is being used:
key tsig_example. {
algorithm hmac-SHA256;
include "tsig-example.key";
};
Add key statements to the allow-transfer statements on a primary name server:
allow-transfer { key tsig_example.; };
Add key statements to the server statements on a secondary name server:
server <ip_address> {
keys { tsig_example };
};
Restart the BIND 9.x process.
If zone transfers are disabled with the "allow-transfer { none; };" directive, this is not applicable.
Verify that the BIND 9.x server is configured to uniquely identify a name server before responding to a zone transfer.
Inspect the "named.conf" file for the presence of TSIG key statements.
On the primary name server, this is an example of a configured key statement:
key tsig_example. {
algorithm hmac-SHA256;
include "tsig-example.key";
};
zone "disa.mil" {
type Primary;
file "db.disa.mil";
allow-transfer { key tsig_example.; };
};
On the secondary name server, this is an example of a configured key statement:
key tsig_example. {
algorithm hmac-SHA256;
include "tsig-example.key";
};
server <ip_address> {
keys { tsig_example };
};
zone "disa.mil" {
type Secondary;
Primarys { <ip_address>; };
file "db.disa.mil";
};
If a primary name server does not have a key defined in the "allow-transfer" block, this is a finding.
If a secondary name server does not have a server statement that contains a "keys" sub-statement, this is a finding.
V-272435
False
BIND-9X-002010
If zone transfers are disabled with the "allow-transfer { none; };" directive, this is not applicable.
Verify that the BIND 9.x server is configured to uniquely identify a name server before responding to a zone transfer.
Inspect the "named.conf" file for the presence of TSIG key statements.
On the primary name server, this is an example of a configured key statement:
key tsig_example. {
algorithm hmac-SHA256;
include "tsig-example.key";
};
zone "disa.mil" {
type Primary;
file "db.disa.mil";
allow-transfer { key tsig_example.; };
};
On the secondary name server, this is an example of a configured key statement:
key tsig_example. {
algorithm hmac-SHA256;
include "tsig-example.key";
};
server <ip_address> {
keys { tsig_example };
};
zone "disa.mil" {
type Secondary;
Primarys { <ip_address>; };
file "db.disa.mil";
};
If a primary name server does not have a key defined in the "allow-transfer" block, this is a finding.
If a secondary name server does not have a server statement that contains a "keys" sub-statement, this is a finding.
M
5687