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.
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:
# 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.
Source: https://ha-barkley.github.io/security/
From HASC, the Home Assistant Security Controls for integrations, cards and apps. A community catalog, not an official Home Assistant or Open Home Foundation project.
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)](https://ha-barkley.github.io/security/controls/), 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
- A [security policy](https://ha-barkley.github.io/security/controls/security-policy/)
- [Dependabot or Renovate](https://ha-barkley.github.io/security/controls/ci/)
- A [security scanner in CI](https://ha-barkley.github.io/security/controls/ci/), such as CodeQL
Also in level 1: [two-factor login](https://ha-barkley.github.io/security/controls/account/) with a passkey, [push protection](https://ha-barkley.github.io/security/controls/ci/), and the other level 1 controls on the [checklist](https://ha-barkley.github.io/security/checklist/).
### Level 2 · Checks that block
Level markers
- The [main branch protected](https://ha-barkley.github.io/security/controls/branches-and-tags/)
- A [required security check](https://ha-barkley.github.io/security/controls/blocking-checks/) that fails on what it finds
- Changes reach main [through pull requests](https://ha-barkley.github.io/security/controls/blocking-checks/)
- [Signed commits](https://ha-barkley.github.io/security/controls/account/)
Also in level 2: a [short bypass list](https://ha-barkley.github.io/security/controls/branches-and-tags/), [vigilant mode](https://ha-barkley.github.io/security/controls/account/), and the other level 2 controls on the [checklist](https://ha-barkley.github.io/security/checklist/).
### Level 3 · Releases people can check
Level markers
- [Release tags protected](https://ha-barkley.github.io/security/controls/branches-and-tags/), by a tag ruleset or [immutable releases](https://ha-barkley.github.io/security/controls/releases/)
- Your [latest release's tag is on main](https://ha-barkley.github.io/security/controls/releases/), and any files attached to it were uploaded by CI
Also in level 3: [don't commit build output](https://ha-barkley.github.io/security/controls/releases/) you also release.
The [November 2026 sweep](https://ha-barkley.github.io/marketplace/2026/) 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:
- [Secure a new organization](https://ha-barkley.github.io/security/walk-throughs/new-organization/): The settings every new repository gets, done before the first one.
- [Secure a new project](https://ha-barkley.github.io/security/walk-throughs/new-project/): An integration or a card, from the first commit to the first release.
- [Secure an existing project](https://ha-barkley.github.io/security/walk-throughs/existing-project/): Checks that only report, then fixes, then checks that block, with what can break at each step.
Or turn on two-factor login first, then [work through level 1](https://ha-barkley.github.io/security/checklist/?level=1). The [checklist](https://ha-barkley.github.io/security/checklist/) lists every control for each level in order, and [All controls](https://ha-barkley.github.io/security/controls/) lists them by family.
## The controls, by family
- [Your GitHub account](https://ha-barkley.github.io/security/controls/account/): ACC · Two-factor login, fine-grained tokens and signed commits.
- [Branch and tag protection](https://ha-barkley.github.io/security/controls/branches-and-tags/): BR · Rules that keep main and your release tags from being rewritten.
- [Checks in CI](https://ha-barkley.github.io/security/controls/ci/): CI · CodeQL, dependency checks and secret scanning are free for public repos.
- [Checks that block](https://ha-barkley.github.io/security/controls/blocking-checks/): GATE · A failing check is only a warning until main requires it.
- [Security policy](https://ha-barkley.github.io/security/controls/security-policy/): POL · Give people a private way to tell you about a problem.
- [Secrets](https://ha-barkley.github.io/security/controls/secrets/): SEC · Keep tokens out of the repo, the logs and the diagnostics.
- [Repository basics](https://ha-barkley.github.io/security/controls/repository/): REPO · Issue forms, a .gitignore, and closing issues when you fix them.
- [Releases](https://ha-barkley.github.io/security/controls/releases/): REL · Build in CI from main, so the release matches the code.
- [Organizations](https://ha-barkley.github.io/security/controls/organizations/): ORG · Share a project safely and give every repository the same settings.
- [Integrations](https://ha-barkley.github.io/security/controls/integrations/): INT · Keep the login on every page, use the storage helper and never download code.
- [Dashboard cards](https://ha-barkley.github.io/security/controls/cards/): CARD · Bundle your code and keep the login token where it is.
- [Dependencies](https://ha-barkley.github.io/security/controls/dependencies/): DEP · Use fewer packages, pin their versions and keep them updated.
- [Apps (add-ons)](https://ha-barkley.github.io/security/controls/apps/): APP · Ask Home Assistant for only the access the app needs.