# Decodificatore di pacchetti RADIUS

> Incolla l’esadecimale di un pacchetto RADIUS (Remote Authentication Dial-In User Service) così come lo mostra una cattura e leggi Code, Identifier, Length e Authenticator e ogni attributo nel suo tipo di dati, con i nomi dei registri dell’IANA e con gli attributi dei vendor, l’EAP e l’assegnazione della VLAN spiegati; le password nascoste vengono spiegate, mai decifrate, e un breve confronto affianca RADIUS e TACACS+.

- Tool: https://ronutz.com/it/tools/radius-packet-decoder
- Family: Reti

---

## Cosa fa

RADIUS (Remote Authentication Dial-In User Service) trasporta quasi tutto ciò che dice in ottetti in chiaro: chi sta accedendo, da quale porta dello switch, quale VLAN restituisce il server, quale sessione di accounting è appena iniziata. Il decodificatore legge quegli ottetti, nel tuo browser, dall’esadecimale di un pacchetto così come lo mostra una cattura:

- **L’intestazione**: il Code, con il nome preso dal registro RADIUS Packet Type Codes dell’IANA; l’Identifier; la Length, confrontata con gli ottetti forniti; e l’Authenticator di 16 ottetti, con il suo significato per quel Code.
- **Ogni attributo** come tipo, lunghezza e valore, con il nome preso dal registro RADIUS Attribute Types dell’IANA e il valore letto nel tipo di dati che gli assegna l’IANA (RFC 8044): text, string, integer, enum con i nomi IANA dei valori, time, indirizzi e prefissi IPv4 e IPv6, identificatori di interfaccia, interi a 64 bit e TLV.
- **Vendor-Specific** (tipo 26) diviso nel Private Enterprise Number del vendor e nei suoi sottoattributi, con i nomi dove la documentazione del vendor stesso li definisce; gli **attributi estesi** (RFC 6929) ricomposti a partire dai loro frammenti.
- **Il pacchetto EAP** trasportato negli attributi EAP-Message e l’**assegnazione della VLAN** quando gli attributi di tunnel ne descrivono una.
- **Avvisi** dove il pacchetto viola una regola delle RFC, e **note** su cosa significa ogni parte.

