IPMI: Hacking servers that are turned "off"

Published: 2012-06-07
Last Updated: 2012-06-07 21:50:10 UTC
by Johannes Ullrich (Version: 1)
3 comment(s)

 One of the challenge in managing large server farms remotely is how to deal with crashed / hanging servers once the operating system no longer responds. The classic answer is usually a mix of serial consoles, maybe KVM over IP devices and remote power switches. This equipment isn't just expensive, it also takes up valuable rack space, requires power and lots and lots of extra messy cables.

To make things easier, Intel came up with "IPMI". the "Intelligent Platform Management Interface". Typically found in servers, versions of it can also be found in desktops targeting enterprise deployments. IPMI is by no means new, an the attack described here isn't new, but I still find that many system admins are not aware of the potential of modern implementations of IPMI (good or bad).

Over the years, there have been a number of different IPMI revisions. How much functionality you get depends on the motherboard vendor and the firmware you are using. But there are a few features that are common to pretty much all IPMI implementations:

  • IPMI is active once the server is connected to power. It does not depend on the server to be actually "switched on". 
  • IPMI is implemented as a specific circuit on the motherboard. Sometimes, you may find it on an optional plugin board. But it does not require CPU, RAM or other components
  • It may use an existing network card, and doesn't necessarily need a dedicated network card

If your operating system supports IPMI, you can use special software on the server to connect to it and use it for example to read the status of various sensors. Check the "openipmi" or "freeipmi" tools if you don't already have them installed.

IPMI is useful locally, but its real power comes to play remotely. IPMI version 1.0 was used over serial ports. Its main feature was to be able to remote power cycle as system. You can probably compare this to a kind of "Wake on LAN" but over serial with the ability to turn power off, not just on. This eliminated the need for remote power controllers. As of version 1.5, it was possible to send IPMI messages over IP. The latest version, 2.0, includes support for blade servers, vLans and a number of additional features commonly found in modern networks.

In a current server implementing IPMI, you may find a full blown web server able to control the system remotely, including advanced features like flashing firmware. This pretty much does away with the need for a serial interface. However, you will lose the "out of band" character of a serial connection, that many of us count on for security. There are a couple basic steps you can use to secure IPMI:

  • setup a dedicated management network, and limit IPMI to the network card connected to the management network.
  • review the BIOS configuration option for IPMI. If you can't have a physical management network, at least try to use a VLAN if supported.
  • keep IPMI firmware up to date. It may be included in motherboard firmware updates or delivered as a distinct package.
  • eliminate IPMI access over insecure protocols like HTTP. Use HTTPS with proper certificates, or SSH
  • do not use default passwords
  • try to integrate IPMI authentication with existing authentication systems. Options typically include RADIUS and AD.
  • review hardening options your IPMI implementation provides. You may be able to limit access from IP addresses, or turn off various features you do not need
  • inventory servers with IPMI capability

Finally as a bonus, a little video showing one recent IPMI implementation: 


[1] http://www.intel.com/design/servers/ipmi/index.htm




Johannes B. Ullrich, Ph.D.
SANS Technology Institute


Keywords: ipmi
3 comment(s)

Microsoft June Security Bulletin Advance Notification

Published: 2012-06-07
Last Updated: 2012-06-07 17:22:30 UTC
by Johannes Ullrich (Version: 1)
0 comment(s)

Microsoft released its advance notification for next weeks patch tuesday [1]. We should expect a total of 7 bulletins, 3 of which are rated critical, and 4 important. The bulletins cover the standard components (Windows, Office, Internet Explorer, .Net Framework) but also include one bulletin for Dynamics AX. Dynamics AX is part of Microsoft's enterprise resource planing (ERP) solution. I would expect only few users to be affected by this path . From the looks of it, this appears to be an "average" patch tuesday. 

[1] http://technet.microsoft.com/en-us/security/bulletin/ms12-jun

Johannes B. Ullrich, Ph.D.
SANS Technology Institute

Keywords: microsoft patch
0 comment(s)
ISC StormCast for Thursday, June 7th 2012 http://isc.sans.edu/podcastdetail.html?id=2584


eweew<a href="https://www.seocheckin.com/edu-sites-list/">mashood</a>
dwqqqwqwq mashood
[https://isc.sans.edu/diary.html | https://isc.sans.edu/diary.html]
What's this all about ..?
password reveal .

Diary Archives