
DNS Security Management
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions


Persons
Content
Preface xiii
Acknowledgments xvii
1 INTRODUCTION 1
Why Attack DNS? 1
Network Disruption 2
DNS as a Backdoor 2
DNS Basic Operation 3
Basic DNS Data Sources and Flows 4
DNS Trust Model 5
DNS Administrator Scope 6
Security Context and Overview 7
Cybersecurity Framework Overview 7
Framework Implementation 9
What's Next 15
2 INTRODUCTION TO THE DOMAIN NAME SYSTEM (DNS) 17
DNS Overview - Domains and Resolution 17
Domain Hierarchy 18
Name Resolution 18
Zones and Domains 23
Dissemination of Zone Information 25
Additional Zones 26
Resolver Configuration 27
Summary 29
3 DNS PROTOCOL AND MESSAGES 31
DNS Message Format 31
Encoding of Domain Names 31
Name Compression 32
Internationalized Domain Names 34
DNS Message Format 35
DNS Update Messages 43
The DNS Resolution Process Revisited 48
DNS Resolution Privacy Extension 55
Summary 56
4 DNS VULNERABILITIES 57
Introduction 57
DNS Data Security 57
DNS Information Trust Model 59
DNS Information Sources 60
DNS Risks 61
DNS Infrastructure Risks and Attacks 62
DNS Service Availability 62
Hardware/OS Attacks 63
DNS Service Denial 63
Pseudorandom Subdomain Attacks 67
Cache Poisoning Style Attacks 67
Authoritative Poisoning 71
Resolver Redirection Attacks 73
Broader Attacks that Leverage DNS 74
Network Reconnaissance 75
DNS Rebinding Attack 77
Reflector Style Attacks 78
Data Exfiltration 79
Advanced Persistent Threats 81
Summary 83
5 DNS TRUST SECTORS 85
Introduction 85
Cybersecurity Framework Items 87
Identify 87
Protect 87
Detect 88
DNS Trust Sectors 88
External DNS Trust Sector 91
Basic Server Configuration 93
DNS Hosting of External Zones 97
External DNS Diversity 97
Extranet DNS Trust Sector 98
Recursive DNS Trust Sector 99
Tiered Caching Servers 100
Basic Server Configuration 101
Internal Authoritative DNS Servers 103
Basic Server Configuration 105
Additional DNS Deployment Variants 108
Internal Delegation DNS Master/Slave Servers 109
Multi-Tiered Authoritative Configurations 109
Hybrid Authoritative/Caching DNS Servers 111
Stealth Slave DNS Servers 111
Internal Root Servers 111
Deploying DNS Servers with Anycast Addresses 113
Other Deployment Considerations 118
High Availability 118
Multiple Vendors 118
Sizing and Scalability 118
Load Balancers 119
Lab Deployment 119
Putting It All Together 119
6 SECURITY FOUNDATION 121
Introduction 121
Hardware/Asset Related Framework Items 122
Identify: Asset Management 122
Identify: Business Environment 123
Identify: Risk Assessment 124
Protect: Access Control 126
Protect: Data Security 127
Protect: Information Protection 129
Protect: Maintenance 130
Detect: Anomalies and Events 131
Detect: Security Continuous Monitoring 131
Respond: Analysis 132
Respond: Mitigation 132
Recover: Recovery Planning 133
Recover: Improvements 133
DNS Server Hardware Controls 134
DNS Server Hardening 134
Additional DNS Server Controls 136
Summary 137
7 SERVICE DENIAL ATTACKS 139
Introduction 139
Denial of Service Attacks 139
Pseudorandom Subdomain Attacks 141
Reflector Style Attacks 143
Detecting Service Denial Attacks 144
Denial of Service Protection 145
DoS/DDoS Mitigation 145
Bogus Queries Mitigation 147
PRSD Attack Mitigation 148
Reflector Mitigation 148
Summary 151
8 CACHE POISONING DEFENSES 153
Introduction 153
Attack Forms 154
Packet Interception or Spoofing 154
ID Guessing or Query Prediction 155
Name Chaining 155
The Kaminsky DNS Vulnerability 156
Cache Poisoning Detection 159
Cache Poisoning Defense Mechanisms 160
UDP Port Randomization 160
Query Name Case Randomization 161
DNS Security Extensions 161
Last Mile Protection 167
9 SECURING AUTHORITATIVE DNS DATA 169
Introduction 169
Attack Forms 170
Resolution Data at Rest 170
Domain Registries 170
DNS Hosting Providers 171
DNS Data in Motion 172
Attack Detection 172
Authoritative Data 172
Domain Registry 173
Domain Hosting 173
Falsified Resolution 173
Defense Mechanisms 174
Defending DNS Data at Rest 174
Defending Resolution Data in Motion with DNSSEC 176
Summary 186
10 ATTACKER EXPLOITATION OF DNS 187
Introduction 187
Network Reconnaissance 187
Data Exfiltration 188
Detecting Nefarious use of DNS 189
Detecting Network Reconnaissance 189
DNS Tunneling Detection 190
Mitigation of Illicit DNS Use 193
Network Reconnaissance Mitigation 193
Mitigation of DNS Tunneling 193
11 MALWARE AND APTS 195
Introduction 195
Malware Proliferation Techniques 196
Phishing 196
Spear Phishing 196
Downloads 196
File Sharing 197
Email Attachments 197
Watering Hole Attack 197
Replication 197
Implantation 197
Malware Examples 198
Malware Use of DNS 198
DNS Fluxing 198
Dynamic Domain Generation 202
Detecting Malware 202
Detecting Malware Using DNS Data 203
Mitigating Malware Using DNS 206
Malware Extrication 206
DNS Firewall 207
Summary 210
12 DNS SECURITY STRATEGY 213
Major DNS Threats and Mitigation Approaches 214
Common Controls 214
Disaster Defense 214
Defenses Against Human Error 220
DNS Role-Specific Defenses 220
Stub Resolvers 220
Forwarder DNS Servers 221
Recursive Servers 221
Authoritative Servers 222
Broader Security Strategy 222
Identify Function 223
Protect Function 224
Detect Function 225
Respond Function 226
Recover Function 227
13 DNS APPLICATIONS TO IMPROVE NETWORK SECURITY 229
Safer Web Browsing 230
DNS-Based Authentication of Named Entities (DANE) 230
Email Security 232
Email and DNS 233
DNS Block Listing 237
Sender Policy Framework (SPF) 238
Domain Keys Identified Mail (DKIM) 242
Domain-Based Message Authentication, Reporting, and
Conformance (DMARC) 245
Securing Automated Information Exchanges 246
Dynamic DNS Update Uniqueness Validation 246
Storing Security-Related Information 247
Other Security Oriented DNS Resource Record Types 247
Summary 251
14 DNS SECURITY EVOLUTION 253
Appendix A: Cybersecurity Framework Core DNS Example 257
Appendix B: DNS Resource Record Types 285
Bibliography 291
Index 299
1
INTRODUCTION
WHY ATTACK DNS?
The Domain Name System (DNS) is fundamental to the proper operation of virtually all Internet Protocol (IP) network applications, from web browsing to email, multimedia applications, and more. Every time you type a web address, send an email or access an IP application, you use DNS. DNS provides the lookup service to translate the website name you entered, for example, to its corresponding IP address that your computer needs to communicate via the Internet.
This lookup service is more commonly referred to as a name resolution process, whereby a worldwide web "www" address is resolved to its IP address. And a given web page may require several DNS lookups. If you view the source of a random web page, for example, count the number of link, hypertext reference (href), and source (src) tags that contain a unique domain name. Each of these stimulate your browser to perform a DNS lookup to fetch the referenced image, file or script, and perhaps pre-fetch links. And each time you click a link to navigate to a new page, the process repeats with successive DNS lookups required to fully render the destination page.
Email too relies on DNS for email delivery, enabling you to send email using the familiar user@destination syntax, where DNS identifies the destination's IP address for transmission of the email. And DNS goes well beyond web or email address resolution. Virtually every application on your computer, tablet, smartphone, security cameras, thermostats, and other "things" that access the Internet require DNS for proper operation. Without DNS, navigating and accessing Internet applications would be all but impossible.
Network Disruption
An outage or an attack that renders the DNS service unavailable or which manipulates the integrity of the data contained within DNS can effectively bring a network down from an end user perspective. Even if network connectivity exists, unless you already know the IP address of the site to which you'd like to connect and enter it into the browser address field, you'll be unable to connect, and you won't see any linked images or content.
Such an event of the unavailability of DNS will likely spur a flurry of old fashioned phone calls to your support desk or call center to politely report the problem. IP network administrators generally desire to minimize such calls to the support center, polite or otherwise, given that it forces those supporting the network to drop what they're doing and resolve the issue with the added pressure of visibility across the wider IT or Operations organization.
DNS as a Backdoor
Just as DNS is the first step in allowing users to connect to websites, it is likewise usable by bad actors to connect to internal targets within your enterprise and external command and control centers for updates and directives to perform nefarious tasks. Given the necessity of DNS, DNS traffic is generally permitted to flow freely through networks, exposing networks to attacks that leverage this freedom of communications for lookups or for tunneling of data out of the organization.
Thus, attacking DNS could not only effectively bring down a network from users' perspectives, leveraging DNS could enable attackers to communicate to malware-infected devices within the network to initiate internal attacks, to exfiltrate sensitive information, or to perform other malicious activity. Malware-infected devices may be enlisted to serve as remote robots or bots under the control of an attacker. A collection of such bots is referred to as a botnet. A botnet enables an attacker to enlist an army of devices potentially installed around the world to perform software programmable actions.
By its very nature, the global Internet DNS system serves as a distributed data repository containing domain names (e.g., for websites) and corresponding IP address information. The distributed nature of DNS applies not only to the global geographic distribution of DNS servers, but to the distribution of administration of the information published within respective domains of this repository. DNS has proven extremely effective and scalable in practice and most people take DNS for granted given this and its historical reliability. However, its essential function and decentralized architecture serve to attract attackers seeking to exploit the architecture and rich data store for sinister activities.
While DNS is the first step in IP communications, many enterprise security strategies trivialize or startlingly even ignore its role in communications and therefore its susceptibility to attacks on this vital network service or on the network itself. Most security strategies and solutions focus on filtering "in-band" communication flow in order to detect and mitigate cyber attacks. However, as we shall see, filtering DNS traffic can support a broader network security plan in providing additional information for use in identifying and troubleshooting attack incidents. This book is intended to provide details regarding the criticality of DNS, its vulnerabilities, and strategies you can implement to better secure your DNS infrastructure, which will in turn better secure your overall network.
DNS BASIC OPERATION
Figure 1.1 illustrates the basic flow of a DNS query. Upon entry of the desired destination by name, www.example.com in this case, software called a resolver is invoked by the application, for example, web browser. This resolver software is typically included with the device operating system. If a connection had recently been made to this website, its IP address may already be stored in the resolver cache. The resolver cache helps improve resolution performance by temporarily keeping track of recently resolved name-to-IP address mappings. In such a case, the resolver may return the IP address immediately to the application to establish a connection without having to query a DNS server.
Figure 1.1. Basic DNS Resolution Flow
If no relevant information exists in the resolver cache the device will query its recursive DNS server. The role of the recursive server is to locate the answer to the device's query. The recursive server is itself a resolver of the DNS query; we refer to the resolver on the originating device as a stub resolver as it initiates a query to its recursive server, and it relies solely on the recursive server to locate and return the answer. The stub resolver is configured with DNS server IP addresses to query as part of the IP network initialization process. For example, when a device boots up, it typically requests an IP address from a dynamic host configuration protocol (DHCP) server. The DHCP server can be configured to not only provide an IP address but the IP addresses of recursive DNS servers to which DNS queries should be directed. Use of DHCP in this manner facilitates mobility and efficiency as addresses can be shared and can be assigned based on the relevant point of connection to the IP network.
As we mentioned, the recursive DNS server's role is to resolve the query on behalf of the stub resolver. It performs this role using its own cache of previously resolved queries or by querying DNS servers on the Internet. The process of querying Internet DNS servers seeks to first locate a DNS server that is authoritative for the domain for which the query relates (example.com in this case) and then to query an authoritative server itself to obtain an answer that can be passed back to the client, thereby completing the resolution process. The location of the authoritative server is determined by querying Internet DNS servers that are responsible for the layers of the domain tree "above" or "to the right" of the domain in question. We'll discuss this process in more detail in Chapter 2. The recursive server caches the resolution information in order to respond more quickly to a similar query without having to re-seek the answer on the Internet.
To access your website, people need to know your web address, or technically your uniform resource locator or URL. And you need to publish this web address in DNS in the form of a resource record so browsers can locate your DNS servers and resolve your www address to your web server's IP address. Multiple, at least two, authoritative DNS servers must be deployed to provide services continuity in the event of a server outage. Generally, an administrator configures a master server that then replicates or transfers its domain information to one or more slave servers. We will discuss more details on this process and server roles in Chapter 2.
Basic DNS Data Sources and Flows
Figure 1.2 illustrates a subset of the various data stores for DNS data and corresponding data sources. The authoritative DNS servers must be configured to answer queries for domain name-to-IP address mappings for this domain for which they are authoritative. Depending on your DNS server vendor implementation, DNS configuration information may be supplied by editing text files, using a vendor graphical user interface (GUI) or deploying files from an IP address management (IPAM) system as shown in Figure 1.2. Each server generally relies on a configuration file and authoritative servers store DNS resolution information in zone files or a database. Some implementations utilize dynamic journal files to temporarily store...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.