# Some apps ship keys in their code

A key inside an app can mean your install connects to something the developer controls, so I looked for them. 58 apps have something that looks like a key in the code they ship. Most of them (41 of 58) are a vendor's own client key or certificate, copied from the vendor's app and the same for every user.

Source: https://ha-barkley.github.io/marketplace/2026/keys-in-the-code/

## How many matches turned out to be keys

In most of the 907 apps with a match, it's in tests or documentation, which never get installed.

**Apps with a possible key, from any match to a key in shipped code.** Number of apps.

|                                                             | Count |
|-------------------------------------------------------------|-------|
| Scanned with Gitleaks                                       | 6,743 |
| Something that looks like a key, anywhere in the repository | 907   |
| A key in the code the app ships                             | 58    |

**Shows**

Gitleaks 8.30.1 with its default rules and values redacted. The last row is 53 keys in a known format plus 5 generic-looking keys in a file named for credentials or settings.

**Can't show**

Whether a key still works. None was tried against any service.

## What the keys are

**What the 58 keys turned out to be.** Sorted by what the code around each match does, with AI's help and without the key itself.

|                                                               | Count |
|---------------------------------------------------------------|-------|
| A vendor's client key or certificate, the same for every user | 41    |
| A false positive or a placeholder                             | 5     |
| A demo, development or library default                        | 3     |
| Expired, or only a key's id                                   | 3     |
| A shared key for a local server's encryption                  | 2     |
| What looks like a developer's own working token               | 2     |
| A public key, or a sample key nothing uses                    | 2     |

**Shows**

What kind of key each match is, judged from the code around it.

**Can't show**

Whether a key still works, or what it could reach. Nothing here says where a key is.

If any of them turns out to be an important exposure, I'll tell the repository's owner privately.

Only 13 of the 58 apps have GitHub's private vulnerability reporting turned on.

## What to do

[Secrets](https://ha-barkley.github.io/security/controls/secrets/) covers asking users for their own credentials instead of shipping yours, and [Security policy](https://ha-barkley.github.io/security/controls/security-policy/) gives people a private way to tell you when they find one.