È la metà dedicata ai pacchetti dell’articolo [RADIUS end to end](https://ronutz.com/it/learn/radius-end-to-end) e del capitolo 4.6 (AAA: RADIUS and TACACS+) del corso aperto LAN Switch Operations and Maintenance, in cui l’amministratore netadmin accede a SW-CORE-01 tramite un server RADIUS. Sotto ogni lettura, un breve pannello mette RADIUS a confronto con TACACS+, il protocollo dell’articolo [TACACS+ for device administration](https://ronutz.com/it/learn/tacacs-plus-device-administration).

Non viene mai chiesto alcun segreto condiviso. Gli attributi nascosti e gli authenticator vengono spiegati, mai decifrati né verificati, e un link creato con Condividi i risultati contiene una copia in cui sono sostituiti da zeri.

## Il pacchetto

Un pacchetto RADIUS è composto da un Code (un ottetto), un Identifier (un ottetto), una Length (due ottetti), un Authenticator di 16 ottetti e gli attributi. La RFC 2865 fissa la Length tra 20 e 4096, stabilisce che gli ottetti oltre l’intervallo del campo Length DEVONO essere trattati come padding e ignorati in ricezione («Octets outside the range of the Length field MUST be treated as padding and ignored on reception») e che un pacchetto più corto della sua Length DEVE essere scartato silenziosamente («MUST be silently discarded», [RFC 2865](https://www.rfc-editor.org/rfc/rfc2865.txt), sezione 3). Il decodificatore fa lo stesso: gli ottetti in eccesso vengono mostrati come padding con un avviso, e un pacchetto troppo corto viene rifiutato. La RFC 2866 dà ai pacchetti di accounting un massimo di 4095 ([RFC 2866](https://www.rfc-editor.org/rfc/rfc2866.txt), sezione 3), e un pacchetto di accounting di 4096 ottetti riceve un avviso.

L’Authenticator cambia a seconda del Code, e la pagina indica quale si applica:

- **Access-Request**: il Request Authenticator, un numero casuale che DOVREBBE essere imprevedibile e univoco per tutta la durata di un segreto («SHOULD be unpredictable and unique over the lifetime of a secret») e che nasconde User-Password (RFC 2865, sezione 3). Status-Server lo genera allo stesso modo ([RFC 5997](https://www.rfc-editor.org/rfc/rfc5997.txt), sezione 3).
- **Access-Accept, Access-Reject, Access-Challenge**: il Response Authenticator, un MD5 calcolato sulla risposta, sul Request Authenticator della richiesta e sul segreto condiviso (RFC 2865, sezione 3).
- **Accounting-Request**: un MD5 calcolato sul pacchetto con 16 ottetti a zero al posto dell’Authenticator, seguito dal segreto condiviso (RFC 2866, sezione 3); Disconnect-Request e CoA-Request usano lo stesso metodo e vanno alla porta UDP 3799 ([RFC 5176](https://www.rfc-editor.org/rfc/rfc5176.txt), sezione 2.3).

Un Code non assegnato dall’IANA riceve un avviso, perché un pacchetto ricevuto con un campo Code non valido viene scartato silenziosamente («When a packet is received with an invalid Code field, it is silently discarded», RFC 2865, sezione 3).

## Gli attributi e i loro tipi di dati

Un attributo è composto da Type, Length e Value, e la sua Length conta anche gli ottetti di Type e Length (RFC 2865, sezione 5). Il registro dell’IANA, consultato l’8 novembre 2026 (ultimo aggiornamento: 9 ottobre 2026), assegna a ogni attributo il suo nome e il suo tipo di dati RFC 8044, e il decodificatore legge il valore in base a quel tipo ([RFC 8044](https://www.rfc-editor.org/rfc/rfc8044.txt), sezione 3): integer ed enum come quattro ottetti, a partire dall’ottetto più significativo («most significant octet first», RFC 2865, sezione 5), cioè nell’ordine dei byte di rete spiegato in [Big-endian and little-endian](https://ronutz.com/it/learn/big-endian-and-little-endian); time come secondi dal 1970 stampati in UTC (senza segno, quindi oltre il 2038; una data anteriore al 2017 riceve la nota della RFC 8044 secondo cui probabilmente indica errori di configurazione, «likely to indicate configuration errors»); ipv4addr e ipv6addr come indirizzi, con IPv6 stampato nel testo canonico della RFC 5952 ([RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.txt), sezione 4); ipv6prefix e ipv4prefix con la loro Prefix-Length; ifid come otto ottetti; integer64 come numero a 64 bit; text come UTF-8 ([RFC 3629](https://www.rfc-editor.org/rfc/rfc3629.txt)) e string come ottetti, con una lettura come testo quando ogni ottetto è stampabile.

I valori enumerati prendono il nome dai sottoregistri dei valori dell’IANA: Service-Type 6 è Administrative, NAS-Port-Type 15 è Ethernet e 5 è Virtual, Acct-Status-Type 1 è Start, Tunnel-Type 13 è Virtual LANs (VLAN). I nomi vengono mostrati come li pubblica l’IANA, in inglese su ogni pagina.

Gli attributi di tunnel della [RFC 2868](https://www.rfc-editor.org/rfc/rfc2868.txt) contengono un Tag che raggruppa gli attributi di un tunnel: Tunnel-Type, Tunnel-Medium-Type e Tunnel-Preference ne hanno sempre uno, e negli attributi di tunnel di tipo string il primo ottetto è un Tag solo quando vale da 0x00 a 0x1F; oltre quel valore è il primo byte del campo String che segue («the first byte of the following String field», sezioni da 3.1 a 3.10).

## Attributi Vendor-Specific

Un attributo Vendor-Specific è composto da un Vendor-Id di quattro ottetti, il codice SMI Network Management Private Enterprise del vendor («the SMI Network Management Private Enterprise Code of the Vendor»), seguito da una String che DOVREBBE essere codificata come una sequenza di campi tipo, lunghezza e valore del vendor («SHOULD be encoded as a sequence of vendor type / vendor length / value fields», RFC 2865, sezione 5.26). Quando la String si suddivide in questo modo il decodificatore elenca i sottoattributi; quando no, mostra gli ottetti, come la RFC 2865 chiede a un’implementazione robusta di supportarli.

Il nome del vendor viene dal registro Private Enterprise Numbers dell’IANA (ultimo aggiornamento: 6 novembre 2026) per i vendor che lo strumento nomina, e i sottoattributi hanno un nome solo dove la documentazione del vendor stesso li definisce, consultata l’8 novembre 2026:

- **Cisco (9)**: cisco-avpair (1), una stringa «protocol : attribute sep value», dove sep è = per gli attributi obbligatori e * per quelli facoltativi («sep is = for mandatory attributes and is * for optional attributes»), come in shell:priv-lvl=15 (Cisco Catalyst 9300 IOS XE 17.18 Security Configuration Guide, Configuring RADIUS). Il decodificatore ne separa le parti.
- **Juniper (2636)**: da Juniper-Local-User-Name (1) a Juniper-Deny-Configuration-Regexps (14), dalla tabella 1 della guida Junos User Access and Authentication.
- **Arista (30065)**: Arista-AVPair (1, string, con shell:priv-lvl e shell:roles) e Arista-Config-Vlan (22), dal manuale di EOS 4.36.2F.
- **HPE Aruba (14823)**: Aruba-User-Role (1) e altri nove dalla AOS-CX 10.16 Security Guide.
- **Extreme (1916)**: da Extreme-CLI-Authorization (201) a Extreme-URL-Redirect (234), dalle tabelle 143 e 146 della Switch Engine v33.7.1 User Guide.
- **MikroTik (14988)**: da MIKROTIK_RECV_LIMIT (1) a Mikrotik-Switching-Filter (30), con i nomi scritti come nella tabella del manuale di RouterOS 7.24; quella tabella non indica i tipi di dati, quindi i valori vengono mostrati come ottetti.
- **Microsoft (311)**: i sottoattributi MS- della [RFC 2548](https://www.rfc-editor.org/rfc/rfc2548.txt), presenti in ogni scambio MS-CHAP e PEAP.
- **Huawei (2011)**: i 68 sottoattributi della tabella 1-11, «Huawei proprietary RADIUS attributes», della guida alla configurazione di S5700 e S6700 V200R025C00, da HW-Input-Peak-Information-Rate (1) a HW-Product-ID (255), letti nel tipo indicato dalla tabella: integer come quattro ottetti, string con una lettura come testo quando è stampabile, ipaddr come indirizzo IPv4 (quattro ottetti) o indirizzo IPv6 (sedici: HW-Framed-IPv6-Address è l’indirizzo da configurare per l’utente, «IPv6 address to be configured for the user», un indirizzo, non un prefisso), hex come ottetti. HW-DHCP-Option (26-158), l’unico attributo hex della tabella, è un’opzione DHCP incapsulata in formato TLV («DHCP Option, encapsulated in Type-Length-Value (TLV) format»), e la tabella limita a una sola le opzioni consegnabili («Only Option 82 can be delivered»): il decodificatore elenca le sue opzioni per codice e lunghezza, legge l’opzione 82, la Relay Agent Information option, come la definisce la [RFC 3046](https://www.rfc-editor.org/rfc/rfc3046.txt) (sotto-opzioni di codice, lunghezza e valore, almeno una, quindi una lunghezza minima di due; 1 è l’Agent Circuit ID e 2 l’Agent Remote ID, sezione 2.0), lo segnala quando gli ottetti non si suddividono in questo modo e, per qualsiasi altra opzione, cita la tabella. HW-Exec-Privilege (26-29) è il livello di privilegio di un amministratore («Privilege level of an administrator (such as a Telnet user)»): la tabella indica «0 to 15» e dice che un valore oltre quell’intervallo non ha effetto («The priority that is greater than or equal to 16 is ineffective»), e il decodificatore indica quale caso si applica. Un tipo del vendor che non è nella tabella viene mostrato come ottetti, con una nota che lo dice. Il sito rifiuta le letture automatiche, quindi la tabella e le descrizioni delle righe 26-158 e 26-253 sono state consultate in un browser l’8 novembre 2026.

La guida Enterasys del laboratorio C3 del corso non è più online, quindi i suoi sottoattributi vengono mostrati per numero. Qualsiasi altro Private Enterprise Number viene mostrato come numero, con il registro dell’IANA come riferimento per cercarlo.

## Attributi estesi

La RFC 6929 riserva i tipi da 241 a 246 allo spazio esteso: un ottetto Extended-Type dopo la Length (da 241 a 244) e, per 245 e 246, un ottetto di flag il cui bit More indica che il valore continua nell’attributo successivo, che DEVE avere lo stesso Type e lo stesso Extended-Type («MUST have both the same Type and Extended-Type»), e la cui Length deve essere 255 finché More è impostato ([RFC 6929](https://www.rfc-editor.org/rfc/rfc6929.txt), sezione 2.2; RFC 8044, sezione 3.16). Il decodificatore ricompone i frammenti, dà un nome al risultato in base al registro dell’IANA con il suo identificatore puntato (241.1 è Frag-Status, 245.1 SAML-Assertion) e legge gli attributi Extended-Vendor-Specific (da 241.26 a 246.26) come Vendor-Id, Vendor-Type e dati, identificati come 245.26.1.6 e così via (sezione 2.7). Un valore tlv viene elencato TLV per TLV (RFC 8044, sezione 3.13).

## Attributi nascosti e ciò che non viene mai mostrato

- **User-Password** è la password, completata con padding fino a un multiplo di 16 ottetti e combinata in XOR, 16 ottetti alla volta, con l’MD5 del segreto condiviso e del Request Authenticator (RFC 2865, sezione 5.2). Il decodificatore indica quanto può essere lunga la password, e nient’altro.
- **CHAP-Password** è un CHAP Ident e una risposta di 16 ottetti alla challenge contenuta in CHAP-Challenge o nel Request Authenticator (RFC 2865, sezione 5.3).
- **Tunnel-Password** è un Tag, un Salt il cui bit più alto DEVE essere impostato («MUST be set») e la password cifrata (RFC 2868, sezione 3.5); **MS-MPPE-Send-Key** e **MS-MPPE-Recv-Key** usano un salt allo stesso modo (RFC 2548, sezioni 2.4.2 e 2.4.3).
- **Message-Authenticator** è un HMAC-MD5 dell’intero pacchetto con il segreto condiviso come chiave ([RFC 3579](https://www.rfc-editor.org/rfc/rfc3579.txt), sezione 3.2).

Tutti questi richiedono il segreto condiviso, quindi il decodificatore li spiega e si ferma lì. Tutto il resto del pacchetto è leggibile così com’è, ed è esattamente ciò che il decodificatore mostra.

## EAP e assegnazione della VLAN

Un accesso 802.1X viaggia come EAP dentro attributi EAP-Message, che DEVONO essere in ordine e consecutivi («MUST be in order and they MUST be consecutive») e vengono uniti in un solo pacchetto EAP (RFC 3579, sezione 3.1). Il decodificatore li unisce e legge l’intestazione EAP ([RFC 3748](https://www.rfc-editor.org/rfc/rfc3748.txt), sezione 4): Code, Identifier, Length e, per una Request o una Response, il Type con il nome preso dal registro EAP dell’IANA (ultimo aggiornamento: 31 agosto 2026), con l’identità di una EAP-Response/Identity. Un pacchetto con EAP-Message e senza Message-Authenticator riceve l’avviso della RFC 3579.

L’assegnazione della VLAN è, secondo la RFC 3580, Tunnel-Type VLAN (13), Tunnel-Medium-Type 802 (6) e Tunnel-Private-Group-ID con un valore numerico come stringa («a value between 1 and 4094», [RFC 3580](https://www.rfc-editor.org/rfc/rfc3580.txt), sezione 3.31). Quando i tre condividono un Tag, la pagina indica la VLAN.

## Quali attributi può contenere un pacchetto

Le RFC riportano tabelle che indicano quali attributi possono comparire in quale tipo di pacchetto, e quante volte. Il decodificatore applica le tabelle della RFC 2865 (sezione 5.44), della RFC 2866 (sezione 5.13), della RFC 2868 (sezione 4), della RFC 3162 (sezione 3), della RFC 3579 (sezione 3.3, per i pacchetti con EAP-Message) e della RFC 5997 (sezione 5, Status-Server), oltre al limite di un solo Message-Authenticator della RFC 2869 (sezione 5.19), e avvisa quando compare un attributo che NON DEVE essere presente («MUST NOT be present»), quando un attributo compare più volte del consentito o quando manca dove ne è richiesto esattamente uno. Verifica anche le regole del testo: un Access-Request richiede un NAS-IP-Address, un NAS-Identifier o un NAS-IPv6-Address e un attributo User-Password, CHAP-Password, State o EAP-Message, e non deve combinare due di queste credenziali; un Accounting-Request richiede NAS-IP-Address o NAS-Identifier; uno Status-Server richiede un Message-Authenticator.

Un Access-Request senza Message-Authenticator riceve un avviso in più, che indica da dove viene il requisito. La RFC 2865 così come è stata pubblicata non chiede l’attributo, e la RFC 3579 lo rende facoltativo in un Access-Request senza EAP-Message («It MAY be used in any Access-Request», sezione 3.2). Il requisito viene dalla CVE-2024-3596 e da [draft-ietf-radext-deprecating-radius](https://datatracker.ietf.org/doc/draft-ietf-radext-deprecating-radius/), un Internet-Draft del gruppo di lavoro RADIUS Extensions (radext) dell’IETF (revisione 10 del 3 luglio 2026; l’8 novembre 2026 il datatracker non indica alcun numero di RFC). L’[erratum 9034 della RFC 2865](https://www.rfc-editor.org/errata/eid9034), segnalato il 22 luglio 2026, lo registra per i lettori («Access-Request packets MUST contain a Message-Authenticator attribute»), con lo stato Held for Document Update dal 26 agosto 2026, non Verified; le sue note dicono «We do not expect to rev 2865».

## Pacchetti malformati e attributi non validi

La RFC 6929 distingue i due casi (sezione 2.8). Un pacchetto **malformato** è un pacchetto le cui lunghezze non si possono seguire, e il decodificatore lo rifiuta indicando l’ottetto e la regola: meno di 20 ottetti, una Length inferiore a 20 o superiore a 4096, una Length maggiore degli ottetti forniti, una Length di attributo inferiore a 2, un attributo che va oltre la fine, un ottetto avanzato. Un **attributo non valido** è un attributo la cui lunghezza si può seguire ma il cui valore non corrisponde al suo tipo di dati (un intero di tre ottetti, un testo che non è UTF-8, un valore enum che l’IANA non elenca, una lunghezza di prefisso oltre 128, un VSA il cui Vendor-Id ha l’ottetto alto diverso da zero); secondo la RFC 6929 NON DEVE portare l’implementazione a scartare l’intero pacchetto («MUST NOT result in the implementation discarding the entire packet»), quindi il decodificatore lo mostra come ottetti, lo contrassegna con il motivo e legge il resto.

## Lettura di una cattura

La casella accetta esadecimale semplice (una sola sequenza di cifre, come l’hex stream di uno strumento di cattura), byte separati da spazi, due punti, trattini, punti o virgole, con o senza 0x, in maiuscolo o minuscolo, e dump esadecimali con offset nel formato che Wireshark copia e text2pcap legge: ogni riga deve iniziare con un offset («must begin with an offset»), da 3 a 8 cifre esadecimali con 0x e due punti facoltativi, e qualsiasi testo dopo i byte di una riga viene ignorato, ad esempio un dump dei caratteri ASCII («Any text on a line after the bytes is ignored, e.g. an ASCII character dump», pagina di manuale di Wireshark text2pcap 4.6.9); le righe che iniziano con # sono commenti. Gli offset devono contare i byte, e una riga non contiene mai più byte di quanti ne lasci spazio l’offset successivo, quindi una colonna ASCII che sembra per caso esadecimale non viene letta come byte. Sull’ultima riga nulla la limita, e gli eventuali ottetti di questo tipo oltre la Length del pacchetto vengono segnalati come padding.

Copia il livello RADIUS, non il frame. Se gli ottetti iniziano con un’intestazione Ethernet (EtherType 0x0800 o 0x86DD, [RFC 894](https://www.rfc-editor.org/rfc/rfc894.txt) e [RFC 2464](https://www.rfc-editor.org/rfc/rfc2464.txt)) o con un’intestazione IPv4 o IPv6 che trasporta UDP ([RFC 791](https://www.rfc-editor.org/rfc/rfc791.txt), [RFC 8200](https://www.rfc-editor.org/rfc/rfc8200.txt), [RFC 768](https://www.rfc-editor.org/rfc/rfc768.txt)), il decodificatore li rifiuta e indica a quale ottetto inizia il pacchetto RADIUS. Se si leggono come un’intestazione TACACS+ ([RFC 8907](https://www.rfc-editor.org/rfc/rfc8907.txt), sezione 4.1), indica i campi dell’intestazione e si ferma: il corpo di TACACS+ è offuscato con il segreto condiviso (sezione 4.5).

**Solo attributi** legge ottetti di attributi senza l’intestazione di 20 ottetti, come li stampano gli esempi della RFC 6929; i controlli che richiedono un Code vengono allora saltati.

## RADIUS e TACACS+

Il pannello sotto ogni lettura confronta i due protocolli a partire dai loro documenti, insieme alla nota tecnica 13838 di Cisco, «Compare TACACS + and RADIUS» (aggiornata il 30 giugno 2025, consultata in un browser l’8 novembre 2026 perché il sito rifiuta le letture automatiche), nei punti in cui dice la stessa cosa: RADIUS usa UDP e TACACS+ usa TCP («RADIUS uses UDP while TACACS+ uses TCP»), RADIUS nasconde solo la password e il resto del pacchetto non è cifrato («The remainder of the packet is unencrypted»), TACACS+ lascia un’intestazione TACACS+ standard («leaves a standard TACACS+ header») e RADIUS combina autenticazione e autorizzazione («RADIUS combines authentication and authorization»), mentre TACACS+ le separa. Dove Cisco scrive che TACACS+ cifra il corpo, il pannello segue la RFC 8907, che lo chiama offuscamento. Dalle RFC: UDP 1812, 1813 e 3799 contro TCP 49 (RFC 2865, RFC 2866, RFC 5176; RFC 8907, sezione 3.4); gli attributi nascosti di RADIUS contro il corpo offuscato di TACACS+, che secondo la RFC 8907 non offre alcuna protezione significativa di integrità, di riservatezza o contro la ripetizione («no meaningful integrity, privacy, or replay protection», sezione 10.1); autenticazione e autorizzazione in un unico scambio RADIUS contro i tre scambi separati di TACACS+, utili per l’amministrazione dei dispositivi, in particolare per l’autorizzazione e l’accounting dei singoli comandi di una sessione («useful for the Device Administration use case, specifically, for authorization and accounting of individual commands in a session», sezione 1); accesso alla rete contro amministrazione dei dispositivi; RADIUS su TLS sulla porta TCP 2083 ([RFC 6614](https://www.rfc-editor.org/rfc/rfc6614.txt), Experimental) e RADIUS/1.1 ([RFC 9765](https://www.rfc-editor.org/rfc/rfc9765.txt), Experimental) contro TACACS+ su TLS 1.3 sulla porta TCP 300 ([RFC 9887](https://www.rfc-editor.org/rfc/rfc9887.txt), Proposed Standard). Le porte sono quelle del registro Service Name and Transport Protocol Port Number Registry dell’IANA, e gli stati quelli dell’indice del RFC Editor, entrambi consultati l’8 novembre 2026.

Se un pacchetto è arrivato tramite RADIUS/1.1, il suo ottetto 2 e gli ottetti da 5 a 20 sono campi riservati e un Token invece dell’Identifier e dell’Authenticator, e User-Password non è nascosto (RFC 9765, sezione 4.1); gli ottetti da soli non dicono quale caso si applica, quindi il decodificatore li legge come RADIUS.

## Esempi svolti

- **L’Esempio** è l’Access-Request della RFC 2865, sezione 7.1, alla lettera: l’utente nemo, una User-Password nascosta, NAS-IP-Address 192.168.1.16, NAS-Port 3, calcolato dalla RFC con il segreto condiviso «xyzzy5461». Il suo Access-Accept risponde con Service-Type Login (1), Login-Service Telnet (0) e Login-IP-Host 192.168.1.3.
- **RFC 2865, sezione 7.2** è un accesso CHAP (CHAP Ident 22) e un Access-Accept per PPP. Gli ottetti dell’Accept contengono Framed-Routing 2, Listen for routing packets, dove il testo della RFC dice None; l’erratum verificato 1469 registra la differenza, e il decodificatore legge gli ottetti.
- **RFC 2865, sezione 7.3** è una challenge: un Access-Challenge con Reply-Message «Challenge 32769430.  Enter response at prompt.» e State «32769430». Il secondo Access-Request, così come è stampato, ha una Length di State pari a 0x10 dove seguono 10 ottetti; il decodificatore lo rifiuta, mentre gli ottetti corretti dall’erratum verificato 6486 vengono decodificati.
- **Il laboratorio del corso**: un Access-Accept 802.1X che mette la porta nella VLAN 10 con un EAP-Success, un accounting Start per netadmin su SW-CORE-01, la richiesta di accesso SSH (il suo link Condividi i risultati azzera la User-Password e il Message-Authenticator), un Access-Accept Cisco con shell:priv-lvl=15 e un Access-Accept Huawei con HW-Exec-Privilege 15. I loro authenticator e i loro ottetti nascosti sono segnaposto: dietro non c’è alcun segreto.
- **RFC 5997, sezione 6** (Status-Server e le sue risposte), **RFC 5176, sezione 7** (tre Disconnect-Request, gli ottetti RADIUS delle sue tracce) e **RFC 6929, sezione 9** (18 esempi di attributi, in Solo attributi). La RFC 6929 dice che i suoi esempi mostrano il formato, non un significato coerente («show format, rather than consistent meaning»), e letti con il registro attuale alcuni sono attributi non validi. La risposta della sezione 6.2 della RFC 5997 inizia con 02, Access-Accept, anche se il testo la chiama Accounting-Response (5). Il suo Response Authenticator, 0f 6f 92 14 ..., è l’MD5 descritto dalla RFC calcolato sul Code 5 con il segreto condiviso della RFC, «xyzzy5461» (calcolato l’8 novembre 2026 dagli ottetti della RFC stessa; sul Code 2 sarebbe 8a 11 b1 d0 ...), quindi l’errore di stampa è lo 02. L’8 novembre 2026 non risultava alcun erratum in proposito. Gli elenchi di tutte e tre le risposte (sezioni da 6.1 a 6.3) chiamano inoltre «Request Authenticator» i 16 ottetti dopo la Length, mentre la sezione 3 della stessa RFC li chiama Response Authenticator; il decodificatore usa il nome della sezione 3.

## Cosa non fa

Non verifica un Authenticator né un Message-Authenticator e non decifra alcun attributo nascosto: servirebbe il segreto condiviso, che non chiede mai. Non vede la conversazione, quindi non può abbinare una risposta alla sua richiesta né verificare uno State rispetto a una challenge. Decodifica solo RADIUS: i corpi di TACACS+, Diameter e i record TLS di RADIUS/1.1 ne sono esclusi. I sottoattributi dei vendor hanno un nome solo per i vendor elencati sopra, e i loro valori vengono letti nei tipi indicati dalla loro documentazione, o come ottetti dove non ne indica. I nomi dell’IANA sono quelli dei registri consultati l’8 novembre 2026, e i registri cambiano.

## Condivisione dei risultati

Sotto il titolo della lettura, **Condividi i risultati** crea un link a questa pagina, solo quando lo premi e solo mentre la pagina mostra una lettura. Il link non contiene mai una credenziale nascosta: contiene una copia del pacchetto in cui gli ottetti elencati qui sotto sono sostituiti da ottetti a zero della stessa lunghezza, così ogni Length torna ancora e la pagina che riceve il link decodifica la stessa struttura, con ogni campo azzerato contrassegnato da **Oscurato in questo link**. Non esiste un’opzione per includere gli originali.

Cosa azzera la copia, e perché:

- **User-Password** (RFC 2865, sezione 5.2), il cui occultamento, secondo la RFC 2865, potrebbe non offrire una riservatezza sufficiente («might not provide sufficient confidentiality protection», sezione 8); la String di **Tunnel-Password** (RFC 2868, sezione 3.5) e le chiavi **MS-MPPE-Send-Key** e **MS-MPPE-Recv-Key** (RFC 2548, sezioni 2.4.2 e 2.4.3), nascoste allo stesso modo, che la RFC 3579 considera compromesse una volta noto il loro key stream (sezione 4.3.4). Il Tag e il Salt restano.
- La risposta di **CHAP-Password** (RFC 2865, sezione 5.3): la RFC 3579 avverte che una challenge e una risposta CHAP catturate («CHAP challenge and response») permettono un attacco al dizionario offline (sezione 3.2). Il CHAP Ident resta.
- **Message-Authenticator** e il **Response Authenticator** di ogni risposta: il segreto condiviso RADIUS è vulnerabile a un attacco al dizionario offline basato sulla cattura del Response Authenticator o dell’attributo Message-Authenticator («The RADIUS shared secret is vulnerable to offline dictionary attack, based on capture of the Response Authenticator or Message-Authenticator attribute», RFC 3579, sezione 4.3.3). Viene tolto anche il **Request Authenticator** di un Accounting-Request, di un Disconnect-Request o di un CoA-Request: è un MD5 calcolato sul pacchetto e sul segreto condiviso (RFC 2866, sezione 3; RFC 5176, sezione 2.3), quindi il solo pacchetto permetterebbe a chi lo legge di mettere alla prova ipotesi sul segreto. Il Request Authenticator di un Access-Request o di uno Status-Server resta: è un numero casuale (RFC 2865, sezione 3; RFC 5997, sezione 3), e ogni valore calcolato a partire da esso con il segreto viene azzerato nella copia. L’Authenticator di un Code che lo strumento non conosce viene azzerato.
- **ARAP-Password**, **ARAP-Challenge-Response** e **ARAP-Security-Data** ([RFC 2869](https://www.rfc-editor.org/rfc/rfc2869.txt), sezioni 5.4, 5.15 e 5.8): la challenge e la risposta dell’utente dial-in, la risposta del server calcolata con la password dell’utente come chiave («with the authenticating user's password as the key») e la challenge o la risposta di un modulo di sicurezza («challenge or response»).
- **Digest-Response**, **Digest-Response-Auth** e **Digest-HA1** ([RFC 5090](https://www.rfc-editor.org/rfc/rfc5090.txt), sezioni 3.1, 3.4 e 3.19): i primi due permettono a ciascuna parte di dimostrare di possedere la password («prove possession of the password»), e H(A1) rende più facili gli attacchi al dizionario offline («makes offline dictionary attacks easier», sezione 8.2).
- La chiave di **PKM-AUTH-Key**, che DEVE essere cifrata con la chiave pubblica del certificato della Subscriber Station («MUST be encrypted under the public key from the Subscriber Station certificate», [RFC 5904](https://www.rfc-editor.org/rfc/rfc5904.txt), sezione 3.7). Il Lifetime e la Sequence restano.
- In **EAP-Message**, i type-data di ogni Request o Response EAP diversa da Identity, Notification e Nak: la RFC 3748 classifica MD5-Challenge, One-Time Password e Generic Token Card come privi di protezione dagli attacchi al dizionario («Dictionary attack prot.: No», sezioni da 5.4 a 5.6), e una Response GTC contiene le informazioni della token card necessarie all’autenticazione («the Token Card information necessary for authentication»); gli altri metodi sono definiti al di fuori delle RFC che lo strumento legge, quindi non può sapere cosa contengano i loro dati. L’intestazione EAP e il Type restano; dopo l’intestazione di qualsiasi altro pacchetto EAP anche gli ottetti vengono azzerati.
- Le risposte alle challenge, i cambi di password, le password cifrate e le chiavi di **Microsoft** (RFC 2548: MS-CHAP-Response, MS-CHAP-CPW-1 e -2, MS-CHAP-LM-Enc-PW, MS-CHAP-NT-Enc-PW, MS-CHAP-MPPE-Keys, MS-Old-ARAP-Password e MS-New-ARAP-Password, che sono cifrate con DES, «DES-encrypted», MS-CHAP2-Response e MS-CHAP2-CPW), e **MS-CHAP2-Success**, la cui authenticator response di 42 ottetti viene calcolata dalla [RFC 2759](https://www.rfc-editor.org/rfc/rfc2759.txt) a partire dalla password (sezione 8.7).
- Mikrotik-Wireless-Enc-Key di **MikroTik**, la chiave di cifratura WEP del client («WEP encryption key for the client»), e MIKROTIK_WIRELESS_PSK e MIKROTIK_WIRELESS_MPKEY, che la tabella di RouterOS 7.24 nomina senza descriverli: un link è meglio senza un valore che potrebbe essere una chiave.
- In **HW-DHCP-Option** di Huawei, i valori delle sotto-opzioni dell’opzione 82: l’Agent Circuit ID indica la porta (il numero di porta di uno switching hub, «Switching Hub port number», è uno dei suoi usi) e l’Agent Remote ID l’abbonato (DEVE essere univoco a livello globale, «MUST be globally unique», e può essere un numero di telefono del chiamante, «a 'caller ID' telephone number», o un nome utente, «a 'user name'»; RFC 3046, sezioni 3.1 e 3.2). I codici e le lunghezze restano; un’opzione 82 le cui sotto-opzioni non si suddividono, o un valore che non si suddivide in opzioni, viene azzerato per intero. Le altre opzioni DHCP restano.
- Gli eventuali ottetti dopo la **Length**: lo strumento non li legge (RFC 2865, sezione 3), e una cattura può sconfinare nel pacchetto successivo.

La copia viene scritta come esadecimale semplice, 16 ottetti per riga, quindi la colonna ASCII e le righe di commento di un dump incollato non viaggiano. La casella parte così come l’hai inserita solo quando non contiene nulla da azzerare, oppure quando è uno degli esempi pubblicati nelle RFC, di cui la RFC stampa gli ottetti e il segreto condiviso. Il riquadro a comparsa indica quale dei due casi si applica, o quanti campi vengono azzerati, e una riga di avvertenza indica cosa mostra comunque una copia: nomi utente, indirizzi del NAS e dei client, indirizzi MAC e identificatori di sessione di una rete privata. Il link contiene il testo come `input`, `mode=attributes` quando è attivo Solo attributi e `redacted=1` quando è una copia.

La [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986.txt) (sezione 3.5, consultata l’08/11/2026) stabilisce che il frammento viene separato dal resto dell’URI prima della dereferenziazione («separated from the rest of the URI prior to a dereference»), quindi il valore non viene inviato al server quando si apre il link; resta nella barra degli indirizzi e nella cronologia di chi lo apre, e chiunque abbia il link può leggerlo.

- **Lunghezza massima.** Un link contiene al massimo 16.384 caratteri, il limite che il sito applica a ogni valore dopo il `#`; la casella ne contiene al massimo 24.000, quindi un dump lungo potrebbe non ottenere il link.
- **Apertura di un link.** La casella e la modalità vengono compilate come farebbe un incolla, e la pagina decodifica; con `redacted=1`, ogni campo azzerato viene contrassegnato finché la casella contiene quella copia (qualsiasi modifica, Esempio, un pacchetto di esempio o Cancella pone fine al contrassegno). Un valore vuoto, uno oltre il limite, una modalità sconosciuta o un `redacted` diverso da 1 viene ignorato. Accettati o no, i valori poi lasciano subito l’indirizzo della pagina, senza alcuna richiesta.

## Provenienza

Il motore è un’analisi fissa basata sulle regole descritte sopra, due tabelle compattate generate dai registri RADIUS Types ed EAP dell’IANA (XML) e una tabella dei vendor scritta a partire dai documenti dei vendor, senza orologio, senza rete e senza casualità. Include 228 vettori di test di riferimento (golden vectors, insieme `radius-packet-decoder-golden-2026-11-08b`): ogni pacchetto di esempio della RFC 2865, sezione 7 (con la correzione dell’erratum 6486), della RFC 5997, sezione 6, e della RFC 5176, sezione 7, e i 18 esempi di attributi della RFC 6929, sezione 9, tutti concordi con gli elenchi delle RFC stesse; i cinque pacchetti del laboratorio; un pacchetto costruito per ogni regola (formati del testo, rifiuti, frame incollati, le tabelle degli attributi, EAP, ogni tipo di dati e le sue forme non valide, tag, attributi nascosti, vendor con i tipi di Huawei, HW-Exec-Privilege e HW-DHCP-Option con la sua opzione 82, formati estesi, l’API); 34 copie condivise, una per ogni regola di azzeramento e per ogni caso che parte così com’è; e 11 arrivi di quelle copie, con o senza contrassegno. I sottoattributi di Huawei vengono dalla tabella 1-11 consultata in un browser, salvata riga per riga e verificata con SHA-256 rispetto alla pagina, e sia la tabella dei vendor sia l’oracolo leggono quel file. Ogni valore atteso è stato ricavato da un’implementazione Python separata, con una propria lettura dei file IANA e proprie tabelle, non eseguendo questo motore, e un mutation test (sei errori introdotti di proposito, tutti individuati) ha verificato che i vettori facciano il loro lavoro.

## API

Lo stesso motore risponde all’operazione `/api/v1/radius-packet-decoder` dell’API HTTP del sito; il contratto si trova nella [pagina dell’API](https://ronutz.com/it/api), che indica anche se questo sito espone l’API.

- **Richiesta.** L’esadecimale stesso, così come lo inseriresti nella casella (`?input=` in una richiesta GET, o il corpo di una POST), letto come pacchetto; oppure un oggetto JSON `{"input": "<hex>", "mode": "attributes"}`.
- **Risposta.** Per un pacchetto: `mode`, `format` (`hex` o `dump`), `octets`, `header` (`code`, `codeName`, `codeRow`, `identifier`, `length`, `authenticator`, `authenticatorKind`, `authenticatorRedacted`), `padding`, `paddingRedacted`, `attributes`, `eap`, `vlan`, `example`, `holdsSecret`, `warnings` e `notes`. Ogni attributo ha `index`, `offset`, `type`, `id`, `name`, `length`, `dataType`, `hex`, `value`, `valueName`, `number`, `tag`, `invalid`, `notes`, `vendor` (`id`, `name`, `format`, `subs`), `extended` (`container`, `extType`, `more`, `truncation`, `fragments`, `vendorType`), `tlvs`, `fragmentOf` e `redacted`. `authenticatorRedacted`, `paddingRedacted` e `redacted` contrassegnano i campi azzerati da una copia di Condividi i risultati e nelle risposte dell’API sono sempre false, perché l’API legge solo `input` e `mode`. Solo attributi omette `header`, `padding` e `paddingRedacted`. Per l’Esempio l’API risponde `header.codeName` `Access-Request` e, per il primo attributo, `value` `nemo`.
- **Errori.** HTTP 400, `invalid_input`, con il messaggio del motore, ad esempio `The Length field says 40 octets, but only 26 were given: ...`.

## Fonti

- [RFC 2865, Remote Authentication Dial In User Service (RADIUS), giugno 2000](https://www.rfc-editor.org/rfc/rfc2865.txt) (consultata l’08/11/2026): sezioni 3, 4.1, 5, 5.2, 5.3, 5.26, 5.44, 7 e 8; e i suoi [errata](https://www.rfc-editor.org/errata/rfc2865): 1469, 6486, [9034](https://www.rfc-editor.org/errata/eid9034) (Held for Document Update dal 26/08/2026)
- [IETF datatracker, draft-ietf-radext-deprecating-radius, Deprecating Insecure Practices in RADIUS](https://datatracker.ietf.org/doc/draft-ietf-radext-deprecating-radius/) (consultato l’08/11/2026 tramite l’API del datatracker): revisione 10 del 03/07/2026, un documento del gruppo di lavoro, senza numero di RFC
- [RFC 2866, RADIUS Accounting, giugno 2000](https://www.rfc-editor.org/rfc/rfc2866.txt) (consultata l’08/11/2026): sezioni 3, 4.1 e 5.13
- [RFC 2868, RADIUS Attributes for Tunnel Protocol Support, giugno 2000](https://www.rfc-editor.org/rfc/rfc2868.txt) (consultata l’08/11/2026): sezioni da 3.1 a 3.10 e 4
- [RFC 2869, RADIUS Extensions, giugno 2000](https://www.rfc-editor.org/rfc/rfc2869.txt) (consultata l’08/11/2026): sezioni 5.4, 5.8, 5.14, 5.15 e 5.19
- [RFC 3162, RADIUS and IPv6, agosto 2001](https://www.rfc-editor.org/rfc/rfc3162.txt) (consultata l’08/11/2026): sezioni 2.1 e 3
- [RFC 3579, RADIUS Support For Extensible Authentication Protocol (EAP), settembre 2003](https://www.rfc-editor.org/rfc/rfc3579.txt) (consultata l’08/11/2026): sezioni da 3.1 a 3.3, 4.3.3 e 4.3.4
- [RFC 3580, IEEE 802.1X RADIUS Usage Guidelines, settembre 2003](https://www.rfc-editor.org/rfc/rfc3580.txt) (consultata l’08/11/2026): sezioni 3.20, 3.21 e 3.31
- [RFC 5176, Dynamic Authorization Extensions to RADIUS, gennaio 2008](https://www.rfc-editor.org/rfc/rfc5176.txt) (consultata l’08/11/2026): sezioni 2.3 e 7
- [RFC 5997, Use of Status-Server Packets in the RADIUS Protocol, agosto 2010](https://www.rfc-editor.org/rfc/rfc5997.txt) (consultata l’08/11/2026): sezioni 3, 5 e 6; e i suoi [errata](https://www.rfc-editor.org/errata/rfc5997)
- [RFC 6929, RADIUS Protocol Extensions, aprile 2013](https://www.rfc-editor.org/rfc/rfc6929.txt) (consultata l’08/11/2026): sezioni da 2.1 a 2.8 e 9
- [RFC 8044, Data Types in RADIUS, gennaio 2017](https://www.rfc-editor.org/rfc/rfc8044.txt) (consultata l’08/11/2026): sezione 3
- [RFC 2548, Microsoft Vendor-specific RADIUS Attributes, marzo 1999](https://www.rfc-editor.org/rfc/rfc2548.txt) (consultata l’08/11/2026): sezioni da 2.1 a 2.7 e 4; [RFC 2759, Microsoft PPP CHAP Extensions, Version 2, gennaio 2000](https://www.rfc-editor.org/rfc/rfc2759.txt) (consultata l’08/11/2026): sezione 8.7
- [RFC 3748, Extensible Authentication Protocol (EAP), giugno 2004](https://www.rfc-editor.org/rfc/rfc3748.txt) (consultata l’08/11/2026): sezioni 4, da 5.1 a 5.6, 7.6 e 7.14
- [RFC 5090, RADIUS Extension for Digest Authentication, febbraio 2008](https://www.rfc-editor.org/rfc/rfc5090.txt) (consultata l’08/11/2026): sezioni 3.1, 3.4, 3.19 e 8.2; [RFC 5904, RADIUS Attributes for IEEE 802.16 Privacy Key Management Version 1 (PKMv1) Protocol Support, giugno 2010](https://www.rfc-editor.org/rfc/rfc5904.txt) (consultata l’08/11/2026): sezione 3.7
- [RFC 5952, A Recommendation for IPv6 Address Text Representation, agosto 2010](https://www.rfc-editor.org/rfc/rfc5952.txt) (consultata l’08/11/2026): sezioni 4 e 5
- [RFC 3629, UTF-8, a transformation format of ISO 10646, novembre 2003](https://www.rfc-editor.org/rfc/rfc3629.txt) (consultata l’08/11/2026)
- [RFC 8907, The Terminal Access Controller Access-Control System Plus (TACACS+) Protocol, settembre 2020](https://www.rfc-editor.org/rfc/rfc8907.txt) (consultata l’08/11/2026): sezioni 1, 3.4, 4.1, 4.5 e 10.1
- [RFC 9887, TACACS+ over TLS 1.3, dicembre 2025](https://www.rfc-editor.org/rfc/rfc9887.txt) (consultata l’08/11/2026); [RFC 6614, TLS Encryption for RADIUS, maggio 2012](https://www.rfc-editor.org/rfc/rfc6614.txt) (consultata l’08/11/2026); [RFC 9765, RADIUS/1.1, aprile 2025](https://www.rfc-editor.org/rfc/rfc9765.txt) (consultata l’08/11/2026): sezione 4.1
- [IANA, RADIUS Types](https://www.iana.org/assignments/radius-types/radius-types.xhtml), ultimo aggiornamento il 09/10/2026; [IANA, EAP Registry](https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml), ultimo aggiornamento il 31/08/2026; [IANA, Private Enterprise Numbers](https://www.iana.org/assignments/enterprise-numbers.txt), ultimo aggiornamento il 06/11/2026; [IANA, Service Name and Transport Protocol Port Number Registry](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml); [IANA, Protocol Numbers](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml); [IANA, IEEE 802 Numbers](https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml) (tutti consultati l’08/11/2026)
- [RFC 791](https://www.rfc-editor.org/rfc/rfc791.txt), [RFC 8200](https://www.rfc-editor.org/rfc/rfc8200.txt), [RFC 768](https://www.rfc-editor.org/rfc/rfc768.txt), [RFC 894](https://www.rfc-editor.org/rfc/rfc894.txt) e [RFC 2464](https://www.rfc-editor.org/rfc/rfc2464.txt) (consultate l’08/11/2026), per riconoscere un frame o un pacchetto IP incollato
- [Wireshark, text2pcap(1), Text2pcap 4.6.9](https://www.wireshark.org/docs/man-pages/text2pcap.html) (consultata l’08/11/2026): il formato dei dump esadecimali
- [Cisco, Catalyst 9300 IOS XE 17.18 Security Configuration Guide, Configuring RADIUS](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/sec/b_1718_sec_9300_cg/configuring_radius.html) (consultata l’08/11/2026 con WebFetch; il sito rifiutava i download diretti)
- [Juniper, Junos User Access and Authentication Administration Guide, RADIUS Authentication](https://www.juniper.net/documentation/us/en/software/junos/user-access/topics/topic-map/user-access-radius-authentication.html) (consultata l’08/11/2026)
- [Arista, EOS 4.36.2F User Manual, User Security](https://www.arista.com/en/um-eos/eos-user-security) (consultato l’08/11/2026 con WebFetch; il sito rifiutava i download diretti)
- [HPE Aruba Networking, AOS-CX 10.16 Security Guide, Vendor-Specific Attributes in session authorization](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/security_8100-8360/Content/Chp_Sppt_RADIUS_att/rad-ses-aut-att-vsa-fl-10.htm) (consultata l’08/11/2026 con WebFetch; il sito rifiutava i download diretti)
- [Extreme Networks, Switch Engine v33.7.1 User Guide](https://documentation.extremenetworks.com/Switch%20Engine%20v33.7.1%20User%20Guide/downloads/Switch_Engine_33_7_1_User_Guide.pdf#page=1619) (consultata l’08/11/2026): tabelle 143 e 146
- [MikroTik, RouterOS 7.24 manual, RADIUS](https://manual.mikrotik.com/docs/7.24/authentication-authorization-accounting/radius/) (consultato l’08/11/2026): la tabella degli attributi e Mikrotik-Wireless-Enc-Key
- [Huawei, S5700 and S6700 V200R025C00 Configuration Guide - User Access and Authentication, RADIUS AAA, Table 1-11 Huawei proprietary RADIUS attributes](https://support.huawei.com/enterprise/en/doc/EDOC1100514529/35071f9a/radius-aaa) (consultata in un browser l’08/11/2026: il sito rifiuta le letture automatiche)
- [RFC 3046, DHCP Relay Agent Information Option, gennaio 2001](https://www.rfc-editor.org/rfc/rfc3046.txt) (consultata l’08/11/2026): sezioni 2.0, 3.1 e 3.2
- [Cisco, Compare TACACS + and RADIUS, nota tecnica 13838, aggiornata il 30 giugno 2025](https://www.cisco.com/c/en/us/support/docs/security-vpn/remote-authentication-dial-user-service-radius/13838-10.html) (consultata in un browser l’08/11/2026: il sito rifiuta le letture automatiche)
- [RFC Editor, indice delle RFC (XML)](https://www.rfc-editor.org/rfc-index.xml) (consultato l’08/11/2026): lo stato di ciascuna RFC elencata sopra
- [RFC 3986, Uniform Resource Identifier (URI): Generic Syntax](https://www.rfc-editor.org/rfc/rfc3986.txt) (consultata l’08/11/2026): sezione 3.5, il frammento, che contiene la copia di un link creato con Condividi i risultati

## Standards and references

- [RFC 2865, Remote Authentication Dial In User Service (RADIUS), June 2000: sections 3, 4.1, 5, 5.2, 5.3, 5.26, 5.44 and 7](https://www.rfc-editor.org/rfc/rfc2865.txt) - the packet format (Code, Identifier, Length 20 to 4096, padding, the silently discarded short packet, the Request and Response Authenticators), the attribute format and its Length, User-Password hiding, CHAP-Password, Vendor-Specific, the table of attributes, the eight example packets; UDP 1812
- [RFC Editor, errata for RFC 2865: verified errata 1469 and 6486 (two of the section 7 examples), erratum 9034 (held for document update: Message-Authenticator in Access-Request)](https://www.rfc-editor.org/errata/rfc2865) - the Framed-Routing value of the section 7.2 Access-Accept; the State Length of the second section 7.3 Access-Request (0x10 printed, 0x0a corrected); erratum 9034 (https://www.rfc-editor.org/errata/eid9034), reported 2026-07-22, status Held for Document Update since 2026-08-26, a note for readers citing CVE-2024-3596 and the deprecating-radius draft: "We do not expect to rev 2865"
- [IETF datatracker, draft-ietf-radext-deprecating-radius, Deprecating Insecure Practices in RADIUS: revision 10 of 2026-07-03, Active, WG Document, IESG state I-D Exists, no RFC number](https://datatracker.ietf.org/doc/draft-ietf-radext-deprecating-radius/) - where erratum 9034's requirement comes from: an Internet-Draft, not an RFC (the datatracker API answered on 2026-11-08 at 20:02 São Paulo: rev 10, rfc null, expires 2027-01-04)
- [RFC 2866, RADIUS Accounting, June 2000: sections 3, 4.1 and 5.13](https://www.rfc-editor.org/rfc/rfc2866.txt) - UDP 1813, the accounting maximum of 4095 octets, the zeroed Request Authenticator, the Accounting-Request rules and table of attributes, the Accounting-Response
- [RFC 2868, RADIUS Attributes for Tunnel Protocol Support, June 2000: sections 3.1 to 3.10 and 4](https://www.rfc-editor.org/rfc/rfc2868.txt) - the Tag of the tunnel attributes (0x01 to 0x1F, 0 unused, above 0x1F the first octet of the string), the Tunnel-Password Salt and encryption, the table of attributes
- [RFC 2869, RADIUS Extensions, June 2000: sections 5.4, 5.8, 5.14, 5.15 and 5.19](https://www.rfc-editor.org/rfc/rfc2869.txt) - Message-Authenticator at most once in an Access-Request, -Accept, -Reject or -Challenge; for Share results, ARAP-Password (the dial-in user's challenge and response), ARAP-Security-Data (a security module's challenge or response) and ARAP-Challenge-Response (DES of the challenge with the user's password as the key), zeroed in a shared copy
- [RFC 3162, RADIUS and IPv6, August 2001: sections 2.1 and 3](https://www.rfc-editor.org/rfc/rfc3162.txt) - NAS-IPv6-Address as a NAS identity, the table of the IPv6 attributes
- [RFC 3579, RADIUS Support For Extensible Authentication Protocol (EAP), September 2003: sections 3.1, 3.2, 3.3, 4.3.3 and 4.3.4](https://www.rfc-editor.org/rfc/rfc3579.txt) - EAP-Message (in order, consecutive, concatenated), Message-Authenticator (HMAC-MD5, Length 18, required with EAP-Message, optional in any other Access-Request), the table of attributes and its Note 1; for Share results, the shared secret's exposure to an offline dictionary attack "based on capture of the Response Authenticator or Message-Authenticator attribute" (s4.3.3) and the known-plaintext attack on the hidden attributes (s4.3.4)
- [RFC 3580, IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines, September 2003: sections 3.20, 3.21 and 3.31](https://www.rfc-editor.org/rfc/rfc3580.txt) - VLAN assignment with Tunnel-Type VLAN (13), Tunnel-Medium-Type 802 (6) and Tunnel-Private-Group-ID as the VLAN ID 1 to 4094 in decimal
- [RFC 5176, Dynamic Authorization Extensions to Remote Authentication Dial In User Service (RADIUS), January 2008: sections 2.3 and 7](https://www.rfc-editor.org/rfc/rfc5176.txt) - UDP 3799, the Request and Response Authenticators of Disconnect and CoA packets (the Request Authenticator "calculated the same way as for an Accounting-Request"), the three example traces
- [RFC 5997, Use of Status-Server Packets in the Remote Authentication Dial In User Service (RADIUS) Protocol, August 2010: sections 3, 5 and 6](https://www.rfc-editor.org/rfc/rfc5997.txt) - the Status-Server Authenticator, the required Message-Authenticator, the table of attributes, the six example packets
- [RFC Editor, errata for RFC 5997](https://www.rfc-editor.org/errata/rfc5997) - two errata held for document update (2507 on section 3, 2508 on section 4.6.2), neither on the section 6.2 reply whose text says Accounting-Response and whose first octet says Access-Accept; its Response Authenticator is the MD5 over Code 5 with the RFC's secret, so the octet is the misprint (re-read 2026-11-08 at 20:02 São Paulo)
- [RFC 6929, Remote Authentication Dial In User Service (RADIUS) Protocol Extensions, April 2013: sections 2.1 to 2.8 and 9](https://www.rfc-editor.org/rfc/rfc6929.txt) - the Extended Type and Long Extended Type formats, the More and Truncation flags, TLVs, Extended-Vendor-Specific, the dotted identifiers, malformed packets versus invalid attributes, the 18 attribute examples
- [RFC 8044, Data Types in RADIUS, January 2017: section 3](https://www.rfc-editor.org/rfc/rfc8044.txt) - the data types and their sizes: integer, enum, time, text, string, concat, ifid, ipv4addr, ipv6addr, ipv6prefix, ipv4prefix, integer64, tlv, vsa, extended, long-extended, evs, and when each is an invalid attribute
- [RFC 2548, Microsoft Vendor-specific RADIUS Attributes, March 1999: sections 2.1 to 2.7 and 4](https://www.rfc-editor.org/rfc/rfc2548.txt) - Vendor-Id 311 and the Vendor-Type of each MS- sub-attribute; MS-MPPE-Send-Key and MS-MPPE-Recv-Key (Salt, encrypted key); MS-CHAP-MPPE-Keys encrypted "using the same method defined for the User-Password Attribute"; the old and new ARAP passwords "DES-encrypted"; "MS-CHAP, like PPP CHAP, is susceptible to dictionary attacks" (s4)
- [RFC 2759, Microsoft PPP CHAP Extensions, Version 2, January 2000: section 8.7](https://www.rfc-editor.org/rfc/rfc2759.txt) - GenerateAuthenticatorResponse(), the 42-octet authenticator response MS-CHAP2-Success carries, computed from the password, the NT-Response and the two challenges: zeroed in a shared copy
- [RFC 5090, RADIUS Extension for Digest Authentication, February 2008: sections 3.1, 3.4, 3.19 and 8.2](https://www.rfc-editor.org/rfc/rfc5090.txt) - Digest-Response and Digest-Response-Auth, each of which lets one side "prove possession of the password", and Digest-HA1, which "makes offline dictionary attacks easier": zeroed in a shared copy
- [RFC 5904, RADIUS Attributes for IEEE 802.16 Privacy Key Management Version 1 (PKMv1) Protocol Support, June 2010: section 3.7](https://www.rfc-editor.org/rfc/rfc5904.txt) - PKM-AUTH-Key: a four-octet Lifetime, a Sequence octet and the authorization key encrypted under the subscriber station's public key, zeroed in a shared copy
- [RFC 3748, Extensible Authentication Protocol (EAP), June 2004: sections 4, 5.1 to 5.6, 7.6 and 7.14](https://www.rfc-editor.org/rfc/rfc3748.txt) - the EAP header carried in EAP-Message: Code, Identifier, Length (padding, silently discarded when too long), Type; for Share results, MD5-Challenge, OTP and GTC rated "Dictionary attack prot.: No", GTC's Response carrying "the Token Card information necessary for authentication", and cleartext passwords (s7.14)
- [RFC 5952, A Recommendation for IPv6 Address Text Representation, August 2010: sections 4 and 5](https://www.rfc-editor.org/rfc/rfc5952.txt) - how the IPv6 addresses and prefixes of the attributes are printed
- [RFC 3629, UTF-8, a transformation format of ISO 10646, November 2003](https://www.rfc-editor.org/rfc/rfc3629.txt) - well-formed UTF-8 for text values
- [RFC 9765, RADIUS/1.1: Leveraging Application-Layer Protocol Negotiation (ALPN) to Remove MD5, April 2025 (Experimental): section 4.1](https://www.rfc-editor.org/rfc/rfc9765.txt) - the RADIUS/1.1 header (Reserved-1, Token, Reserved-2) over TLS, which the octets alone cannot be told apart from
- [RFC 8907, The Terminal Access Controller Access-Control System Plus (TACACS+) Protocol, September 2020: sections 1, 3.4, 4.1, 4.5, 6, 7 and 10.1](https://www.rfc-editor.org/rfc/rfc8907.txt) - TCP port 49, the 12-byte header (version, type, seq_no, flags, session_id, length), the obfuscation that is not encryption, authentication, authorization and accounting as three separate exchanges, Device Administration
- [RFC 9887, Terminal Access Controller Access-Control System Plus (TACACS+) over TLS 1.3, December 2025: sections 1 and 3](https://www.rfc-editor.org/rfc/rfc9887.txt) - TCP port 300 for TACACS+ over TLS, and the obfuscation it makes obsolete
- [RFC 6614, Transport Layer Security (TLS) Encryption for RADIUS, May 2012 (Experimental)](https://www.rfc-editor.org/rfc/rfc6614.txt) - RADIUS over TLS on TCP port 2083
- [IANA, RADIUS Types registry (last updated 2026-10-09): RADIUS Packet Type Codes, RADIUS Attribute Types with their data types, and the value sub-registries](https://www.iana.org/assignments/radius-types/radius-types.xhtml) - every Code, attribute and value name the decoder prints, and each attribute's RFC 8044 data type (read as XML)
- [IANA, Extensible Authentication Protocol (EAP) Registry (last updated 2026-08-31): Packet Codes and Method Types](https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml) - the names of the EAP Code and Type inside EAP-Message (read as XML)
- [IANA, Private Enterprise Numbers registry (last updated 2026-11-06)](https://www.iana.org/assignments/enterprise-numbers.txt) - the organization names of Vendor-Ids 1, 9, 11, 311, 1916, 2011, 2636, 5624, 14823, 14988, 30065 and 47196, as published
- [IANA, Service Name and Transport Protocol Port Number Registry](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml) - tacacs 49, tacacss 300, radius 1812, radius-acct 1813, radsec 2083, radius-dynauth 3799 (read as CSV)
- [IANA, Assigned Internet Protocol Numbers](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml) - 17 is UDP, for the pasted IP packets the decoder recognizes and refuses with a reason
- [IANA, IEEE 802 Numbers: EtherTypes](https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xhtml) - 0x0800 IPv4 and 0x86DD IPv6, for the pasted Ethernet frames the decoder recognizes and refuses with a reason
- [RFC 791, Internet Protocol, September 1981: section 3.1](https://www.rfc-editor.org/rfc/rfc791.txt) - the IPv4 header's version, IHL, Total Length and Protocol, to recognize a pasted IP packet
- [RFC 8200, Internet Protocol, Version 6 (IPv6) Specification, July 2017: section 3](https://www.rfc-editor.org/rfc/rfc8200.txt) - the IPv6 header's Payload Length and Next Header, to recognize a pasted IP packet
- [RFC 768, User Datagram Protocol, August 1980](https://www.rfc-editor.org/rfc/rfc768.txt) - the UDP header (ports, length), to name the ports of a pasted packet
- [RFC 894, A Standard for the Transmission of IP Datagrams over Ethernet Networks, April 1984](https://www.rfc-editor.org/rfc/rfc894.txt) - EtherType 0x0800 for IPv4 in an Ethernet frame
- [RFC 2464, Transmission of IPv6 Packets over Ethernet Networks, December 1998: section 3](https://www.rfc-editor.org/rfc/rfc2464.txt) - EtherType 0x86DD for IPv6 in an Ethernet frame
- [Wireshark, text2pcap(1) manual page, Text2pcap 4.6.9](https://www.wireshark.org/docs/man-pages/text2pcap.html) - the hex dump format Wireshark copies and text2pcap reads: an offset of 3 to 8 hex digits (optional 0x and colon), the bytes, an ignored ASCII column, '#' comment lines
- [Cisco, Security Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9300 Switches): Configuring RADIUS](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/sec/b_1718_sec_9300_cg/configuring_radius.html) - Vendor-Id 9, vendor-type 1 cisco-avpair, the protocol:attribute sep value format with = mandatory and * optional, shell:priv-lvl=15 (read with WebFetch: cisco.com answered curl with HTTP 403)
- [Juniper Networks, User Access and Authentication Administration Guide (Junos OS): RADIUS Authentication, Juniper Networks Vendor-Specific RADIUS Attributes](https://www.juniper.net/documentation/us/en/software/junos/user-access/topics/topic-map/user-access-radius-authentication.html) - Vendor-Id 2636 and Table 1: Juniper-Local-User-Name (1) to Juniper-Deny-Configuration-Regexps (14), their types
- [Arista Networks, EOS User Manual 4.36.2F: User Security](https://www.arista.com/en/um-eos/eos-user-security) - Vendor-Id 30065, Arista-AVPair (1, string) with shell:priv-lvl and shell:roles, Arista-Config-Vlan (22, no data type given) (read with WebFetch: arista.com answered curl with HTTP 406)
- [HPE Aruba Networking, AOS-CX 10.16 Security Guide: Vendor-Specific Attributes in session authorization](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/security_8100-8360/Content/Chp_Sppt_RADIUS_att/rad-ses-aut-att-vsa-fl-10.htm) - Vendor-Id 14823 and ten sub-attributes with their numbers and types, from Aruba-User-Role (1) to Aruba-PoE-Allocate-By-Method (70) (read with WebFetch: the site answered curl with HTTP 403)
- [Extreme Networks, Switch Engine v33.7.1 User Guide: Supported RADIUS Attributes (Table 143) and Extreme Networks VSAs (Table 146)](https://documentation.extremenetworks.com/Switch%20Engine%20v33.7.1%20User%20Guide/downloads/Switch_Engine_33_7_1_User_Guide.pdf#page=1619) - Vendor-Id 1916 and the sub-attributes 201 to 234, with the types Table 146 gives (pages 1609 and 1619 to 1620)
- [MikroTik, RouterOS manual 7.24: RADIUS, MikroTik Specific RADIUS Attribute Numeric Values](https://manual.mikrotik.com/docs/7.24/authentication-authorization-accounting/radius/) - Vendor-Id 14988 and the names of sub-attributes 1 to 30 (the table gives no data types); "Mikrotik-Wireless-Enc-Key - WEP encryption key for the client", zeroed in a shared copy with MIKROTIK_WIRELESS_PSK and MIKROTIK_WIRELESS_MPKEY (re-read with curl 2026-11-08 at 20:05 São Paulo)
- [Huawei, S5700 and S6700 V200R025C00 Configuration Guide - User Access and Authentication (EDOC1100514529): AAA Configuration, Understanding AAA, RADIUS AAA, Table 1-11 Huawei proprietary RADIUS attributes (read in a browser on 2026-11-08: the site refuses automated reads)](https://support.huawei.com/enterprise/en/doc/EDOC1100514529/35071f9a/radius-aaa) - "The vendor ID of Huawei is 2011" and the 68 sub-attributes of Table 1-11 with their numbers, names and types (integer, string, ipaddr, hex); HW-Exec-Privilege (26-29): "The value ranges from 0 to 15. The priority that is greater than or equal to 16 is ineffective."; rows 26-158 and 26-253 read again at 21:05: HW-DHCP-Option, "DHCP Option, encapsulated in Type-Length-Value (TLV) format", "Only Option 82 can be delivered."; HW-Framed-IPv6-Address, "IPv6 address to be configured for the user."
- [RFC 3046, DHCP Relay Agent Information Option, January 2001: sections 2.0, 3.1 and 3.2](https://www.rfc-editor.org/rfc/rfc3046.txt) - Option 82 inside Huawei's HW-DHCP-Option: its sub-options as code, length and value, a minimum length of two, sub-option 1 Agent Circuit ID ("an agent-local identifier of the circuit") and 2 Agent Remote ID ("MUST be globally unique"), whose values a shared copy zeroes; no errata listed on 2026-11-08
- [Cisco, Compare TACACS + and RADIUS, tech note 13838, updated 30 June 2025 (read in a browser on 2026-11-08: the site refuses automated reads)](https://www.cisco.com/c/en/us/support/docs/security-vpn/remote-authentication-dial-user-service-radius/13838-10.html) - the comparison panel's vendor view: "RADIUS uses UDP while TACACS+ uses TCP"; RADIUS hides only the password, "The remainder of the packet is unencrypted"; TACACS+ protects the body "but leaves a standard TACACS+ header" (where Cisco says encrypts, RFC 8907 says obfuscation); "RADIUS combines authentication and authorization" and TACACS+ "separates AAA"
- [RFC Editor, RFC index (XML): the current status of each RFC above](https://www.rfc-editor.org/rfc-index.xml) - Draft Standard, Proposed Standard, Informational or Experimental, and the updates of RFC 2865, 2866, 3579, 5176 and 8907
- [RFC 3986, Uniform Resource Identifier (URI): Generic Syntax, January 2005: section 3.5](https://www.rfc-editor.org/rfc/rfc3986.txt) - the fragment, which carries a Share results link's copy and is not sent to the server

## Related reading

- [Keeping rogue devices off the network: 802.1X, NAC, port security and physical audits](https://ronutz.com/en/learn/keeping-rogue-devices-off-the-network-802-1x-nac-port-security-and-physical-audits.md): An unauthorized device connected to a network port, a cable or a keyboard has been the way into banks and a space laboratory, and the defences against it are a stack of standards, switch features, inventories and plain walks through the wiring closets. After reading, you can retell the DarkVishnya, UNC2891 and NASA JPL cases from their official and vendor reports, explain what IEEE 802.1X, MAC Authentication Bypass, MACsec, port security, DHCP snooping, dynamic ARP inspection and network access control each stop and do not stop, map the CIS, NIST, CISA, NCSC, PCI and Brazilian rules that require them, and run a physical audit of network closets that ends in isolating, preserving and reporting what you find.
- [RADIUS end to end: one 802.1X login, packet by packet](https://ronutz.com/en/learn/radius-end-to-end.md): What a switch and a RADIUS server actually say to each other when a laptop plugs in: the packet fields and codes of RFC 2865, the attributes that carry the identity and the policy, the EAP conversation relayed in EAP-Message attributes, the VLAN assignment of RFC 3580, the Start and Stop records of RFC 2866, the server-initiated Change of Authorization of RFC 5176, the proxy chain, and the two things the shared secret does and does not protect. Every number from the RFC it comes from.
- [TACACS+ for device administration: a login and a command, exchange by exchange](https://ronutz.com/en/learn/tacacs-plus-device-administration.md): How a router asks a server whether an engineer may log in, whether the command just typed may run, and how it records that it ran: the three packet types of RFC 8907, the 12-byte header, the START, REPLY and CONTINUE of authentication, the per-command authorization with its name=value arguments, the START, STOP and WATCHDOG of accounting, the obfuscation the RFC refuses to call encryption, the 1993 ancestor of RFC 1492, and the method-list discipline that keeps an estate reachable when the servers are not.
