BarkleyGitHub
For Marketplace and app developers
Markdown file

Security for Home Assistant developers

Custom integrations run inside Home Assistant with full access, and cards run on the same page as your login. These controls cover how to keep both safe, and the walk-throughs take you through them in order.

The controls come from what I learned building Barkley, a scanner for Marketplace apps, and from a scan of all 6,753 Marketplace apps in November 2026. The scan found no malware. Mostly it found missing habits that are quick to add. Together they make up the Home Assistant Security Controls (HASC), a community catalog. Each control has an ID, such as CI-4, that you can cite in an issue or a pull request.

Levels

Every control belongs to one of three levels, and each level needs everything in the one below. Some controls can be checked from outside your project, such as a security policy or a protected main branch, and those are tagged "Level marker". A scan, Barkley's included, grades a level on its markers, so a project needs every marker up to that level. The controls nobody can check from outside, like two-factor login, belong to their level just the same.

Level 1 · Basics

Level markers

Also in level 1: two-factor login with a passkey, push protection, and the other level 1 controls on the checklist.

Level 2 · Checks that block

Level markers

Also in level 2: a short bypass list, vigilant mode, and the other level 2 controls on the checklist.

Level 3 · Releases people can check

Level markers

Also in level 3: don't commit build output you also release.

The November 2026 sweep checked these markers, with two exceptions. Signed commits and pull requests became level 2 markers later, and it only counted a security policy kept in the repository itself. 222 of 6,753 apps met the level 1 markers, 46 met level 2's and 14 met level 3's. Another 40 apps require a blocking security check but don't meet level 1; 38 of them have no security policy.

Where to start

A walk-through takes you through the controls for one situation, in order:

Or turn on two-factor login first, then work through level 1. The checklist lists every control for each level in order, and All controls lists them by family.

The controls, by family