Understand the Network Security Model for public-IP detection
mainThe security model for cloudflare-ddns focuses on the correctness of the raw data used for public-IP detection. The primary goal is to prevent an attacker from forcing the updater to publish an attacker-chosen IP address in managed DNS records or WAF content.
Trust Boundary and Attacker Model
- Trust Boundary: The network path used by public-IP detection.
- Attacker Model: The system is designed to resist
off-pathattacks (where an attacker injects traffic without controlling the route). - Limitation: If an attacker is
on-path(can observe or alter traffic on the route), no DDNS updater can guarantee security through application-layer logic alone.
Security Protections
- The updater uses HTTPS for connections to Cloudflare. This provides higher resistance to
off-pathpacket forgery and DNS spoofing compared to traditional DNS-based public-IP detection.
Unsafe Scenarios (When to use Static IPs instead)
Do not rely on this updater if an attacker can become on-path for the network path. Secure public-IP detection is impossible in the following scenarios:
- Unsafe Wi-Fi: Using networks like WPA2 Enterprise without server identity verification.
- Traffic Interception: If an adversary can intercept traffic near Cloudflare's servers.
- Network Path Access: If an adversary can access the physical cable, broader network path, or country-scale firewalls.
Note: HTTPS protects the content of the communication but does not protect source or destination IP addresses.