Skip to main content

Kerberos on Linux

Status: Scaffold — content in progress

Linux uses MIT Kerberos (not Microsoft's implementation) for authentication, but it is fully interoperable with AD Kerberos (RFC 4120 + MS extensions).

Credential Cache Types

TypeLocationDescription
FILE/tmp/krb5cc_<uid>File on disk — stealable
DIRDirectory of filesPer-service caches
KEYRINGKernel keyringIn-memory, more secure
KCMsssd-kcm daemonSSSD-managed, harder to steal

Keytab Files

A keytab (/etc/krb5.keytab) contains long-term key material for machine/service accounts. If stolen:

  • Use kinit -k -t /etc/krb5.keytab host/machine@DOMAIN to get a TGT as the service account
  • Persistent access until keytab is revoked

Attacks

AttackToolWhat you get
ccache theftklist, copy .ccache fileReuse Kerberos tickets — Pass-the-Ticket on Linux
Keytab theftCopy /etc/krb5.keytabLong-term Kerberos authentication as service account
TopicLink
Pass-the-Ticketpass-the-ticket
Linux SSSDlinux-sssd