DNS Tunneling Detection via IP Address Discrepancy Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for detecting DNS tunneling are not accurate enough, as they do not effectively compare the IP addresses in DNS responses with those accessed in overall network communication, allowing malicious data exfiltration and botnet command and control activities to go undetected.

Innovation Solution

A method that compares DNS query logs with network communication data to identify discrepancies between IP addresses returned in DNS responses and those actually accessed, triggering alerts for abnormal behavior indicative of DNS tunneling, and can be integrated with machine-learning models for enhanced detection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If DNS traffic is allowed to bypass firewalls, then DNS services remain functional for legitimate purposes, but DNS tunneling attacks can exploit this to exfiltrate data and establish botnet command and control channels

Engineering Contradiction:
ImproveDNS service functionalityVSAvoidDNS tunneling attacks
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The patent introduces an intermediary detection system that sits between the DNS resolver and the authoritative DNS servers. This intermediary monitors and analyzes DNS query patterns, response characteristics, and traffic behavior to identify tunneling activities while allowing legitimate DNS traffic to pass through unchanged, thus maintaining DNS functionality while blocking attacks

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system implements feedback mechanisms by continuously monitoring DNS traffic patterns and using machine learning models to adapt to new tunneling techniques. The detection system provides feedback about suspicious activities to block or flag problematic queries, while continuously learning from new data to improve detection accuracy over time

Inventive Principle:
Principle #23Feedback

2Ease of manufacture

If traditional DNS detection methods are used, then implementation is simple, but detection accuracy is insufficient to identify tunneling activities

Engineering Contradiction:
ImproveDetection system implementationVSAvoidTunneling detection accuracy
Core Design Contradiction:
Ease of manufactureVSMeasurement precision

Solution Approach 1:

The patent combines multiple detection approaches including traditional rule-based methods, statistical analysis of DNS query patterns, machine learning models, and correlation with network communication data. By merging these different detection techniques, the system achieves high detection accuracy while maintaining practical implementability through a unified detection framework

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The detection system is designed to be multi-functional, capable of detecting various types of DNS tunneling techniques (data exfiltration, botnet C&C, command execution) using a single unified platform that can adapt to different attack patterns through configurable detection rules and machine learning models

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Reliability

If DNS queries are monitored and filtered, then tunneling detection improves, but legitimate DNS traffic may be blocked causing service disruption

Engineering Contradiction:
ImproveTunneling detection reliabilityVSAvoidDNS service throughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system applies partial action by not blocking all DNS traffic but only filtering suspicious queries identified through detection algorithms. Legitimate DNS traffic passes through with minimal intervention, while only potentially malicious queries are blocked or flagged for further analysis, maintaining high throughput for normal operations

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The detection system segments DNS traffic into different categories (legitimate, suspicious, malicious) and applies different handling strategies to each segment. This segmentation allows the system to maintain high productivity for legitimate traffic while applying rigorous detection and blocking only to suspicious segments, thus preserving overall service throughput

Inventive Principle:
Principle #1Segmentation

Data Source

PatentEP3603032B1Detecting domain name system (DNS) tunneling based on DNS logs and network data
Publication Date: 2022.03.30 MICROSOFT TECHNOLOGY LICENSING LLC
  • EP3603032B1 patent drawingFigure 1~2
  • EP3603032B1 patent drawingFigure 3
  • EP3603032B1 patent drawingFigure 4~5

AI summary

A system to detect domain name server tunneling includes a processor and machine readable instructions stored on a tangible machine readable medium, which when executed by the processor, configure the processor to collect, during a predetermined time period, responses received from a domain name server to queries sent to the domain name server by a computing device, the responses including internet protocol (IP) addresses; collect IP addresses accessed by the computing device during the predetermined time period; compare the IP addresses received by the computing device in the responses from the domain name server to the IP addresses accessed by the computing device; and detect domain name server tunneling based on the comparison.