Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/securitywithoutborders/hardentools
Hardentools simply reduces the attack surface on Microsoft Windows computers by disabling low-hanging fruit risky features.
https://github.com/securitywithoutborders/hardentools
hardening security windows
Last synced: 5 days ago
JSON representation
Hardentools simply reduces the attack surface on Microsoft Windows computers by disabling low-hanging fruit risky features.
- Host: GitHub
- URL: https://github.com/securitywithoutborders/hardentools
- Owner: hardentools
- License: gpl-3.0
- Created: 2017-01-11T17:37:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-01T18:42:59.000Z (9 months ago)
- Last Synced: 2024-11-14T09:36:40.348Z (about 1 month ago)
- Topics: hardening, security, windows
- Language: Go
- Homepage:
- Size: 3.29 MB
- Stars: 2,932
- Watchers: 116
- Forks: 256
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-windows-domain-hardening - Hardentools - Collection of simple utilities designed to disable a number of "features" exposed by Windows (Uncategorized / Uncategorized)
- Starred-Repo - Disable Risky Windows Features
README
![Hardentools](https://github.com/securitywithoutborders/hardentools/raw/master/graphics/[email protected])
# Hardentools
[![Build Status](https://travis-ci.org/securitywithoutborders/hardentools.svg?branch=master)](https://travis-ci.org/securitywithoutborders/hardentools)
[![Go Report Card][goreportcard-badge]][goreportcard]Hardentools is designed to disable a number of "features" exposed by Microsoft Windows 10 and 11 and some widely used applications (Microsoft Office, LibreOffice and Adobe PDF Reader, for now). These features, commonly thought for enterprise customers, are generally useless to regular users and rather pose as dangers as they are very commonly abused by attackers to execute malicious code on a victim's computer. The intent of this tool is to simply reduce the attack surface by disabling the low-hanging fruit. **Hardentools is intended for individuals at risk, who might want an extra level of security at the price of *some* usability**. It is not intended for corporate environments.
> **WARNING**: This tool disables a number of features, including of Microsoft Office, Adobe Reader, and Windows, that might cause malfunctions to certain applications. You can find a complete list of changes [here](https://github.com/securitywithoutborders/hardentools/wiki). Use this at your own risk.
Bear in mind, after running Hardentools you won't be able, for example, to do complex calculations with Microsoft Office Excel or use the Command-line terminal, but those are pretty much the only considerable "downsides" of having a slightly safer Windows environment. Before deciding to use it, make sure you read this document thoroughly and understand that yes, something might break. In case you experience malfunctions as a result of the modifications implemented by this tool, please do let us know.
When you're ready, you can find the latest download [here](https://github.com/securitywithoutborders/hardentools/releases).
## What Hardentools IS NOT
- **Hardentools is NOT an Antivirus**. It does not protect your computer. It doesn't identify, block, or remove any malware.
- It does NOT prevent software from being exploited.
- It does NOT prevent the abuse of every available risky feature.
- It does NOT prevent the changes it implements from being reverted. If malicious code runs on the system and it is able to restore them, the premise of the tool is defeated.## How to use it
Once you double-click on the icon of 'hardentools.exe', depending on your Windows privileges, you are asked if you want to run Hardentools with administrative privileges. If you select "No" only a subset of the harden features is available, but you can also use hardentools if you have only restricted privileges to harden your user account. If you select "Yes", depending on your Windows security settings, you should be prompted with an User Access Control dialog asking you confirmation to allow Hardentools to run. Click "Yes".
![AdminPrivilegesDialogScreenshot](./graphics/AdminPrivDialog.png)
Then, you will see the main Hardentools window. It's very simple, you just click on the "Harden" button, and the tool will make the changes to your Windows configuration to disable a set of features that are risky. Once completed, you will be asked to restart your computer for all the changes to have full effect.
You can get some technical information about the configuration changes that will be done by Hardentools by clicking the help button: ![MainWindowScreenshot](./graphics/helpButtonSymbol.png)
![MainWindowScreenshot](./graphics/MainWindow.png)
Note: You can select the expert settings checkbox to be able to select or deselect specific harden measures. Please only use this if you know what you are doing.
![MainWindowExpertScreenshot](./graphics/MainWindowExpert.png)
In case you wish to restore the original settings and revert the changes Hardentools made (for example, if you need to use cmd.exe), you can simply re-run the tool and instead of an "Harden" button you will be prompted with a "Harden again (all default settings)" and a "Restore..." button. Selecting "Restore" will start reverting the modifications. "Harden again" will first restore the original settings and then harden again using the default settings. This comes in handy if you have started a newer version of hardentools and you want to make sure the most current features are applied to your user.
![MainWindowsHardenedScreenshot](./graphics/AlreadyHardened.png)
**Please note**: the modifications made by Hardentools are exclusively contextual to the Windows user account used to run the tool from. In case you want Hardentools to change settings for other Windows users as well, you will have to run it from each one of them logged in.
## Known Issues
### Hardentools not working in a Virtual Machine, if used remotely (e.g. with RDP) or without OpenGL graphics driversHardentools might not start when used on a Virtual Machine, if used remotely (e.g. with RDP) or on a machine with only very basic graphic drivers (no OpenGL 2.0). If started on the command line an error similar to the following will appear in these cases:
```
2020/09/06 02:24:47 Fyne error: window creation error
2020/09/06 02:24:47 Cause: APIUnavailable: WGL: The driver does not appear to support OpenGL
2020/09/06 02:24:47 At: /home/travis/gopath/pkg/mod/fyne.io/[email protected]/internal/driver/glfw/window.go:1133
```This is due to a bug in the UI framework used (https://github.com/fyne-io/fyne/issues/410). You can check if your VM supports an OpenGL 2.0 graphics driver and install that to get it working. Alternatively you can use the command line version (`hardentools-cli.exe`) to harden the system using the default settings with:
.\hardentools-cli.exe -harden
and restore with:
.\hardentools-cli.exe -restore
### Error "Windows ASR rules failed with error"
Windows ASR rules hardening might fail, if you have not enabled Windows Defender antivirus and/or you use a third-party Antivirus solution. In case you use a third-party Antivirus solution either deinstall the third-party solution and activate Windows Defender or disable "Windows ASR rules" hardening item in the Hardentools expert settings dialog.
## Credits
This tool is developed by Claudio Guarnieri, Mariano Graziano and Florian Probst. You can find [here](https://github.com/securitywithoutborders/hardentools/graphs/contributors) a full list of contributors.
Hammer icon by Travis Avery from the Noun Project.
[goreportcard]: https://goreportcard.com/report/github.com/securitywithoutborders/hardentools
[goreportcard-badge]: https://goreportcard.com/badge/github.com/securitywithoutborders/hardentools