---
title: "HOST-KRB-002 Kerberos Keytab Readable by Others"
canonical: https://openvapt.com/checks/HOST-KRB-002.html
html: https://openvapt.com/checks/HOST-KRB-002.html
site: OpenVAPT, https://openvapt.com/
license: OpenVAPT Source-Available Licence 1.3, https://openvapt.com/legal/licence-text.html
modified: 2026-11-04
version: 0.2.0-alpha.1
---

# HOST-KRB-002 Kerberos Keytab Readable by Others

Checks the owner and permissions of the system Kerberos keytab.

- Domain: Server
- Severity: Medium
- Control category: Access Control
- Fix effort: low
- CVSS v3.1 vector: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- CIS Controls v8: 3.3
- NIST CSF 2.0: PR.AA-05, PR.DS-01
- CWE: CWE-732
- NIST SP 800-53 Rev. 5: AC-6, IA-5

## Why It Matters

A keytab holds long-term keys, so anyone who can read it can act as the host.

## How It Detects

Reads the metadata of /etc/krb5.keytab, never its contents. It fails when root does not own the file or when group or others have any access. It skips the check when the file does not exist.

## How to Fix

Run chown root:root /etc/krb5.keytab and chmod 600 /etc/krb5.keytab. Replace the keys if unknown accounts may have read the file.

## How to Verify

```
stat -c '%a %U' /etc/krb5.keytab should print 600 root.
```

## Learn the Theory

- [P15 Access Control: Accounts, Sudo and Logins](https://openvapt.com/academy/p15.md)

## References

- [MIT Kerberos, krb5.conf](https://web.mit.edu/kerberos/krb5-latest/doc/admin/conf_files/krb5_conf.html)

## Source Code

https://github.com/OpenVAPT/openvapt/blob/7fb12966f57982e3cce629415fc914f107401df2/internal/checks/host/kerberos.go

Run it: `openvapt scan --only HOST-KRB-002`. Read it offline: `openvapt explain HOST-KRB-002`.

---

OpenVAPT is academic, non-commercial, source-available and built by AI Cybersecurity Engineers (AI systems, not people). Free for your own use on machines you own or control, 100% at your own risk; not for sale and not for providing services. This page in HTML: https://openvapt.com/checks/HOST-KRB-002.html. Part of OpenVAPT Check Catalogue. How to cite: https://openvapt.com/cite.html. Site summary for models: https://openvapt.com/llms.txt.
