---
title: Install Betterleaks on Linux | Snap Store
description: Get the latest version of Betterleaks for Linux - Find leaked secrets
  in Git, files, code hosts and S3 buckets
url: https://snapcraft.io/betterleaks
---

# Betterleaks

[Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")

* [Sid-Ali Teir (sidaliteir)](https://snapcraft.io/publisher/sidaliteir "View all snaps from Sid-Ali Teir (sidaliteir)")
* [Development](https://snapcraft.io/search?categories=development)
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 1.10.1

Install latest/stable of Betterleaks

---

**Install using the command line**

```
sudo snap install betterleaks
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* betterleaks

---

### License

* MIT

---

### Last updated

* Today - latest/stable
* Today - latest/candidate

---

### Websites

* [betterleaks.com](https://betterleaks.com "https://betterleaks.com")

---

### Contact

* [github.com/sidalit/betterleaks-snap/issues](https://github.com/sidalit/betterleaks-snap/issues "https://github.com/sidalit/betterleaks-snap/issues")

---

### Source code

* [github.com/betterleaks/betterleaks](https://github.com/betterleaks/betterleaks "https://github.com/betterleaks/betterleaks")
* [github.com/sidalit/betterleaks-snap](https://github.com/sidalit/betterleaks-snap "https://github.com/sidalit/betterleaks-snap")

---

### Report a bug

* [github.com/betterleaks/betterleaks/issues](https://github.com/betterleaks/betterleaks/issues "https://github.com/betterleaks/betterleaks/issues")
* [github.com/sidalit/betterleaks-snap/issues](https://github.com/sidalit/betterleaks-snap/issues "https://github.com/sidalit/betterleaks-snap/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/betterleaks#report-snap-modal)

---

* [Description](https://snapcraft.io/betterleaks#tab-description)
* [Security](https://snapcraft.io/betterleaks#tab-security)

#### Find leaked secrets in Git, files, code hosts and S3 buckets

Betterleaks detects passwords, API keys, tokens and other secrets in the
history of Git repositories, in directories and files, in text read from
standard input, and in GitHub, GitLab, Hugging Face and S3 sources. It can
check findings against live APIs, reads Gitleaks configuration files, and
writes reports as JSON, CSV, JUnit, SARIF or a custom template.

**Examples**

```
betterleaks git -v ~/projects/my-project
betterleaks dir -v ~/projects/my-project
cat notes.txt | betterleaks stdin
betterleaks github https://github.com/my-org --validation
```

**File access**

Betterleaks can scan repositories and files in your home directory. To
also scan USB drives and other removable media (/media, /mnt), run:

```
sudo snap connect betterleaks:removable-media
```

The snap includes Git for scanning history and cloning over HTTPS.

---

## Install Betterleaks on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/betterleaks/arch)

[### CentOS](https://snapcraft.io/install/betterleaks/centos)

[### Debian](https://snapcraft.io/install/betterleaks/debian)

[### elementary OS](https://snapcraft.io/install/betterleaks/elementary)

[### Fedora](https://snapcraft.io/install/betterleaks/fedora)

[### KDE Neon](https://snapcraft.io/install/betterleaks/kde-neon)

[### Kubuntu](https://snapcraft.io/install/betterleaks/kubuntu)

[### Manjaro](https://snapcraft.io/install/betterleaks/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/betterleaks/pop)

[### openSUSE](https://snapcraft.io/install/betterleaks/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/betterleaks/rhel)

[### Ubuntu](https://snapcraft.io/install/betterleaks/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/betterleaks/raspbian)
