CIS 2.4: Utilize software inventory tools, when possible, throughout the enterprise to automate the discovery and documentation of installed software.

This one’s not too hard if you’re not going for perfect. Let’s get into it.

Why

Most of the CIS value in governing installed software comes from desktops and laptops. First, they are exposed to far more internet than most other devices, and most compromise comes in from the internet. Second, you have people opening attachments, and clicking on things, often with localadmin. Finally, they are doing risky things: sending payments, typing passwords, and working with secret information.

The biggest risk from ungoverned software is vulnerabilities. The more software you have on a machine, the more bugs there are in total within that software. The more bugs, the more security-impacting bugs. The more security-impacting bugs, the more opportunities for malware to find a foothold.

The other major risk is from packaged malware: sometimes free software comes with a virus. This is especially common on poorly governed software sites like fosshub, cnet, and sourceforge. Many virus distributors leverage genuine software to push installs: they download a popular pieces of software, modify the installer to also include their virus, then upload it to a software site other than the official one. People searching for the software are then tricked into installing their version instead and get infected. This method became especially popular within the warez community: illegal copies of software often come with a virus.

Alternately, even the authoritative source for a piece of software can be a source of compromise: if the original author transfers control of the project to someone else, that person could introduce malware in subsequent versions. These supply chain attacks are on the rise, and even a pedigreed, popular program can be a source of malware.

Desktops accumulate all sorts of junk. When people need to solve a new problem, their first instinct is to find a program that fixes it.

As much as we’d like them to care about the indicators of risky software, they won’t, and it’s unreasonable to expect them to. The specific knowledge that makes for an excellent Manufacturing Quality Engineer has no overlap with the knowledge to assess the risk of downloaded software.

Knowing what Peggy the QE has installed on her desktop doesn’t solve this problem: you’ll need some of the other CIS 2 controls as well; they all work together.

In addition to the larger CIS 2 goals, an inventory delivers two advantages:

  • It helps you understand the size of your problem and risk. Knowing there are 3 installs of SVG Viewer, 400 installs of AutoHotkey, and 3000 installs of Teamviewer can give you valuable insight into risk across your organization, allowing you to make a case for resources and to prioritize improvements.
  • It can be a great way to verify that security work had the desired effect. For instance, if Jeff says he patched his server but the discovery engine reports the old version, you may need to check in again.

How

Except for Linux-native tools, you usually need an agent on each machine you’re discovering. The manner and strategy of each depends highly on the device type and OS. Authenticated vulnerability scanning engines (CIS 7.5) can often also deliver software discovery, but often end up fronting leveraging native OS capabilities. Tenable, Rapid7, and Qualys are the major players in that space. EDR clients (CIS 12.7 and probably 10.1) also sometimes provide this.

Like your auto-discovered Inventory of IT Stuff, your discovered software list can be used by other teams. Many tools in this area are actually aimed at other teams. This includes Infrastructure management and licensing management – either defending against licensing audits or detecting whether people actually use software in order to pull it. Popular choices include Flexera and Snow for licensing and BMC, Track-It, and SolarWinds for infrastructure.

The data is also frequently used by mature infrastructure teams for patching. Knowing what software is installed on which systems can help them target common or critical combinations of installed software for more rigorous regression testing.

Overall Approach : you do not need to do agent installs everywhere; you’re not going for perfect. Start with discovering software on your worker endpoints – laptops and desktops first, then maybe phones. If there’s an existing software discovery capability in IT, get access and help champion it. If there’s no software discovery for servers, don’t bother: just push for CIS 4 and pick it up along the way.

Linux

You get a lot of excellent software discovery capabilities built into linux, especially if you’re using software managed by your linux publisher. apt and yum maintain libraries of perfectly tagged software, and most of the linux ecosystem even allows proprietary software to be installed through these mechanisms through adding repositories. They also deliver patches this way.

If you have a lot of software that’s manually installed, these tools will not know about it. While you can install software discovery agents, don’t spend any effort: such manual installation approaches are usually indicative of low-security capabilities in other ways, and your time would be better spent converting the manual process to a more governed pattern.

