CyberHunter
Local dataset, no network
// Databases & caches

Port 6379: Redis

Redis in-memory data store. Historically shipped without authentication.

6379

How Redis works

Databases & caches
appRAMGET user:42< 1 ms appRAMGET user:42< 1 ms

The application reads and writes values kept in memory: answers come back in well under a millisecond. Encryption is optional: traffic is only protected if TLS is enabled on the server and the client.

Transport
TCP
Exposure risk
9/10 critical if reachable from the Internet
Encryption
Optional TLSTLS only if negotiated
IANA status
Assigned1 registered service
Range
Registered (1024-49151)
01 Security

Is port 6379 dangerous?

Common attacks and weaknesses

  • Unauthenticated access to all data.
  • CONFIG SET abused to write SSH keys or cron jobs and take over the server.
  • Cryptominer campaigns targeting exposed instances.

How to secure it

  • Bind to localhost and keep protected-mode on.
  • Enable ACLs or requirepass and TLS.
  • Rename or disable dangerous commands (CONFIG, MODULE).
02 Registry

IANA registry entries for port 6379

ServicePortTransportDescriptionReferenceUpdated
redis 6379 TCP An advanced key-value cache and store - 2015-04-23
-6379-Reserved--

// source: IANA service name and port number registry

03 Check it

Which program uses port 6379, and is it reachable?

Linux

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

macOS

sudo lsof -nP -i :6379

Windows (PowerShell)

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

From another machine

nmap -p 6379 -sV <host>
nc -zv <host> 6379

Block it in the firewall

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

Redis in-memory data store. Historically shipped without authentication.

Is port 6379 TCP or UDP?

Port 6379 is registered for TCP.

Is it safe to open port 6379?

It is rated 9/10 (critical) when exposed to the Internet. Unauthenticated access to all data. Bind to localhost and keep protected-mode on.

How do I check if port 6379 is open?

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

05 Related

Latest vulnerability news

All news