How to check whether AMT is enabled and provisioned under Linux
How do I check whether Intel Active Management Technology (AMT) and Intel Standard Manageability (ISM) enabled or disabled under Linux using command line for CVE-2017-5689 vulnerability?
The CVE-2017-5689 vulnerability defined as:
An unprivileged network attacker could gain system privileges to provisioned Intel manageability SKUs: Intel Active Management Technology (AMT) and Intel Standard Manageability (ISM). An unprivileged local attacker could provision manageability features gaining unprivileged network or local system privileges on Intel manageability SKUs: Intel Active Management Technology (AMT), Intel Standard Manageability (ISM), and Intel Small Business Technology (SBT).
You can find out whether AMT is enabled and provisioned under Linux using the following methods.
Method #1: mei-amt-check tool
Use mei-amt-check tool. It is a simple tool that tells you whether AMT is enabled and provisioned on Linux systems. Requires that the mei_me driver (part of the upstream kernel) be loaded.
Just type the following command: $ sudo ./mei-amt-check Sample outputs:
The above output indicate that AMT is enabled and it is not vulnerable to CVE-2017-5689.
If run on a Linux system with no AMT, output will look like:
Intel AMT: DISABLED
If AMT is enabled and provisioned, output will look like:
If AMT is enabled and provisioned and the AMT version is between 6.0 and 11.2, and you have not upgraded your firmware, you are vulnerable to CVE-2017-5689. Disable AMT in your system firmware.
Method #2: Use nmap
Download a script as follows using wget command or curl command: $ wget https://svn.nmap.org/nmap/scripts/http-vuln-cve2017-5689.nse Run nmap command as follows to test 192.168.2.5: $ nmap -p 16992 --script http-vuln-cve2017-5689 192.168.2.5 Sample outputs:
Starting Nmap 7.40 ( https://nmap.org ) at 2017-05-14 22:39 IST
Nmap scan report for dellm6700 (192.168.2.15)
Host is up (0.00041s latency).
PORT STATE SERVICE
16992/tcp filtered amt-soap-http
Nmap done: 1 IP address (1 host up) scanned in 0.47 seconds
The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.