Skip to content
AdminKit

Is port 623 (IPMI) exposed to the internet?

AdminKit's short answer: if UDP port 623 on your public IP answers, a server's baseboard management controller is speaking IPMI to the internet. IPMI 2.0 hands a password hash to anyone who names a valid user, and some controllers accept cipher zero logins with any password. Keep BMCs on an isolated management network.

By AdminKit team, Netbase JSC · Updated

Key takeaways

  • UDP port 623 carries IPMI over LAN, the protocol a server’s baseboard management controller (BMC) uses for power control, sensors and a remote serial console, whatever state the host operating system is in.
  • IPMI 2.0 has weaknesses written into the specification: the RAKP handshake gives a stranger a crackable password hash for any valid user, and cipher suite 0 lets some BMCs accept any password.
  • Many BMCs have shipped with well-known default accounts, and some allow an anonymous null user. The same controller often also runs a web interface, SSH and a remote console.
  • AdminKit’s port check does not test 623. Test it by hand from outside, against your own IP only, then move every BMC onto an isolated management network.

What is listening on port 623?

A baseboard management controller is a small computer built into a server’s mainboard. It has its own processor, firmware and network connection, and it keeps running while the server is powered off, crashed or reinstalling. The Rapid7 guide lists brand names such as HP iLO, Dell DRAC, Sun ILOM, Fujitsu iRMC, IBM IMM and Supermicro IPMI, and most of them speak the same open protocol: the Intelligent Platform Management Interface, IPMI.

HD Moore’s penetration tester’s guide to IPMI and BMCs on the Rapid7 blog describes BMCs as embedded computers for out-of-band monitoring, often ARM systems running Linux, connected directly to the host’s motherboard and reached either through a dedicated network port or by sharing one of the server’s own network cards. It notes that most BMCs expose a web interface, a command line over Telnet or SSH, and the IPMI network protocol on port 623, over UDP and sometimes TCP.

The IANA port registry lists UDP 623 as asf-rmcp, the Remote Management and Control Protocol that IPMI over LAN rides on. IPMI 1.5 used plain RMCP; IPMI 2.0 added RMCP+, a session layer with its own key exchange and cipher suites. The ipmitool client reaches 2.0 with its lanplus interface. These are the functions a reachable BMC usually offers:

BMC functionWhat it doesWhy it matters if reachable from outside
Chassis power controlPower on, power off, hard reset, boot device selectionA stranger can switch the server off or boot it from other media
Serial over LANThe host’s text console over the networkConsole access to the boot loader and operating system login
Sensors and event logTemperatures, fans, power supplies, hardware eventsReveals model, firmware level and what the server is
User managementAdd, enable and change BMC accounts and privilege levelsA foothold can create its own administrator account
Web UI and remote KVMBrowser management, graphical console, virtual mediaOften on ports 80, 443 and 5900 of the same address

Why does IPMI 2.0 give away a password hash?

The weakness sits in the handshake itself. IPMI 2.0 starts a session with RAKP, the RMCP+ Authenticated Key-Exchange Protocol. Dan Farmer’s write-up on cracking IPMI passwords remotely walks through it: the client sends a user name, and the BMC’s reply already contains a key exchange authentication code, an HMAC computed from the session IDs, random numbers, the BMC’s GUID, the requested privilege level, the user name and the user’s password. Nothing the client has sent so far proves that it knows the password.

That reply is all an attacker needs. With the input values from the exchange, they can compute the same HMAC for each password guess offline until one matches, without sending another packet to the BMC. Farmer also notes that the reply tells the client whether a user name exists, and that vendors ship default accounts that frequently cannot be removed. Because the behaviour is part of the specification, there is no firmware patch that switches it off while IPMI over LAN stays enabled. His own conclusion is short: keep BMCs behind firewalls and block UDP port 623.

The practical meaning for an exposed port is simple. Every IPMI user on that BMC is one offline guessing job away from being known, and the strength of each password is the only thing that decides how long the job takes.

What is cipher zero, and why is it dangerous?

IPMI 2.0 sessions use numbered cipher suites that set the authentication, integrity and encryption algorithms. The ipmitool manual page notes that its default is suite 17, which specifies RAKP-HMAC-SHA256 authentication, HMAC-SHA256-128 integrity and AES-CBC-128 encryption, and that the suite numbers come from a table in the IPMI 2.0 specification. Suite 0 is the one with no authentication, no integrity and no encryption.

