| RFC 0 | NHP | January 2026 |
| Chen | Expires 5 July 2026 | [Page] |
The Network-Infrastructure Hiding Protocol (NHP) is a cryptography-based session-layer protocol designed to operationalize Zero Trust principles by concealing protected network resources from unauthorized entities. NHP enforces authentication-before-connect access control, rendering IP addresses, ports, and domain names invisible to unauthorized users. This document defines the protocol architecture, cryptographic framework, message formats, and workflow to enable independent implementation of NHP. It represents the third generation of network hiding technology—evolving from first-generation port knocking to second-generation Single-Packet Authorization (SPA) and now to NHP with advanced asymmetric cryptography, mutual authentication, and scalability for modern threats. This specification also provides guidance for integration with Software-Defined Perimeter (SDP), DNS, FIDO, and Zero Trust policy engines.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://OpenNHP.github.io/ietf-rfc-nhp/draft-opennhp-saag-nhp.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-opennhp-saag-nhp/.¶
Discussion of this document takes place on the SAAG Working Group mailing list (mailto:saag@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/saag/. Subscribe at https://www.ietf.org/mailman/listinfo/saag/.¶
Source for this draft and an issue tracker can be found at https://github.com/OpenNHP/ietf-rfc-nhp.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 5 July 2026.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
Since its inception in the 1970s, the TCP/IP networking model has prioritized openness and interoperability, laying the foundation for the modern Internet. However, this design philosophy also exposes systems to reconnaissance and attack. As Vint Cerf, who personally designed many of these components, stated, "We didn't focus on how you could wreck this system intentionally."¶
Today, the cyber threat landscape has been dramatically reshaped by the rise of AI-driven attacks, which bring unprecedented speed and scale to vulnerability discovery and exploitation. Automated tools continuously scan the global network space, identifying weaknesses in real-time. Large Language Models (LLMs) can now autonomously exploit one-day vulnerabilities, and AI systems can generate working exploits for published CVEs in minutes. As a result, the Internet is evolving into a "Dark Forest," where visibility equates to vulnerability. In such an environment, any exposed service becomes an immediate target.¶
The Zero Trust model, which mandates continuous verification and eliminates implicit trust, has emerged as a modern approach to cybersecurity. Within this context, the Network-Infrastructure Hiding Protocol (NHP) offers a new architectural element: authenticated-before-connect access at the session layer.¶
NHP builds upon foundational work in the Cloud Security Alliance's Software-Defined Perimeter (SDP) and Single-Packet Authorization (SPA) frameworks, representing the third generation of network hiding technology:¶
First Generation - Port Knocking: Simple port sequences vulnerable to interception and replay attacks.¶
Second Generation - SPA: Encrypted single-packet authorization with improved security but limited scalability.¶
Third Generation - NHP: Advanced asymmetric cryptography, mutual authentication, Noise Protocol-based key exchange, and enterprise-grade scalability.¶
This document outlines the motivations behind NHP, its design objectives, message structures, integration options, and security considerations for adoption within Zero Trust frameworks.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The following terms are used throughout this document:¶
Network-Infrastructure Hiding Protocol¶
The client-side component that initiates NHP communication¶
The control-plane service that validates requests and makes access decisions¶
NHP Access Controller, the enforcement component near protected resources¶
Single-Packet Authorization¶
Software-Defined Perimeter¶
Zero Trust Architecture¶
Elliptic Curve Cryptography¶
Authenticated Encryption with Associated Data¶
Authorization Service Provider¶
Policy Enforcement Point¶
Key Generation Center¶
The NHP protocol is designed to achieve the following objectives:¶
Infrastructure Invisibility: Eliminate unauthorized network visibility by enforcing authentication prior to session establishment. Protected resources remain invisible to unauthorized scanners and attackers.¶
Session Layer Operation: Operate at OSI Layer 5, complementing existing TCP, UDP, and QUIC transports without requiring changes to underlying network infrastructure.¶
Decentralized Trust: Support decentralized trust using asymmetric cryptography and ephemeral key exchange, eliminating single points of trust failure.¶
Fine-Grained Access Control: Enable context-based policy enforcement across heterogeneous environments, supporting least-privilege access.¶
Integration Capability: Integrate with existing Zero Trust controllers, SDP gateways, identity systems (IAM), DNS infrastructure, and FIDO authentication.¶
Scalability: Support enterprise-scale deployments with clustered servers, distributed access controllers, and multi-tenant isolation.¶
AI Threat Mitigation: Reduce the attack surface against AI-driven reconnaissance and exploitation by denying visibility before authentication.¶
NHP and TLS (Transport Layer Security) are complementary protocols that operate at different OSI layers and serve distinct security purposes. This section clarifies their differences and how they work together.¶
+-------------------+
| Application (L7) | HTTP, SMTP, SSH, etc.
+-------------------+
↓
+-------------------+
| Presentation (L6) | TLS/SSL - Data encryption & integrity
+-------------------+
↓
+-------------------+
| Session (L5) | NHP - Authentication before connection
+-------------------+
↓
+-------------------+
| Transport (L4) | TCP, UDP, QUIC
+-------------------+
↓
+-------------------+
| Network (L3) | IP
+-------------------+
¶
| Aspect | NHP (Layer 5) | TLS (Layer 6) |
|---|---|---|
| Primary Purpose | Infrastructure hiding and access control | Data encryption and integrity |
| When Authentication Occurs | BEFORE connection establishment | AFTER TCP connection established |
| Service Visibility | Services are INVISIBLE to unauthorized users | Services are VISIBLE, communication is encrypted |
| Attack Surface | Eliminates pre-authentication attack surface | Protects data in transit, but service ports remain exposed |
| Port Exposure | No ports exposed until authenticated | Ports must be open to initiate TLS handshake |
| Vulnerability Window | None—no connection without authentication | TLS handshake vulnerabilities can be exploited |
TLS provides excellent protection for data in transit, but it has a fundamental limitation: the service must be reachable to initiate the TLS handshake. This creates a pre-authentication attack window:¶
Traditional TLS Flow:
Attacker ──────► Open Port 443 ──────► TLS Handshake ──────► Authentication
↑
Service is VISIBLE
Port scan succeeds
Pre-auth exploits possible
¶
NHP + TLS Flow:
Attacker ──────► No Open Ports ──────► BLOCKED (Service Invisible)
↑
Cannot discover service
Port scan fails
Authorized ──────► NHP Knock ──────► Port Opens ──────► TLS ──────► Application
User ↑ ↑
Authenticated Encrypted
BEFORE connect data transfer
¶
NHP and TLS are designed to work together, not replace each other:¶
NHP provides: Authentication-before-connect, infrastructure invisibility, access control¶
TLS provides: Data encryption, integrity verification, server authentication¶
A complete Zero Trust deployment SHOULD use both:¶
| Vulnerability Type | TLS Protection | NHP Protection |
|---|---|---|
| Port scanning and service discovery | ✗ None | ✓ Service invisible |
| Pre-authentication exploits (e.g., Heartbleed) | ✗ Vulnerable | ✓ No connection possible |
| TLS implementation bugs before handshake | ✗ Vulnerable | ✓ No handshake initiated |
| DDoS attacks on exposed services | ✗ Service reachable | ✓ Service hidden |
| Credential stuffing on login pages | ✗ Page accessible | ✓ Page invisible |
| Zero-day exploits before authentication | ✗ Service exposed | ✓ Service protected |
NHP alone does not encrypt application data—it only controls access. TLS alone does not hide services—it only encrypts traffic. Together, they provide defense in depth:¶
Without NHP: Attackers can scan, probe, and exploit services before any authentication occurs¶
Without TLS: Authorized traffic would be transmitted in plaintext after NHP grants access¶
With Both: Services are invisible to attackers, and all authorized traffic is encrypted¶
This layered approach aligns with Zero Trust principles: never trust, always verify, and minimize attack surface at every layer.¶
NHP is designed to mitigate the following threat categories:¶
Automated scanning tools and AI-driven reconnaissance continuously probe Internet-facing services. NHP eliminates the ability to discover protected resources by requiring cryptographic authentication before any network visibility is granted.¶
Many vulnerabilities can be exploited before authentication occurs. By enforcing authentication-before-connect, NHP prevents attackers from reaching vulnerable services.¶
NHP reduces DDoS attack surface by hiding service endpoints. Attackers cannot target what they cannot discover.¶
NHP uses ephemeral keys and timestamp-based nonces to prevent credential replay attacks. Each session requires fresh cryptographic material.¶
Mutual authentication using asymmetric cryptography ensures both parties verify each other's identity before establishing communication.¶
NHP operates as a distributed session-layer protocol that enforces authentication-before-connect access between clients and protected resources.¶
The NHP-Agent is a client-side process, SDK, or embedded module that initiates communication with the protected network. Its responsibilities include:¶
The NHP-Server is the core control-plane service responsible for:¶
Receiving and validating NHP-KNK messages from NHP-Agents¶
Authenticating the NHP-Agent identity and device posture¶
Interfacing with external Authorization Service Providers (ASP) or IAM systems¶
Evaluating access policies based on identity, context, and resource attributes¶
Instructing NHP-AC components to open or close access paths¶
Managing session state and expiration¶
Functionally, the NHP-Server maps to the Policy Administrator role defined in NIST SP 800-207 Zero Trust Architecture.¶
The NHP-AC is the enforcement component residing logically or physically near protected resources. Its responsibilities include:¶
Maintaining default-deny firewall rules for all protected resources¶
Receiving NHP-AOP (AC Operations) commands from the NHP-Server¶
Temporarily opening access paths for authorized NHP-Agents¶
Automatically reverting to default-deny state when sessions expire¶
Reporting access logs and status to the NHP-Server¶
The NHP-AC corresponds to the Policy Enforcement Point (PEP) in NIST SP 800-207 terminology.¶
The following diagram illustrates the relationship between NHP components:¶
+-------------+ +-------------+ +-------------+
| | NHP-KNK | | Auth | |
| NHP-Agent |--------->| NHP-Server |<-------->| ASP |
| |<---------| | Query | (IAM) |
+-------------+ NHP-ACK +-------------+ +-------------+
| |
| | NHP-AOP
| v
| +-------------+
| NHP-ACC | |
+----------------->| NHP-AC |
| | |
v +-------------+
+-------------+ |
| Protected |<---------------+
| Resource | Data Plane
+-------------+
¶
NHP components can be deployed in different configurations:¶
For small environments or testing scenarios, the NHP-Server and NHP-AC can coexist on the same host. This configuration simplifies setup while maintaining full protocol compliance.¶
In enterprise or cloud environments, multiple NHP-Servers can be deployed in a load-balanced cluster. Each server manages a pool of NHP-AC instances distributed across data centers or network segments. The NHP-Agent dynamically discovers the nearest NHP-Server through DNS or bootstrap configuration.¶
Edge nodes (e.g., gateways, routers, or micro-segmentation agents) can host lightweight NHP-AC components. These edge ACs enforce fine-grained policies close to workloads, improving latency and fault isolation.¶
In service-provider or multi-cloud environments, each tenant can operate an independent NHP-Server while sharing an underlying AC infrastructure. The NHP protocol's namespace isolation ensures complete tenant separation through identity-scoped keys and per-tenant policy databases.¶
The Control Plane carries cryptographic authentication and authorization information among NHP-Agent, NHP-Server, NHP-AC, and optional external ASP. Control plane messages are encrypted using Noise Protocol handshakes.¶
The Data Plane carries application data between the resource requester (NHP-Agent host) and the protected resource, but only after NHP-AC explicitly authorizes access.¶
This strict separation enforces the authenticate-before-connect principle central to Zero Trust.¶
The complete NHP workflow consists of the following steps:¶
Knock Request: NHP-Agent sends NHP-KNK message to NHP-Server containing encrypted identity claims and access request.¶
Authorization Query: NHP-Server validates the cryptographic envelope and queries ASP for authorization decision.¶
Authorization Response: ASP returns authorization decision with granted permissions and session parameters.¶
Door Opening: NHP-Server sends NHP-AOP command to NHP-AC instructing it to open access for the specific NHP-Agent.¶
AC Confirmation: NHP-AC enforces the access rule and replies with NHP-ART confirming the operation.¶
Agent Notification: NHP-Server sends NHP-ACK to NHP-Agent with access token and connection parameters.¶
Resource Access: NHP-Agent sends NHP-ACC to NHP-AC and establishes data plane connection to protected resource.¶
Session Maintenance: NHP-Server and NHP-AC maintain session state through NHP-KPL keepalive messages.¶
Logging and Audit: NHP-AC uploads access logs via NHP-LOG messages for compliance and auditing.¶
NHP-Agent NHP-Server NHP-AC ASP/IAM
| | | |
|--- NHP-KNK ------->| | |
| |--- Auth Query -----|------------------>|
| |<-- Auth Result ----|-------------------|
| | | |
| |--- NHP-AOP ------->| |
| |<-- NHP-ART --------| |
| | | |
|<-- NHP-ACK --------| | |
| | | |
|--- NHP-ACC --------|------------------>| |
|<================== Data Session ======>| |
| | | |
| |<-- NHP-LOG --------| |
| |--- NHP-LAK ------->| |
| | | |
¶
NHP employs the Noise Protocol Framework [NoiseFramework] for all cryptographic operations. This section defines the required cryptographic primitives and handshake patterns.¶
Implementations MUST support the following cryptographic primitives:¶
| Function | Algorithm | Reference |
|---|---|---|
| DH | Curve25519 | RFC 7748 |
| Cipher | ChaCha20-Poly1305 | RFC 8439 |
| Hash | SHA-256 | RFC 6234 |
| Key Derivation | HKDF | RFC 5869 |
Implementations MAY additionally support:¶
| Function | Algorithm | Reference |
|---|---|---|
| DH | P-256 (secp256r1) | RFC 8422 |
| Cipher | AES-256-GCM | RFC 5116 |
| Hash | BLAKE2s | RFC 7693 |
NHP supports the following Noise handshake patterns:¶
The XX pattern provides full forward secrecy and identity protection for both parties. It is the RECOMMENDED pattern for most deployments.¶
XX: -> e <- e, ee, s, es -> s, se¶
The IK pattern is used when the NHP-Agent knows the NHP-Server's static public key in advance, reducing round trips.¶
IK: <- s ... -> e, es, s, ss <- e, ee, se¶
The K pattern is used for one-way initiation where only the initiator needs to be authenticated by the responder.¶
K: <- s ... -> e, es, ss¶
Each NHP component maintains a static Curve25519 key pair:¶
NHP-Agent: Used for client identity and authentication¶
NHP-Server: Used for server identity and authentication¶
NHP-AC: Used for secure communication with NHP-Server¶
Static public keys MUST be distributed through a secure out-of-band mechanism or registered through the NHP-REG message flow.¶
Ephemeral keys are generated for each session to provide forward secrecy. Implementations MUST use cryptographically secure random number generators for ephemeral key generation.¶
Static keys SHOULD be rotated periodically. The NHP-REG and NHP-RAK messages support key re-registration without service interruption.¶
All NHP messages share a common header structure followed by an encrypted payload.¶
The NHP message header is 32 bytes with the following structure:¶
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Version | Type | Flags | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + Nonce (96 bits) + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + Timestamp (64 bits) + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload Length | Header Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Protocol version. Current version is 0x01.¶
Message type code. See Section 9.2.¶
Control flags: * Bit 0: Compression enabled * Bit 1: Fragmentation flag * Bit 2: Priority message * Bits 3-7: Reserved¶
Reserved for future use. MUST be set to zero.¶
Unique nonce for AEAD encryption. MUST be unique per message within a session.¶
UNIX epoch time in milliseconds. Used for replay protection.¶
Length of the encrypted payload in bytes.¶
CRC-16 checksum of the header for integrity verification.¶
| Type Code | Name | Direction | Description |
|---|---|---|---|
| 0x00 | NHP-KPL | Any | Keepalive message |
| 0x01 | NHP-KNK | Agent→Server | Knock request |
| 0x02 | NHP-ACK | Server→Agent | Knock acknowledgment |
| 0x03 | NHP-AOP | Server→AC | AC operation command |
| 0x04 | NHP-ART | AC→Server | AC operation result |
| 0x05 | NHP-LST | Agent→Server | Resource list request |
| 0x06 | NHP-LRT | Server→Agent | Resource list response |
| 0x07 | NHP-COK | Server→Agent | Cookie for session resumption |
| 0x08 | NHP-RKN | Agent→Server | Re-knock with cookie |
| 0x09 | NHP-RLY | Relay→Server | Relayed message |
| 0x0A | NHP-AOL | AC→Server | AC online notification |
| 0x0B | NHP-AAK | Server→AC | AC acknowledge |
| 0x0C | NHP-OTP | Any | One-time password request |
| 0x0D | NHP-REG | Agent→Server | Public key registration |
| 0x0E | NHP-RAK | Server→Agent | Registration acknowledgment |
| 0x0F | NHP-ACC | Agent→AC | Access request |
| 0x10 | NHP-LOG | AC→Server | Log upload |
| 0x11 | NHP-LAK | Server→AC | Log acknowledgment |
Keepalive messages maintain session state between components. The payload contains:¶
| Field | Size | Description |
|---|---|---|
| Session ID | 16 bytes | Current session identifier |
| Sequence | 4 bytes | Monotonic sequence number |
The knock message initiates access request from NHP-Agent to NHP-Server. The encrypted payload contains:¶
| Field | Size | Description |
|---|---|---|
| User ID | Variable | Unique user identifier |
| Device ID | Variable | Unique device identifier |
| Device Fingerprint | 32 bytes | Device attestation hash |
| Requested Resources | Variable | List of resource identifiers |
| Context Data | Variable | Additional context (location, etc.) |
The acknowledge message confirms knock success and provides access parameters:¶
| Field | Size | Description |
|---|---|---|
| Status Code | 2 bytes | Result status |
| Session ID | 16 bytes | Assigned session identifier |
| Access Token | Variable | Token for NHP-AC access |
| AC Addresses | Variable | List of AC endpoints |
| Expiration | 8 bytes | Session expiration timestamp |
| Granted Resources | Variable | List of granted resource access |
The AC operations message instructs NHP-AC to modify access rules:¶
| Field | Size | Description |
|---|---|---|
| Operation | 1 byte | OPEN (0x01) or CLOSE (0x02) |
| Agent Address | Variable | Source IP/port of authorized agent |
| Resource ID | Variable | Target resource identifier |
| Expiration | 8 bytes | Rule expiration timestamp |
| Access Token | Variable | Token for agent verification |
The AC result message reports operation status:¶
| Field | Size | Description |
|---|---|---|
| Status Code | 2 bytes | Operation result |
| Operation ID | 16 bytes | Reference to NHP-AOP |
| Details | Variable | Additional status information |
The access message is sent from NHP-Agent to NHP-AC to initiate data plane access:¶
| Field | Size | Description |
|---|---|---|
| User ID | Variable | User identifier |
| Device ID | Variable | Device identifier |
| Access Token | Variable | Token from NHP-ACK |
| Requested Service | Variable | Target service identifier |
The registration message registers NHP-Agent public key with NHP-Server:¶
| Field | Size | Description |
|---|---|---|
| User ID | Variable | User identifier |
| Device ID | Variable | Device identifier |
| Public Key | 32 bytes | Agent's static public key |
| OTP | Variable | One-time password for verification |
Confirms successful registration:¶
| Field | Size | Description |
|---|---|---|
| Status Code | 2 bytes | Registration result |
| Server Public Key | 32 bytes | Server's static public key |
| Certificate | Variable | Optional server certificate |
Log upload message from NHP-AC to NHP-Server:¶
| Field | Size | Description |
|---|---|---|
| AC ID | Variable | Access controller identifier |
| Log ID | 32 bytes | Unique log identifier (hash) |
| Log Content | Variable | Compressed log entries |
Confirms log receipt:¶
| Field | Size | Description |
|---|---|---|
| Log ID | 32 bytes | Received log identifier |
NHP provides comprehensive logging capabilities to support security monitoring, compliance, and forensic analysis.¶
NHP defines the following log categories:¶
Record all access attempts, including source identity, timestamp, requested resource, and decision outcome.¶
Record authentication events including key exchanges, identity verification, and authentication failures.¶
Record policy evaluation decisions and the factors considered.¶
Record component health, configuration changes, and operational events.¶
All NHP logs SHOULD use structured JSON format with the following mandatory fields:¶
{
"timestamp": "2025-01-01T12:00:00.000Z",
"log_type": "access",
"component": "nhp-ac-01",
"session_id": "abc123...",
"user_id": "user@example.com",
"device_id": "device-uuid",
"source_ip": "192.0.2.1",
"resource_id": "resource-001",
"action": "access_granted",
"details": {}
}
¶
NHP-AC components transmit logs to NHP-Server using NHP-LOG messages. Implementations MUST:¶
NHP is designed to integrate seamlessly with existing Software-Defined Perimeter (SDP) deployments as defined in [CSA.SDP.Spec2.0].¶
In an SDP integration, NHP components map to SDP components as follows:¶
| NHP Component | SDP Component |
|---|---|
| NHP-Agent | SDP Initiating Host |
| NHP-Server | SDP Controller |
| NHP-AC | SDP Gateway |
Discovery: SDP Controller advertises NHP-Server endpoint to SDP Initiating Hosts.¶
Authentication: SDP Initiating Host uses NHP-KNK to authenticate with NHP-Server instead of SPA.¶
Authorization: NHP-Server queries SDP Controller for policy decisions.¶
Enforcement: NHP-AC opens ports on SDP Gateway based on NHP-AOP commands.¶
Stronger Cryptography: NHP's Noise-based key exchange provides better forward secrecy than traditional SPA.¶
Mutual Authentication: Both client and server authenticate each other.¶
Scalability: NHP's architecture supports enterprise-scale deployments.¶
Extensibility: NHP message types support richer interaction patterns.¶
NHP can integrate with DNS infrastructure to provide stealth resolution of protected resources.¶
+-------------+ +-------------+ +-------------+
| NHP-Agent |---->| NHP-Server |---->| DNS Server |
| | | | | (Internal) |
+-------------+ +-------------+ +-------------+
| |
v v
+-------------+ +-------------+
| Public DNS | | NHP-AC |
| (No Records)| | |
+-------------+ +-------------+
¶
Protected resources have no public DNS records.¶
NHP-Agent authenticates with NHP-Server via NHP-KNK.¶
NHP-Server returns resource IP addresses in NHP-ACK only after successful authentication.¶
NHP-Agent can then connect to the resolved addresses.¶
This prevents DNS enumeration attacks and keeps resource addresses invisible to unauthorized users.¶
NHP supports integration with FIDO2/WebAuthn for strong user authentication.¶
NHP ensures infrastructure invisibility by:¶
NHP prevents replay attacks through:¶
Implementations MUST:¶
NHP provides DoS resistance through:¶
This document requests IANA to establish a new registry for NHP Message Types with the following initial values:¶
| Value | Name | Reference |
|---|---|---|
| 0x00 | NHP-KPL | This document |
| 0x01 | NHP-KNK | This document |
| 0x02 | NHP-ACK | This document |
| 0x03 | NHP-AOP | This document |
| 0x04 | NHP-ART | This document |
| 0x05 | NHP-LST | This document |
| 0x06 | NHP-LRT | This document |
| 0x07 | NHP-COK | This document |
| 0x08 | NHP-RKN | This document |
| 0x09 | NHP-RLY | This document |
| 0x0A | NHP-AOL | This document |
| 0x0B | NHP-AAK | This document |
| 0x0C | NHP-OTP | This document |
| 0x0D | NHP-REG | This document |
| 0x0E | NHP-RAK | This document |
| 0x0F | NHP-ACC | This document |
| 0x10 | NHP-LOG | This document |
| 0x11 | NHP-LAK | This document |
Values 0x12-0xFF are reserved for future use.¶
An open-source reference implementation of NHP is available at:¶
https://github.com/OpenNHP/opennhp¶
The OpenNHP reference implementation is designed with the following characteristics:¶
OpenNHP is implemented in Go (Golang), a memory-safe programming language that eliminates entire classes of vulnerabilities common in C/C++ implementations:¶
No Buffer Overflows: Go's built-in bounds checking prevents buffer overflow attacks.¶
No Use-After-Free: Automatic garbage collection eliminates dangling pointer vulnerabilities.¶
No Null Pointer Dereferences: Go's type system and nil handling prevent null pointer crashes.¶
Race Condition Detection: Built-in race detector helps identify concurrency issues during development.¶
This choice aligns with recommendations from CISA, NSA, and other security agencies advocating for memory-safe languages in critical infrastructure software.¶
OpenNHP provides native support across multiple platforms:¶
| Platform | Components | Description |
|---|---|---|
| Linux | Agent, Server, AC | Full production support for x86_64, ARM64 |
| Windows | Agent, Server, AC | Native Windows service integration |
| macOS | Agent | Desktop client with system integration |
| FreeBSD | Agent, Server, AC | BSD-family operating system support |
| Android | Agent (Library) | Mobile SDK for Android applications |
| iOS | Agent (Library) | Mobile SDK for iOS applications |
The implementation provides separate binaries for each NHP component:¶
nhp-agent: Client-side agent for initiating NHP connections¶
nhp-server: Control plane server for authentication and authorization¶
nhp-ac: Access controller for policy enforcement¶
Each component can be deployed independently, enabling flexible deployment topologies from standalone to distributed enterprise configurations.¶
The reference implementation uses well-audited cryptographic libraries:¶
The Go implementation provides:¶
Low Latency: Typical NHP handshake completes in under 10ms on local networks¶
High Throughput: Single NHP-Server can handle thousands of concurrent sessions¶
Minimal Footprint: Agent binary under 15MB, low memory consumption¶
Concurrent Design: Goroutine-based concurrency for efficient resource utilization¶
The OpenNHP project operates under the Apache 2.0 license, fostering community collaboration and transparent development to accelerate adoption and ensure rigorous peer review of its security mechanisms.¶
StealthDNS is a Zero Trust DNS client powered by OpenNHP that demonstrates practical application of the NHP protocol for DNS-level infrastructure hiding. It is available at:¶
https://github.com/OpenNHP/StealthDNS¶
StealthDNS implements the NHP-DNS integration described in this specification, providing:¶
Invisible DNS Resolution: Protected domains have no public DNS records. Only authenticated clients can resolve hidden service addresses.¶
NHP-Powered Authentication: Uses the OpenNHP library to perform cryptographic NHP knocking before DNS resolution.¶
Transparent Local Resolver: Runs as a local DNS resolver (127.0.0.1:53), requiring no application changes.¶
Cross-Platform Support: Available on Windows, macOS, Linux, Android, and iOS.¶
The StealthDNS workflow demonstrates the authenticate-before-connect principle:¶
Application performs DNS lookup for a protected domain.¶
StealthDNS checks if the domain is NHP-protected.¶
If protected, StealthDNS performs NHP knock with identity and device context.¶
Upon successful authentication, the NHP Controller returns ephemeral address mappings.¶
StealthDNS returns valid DNS records only to authorized clients.¶
Unauthorized clients receive NXDOMAIN—the service remains invisible.¶
This enforces identity before visibility and authorization before connectivity, demonstrating real-world application of NHP principles.¶
This work builds upon foundational research from the Cloud Security Alliance (CSA) Zero Trust Working Group, particularly the "Stealth Mode SDP for Zero Trust Network Infrastructure" whitepaper [CSA.NHP.Whitepaper]. The authors acknowledge the contributions of the CSA Zero Trust Research Working Group.¶
The authors would also like to thank the China Computer Federation (CCF) for their collaborative support, and the OpenNHP open source community for their contributions, testing, and feedback on early implementations of the Network-Infrastructure Hiding Protocol.¶