OpenParable
Skip to content
← Back to skills

Cis Bind V100 7 1

DevOps & Security
cis-bind-v100-7-1

Cis Bind V100 7 1 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Do Not Define a Static Source Port (Automated)

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Server_Software/Bind/CIS_ISC_BIND_DNS_Server_9.11_Benchmark_v1.0.0/cis-bind-v100-7-1/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-bind-v100-7-1, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

CIS 7.1 — Do Not Define a Static Source Port

Profile Applicability

  • Authoritative Name Server Level 1
  • Caching Only Name Server Level 1

Description

BIND can be configured to always use the same source port when communicating with other DNS servers. This capability is made possible through the query-source port option, and the query-source-v6 port option. It is recommended that the source port be omitted if the query-source option is used, or that the port be specified as a *, so that the port will not be a static port number.

Rationale

DNS attacks which involve spoofing a bogus DNS reply may require the attacker to guess the source port number of the request, if the attacker is unable to see the initial DNS query. Making the source port static makes the attack easier, as it eliminates the effort of getting the correct destination port number for the spoofed reply. Instead of a static source port, the port number should be selected randomly from the client ephemeral ports.

Impact

Not specified in the PDF.

Audit Procedure

Verify that a static port is not specified in a query-source option or a query-source-v6 option, using the command below.

$ egrep '^\W*query-source' $CONFIG_FILES | grep port
/etc/named.conf:     query-source address 10.1.45.53 port *;

If there is no output from the grep or if the port number is specified as *, then the configuration is compliant. Examples of a non-compliant configurations are shown below.

query-source port 1053;

query-source port-v6 53;

Remediation

Either remove the port specification from the query-source or the query-source-v6 option or use an * for the port number.

Default Value

The default is to not use a static source port for queries.

References

Not specified in the PDF.

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v69 Limitation and Control of Network Ports, Protocols, and ServicesYYY
v79.2 Ensure Only Approved Ports, Protocols and Services Are RunningYYY

MITRE ATT&CK Mappings

TacticTechnique
Credential AccessT1557 - Adversary-in-the-Middle
Defense EvasionT1562 - Impair Defenses
Command and ControlT1071.004 - Application Layer Protocol: DNS

Profile

  • Level 1 - Authoritative Name Server
  • Level 1 - Caching Only Name Server