In The Infamous Cipher Zero, Dan Farmer shows what that means in practice: a BMC with cipher zero enabled accepts a session for a valid user name with any password, and he goes on to create a new administrator account through it. He reports that one vendor had largely removed cipher zero from a hardware generation and another had stopped enabling it by default, and he asks readers to check their own systems rather than assume. The Nmap documentation for its ipmi-cipher-zero script describes the result as an authentication bypass: the only thing needed is a valid account, and most vendors ship a default admin account.

Which default and anonymous accounts matter?

Default credentials make both problems worse, because they hand over the valid user name that RAKP and cipher zero need. The Rapid7 guide lists the default user names and passwords of the major BMC brands at the time it was written and points out that only one vendor randomised the password during manufacturing. It also describes anonymous access: some BMCs ship with the first user account set to a null user name with a null password, which can be used to read or reset other accounts.

Vendors have moved away from shared defaults. Supermicro’s notice on its BMC unique password feature says that from November 2019 new systems in its listed product generations ship with a unique pre-programmed password for the admin user instead of the old default, with the password identified on a label. That helps new servers; it does not change older ones still running the old default, or a server whose administrator reset the password back to something simple.

How does a BMC end up reachable from the internet?

Rarely by design. These are the common paths:

  • A server rented or colocated with a public IP on the BMC. The management port gets an address from the same public range as the server, with no access list.
  • Shared NIC mode. The BMC shares one of the host’s network cards, so it is reachable wherever the host’s public interface is, even if nobody plugged in the dedicated management port.
  • A port forward for remote hands. Someone forwards 623 and the web UI so they can power-cycle a machine from home, and the forward stays.
  • A flat office or lab network. A small business puts its one server, its BMC and its staff on the same network behind a router with broad inbound rules.

How do you read AdminKit’s port check for port 623?

AdminKit’s open ports check tests the public IP you are browsing from, using TCP connections to a fixed list: 23, 554, 1883, 8883, 502, 7547, 80, 443 and 8080. It lists BACnet/IP (47808) and CoAP (5683) as not scanned, because they run over UDP. Port 623 is not on that list, and IPMI mostly uses UDP, so the check says nothing about IPMI either way. Confirm which address you are testing with what is my IP first.

The check can still hint at a BMC on the same address:

What the result showsWhat it tells you about IPMI
“0/9 TCP port(s) open” with an OK statusOnly the nine listed TCP ports were tested. UDP 623 may still answer
443 openMost BMCs offer web management, often over HTTPS. Find out what serves it, and test 623 too
80 or 8080 openA web interface, possibly a BMC’s, is reachable. Close it and test 623

Our guide on how to read an open ports scan result explains each tile and status in more detail.

How do you confirm port 623 from outside?

Use a machine outside your network, such as a laptop on a mobile hotspot, and test only your own public address. A plain TCP connection test does not work for UDP, so use the Nmap ipmi-version script, which sends an IPMI channel authentication probe and prints the reply (a documentation address is shown):

sudo nmap -sU -p 623 --script ipmi-version 203.0.113.40

The ipmi-version documentation shows the kind of answer a BMC gives: the IPMI version, the user authentication types and the password authentication options it supports. Any IPMI reply from your public address means the BMC answers from the internet; a result of “open|filtered” with no script output means nothing replied on that path. BMCs that also listen on TCP 623 can be checked with a connection test:

nc -vz -w 3 203.0.113.40 623

Stop there. Do not run password-guessing or hash-dumping tools against a production controller to prove the point; a version reply from outside is enough to justify the fix, and the rest of the checks belong on the management network.

How do you check the BMC from inside?

On the server itself, ipmitool can talk to the local BMC through the operating system’s IPMI driver, so you can inspect the LAN channel without going over the network. The LAN channel number varies by vendor; the examples use channel 1:

sudo ipmitool lan print 1
sudo ipmitool channel getciphers ipmi 1
sudo ipmitool user list 1

The first command shows the BMC’s IP address, VLAN and enabled authentication types. The second lists the cipher suites the channel supports; if suite 0 appears, check with your vendor’s tools or documentation how to disable it. The ipmitool manual describes lan set <channel> cipher_privs, which sets a maximum privilege level per suite and can mark a suite unused; read your vendor’s guidance before changing it, because a wrong value can lock out remote access. The third command lists accounts, so you can spot an empty or null user name and default administrator names.

