TACACS+ Encryption: What the Protocol Actually Hides, and What It Doesn’t

TLDR

  • Classic TACACS+ hides the packet body with an MD5-based pad, while the 12-byte header travels in clear text.
  • RFC 8907 calls the method obfuscation and tells operators not to rely on it (§4.5, §10.5).
  • Anyone with a capture and the shared key can read every body, including traffic recorded before the key leaked.
  • RFC 9887 (December 2025) defines TACACS+ over TLS 1.3 on TCP port 300 and makes obfuscation obsolete.

Picture a regional ISP preparing for its annual security audit. The auditor asks the question behind most searches on encryption in TACACS+ authentication: is device administration traffic encrypted? For classic TACACS+, the answer is no. Each packet body on TCP port 49 (RFC 8907 §3.4) is scrambled with a pad derived from MD5 and a shared key, and the 12-byte header in front of it stays readable.

Most write-ups stop at the comparison with RADIUS, where TACACS+ looks far stronger. That comparison leaves out the clear-text header and the MD5 underneath, which RFC 9887 §3 calls insecure for this purpose. A safer working assumption is that anyone who holds the key can read every TACACS+ session on port 49.

How TACACS+ obfuscation works

TACACS+ obfuscation XORs the packet body with a pseudo-random pad. XOR is a bitwise mix, and applying the same pad a second time reverses it. The pad comes from chained MD5 hashes of four inputs: the session ID, the shared key, the protocol version and the sequence number. Three of those inputs sit in the clear-text TACACS+ header. That leaves the TACACS+ shared key as the only secret in the scheme (RFC 8907 §4.5).

The MD5 pseudo-pad

Every packet gets a fresh pad. The first 16-byte block is MD5 over the four inputs. Each later block hashes the same inputs plus the block before it, and the chain runs until it covers the whole body. The sequence number goes up by one with every packet, so the device’s START and the server’s REPLY are XORed with different pads.

On receipt, the other side rebuilds the pad from the header and its own copy of the key, then XORs the body again to read it. That TACACS+ MD5 construction comes from the original draft the industry built on, and RFC 8907 kept it unchanged.

Figure 1 traces one authentication START packet through the process.

Why RFC 8907 calls it obfuscation

The original draft called this process encryption. RFC 8907 declines to use the word because the algorithm would not meet modern standards (§4.5). Its security section, §10.1, spells out the gap. The scheme gives no meaningful integrity or replay protection, and anyone with access to the data stream should be assumed able to read and modify every packet.

Section 10.3 gives an example of what missing integrity allows. An attacker on the path changes one byte, the authen_method field. That makes a network session look like a local console login, which some policies trust with every command. Known plaintext also lowers the cost of brute-forcing the key offline, and the scheme has no forward secrecy. A key leaked today from a config backup or a ticket attachment decodes every capture taken under that key. That includes traffic recorded months before anyone noticed the leak.

What a packet capture shows

On a classic session over TCP port 49, anyone who can capture traffic on the management network can read the IP addresses and the full 12-byte header. That is enough to see which device talked to which server and when. The type field labels each packet as authentication, authorization or accounting, so an observer can tell a login from a command check without the key.

Figure 2 shows the same packet layers under each of the three modes, and the table after it gives the detail with RFC sections.

Mode What a capture shows What stays hidden Status
Obfuscated body, port 49 (RFC 8907 §4.5) IP addresses; the 12-byte header (version, type, sequence number, flags, session ID, body length) The body, until someone applies the shared key Obsoleted by RFC 9887 §4; allowed only on a separated, secured network (RFC 8907 §10.5)
TACACS+ unencrypted flag set (0x01, RFC 8907 §4.1) The header and a clear-text body, including passwords and commands Nothing Deprecated; never for production (RFC 8907 §4.5)
TLS 1.3, port 300 (RFC 9887) IP addresses; the opening handshake messages, including the server name the device requests (§5.1.5); record sizes and timing The TACACS+ header and body; the certificates exchanged in the handshake (RFC 8446) Standards Track since December 2025; recommended for new deployments (§5.1.1)

Anyone decrypting a TACACS+ TLS session in a lab will find the TACACS+ unencrypted flag set on every inner packet. RFC 9887 §4 requires the flag there. TLS now protects the session, and the old MD5 pad must not be applied inside a TACACS+ TLS connection. On port 49, the same flag means clear-text bodies, and RFC 8907 §10.5.2 tells servers to reject those connections.

An ISP answers its auditor

Back at the regional ISP, the network team decides to test the question directly. They mirror a switch port on the management network and capture one engineer’s login to a broadband network gateway (BNG). Without the key, the capture shows an authentication START and REPLY on port 49. It then shows an authorization REQUEST for every command the engineer types, each with a body that reads as random bytes.

Next, someone loads the TACACS+ shared key from a config backup into a protocol analyzer. The username and password appear in plain text, and so does each command. In deployments we see one key shared across hundreds of devices and left unchanged for years. That turns a single backup file into a skeleton key for the whole estate.

The ISP answers the auditor with a two-track plan. BNGs whose software supports RFC 9887 move to TLS on port 300. The rest stay on port 49 inside a separated management network, as RFC 8907 §10.5 requires, and each device gets its own key.

TACACS+ vs RADIUS protection

