CyberHunter
// Databases & caches

Port 7002: users & groups database

Port 7002 is assigned by IANA to afs3-prserver (users & groups database).

7002

How afs3-prserver works

Databases & caches
app:7002afs3-prserver app:7002afs3-prserver

The application sends a SQL query to the afs3-prserver server on port 7002, which returns rows from its tables.

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)
01 Security

Is port 7002 dangerous?

We have no specific security note for port 7002. Its risk depends on the program actually listening on it. General advice for databases & caches services:

  • Bind the service to localhost or a private network, never to a public address.
  • Enable authentication, use per-application accounts and require TLS.
  • Watch for exposed Docker ports: publish them on 127.0.0.1 only.
02 Registry

IANA registry entries for port 7002

ServicePortTransportDescriptionReferenceUpdated
afs3-prserver 7002 TCP, UDP users & groups database
Reported: Known Unauthorized Use on port 7002
- -

// source: IANA service name and port number registry

03 Check it

Which program uses port 7002, and is it reachable?

Linux

sudo ss -ltnup 'sport = :7002'      # process listening on 7002
sudo lsof -nP -i :7002

macOS

sudo lsof -nP -i :7002

Windows (PowerShell)

Get-NetTCPConnection -LocalPort 7002 -State Listen | Select LocalAddress, OwningProcess
Get-NetUDPEndpoint -LocalPort 7002
netstat -ano | findstr :7002

From another machine

nmap -p 7002 -sV <host>
sudo nmap -sU -p 7002 <host>
nc -zv <host> 7002

Block it in the firewall

sudo ufw deny 7002/tcp                                         # Linux (ufw)
New-NetFirewallRule -DisplayName "Block 7002" -Direction Inbound -LocalPort 7002 -Protocol TCP -Action Block  # Windows
04 FAQ
What is port 7002 used for?

Port 7002 is assigned by IANA to afs3-prserver (users & groups database).

Is port 7002 TCP or UDP?

Port 7002 is registered for TCP and UDP.

Is it safe to open port 7002?

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. Bind the service to localhost or a private network, never to a public address.

How do I check if port 7002 is open?

On Linux run "ss -ltnup 'sport = :7002'", on macOS "lsof -nP -i :7002", and on Windows "netstat -ano | findstr :7002" to see the local process. From another machine, "nmap -p 7002 <host>" shows whether it is reachable.

05 Related