An open API service indexing awesome lists of open source software.

https://github.com/dobin/defenderforchrome

Chrome Plugin for additional security
https://github.com/dobin/defenderforchrome

Last synced: about 1 year ago
JSON representation

Chrome Plugin for additional security

Awesome Lists containing this project

README

          

# DefenderForChrome

Chrome Plugin for additional security against some social engineering attacks:

* File download whitelist (`.txt`, `.jpg`, ...) for HTML smuggling
* Clipboard copy blacklist (`powershell.exe`, `mshta.exe`, ...) for ClickFix

## Purpose

This Chrome plugin implements a **whitelist for file extensions**
on file download. This protects against HTML smuggling and other
file based initial access techniques for execbait (like `.js`, `.vbs`, `.exe`).

With this plugin coorporate environments are able to to implement a file
download policy in the browser. As a replacement for content filter
proxy, when moving towards zero trust. Allowed file extensions are defined in `file-whitelist.json`.

There is also a **clipboard blacklist** against the commonly
used ClickFix execbait attack ("press win-r, paste malicious commands, press enter").
The `clipboard-blacklist.json` contains a list
of obviously malicious strings like `powershell` or `mshta`.

## Installation for testing

1) Open `chrome://extensions`
2) Enable `Developer mode`
3) Click `Load unpacked` and select this git repo directory

## Configuration

* `file-whitelist.json`: Define allowed file extensions here
* `clipboard-blacklist.json`: Define prohibited words here

Both are case insensitive.

## Dev Stuff

### Chrome Plugin Permissions

* `notifications`: Show notifications to the user
* `downloads`: Access downloads
* `scripting`, `activeTab`: Inject Clipboard protection
* `storage`: Access whitelists/blacklists
* `web_accessible_resources`: Clipboard blacklist data access

### File Download Filtering

Implemented in `background.js`.

Using chrome functionality.

### Clipboard Filtering

Implemented in `content.js`.

Injected into every page.

## Related Work

[SmuggleShield](https://github.com/RootUp/SmuggleShield) tried to prevent HTML smuggling with machine learning, instead of just filtering file downloads.

[ClipShield](https://github.com/ericlaw1979/clipshield) is a watchdog
which scans the clipboard for malicious things.