Skip to content

johncada27/Vulnbuster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is VulnBuster?

VulnBuster is a command-line tool we developed that is able to detect LOLBins and generate relevant CVE reports based on the installed applications and drivers found on the system. A key defining feature is that the tool does not require administrator privileges and does not require any external program or dependency to run.

What is a LOLBin?

Before we go into detail on the tools’ main features, we would like to elaborate on what Living off the Land Binaries are. Living off the Land Binaries, or LOLBins for short, are trusted tools that are either provided by the operating system or pre-installed by the organization. These do have a legitimate purpose,LOLBins are dangerous as they are hard to detect using conventional antivirus/detection tools. Our tool is able to detect these LOLBins.

Technology Used

The tool was developed in C#, and is built as a dll file. We use ReGasm, a built-in Windows utility to run the tool. ReGasm is used to register/unregister assemblies. ReGasm has an exploit in which we can specify in our source code the code to be ran during the registration/unregistration process. Since non-administrators can only unregister assemblies, we put the main body of our code to be ran during the unregistration process. We do this through the ComUnregisterFunction attribute in C#. Therefore ironically, we exploit a LOLBin to be able to run our code without admin rights.

Main Features

The first feature of the tool is that it is able to generate CVE reports for the software installed on the computer. They can either auto-generate the CVE reports for all applications or select the applications to generate the CVE reports for manually.

The database used to generate these CVE reports comes in the form of json files from the NVD website data feed: (https://nvd.nist.gov/vuln/data-feeds) We serialize the JSON files into a single C# root object, and use that object to reference all CVE items for that file. The CVE Report comes in the form of a text file, which contains the following properties:

  1. CVE ID
  2. Description
  3. Attack Vector
  4. Attack Complexity
  5. Privileges Required
  6. User Interaction
  7. Confidentiality Impact
  8. Integrity Impact
  9. Availability Impact
  10. Base Score
  11. Base Severity

The second feature of the tool is that it is capable of finding LOLBins in the system. The tool makes use of the list of LOLBins provided at https://github.com/LOLBAS-Project/LOLBAS. The tool would first download files containing information of each LOLBin. These files would be downloaded to Documents\LOLInfo. VulnBuster would retrieve the list of LOLBin filenames from the previously downloaded files. A search would be done to find directories containing the specified LOLBin filename. For each found LOLBin path, a check would be done to determine whether the executable can be run by the current user. This is done by attempting to run the executable and catching any permission related errors. Any of these errors would then flag the LOLBin as not executable by the current user. The search result along with a sign to indicate whether the user has permissions to execute the LOLBin in the path. Total time taken for LOLBin search would be displayed as well.

Video Demo

https://youtu.be/tVCXVLHksIw

How to use our tool

  1. Run 'runtool.bat'. This will simply unregister the VulnBuster.dll in the tool folder using regasm.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published