Example: if you run software just as an extracted tarball of code, you probably have a script or procedure for “installing”: where to get the tarball (maybe with a hardcoded credential to log into the sftp site), where to extract it, a repermissioning step, etc. Maybe this script was provided by your vendor. Each of these steps runs against the security model for linux, and you’ll be better off pushing your vendor to stand up a repo with proper version data and cryptographic code signing that you can just point to.

Some linux-native development languages and frameworks have other library/package management that come with them: we have composer for PHP and and npm for javascript. These development libraries aren’t really software in the CIS 2 sense, and are much better managed within your CI/CD pipeline than directly on each server running that code. As with containers, you should manage library dependencies as part of your software package.

Because linux does this so naturally, the best configuration management tools (ansible, puppet, chef) hook into apt and yum, governing software everywhere it’s installed. If you’re invested in linux, it may make more sense to focus on CIS 4 using one of these tools; you’ll knock out CIS 2 along the way.

Mobile Devices

In many ways, discovering software on iOS and Android are functionally equivalent to managing linux, but you spend money to do it. The software discovery is usually part of a larger configuration governance solution, with the trade category of Mobile Device Management (colloquially MDM, which is also used to refer to Master Data Management. Too many TLAs, I tell ya.)

Both iOS and Android have authoritative software repositories. Just like apt and yum, they have excellent package metadata, data/access sandboxing, adding additional repositories for proprietary software, and use the whole system for patching. They call them app stores and I’m not gonna get into the petty trademark squabbles.

JAMF is popular for Apple products, and MobileIron and Intune can cover both iOS and Android devices. Intune has nice hooks into the rest of the Microsoft ecosystem, including slick integrations into their CASB. You can push device-level and sometimes app configuration per CIS 4 with most such solutions. Apparently, there’s also whole slew of upstarts I haven’t heard of. If you’ve used one and have thoughts, I’d love to hear them.

Windows Servers

Often inventorying server software don’t add a lot of useful, actionable information: IT teams usually know what’s installed, and know why it needs to be there. In these circumstances, just talking to them and creating manual lists or architectural diagrams will yield better results: independently knowing that SAP is installed on the SAP servers and Sailpoint is installed on the Sailpoint servers isn’t gonna help you much. Knowing that there’s a parallel install of Java 1.4 on half your sailpoint servers might, but only for the purposes of the vulnerability management in CIS 7.

Microsoft is working toward an apt/yum approach with Windows. They’ve had SCCM for a while, which functions as a DIY repo, but is lacking in dependency management, good metadata, and ultimately requires expertise and a team. They’ve also started creating a response to ansible, chef, and puppet with DSC, but it looks half-built and I’m not sure if it’s yet ready to meaningfully manage anything. If you’ve used it in a production environment, I’d love to talk.

Windows desktops

As discussed, these are usually messy, and we’ll explore more about why in other CIS 2 articles. For the purposes of CIS 2.4, just get an agent on them, get the data digestible, and try not to let the mess bother you. Depending on the quality of the scanner you use, it may pick up gray-area software: browser plugins, portable binaries, and apps installed into the user home directory. If it doesn’t, don’t worry about it too much – other CIS 2 controls will address them.

Note : Microsoft is building a copycat of yum and apt called The Windows Store. It shows promise and has substantial security benefit over the free-for-all of the last 30 years. When possible, you should encourage it over manual installs, especially for simple software that doesn’t need bundled config. Still, it covers a minority of your software and is functionally useless for CIS 2.4 or CIS 4.

Summary

I see this control decreasing in importance: every year more functions move to webapps. The only big need is for heavy resource requirements: data crunching, 3D modeling, video editing, compiling code, and gaming. Even these are slowly moving to cloud-native designs. I admit that Word for Web is way more annoying than regular Word, but that poor experience is solely Microsoft’s design decisions; there’s no architectural reason why they need to be different experiences.

This is a good thing, too: webapp architectures permit better resiliency, data segmentation, and patching, and desktops become easier to keep secure and healthy.

Join me next week as we learn about what to do with all this wonderful data with CIS 2.3.