How do you fix an exposed port 623?

Take the BMC off the internet first, then tighten what remains:

  1. Remove the public path. Delete the port forward, firewall rule or public address that reaches UDP and TCP 623 and the BMC’s web, SSH and console ports. Re-run the outside test and keep the dated result.
  2. Move BMCs to an isolated management network. Use the dedicated management port, put it on its own VLAN or physical network, and allow access only from an administrator jump host or VPN. Turn off shared NIC mode if the BMC should never appear on the host’s public interface.
  3. Use the BMC’s own access controls as a second layer. Supermicro’s BMC feature list includes IP access control, port configuration and role-based user accounts; other vendors offer similar settings. Restrict the management addresses allowed to connect and disable services you do not use.
  4. Disable cipher zero and anonymous access, and remove or rename default accounts where the firmware allows it.
  5. Set long, unique BMC passwords that are not reused anywhere else, because RAKP exposes a crackable hash for every IPMI user to anyone who can reach the port.
  6. Disable IPMI over LAN if you do not need it. Where the BMC also offers an HTTPS management API that your tools support, such as the Redfish API in Supermicro’s feature list, use that and turn off the IPMI LAN channel.
  7. Keep BMC firmware updated. The Rapid7 guide notes that BMCs share the problems of other embedded devices, such as outdated software, so add them to the same patch schedule as the servers they control.

Which other ports does a BMC open?

A BMC that answers on 623 usually runs more than IPMI. The Rapid7 guide shows a default-configured BMC answering on SSH, HTTP and HTTPS, a VNC remote console on 5900, a WS-Management listener on 5985, UPnP on 49152, and UDP 623 and 1900. Close those along with 623. Our guides on port 5900 (VNC) and port 22 (SSH) cover two of them, and the Windows management service on the same port number is covered in is port 5985 (WinRM) exposed. For other appliances that should stay on an internal network, see is port 9100 (printer) exposed, and browse the security basics cluster for related checks.

Which networks may you test?

Every check this page links to is for assets you own or are explicitly authorized to test. Never scan, probe, or attempt to connect to a network or device you don’t control. AdminKit’s active checks only ever run against the IP making the request or an asset you’ve verified ownership of. See our Disclaimer and Acceptable Use Policy for the full terms.

This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.

Frequently asked questions

What is port 623 used for?

UDP port 623 is the port IANA registers as asf-rmcp, the Remote Management and Control Protocol that IPMI over LAN runs on. A server's baseboard management controller (BMC) listens there so administrators can check health, power the machine on or off and open a serial console without the host operating system. Some BMCs also answer IPMI on TCP 623.

What is IPMI cipher zero?

Cipher suite 0 is the IPMI 2.0 option for no authentication, no integrity and no encryption. Dan Farmer showed that a BMC with cipher zero enabled accepts a session for a valid user name with any password at all, and the Nmap ipmi-cipher-zero script describes it as an authentication bypass. Default administrator accounts make a valid user name easy to guess.

Why can an attacker get a password hash from IPMI 2.0?

In the RAKP key exchange that IPMI 2.0 uses to start a session, the BMC sends back an HMAC computed from the requested user's password before the client has proved who it is. Anyone who can reach port 623 and names a valid user receives that value and can try passwords against it offline. Patching cannot remove this, because the behaviour is part of the specification.

Does AdminKit's port check test port 623?

No. The port check tests a fixed list of nine TCP ports (23, 554, 1883, 8883, 502, 7547, 80, 443, 8080) on the public IP you connect from, and lists two UDP ports as not scanned. Port 623 is not on that list, and IPMI mostly runs over UDP, so a clean result says nothing about your BMC. Test 623 manually from outside.

Is a strong BMC password enough to expose IPMI safely?

No. A long, unique password makes the leaked RAKP hash much harder to crack, but it does nothing about cipher zero on firmware that still allows it, anonymous or null-user accounts, or flaws in the BMC firmware itself. BMC access is equivalent to physical access to the server, so the interface belongs on a separate management network that only administrators can reach.

Want AdminKit to watch this for you?

Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.

Huy Nguyen (David), Founder and CEO of Netbase JSC

Talk to an expert

Huy Nguyen (David), Founder & CEO, Netbase JSC

Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.