TACACS+ vs RADIUS encryption comparisons usually name TACACS+ as the safer protocol, and on coverage alone that holds. RADIUS hides only the User-Password attribute in an Access-Request (RFC 2865 §5.2), while TACACS+ obfuscates the whole body. Both depend on MD5 and a shared secret, so neither meets current expectations for confidentiality.

That coverage gap is where the idea of TACACS+ full packet encryption comes from. The header still sits outside the protected area, though, and what protects the body is obfuscation.

  TACACS+ obfuscation (RFC 8907) RADIUS password hiding (RFC 2865) TACACS+ over TLS (RFC 9887)
What is hidden The packet body The User-Password attribute only (§5.2) The full TACACS+ packet, header included
What travels in clear The 12-byte header User-Name and every other attribute IP addresses and the opening handshake messages
Method MD5 pad from the shared key and header fields, XORed with the body MD5 of the shared secret and Request Authenticator, XORed with the password TLS 1.3 encryption with keys from a fresh handshake (RFC 8446)
Peer authentication Shared secret Shared secret Mutual certificates; pre-shared keys optional (§3.3)
Integrity None meaningful (§10.1) MD5 Response Authenticator on replies (§3) Every TLS record
Forward secrecy None None Yes, with certificate authentication

For how the two protocols divide device administration and subscriber access in an operator network, see TACACS+ vs RADIUS.

What RFC 9887 changes

RFC 9887 was published in December 2025 on the Standards Track. It wraps unchanged TACACS+ messages in TLS 1.3 on TCP port 300 (§3.1). It also updates RFC 8907 and declares obfuscation obsolete (§4). Every implementation must support certificate-based mutual authentication (§3.3), so the device and the server prove who they are without relying on an obfuscation key.

The background on both documents is in our guide to RFC 8907 and RFC 9887.

Moving without a downgrade

The riskiest period is the migration, when TLS and non-TLS servers run side by side. Clients must never fall back to port 49 when a TLS connection fails, and TLS servers must refuse non-TLS connections (§5.1.1). RFC 9887 recommends separate hosts for the two server types. It treats the whole mixed period as insecure until every device has moved (§6.1).

Devices that cannot run TLS yet stay on port 49, behind the controls in RFC 8907 §10.5. TACACS+ key rotation still matters for them. RFC 9887 §3.5 adds one rule for a mixed estate: the obfuscation keys must differ from any TLS pre-shared keys.

Is TACACS+ encrypted? What to tell your auditor

The answer that holds up in an audit is a list with one line per device. Devices on RFC 9887 run TACACS+ inside TLS 1.3 on port 300, and a capture of them shows only the opening handshake and encrypted records. Devices on port 49 run obfuscation, which RFC 8907 §10.5 accepts only on a separated management network. Each of those lines needs a reason and a move date.

The controls for the port 49 lines are specific:

  • A separate key of at least 16 characters per device
  • A rotation schedule
  • A management network kept apart from other traffic
  • A date for the move to TLS

Writing RFC 9887 support into every new server and device purchase keeps that part of the list getting shorter.

Conclusion

Bring your device list and your current key setup. An Alepo engineer will walk through per-command authorization and accounting on Alepo TACACS+ Server. It runs on the same platform as our RADIUS and Diameter AAA, so there is no separate product to patch and run.

Book a demo

Planning the move off port 49? Read our guide to deploying TACACS+ over TLS, or download the TACACS+ datasheet.

FAQs

Q1. Does TACACS+ encrypt traffic?

Classic TACACS+ on TCP port 49 obfuscates the packet body with an MD5-based pad, and RFC 8907 §4.5 declines to call that encryption. Encryption comes with RFC 9887, which runs TACACS+ inside TLS 1.3 on TCP port 300.

Q2. Is the TACACS+ header encrypted?

Under RFC 8907, never. The version, packet type, sequence number, flags, session ID and body length are readable in any capture. Under RFC 9887, the whole TACACS+ packet, header included, travels inside TLS.

Q3. Is TACACS+ obfuscation secure?

No. RFC 8907 §10.1 says it gives no meaningful integrity or replay protection. For TACACS+ encryption compliance reviews, RFC 9887 §3 adds that the MD5 basis keeps TACACS+ out of deployments that must meet FIPS 140-3.

Q4. How does TACACS+ encryption compare with RADIUS?

RADIUS hides only the User-Password attribute (RFC 2865 §5.2). TACACS+ obfuscates the whole body and leaves the header readable. Both rely on MD5 and a shared secret, and both now have TLS-based transports.

Q5. What does RFC 9887 change?

Published in December 2025, RFC 9887 runs TACACS+ inside TLS 1.3 on TCP port 300 (service name tacacss) and makes MD5 obfuscation obsolete. Implementations must support certificate-based mutual authentication, and clients must not fall back to port 49 when TLS fails.

Q6. Should you rotate the TACACS+ key?

Yes. RFC 8907 §10.5.1 asks administrators to change keys at regular intervals and to give each device its own key of at least 16 characters. Rotation protects future traffic only. Captures already taken under an old key stay readable to anyone who gets that key.

Q7. Can a packet capture read TACACS+?

Yes, if it has the key. RFC 8907 §4.1 notes that current traffic tools decode obfuscated TACACS+ when given the shared secret. Over TLS on port 300, a capture shows only the opening handshake and encrypted records.

Want to see how this applies to your business? Let’s talk.

Share the Post:

Latest Posts

Receive the latest news

Subscribe To Our Newsletter

Subscribe to our Newsletter

Receive the latest news

Subscribe To Our Newsletter