Security Features¶
Ferrous DNS includes several security mechanisms to protect your network from DNS-based attacks and data exposure.
This page covers the dashboard and API surface plus the per-feature reference. The threat model for both the resolver and the dashboard, the resolver-side hardening (upstream response validation, 0x20, source-port rotation, DNSSEC downgrade detection) and an explicit list of what is not covered yet are in Security Hardening.
Authentication¶
Ferrous DNS provides session-based authentication to protect the dashboard and REST API.
First-Run Setup¶
On first launch (when no password is configured), Ferrous DNS shows a setup wizard. Set the admin password there, or with POST /ferrous/api/v1/auth/setup. Until a password is set, anyone who reaches the web port can set it, so do it before the port is reachable from other hosts. Two setups at once cannot both succeed: the second gets 409.
Session-Based Login¶
Users authenticate with username and password via the login page. On success, a session cookie (ferrous_session) is issued.
Password and recovery-code hashing runs off Tokio workers, with at most two admitted cryptographic jobs process-wide. Recovery-code batches occupy one job; disconnecting a client does not release its capacity until the computation finishes.
POST /ferrous/api/v1/auth/login
Content-Type: application/json
{
"username": "admin",
"password": "your-password"
}
| Option | Description |
|---|---|
| Remember Me | Extends session lifetime from session_ttl_hours (default 24h) to remember_me_days (default 30 days) |
| Rate Limiting | After login_rate_limit_attempts failed attempts (default 5) from one client, login is locked for login_rate_limit_window_secs (default 900s / 15 min) |
Login lockout¶
Wrong passwords and wrong second-factor codes (TOTP or recovery code) from one client count toward the same limit, on the dashboard login and on the Pi-hole compatible POST /api/auth alike. Once the limit is reached, every login from that client — even with the right password — gets 429 Too Many Requests until the window that opened with its first failure closes; a successful login clears the count. login_rate_limit_attempts = 0 turns the lockout off.
The client is the address of the TCP connection, never X-Forwarded-For: a header the client writes itself could be changed on every attempt to dodge the count. IPv6 clients are counted per /64. Behind a reverse proxy every login therefore arrives from the proxy's address and shares one count — a run of wrong passwords from anyone locks the login for everyone until the window closes.
Auth Guard¶
All API endpoints are protected by the auth guard middleware, except:
GET /ferrous/api/v1/auth/status— check if auth is enabledPOST /ferrous/api/v1/auth/setup— first-run password setupPOST /ferrous/api/v1/auth/login— loginPOST /ferrous/api/v1/auth/logout— logoutPOST /ferrous/api/v1/auth/2fa/verify,POST /ferrous/api/v1/auth/webauthn/authenticate/startandPOST /ferrous/api/v1/auth/webauthn/authenticate/finish— the second step of a login; each needs the challenge tokenPOST /auth/loginissuedPOST /ferrous/api/v1/auth/webauthn/discoverable/startandPOST /ferrous/api/v1/auth/webauthn/discoverable/finish— passwordless passkey login;startissues the tokenfinishtakesGET /ferrous/api/v1/health— health check; it tells only whether the server is up, and its version
Outside the API, these need no login either: the dashboard's static files, /ferrous-config.js (the API base and the version), each API's /openapi.json and /docs, /metrics when metrics_enabled = true, and DoH (/dns-query) when it is on.
Users and Roles¶
Besides the [auth.admin] account from the config file, users can be created under Settings > Users or via POST /ferrous/api/v1/users. The admin username is reserved: no database user can take it, even before the admin's password is set.
Each user has a role, admin or viewer. Roles are informational only: they are stored and displayed, but no endpoint checks them, so a viewer has the same access as an admin. Only create accounts for people you would trust with full control.
Session Management¶
View and revoke active sessions from Settings > Security or via the API:
Sessions are stored and listed under their handle, the SHA-256 of the token the cookie carries, so neither the list nor a copy of the database holds a cookie that signs anyone in. The address shown for a session is the TCP peer of its login, or the client a reverse proxy in trusted_proxies names.
Like every other protected endpoint, these are not restricted by role or owner: any signed-in user or API token can list every session and revoke any of them, the admin's included.
Password Change¶
Change the signed-in user's password from Settings > Security or via:
POST /ferrous/api/v1/auth/password
Content-Type: application/json
{
"current_password": "old-password",
"new_password": "new-password"
}
The change signs out every other session of that user, so any device still holding a session from before the change must log in again. The session that made the change stays signed in; other users' sessions are untouched.
Background Cleanup¶
A background task runs periodically to prune expired sessions from the database.
API Tokens¶
Named API tokens provide programmatic access to the Ferrous DNS API without requiring a session login. Tokens are ideal for automation scripts, monitoring integrations, and third-party tools.
Token Authentication¶
Include the token in the X-Api-Key header:
API tokens and session cookies are both valid authentication methods. The auth guard accepts either.
Token Management¶
GET /ferrous/api/v1/api-tokens # List all tokens (only prefix shown)
POST /ferrous/api/v1/api-tokens # Create a new token
PUT /ferrous/api/v1/api-tokens/{id} # Update token name or key
DELETE /ferrous/api/v1/api-tokens/{id} # Delete a token
Token storage
Tokens are stored as SHA-256 hashes. The full token is only returned once at creation time — save it immediately.
Import Custom Keys¶
You can bring an existing key, from a Pi-hole migration for example, as the token of POST /ferrous/api/v1/api-tokens, or put it in place of a token's key with PUT /ferrous/api/v1/api-tokens/{id}. A custom key needs at least 32 characters and no space or tab at either end, since nothing throttles guesses at X-Api-Key; Pi-hole's app passwords (44) and v5 API tokens (64) are long enough. Keys created before this minimum keep working.
Auth Configuration¶
[auth]
enabled = true # Enable authentication globally
session_ttl_hours = 24 # Session lifetime without "Remember Me"
remember_me_days = 30 # Session lifetime with "Remember Me"
login_rate_limit_attempts = 5 # Max failed attempts before lockout
login_rate_limit_window_secs = 900 # Lockout window (15 min)
[auth.admin]
username = "admin" # Admin username
password_hash = "" # Argon2id hash (written by the setup wizard)
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Enable or disable authentication globally |
session_ttl_hours | int | 24 | Default session lifetime in hours |
remember_me_days | int | 30 | Extended session lifetime when "Remember Me" is checked |
login_rate_limit_attempts | int | 5 | Max failed login attempts per client before lockout (0 disables the lockout) |
login_rate_limit_window_secs | int | 900 | Duration of lockout window in seconds |
username | str | admin | Admin username |
password_hash | str | "" | Argon2id password hash (written by the setup wizard) |
Setting the password hash
Use the setup wizard on first run to set the password interactively. The Argon2id hash is written to the config file automatically.
See Auth Configuration for full details.
DNSSEC Validation¶
DNSSEC (DNS Security Extensions) validates that DNS responses are authentic and have not been tampered with in transit.
dnssec_mode has three levels:
Off— no validation; the DNSSEC OK (DO) bit is not requested upstream.Permissive(default) — every upstream response is validated and tagged (Secure/Insecure/Bogus/Indeterminate) in the query log, but the response is delivered unchanged.Strict— a response that validates asBogusis rejected withSERVFAIL(+ Extended DNS Error code 6), and one whose chain of trust could not be fetched (Indeterminate) withSERVFAIL+ EDE 5, so forged or stripped responses never reach clients.
The AD (Authenticated Data) bit is set only when a response validates as Secure and the client did not set the CD (Checking Disabled) bit. A client that sets CD opts out of enforcement — Strict mode will not SERVFAIL its queries, so it can do its own validation. Validation is fail-closed: Insecure requires a signed proof of an unsigned delegation, so stripping signatures or denial records from a signed zone yields Bogus, not Insecure.
The queries_dnssec_bogus counter (dashboard + Prometheus ferrousdns_queries_dnssec_bogus) tracks how many responses failed validation.
Concurrent validations use a bounded validator pool. Requests wait in admission order and lease whichever validator is free, rather than waiting behind a particular busy slot. Completing or cancelling validation returns the validator before admitting the next waiter.
Standards: RFC 4035, RFC 6840, RFC 8914 (EDE)
Performance impact
DNSSEC validation adds a small overhead on cache misses (signature verification + per-zone DNSKEY/DS lookups, cached). Cache hits have zero DNSSEC overhead. Disable with dnssec_mode = "Off" only for maximum-throughput benchmarking.
Malware Detection¶
Ferrous DNS includes built-in DNS tunneling detection, DNS rebinding protection, and NXDomain hijack detection. See the dedicated Malware Detection page for full details, real-world attack examples, configuration reference, and comparison with other DNS servers.
PTR Block for Private Ranges¶
Prevent information leakage via reverse DNS lookups on private IP ranges:
When enabled, PTR queries for RFC-1918 addresses that are not in the local records are blocked. This prevents external DNS leakage of your internal network topology. A refused query gets the configured block response and shows in the query log as blocked, with block source private_ptr.
Non-FQDN Query Blocking¶
Block DNS queries for names that are not fully qualified domain names (FQDNs):
Non-FQDN queries (e.g. myserver without a domain suffix) can expose internal network information when forwarded to external resolvers. Blocking them keeps internal names local. A refused query gets the configured block response and shows in the query log as blocked, with block source non_fqdn.
PROXY Protocol v2¶
When Ferrous DNS is deployed behind a load balancer, PROXY Protocol v2 restores accurate client IPs for logging, client detection, and per-group policies:
Supported load balancers: HAProxy, AWS NLB, nginx (stream module), Traefik
Danger
Only enable when a trusted load balancer always injects the PROXY header. Without a load balancer in front, all TCP connections will fail.
HTTPS for Web UI¶
Ferrous DNS can serve the dashboard and REST API over HTTPS, encrypting all traffic between your browser and the server.
How It Works¶
When HTTPS is enabled, the web server uses a single port (default 8080) that automatically detects the protocol:
- TLS connections (browsers accessing
https://) are served normally over HTTPS - Plain HTTP connections receive a
301 Moved Permanentlyredirect tohttps://
This means you never need to configure separate HTTP and HTTPS ports.
Configuration¶
[server.web_tls]
enabled = false # Enable HTTPS for the dashboard and API
tls_cert_path = "/data/cert.pem" # Path to PEM certificate
tls_key_path = "/data/key.pem" # Path to PEM private key
| Option | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Enable HTTPS for the web server |
tls_cert_path | str | /data/cert.pem | Path to the PEM-encoded TLS certificate |
tls_key_path | str | /data/key.pem | Path to the PEM-encoded TLS private key |
The two paths are set in ferrous-dns.toml only. The dashboard and the API show them but cannot change them, and a backup import never restores them, because an upload or a generated certificate is written there.
Graceful fallback
If enabled = true but the certificate files are missing at startup, the server logs a warning and falls back to plain HTTP.
Managing Certificates via the UI¶
Navigate to Settings > Security > HTTPS / TLS to:
- Enable/disable HTTPS with a toggle
- View certificate status — subject, expiration date, and validity
- Upload certificates — drag and drop PEM certificate and key files
- Generate a self-signed certificate — instant HTTPS with one click (browsers will show a security warning, but the connection is encrypted)
Once the certificate the web server is serving has less than 21 days left, every dashboard page shows a warning, and the FerrousDnsCertificateExpiring rule fires for Prometheus.
Quick setup
Click Generate Self-Signed Certificate for immediate HTTPS without needing external certificates. For production, use Let's Encrypt or your CA.
TLS API Endpoints¶
GET /ferrous/api/v1/tls/status # Certificate status (exists, valid, subject, expiration)
POST /ferrous/api/v1/tls/upload # Upload cert + key (multipart/form-data)
POST /ferrous/api/v1/tls/generate?force=true # Generate self-signed certificate
Restart required
Changing HTTPS settings requires a server restart to take effect. The UI shows a "Restart Required" banner after saving.
Encrypted DNS Transports¶
Encrypting DNS traffic prevents:
- ISP surveillance — your DNS queries are not visible to your ISP
- Man-in-the-middle attacks — responses cannot be forged in transit
- DNS poisoning — combined with DNSSEC for end-to-end verification
See Encrypted DNS for setup.
DNS Rate Limiting¶
Ferrous DNS includes a token-bucket rate limiter that throttles abusive clients per subnet, protecting the server from query floods without affecting legitimate traffic.
How It Works¶
Each client subnet (default /24 for IPv4, /48 for IPv6) gets an independent token bucket for UDP and another for the stream transports (TCP, DoT, DoH, DoQ). Tokens refill at the configured queries_per_second rate, up to the burst_size capacity. When a subnet exhausts its UDP tokens, queries are either refused (REFUSED response code) or slipped (TC=1 truncated response forcing a TCP retry); over its stream budget they are refused.
Configuration¶
[dns.rate_limit]
enabled = true
queries_per_second = 1000 # sustained QPS per subnet
burst_size = 500 # token bucket capacity
ipv4_prefix_len = 24 # /24 groups the home LAN
ipv6_prefix_len = 48 # /48 standard home delegation
whitelist = ["127.0.0.0/8", "::1/128", "10.0.0.0/8"]
nxdomain_per_second = 50 # separate stricter budget for NXDOMAIN
slip_ratio = 2 # every 2nd rate-limited UDP response is TC=1
dry_run = false # true = log only, don't refuse
stale_entry_ttl_secs = 300 # evict idle subnet buckets after 5 min
The budgets apply per subnet, once for UDP and once for the stream transports (TCP, DoT, DoH, DoQ).
| Option | Default | Description |
|---|---|---|
enabled | false | Master switch for rate limiting |
queries_per_second | 1000 | Sustained token refill rate per subnet |
burst_size | 500 | Maximum tokens (allows short bursts above QPS) |
ipv4_prefix_len | 24 | IPv4 subnet grouping prefix length |
ipv6_prefix_len | 48 | IPv6 subnet grouping prefix length |
whitelist | [] | CIDRs that bypass rate limiting entirely |
nxdomain_per_second | 50 | Separate, stricter budget for NXDOMAIN answers; only an NXDOMAIN over it is limited. 0 = no NXDOMAIN budget |
slip_ratio | 0 | Every Nth rate-limited UDP response sends TC=1 instead of REFUSED. 0 = disabled |
dry_run | false | Log rate-limit events without refusing queries |
stale_entry_ttl_secs | 300 | Seconds before an idle subnet bucket is evicted |
TC=1 Slip Mechanism¶
When slip_ratio is set (e.g. 2), every Nth rate-limited UDP response is sent as a truncated response (TC=1 flag set) instead of REFUSED. This forces the client to retry over TCP, which:
- Verifies the client is a legitimate resolver (not a spoofed-source flood)
- Allows real clients to still get answers via TCP even when rate-limited on UDP: the retry spends the subnet's stream budget, which a spoofed UDP flood cannot drain
- Follows the same approach used by NSD and BIND
TCP, DoT, DoH and DoQ answers are never slipped; over the stream budget they are REFUSED.
NXDOMAIN Budget¶
The nxdomain_per_second setting provides a separate, stricter budget charged for each NXDOMAIN answer a subnet receives, like BIND's nxdomains-per-second. This catches malware and IoT devices that probe many random subdomains. Only an NXDOMAIN answer over the budget is limited (REFUSED or, over UDP, TC=1, or only logged under dry_run); the subnet's other queries are never refused because of it. NXDOMAINs from local_dns_server and internal pools are never charged. See Rate Limiting.
Dry-Run Mode¶
Set dry_run = true to log rate-limit events without actually refusing queries. This is useful for calibrating thresholds before enforcing limits in production. Rate-limited queries appear in the query log with status RATE_LIMITED and in the dashboard stats.
Recommended first deployment
Enable rate limiting with dry_run = true for 24-48 hours. Check the dashboard for false positives, then switch to dry_run = false once thresholds are validated.
TCP/DoT/DoQ Connection Limiting¶
Per-IP connection limits protect against TCP, DoT, and DoQ connection exhaustion:
[dns.rate_limit]
tcp_max_connections_per_ip = 30 # max concurrent TCP DNS connections per IP
dot_max_connections_per_ip = 15 # max concurrent DoT connections per IP
doq_max_connections_per_ip = 15 # max concurrent DoQ connections per IP
| Option | Default | Description |
|---|---|---|
tcp_max_connections_per_ip | 30 | Max concurrent TCP connections per IP. 0 = unlimited |
dot_max_connections_per_ip | 15 | Max concurrent DoT connections per IP. 0 = unlimited |
doq_max_connections_per_ip | 15 | Max concurrent DoQ connections per IP. 0 = unlimited |
Connections that exceed the limit are immediately closed. The connection counter is automatically decremented when a connection closes, preventing resource leaks.
Because a single QUIC connection multiplexes many streams, DoQ adds two further per-connection safeguards on top of the per-IP limit above (both fixed, not configurable):
- Concurrent stream cap — each DoQ connection may have at most 100 in-flight query streams at once, so one admitted connection cannot open unbounded streams.
- Stream read timeout — a stream that opens but does not deliver its complete length-prefixed query within 5 seconds is dropped, closing the slow-loris vector that QUIC keep-alive would otherwise keep alive.
Extended DNS Errors (RFC 8914)¶
Extended DNS Errors (EDE) is a DNS protocol extension defined in RFC 8914 that attaches a structured error code and an optional human-readable description to DNS error responses. This gives DNS clients and resolvers precise, machine-readable information about why a query failed — instead of a bare SERVFAIL, REFUSED, or NXDOMAIN.
How It Works¶
When Ferrous DNS rejects or fails to resolve a query, it appends an EDE option to the OPT record of the DNS response. The option contains two fields:
info_code— a standardised 16-bit code defined by the RFC (e.g.15forBLOCKED,6forDNSSEC_BOGUS)extra_text— a short human-readable string describing the specific reason (e.g."DGA domain detected","upstream connection timed out")
EDE is encoded as EDNS option code 15 inside the OPT record and is fully transparent to clients that do not understand it — they simply ignore the unknown option.
EDNS requirement
Ferrous DNS only includes an EDE option when the client itself advertised EDNS support by including an OPT record in its query. Clients that do not send EDNS queries receive the same error response as before, without the EDE option.
No configuration is required. EDE is always active.
Error Code Reference¶
| EDE Name | Code | Triggered by |
|---|---|---|
DNSSEC_BOGUS | 6 | DnssecValidationFailed — DNSSEC signature validation failed |
DNSKEY_MISSING | 9 | InsecureDelegation — insecure DNSSEC delegation |
BLOCKED | 15 | Blocked — domain matched the blocklist |
BLOCKED | 15 | DgaDomainDetected — DGA domain identified by statistical analysis |
BLOCKED | 15 | FilteredQuery — query refused by block_non_fqdn or block_private_ptr |
PROHIBITED | 18 | DnsTunnelingDetected — DNS tunneling activity detected |
PROHIBITED | 18 | DnsRateLimited — client subnet exceeded the rate limit budget |
NO_REACHABLE_AUTHORITY | 22 | QueryTimeout — upstream query timed out before responding |
NO_REACHABLE_AUTHORITY | 22 | TransportNoHealthyServers — no upstream server is currently healthy |
NO_REACHABLE_AUTHORITY | 22 | TransportAllServersUnreachable — all configured upstream servers are unreachable |
NETWORK_ERROR | 23 | TransportTimeout — upstream TCP/TLS connection timed out |
NETWORK_ERROR | 23 | TransportConnectionRefused — upstream server actively refused the connection |
NETWORK_ERROR | 23 | TransportConnectionReset — upstream server reset the TCP/TLS connection |
Debugging with EDE
DNS clients like dig display EDE data automatically. Use dig +edns=0 example.com @your-server to confirm EDNS support, then inspect the OPT PSEUDOSECTION in the response for the EDE info code and extra text.
Scope¶
EDE is applied in both DNS code paths:
- Standard path — the Hickory
handle_requesthandler that processes TCP, DoT, DoH, DoQ, and H3 queries - Raw UDP fallback path — the
handle_raw_udp_fallbackhandler for high-throughput UDP resolution
This ensures consistent error reporting regardless of the transport protocol used by the client.
DNS Cookies (RFC 7873)¶
DNS Cookies (RFC 7873) are a lightweight, stateless anti-spoofing mechanism for UDP DNS. Because UDP has no handshake, a resolver cannot normally verify that a query's source IP is genuine. An attacker can forge queries from a victim's address, causing the server to flood the victim with large responses (amplification attack) or inject a forged answer before the real upstream replies (cache poisoning via spoofing). DNS Cookies solve this by binding each client–server pair with a cryptographic token that cannot be forged without knowledge of the server's secret key.
How It Works¶
The handshake proceeds in three stages:
Stage 1 — Bootstrap (first query from this client)
Client → Server: query [EDNS OPT: client_cookie=<8-byte random>]
Server → Client: answer [EDNS OPT: client_cookie=<echo> | server_cookie=<HMAC>]
The server computes:
server_cookie = HMAC-SHA256(window_key, client_ip ‖ client_cookie)[0..8]
(window_key is the current rotation window's key, see Stage 3)
The client stores this server_cookie for future queries.
Stage 2 — Valid cookie (subsequent queries)
Client → Server: query [EDNS OPT: client_cookie=<same> | server_cookie=<cached>]
Server validates: recomputes HMAC and compares → match → trusted client
Server → Client: answer [EDNS OPT: refreshed server_cookie]
Stage 3 — Secret rotation
Every secret_rotation_secs, the server starts signing with a new key:
window_key = HMAC-SHA256(secret, label ‖ floor(unix_time / secret_rotation_secs))
The previous window's key remains accepted, so in-flight clients are not
abruptly rejected — they receive a new cookie in the response and update
their cache silently. Servers sharing server_secret derive the same keys.
Protection Against UDP Spoofing¶
When a client has negotiated a valid server cookie, the server can confirm with high confidence that subsequent queries originate from the same IP. An attacker spoofing the victim's source address does not know the server's HMAC secret and cannot reproduce the correct server cookie, so:
- Amplification attacks — in strict mode, a UDP query without a valid cookie gets a small
BADCOOKIEorREFUSEDreply and never an answer, even when the answer is in the cache, so the server cannot be used as a reflector. Permissive mode answers every query. - Cache poisoning — an attacker cannot inject a forged response without matching the cookie the client presented, dramatically narrowing the race window.
Strict Mode Responses¶
In strict mode (require_valid_cookie = true), a UDP query without a valid server cookie is not resolved:
- With a client cookie but no server cookie, or a stale or forged one: RCODE
BADCOOKIE(23), carrying a fresh server cookie (RFC 7873 §5.2.3–§5.2.4). An RFC 7873 client retries with it and is answered. - With no cookie at all: RCODE
REFUSED. - Both carry EDE info_code
18: Prohibited, with the text "missing or invalid DNS cookie" (RFC 8914 §4.19). - Each refusal shows in the Query Log as blocked, with the source DNS Cookie and the rcode the client got. The rate limiter runs first, so a spoofed flood past the budget is logged as rate-limited instead.
The Query Log also marks every query that carried a cookie with a cookie icon after its transport: green for a server cookie this server issued, gray for a client cookie alone, amber for a server cookie that is not ours. The Cookie filter finds them.
Queries over TCP, DoT, DoH and DoQ are not checked: their handshake already proves the client's address, which is all a server cookie proves (RFC 7873 §5.2.3), and DoH clients never send a cookie.
Fast Path Behaviour¶
Every reply to a query that carries a cookie echoes that cookie beside a fresh server cookie: cache hits of every type (A/AAAA included), errors, blocked answers and truncated (TC=1) replies alike. RFC 7873 §5.3 requires it, because a client that has learned the server cookie discards any reply without one. c-ares, the resolver behind Alpine's curl and git, does exactly that and times out. Only queries that carry a cookie pay for the HMAC. In strict mode the inline UDP cache path is off: every UDP query, cache hits included, goes through the full path, which validates its cookie.
Configuration¶
[dns.dns_cookies]
enabled = true # on by default
server_secret = "" # empty = ephemeral secret (not for production)
secret_rotation_secs = 3600 # rotate every hour; 0 = never
require_valid_cookie = false # permissive mode (recommended default)
The section is nested under [dns]
A top-level [dns_cookies] table is silently ignored — the settings look applied but the defaults stay in force. If server_secret seems not to take effect, check the nesting first.
See DNS Cookies configuration for the full option reference and strict-mode setup.
Upcoming Security Features¶
The following are planned for future releases:
| Feature | Description |
|---|---|
| Read-Only Mode | Disable config changes via a flag |
| API request throttling | A general request rate limit for the REST API — see Security Hardening |
| Enforcing DS-denial checks | Turn the current downgrade detection into an opt-in strict mode |
| RFC 5011 trust anchor rollover | Track root key rolls without a new release |
Security Advisories¶
Vulnerabilities are reported privately (SECURITY.md) and published as GitHub security advisories once a release fixes them.
An external review of the DNS message parsing, the authentication and both HTTP APIs is planned (#392); this page will say when it happened and how far it went.
Current Security Posture¶
| Mechanism | Status |
|---|---|
| DNSSEC validation | permissive by default, strict to SERVFAIL on Bogus/Indeterminate |
| DNSSEC downgrade (DS denial) | /ferrous/api/v1/dnssec/stats |
| Upstream response validation (txid + question + source) | |
| Upstream source-port rotation | |
| 0x20 QNAME case randomization | qname_case_randomization, off by default |
| DNS tunneling detection | |
| DNS rebinding protection | |
| NXDomain hijack detection | |
| DNS Cookies (RFC 7873) | |
| Extended DNS Errors (RFC 8914) | |
| Encrypted upstream (DoH/DoT/DoQ) | |
| Server-side DoT/DoH | |
| PROXY Protocol v2 | |
| Dashboard authentication | |
| API token authentication | |
| HTTPS dashboard | |
| DNS rate limiting | |
| TCP/DoT connection limiting | |
| TOTP / 2FA (authenticator app) | |
| Passkeys / WebAuthn (second factor + passwordless) | |
| API request rate limiting | |
| Security response headers (framing, sniffing, referrer) | /metrics and DoH on web_port |
| Script Content-Security-Policy | |
| Role enforcement | |
| Login attempt throttling / lockout |