- Keep directory and authentication services on internal networks.
- Require signing or TLS and disable anonymous queries.
- Monitor authentication failures for spraying and brute force.
Port 7004: AFS/Kerberos authentication service
Port 7004 is assigned by IANA to afs3-kaserver (AFS/Kerberos authentication service).
How afs3-kaserver works
Directory & authenticationThe client proves who it is on port 7004 and gets an answer (or a ticket) it can use with other services.
- Transport
- TCP · UDP
- Exposure risk
- not rated depends on the program listening
- Encryption
- Unknownnot stated by the registry
- IANA status
- Assigned1 registered service
- Range
- Registered (1024-49151)
- Category
- Directory & authentication
Is port 7004 dangerous?
We have no specific security note for port 7004. Its risk depends on the program actually listening on it. General advice for directory & authentication services:
IANA registry entries for port 7004
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| afs3-kaserver | 7004 | TCP, UDP | AFS/Kerberos authentication service | - | - |
// source: IANA service name and port number registry
Which program uses port 7004, and is it reachable?
Linux
sudo ss -ltnup 'sport = :7004' # process listening on 7004
sudo lsof -nP -i :7004macOS
sudo lsof -nP -i :7004
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 7004 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 7004 netstat -ano | findstr :7004
From another machine
nmap -p 7004 -sV <host> sudo nmap -sU -p 7004 <host> nc -zv <host> 7004
Block it in the firewall
sudo ufw deny 7004/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 7004" -Direction Inbound -LocalPort 7004 -Protocol TCP -Action Block # Windows
What is port 7004 used for?
Port 7004 is assigned by IANA to afs3-kaserver (AFS/Kerberos authentication service).
Is port 7004 TCP or UDP?
Port 7004 is registered for TCP and UDP.
Is it safe to open port 7004?
It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Keep directory and authentication services on internal networks.
How do I check if port 7004 is open?
On Linux run "ss -ltnup 'sport = :7004'", on macOS "lsof -nP -i :7004", and on Windows "netstat -ano | findstr :7004" to see the local process. From another machine, "nmap -p 7004 <host>" shows whether it is reachable.