Skip to content

Releases

Barkley 0.14.0

Choose a tag to compare

@SeriesOfTubez SeriesOfTubez released this 18 Nov 20:54
cb17f5f

0.14.0 lets you review findings and keep your own score beside Barkley's, adds a Settings page, and runs Barkley without the Supervisor. It also fixes checks that missed things and cuts false alarms from the first public feedback.

A note on how Barkley is made: most of the code and docs are written by Claude (through Claude Code), with a human directing and reviewing the work. The README has more on this under "AI-assisted development".

The AI features in the panel are optional and run on whichever model you've set up in Home Assistant, so they're only as good as that model. The AI can explain a finding, but it can't clear, rescore or dismiss one.

What's new

Review findings

  • Findings are grouped by kind: Threats, what the app can do, known bugs in its libraries, and how it's made. An app with no Threat says "No signs of malicious behavior".
  • Mark reviewed on a finding, or Accept all at the top, with a note. The circle then shows your reviewed score, and Barkley's own score stays beside it in a small circle. Barkley's score is never changed by a review.
  • Each Threat needs its own tick in Accept all. Known malware can never be accepted.
  • An accepted finding reopens, and you get a notification, when an update changes its code. What changed? shows the code then and now.
  • Malware check only, per app: only Threats and known malware are shown and notified.

A Settings page

Every setting has a default and a "How this works" fold that explains it:

  • Scoring: Paranoid mode (minor findings are hidden and not counted while it's off), the no-Threat floor, pages without a login, and hidden usage reporting.
  • Reviews: when an accepted finding changes, and whether to ask again after some months.
  • Checking: auto-sniff and notifications (moved here from the list, with the test notification and recent auto-sniffs), AI and AI mode, parallel scans, Semgrep jobs, memory for scans, and the GitHub token, with Create token on GitHub, which opens GitHub's new-token page filled in.

The app's options are now only the starting values.

AI mode now starts on Explain and read code. Nothing is sent until you click, and a click sends only the app's own public code around a finding.

Memory for scans is Auto by default: a scan starts only while there's free memory for it. On a machine with memory to spare, pick a fixed amount (2 to 16 GB) to run more scans at once.

The list and an app's page

  • Sniff again on every installed app, and Sniff all again for the list.
  • New filters: needs a look, reviewed, Malware check only.
  • Report a false positive under each finding and Report an issue in the footer open a pre-filled public GitHub issue that you finish and submit yourself. Barkley sends nothing.
  • Stars and release downloads on an app's page (not scored), and an A+ security habits star.

Run it without the Supervisor

Barkley can run as its own container next to Home Assistant Container or Core, or on another machine (a NAS or a PC) to keep scans off a small box. You log in with Home Assistant, administrators only. The first time, a short setup creates Barkley's own Home Assistant token (or takes one you paste), which Barkley then rotates, and offers an optional GitHub token. See the wiki page "Standalone (no Supervisor)".

Scans mostly wait on the processor, so a faster machine helps a lot. In one test, the same 17 real apps (one of them a card with over 100 JavaScript files), with the same settings, took about 12 minutes on a 2012 Intel Core i3 running Home Assistant OS, and about 2.5 minutes standalone on a MacBook Pro M5.

Each scanner tool now runs in a Landlock sandbox when the kernel supports it. Home Assistant OS doesn't enable Landlock in its kernel, so there the app's AppArmor profile confines the tools, as before. Standalone needs Linux 5.13 or later with Landlock, or BARKLEY_UNSANDBOXED=1 to start without the sandbox.

Checks

  • Fewer false alarms, from the first public feedback: other apps' entries and options, .storage use, listing users, declared library installs, an integration's own sub-integrations, build tools in cards, yarn and pnpm lockfiles, and more.
  • New: card names built from pieces (card-hidden-name), downloaded code that runs (card-eval-remote), and usage reporting (telemetry).
  • Every file of a card's release is scanned, since the Marketplace installs them all.
  • card-token-exfil missed some cases in 0.13.0 and earlier. That's fixed; re-sniff your cards.
  • Downloads are retried, and a scan that still can't fetch a file says which file and why.

Known issues

  • Scans take longer than in 0.13.0, because Barkley now reads every file of a card's release and checks JavaScript a second time. Scanning 61 real apps took about 50% longer, and a large card with many files can take several minutes on its own. A cache that skips work already done is being worked on.
  • On a machine with spare cores, raise Parallel scans or Semgrep jobs on the Settings page. Keep the two multiplied together at or below the number of CPU cores: past that, a big app's checks can run out of time and its scan comes out Incomplete.

Updating

In Home Assistant, go to Settings → Apps → Barkley and click Update.

After updating, every app will show as not yet sniffed, because scans are tied to the Barkley version that ran them. Click "Sniff the N not yet sniffed" on the list to rescan everything. Your older scans are still in each app's history.

Checking the signature (optional)

This repo's release workflow builds the image from the source at the release tag and signs it with Cosign. Home Assistant doesn't check app signatures, so you don't need to do anything, but if you want to verify it yourself:

cosign verify ghcr.io/seriesoftubez/barkley:0.14.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github.com/SeriesOfTubez/ha-barkley/'

How this release was tested

  • All 830 offline tests pass (558 in 0.13.0).
  • Re-sniffed every installed app on the maintainer's Home Assistant (amd64) with the AppArmor profile enforcing. Nothing was denied.
  • Ran standalone in Docker Desktop against a real Home Assistant, in a browser: the first-time setup, Create token, Create token on GitHub, and a full re-sniff with every scanner tool in its Landlock sandbox.
  • Screenshots of the real panel in light and dark, desktop and phone width, with no sideways scroll and no scripts.
  • The security checks listed in the README (Gitleaks, Semgrep, CodeQL, Trivy, Checkov, Hadolint) all passed on the pull request.

Barkley 0.13.0

Choose a tag to compare

@SeriesOfTubez SeriesOfTubez released this 17 Nov 01:58
e7a8c8b

0.13.0 gives every privacy note a way to the AI's code reading, and fixes two rough edges in how the AI asks for more code. Scoring and the scanner's rules haven't changed since 0.12.0.

A note on how Barkley is made: most of the code and docs are written by Claude (through Claude Code), with a human directing and reviewing the work. The README has more on this under "AI-assisted development".

The AI features in the panel are optional and run on whichever model you've set up in Home Assistant, so they're only as good as that model. The AI can explain a finding, but it can't clear, rescore or dismiss one.

What's new

Privacy notes open the AI's reading

Privacy notes (telemetry, analytics, a server the developer runs, unencrypted addresses, MQTT without encryption) were the one part of an app's page with no AI explanation. "Explain this app" doesn't cover them either: it sends the AI the score, the verdict and the findings, and privacy notes aren't findings.

The code behind a note was usually already there to read, though. A note is about an address or a port, and those have their own "Explain in context" under Where it connects. Its question for an address is what the app sends there, when, and whether you have to turn it on, which is exactly what a telemetry note says Barkley can't tell from the scan.

In deep mode, each privacy note now shows that same button, or the AI's reading once there is one:

  • It's the same reading as under "Where it connects", not a second one, so the same code is never sent to your AI twice.
  • A note with no reading says so. When all of its addresses are named in the app's own documentation or manifest, it also says that's why: Barkley offers a reading only for addresses that aren't named there.
  • In summary mode, nothing on the notes changes.

Notes still never change the score.

Also changed

Both of these came from real "Explain in context" runs where the AI asked to see more code.

  • A request written as a sentence now works. The AI picks extra code from a list Barkley offers. In one run it wrote its pick as a sentence ("I need to see the <Class> class and its connect") and filled the unused pick fields with "--". Both names were on the list, but Barkley refused the whole sentence and listed the fillers as refused too. Now names in backticks or quotes that match one entry on the list count, at most three in all, and fillers are ignored. The AI still can't ask for anything that isn't on Barkley's list, and still gets one extra round at most.
  • Repeats are shown once. When the AI reads twice, the sheet shows the checked statements of both readings. In one run, four of ten were the first reading's statements again in other words. A second-reading statement whose code names all appear in one earlier statement, citing overlapping lines, is now left out, and the sheet says how many it left out.

There are no new permissions, options or network destinations. The AppArmor profile and the scanner's tools are the same as in 0.12.0.

Updating

In Home Assistant, go to Settings → Apps → Barkley and click Update.

After updating, every app will show as not yet sniffed, because scans are tied to the Barkley version that ran them. Click "Sniff the N not yet sniffed" on the list to rescan everything. Your older scans, and the AI readings saved with them, are still in each app's history.

Checking the signature (optional)

This repo's release workflow builds the image from the source at the release tag and signs it with Cosign. Home Assistant doesn't check app signatures, so you don't need to do anything, but if you want to verify it yourself:

cosign verify ghcr.io/seriesoftubez/barkley:0.13.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github.com/SeriesOfTubez/ha-barkley/'

How this release was tested

  • All 558 offline tests pass, including 8 new ones.
  • The scanner, its rules and the stored reports didn't change in this release (privacy notes are worked out when the page is shown), so no scan result can differ from 0.12.0.
  • Rendered a real app's page in a headless browser with a stand-in AI: each reading's sheet appears once on the page, a sentence calling the code safe was dropped, the score didn't change, nothing scrolls sideways at phone width, and the page still runs no scripts.
  • Re-sniffed every installed app on the maintainer's Home Assistant (amd64) with the AppArmor profile enforcing. Scores were unchanged and nothing was denied.
  • Ran "Explain in context" from the two privacy notes of a real integration with GLM 5.3. Telemetry: two passes, 9 statements, one repeat left out. MQTT: two passes after its sentence-style pick matched two entries on the list, 8 statements. Other models may do better or worse.
  • The security checks listed in the README (Gitleaks, Semgrep, CodeQL, Trivy, Checkov, Hadolint) all passed on the pull request.

Barkley 0.12.0

Choose a tag to compare

@SeriesOfTubez SeriesOfTubez released this 16 Nov 05:51
52bbb01

0.12.0 adds one main feature. When an app swaps out part of Home Assistant with its own code, Barkley now pulls Home Assistant's original version of that function and shows you a line-by-line diff of what the app changed. Scoring and the scanner's rules haven't changed since 0.11.0.

A note on how Barkley is made: most of the code and docs are written by Claude (through Claude Code), with a human directing and reviewing the work. The README has more on this under "AI-assisted development".

The AI features in the panel are optional and run on whichever model you've set up in Home Assistant, so they're only as good as that model. The AI can explain a finding, but it can't clear, rescore or dismiss one.

What's new

See what a replacement actually changes

Some apps patch one of Home Assistant's built-in integrations by swapping in their own version of a function while they run. Barkley already flagged this as "Changes how Home Assistant itself works", and 0.11.0 started telling you which function gets replaced. What it couldn't tell you was how the app's version differs, because the original lives in Home Assistant's code, not the app's.

Now, when the replaced function is in Home Assistant's source and the replacement is a function in the app, Barkley:

  • fetches that one file from Home Assistant's GitHub repo during the scan, matching your installed Home Assistant version
  • diffs the two functions and shows the result under How it differs from the original, with a count of the lines unique to each side and the diff itself
  • reports under The rest of the replacement whether the scan turned up any other findings, addresses or ports in the replacement's own lines. That only covers what Barkley's rules look for; it doesn't mean the code is safe.

There's no AI involved in any of this. If Barkley can't produce a comparison (say GitHub didn't respond, or the replacement isn't a function), the page tells you why, and that counts neither for nor against the app. The score comes out the same either way.

The finding's What it means section now names the specific part of Home Assistant being replaced, instead of the generic blurb about logins, network and encryption. Severity hasn't changed.

The AI can read the diff and check the code against the README

On this finding, "Explain in context" now sends Barkley's comparison along too, so the AI can describe what the replacement does differently and cite lines from both versions.

It also sends up to the first 80 lines of the app's README, which is the author's own description of what the app does. The AI is allowed to add one sentence saying the code matches the README. Barkley shows that sentence separately, under The AI's opinion: consistent with the README, but only if it cites both README lines and code lines and doesn't pass judgment. Anything that calls the code safe, fine, expected or similar gets dropped.

Keep in mind that the README and the code come from the same person. Code that matches its README does what the author says it does, which isn't the same thing as safe, and the sheet spells that out. This opinion only shows up on this one finding, and it never changes the finding or the score.

Both passes now show in the sheet

When the AI asks to see more of the app's code, it makes two passes. The sheet used to show only the second one. It now shows the verified statements from both passes together, plus the questions from the second.

Also changed

  • Scans can now make up to two extra GitHub requests to fetch Home Assistant's file. The file is cached per Home Assistant version, so most scans make none. Barkley now budgets 12 requests per scan instead of 10, so without a GitHub token, Diagnostics will say about 5 scans an hour fit within GitHub's rate limit.
  • When the AI picks code from Barkley's list by number, the number can now have punctuation around it (": 4"). Those picks used to be rejected.
  • AI statements over 400 characters are now checked in full before they're trimmed for the sheet, so their citations get verified and you won't see one cut in half.

There are no new permissions, options or network destinations, since Barkley already fetched Home Assistant files from GitHub. The AppArmor profile and the scanner's tools are the same as in 0.11.0.

Updating

In Home Assistant, go to Settings → Apps → Barkley and click Update.

After updating, every app will show as not yet sniffed, because scans are tied to the Barkley version that ran them. Click "Sniff the N not yet sniffed" on the list to rescan everything, which is also when the comparisons get built. Your older scans are still in each app's history.

Checking the signature (optional)

This repo's release workflow builds the image from the source at the release tag and signs it with Cosign. Home Assistant doesn't check app signatures, so you don't need to do anything, but if you want to verify it yourself:

cosign verify ghcr.io/seriesoftubez/barkley:0.12.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github.com/SeriesOfTubez/ha-barkley/'

How this release was tested

  • All 550 offline tests pass, including 39 new ones.
  • Scanned 15 real integrations, 2 cards and 3 test fixtures offline with both 0.11.0 and this release. Every finding, score and completeness flag came out identical.
  • Scanned a real integration that replaces a Home Assistant function against Home Assistant 2026.11.1. Barkley's diff matched one done by hand, and the score and finding didn't change.
  • Ran Barkley's parser over all 10,913 Python files in Home Assistant 2026.11.1. 394 of them use Python 3.14 syntax that the image's Python 3.13 can't parse, so Barkley adds parentheses (which don't change the meaning) before reading them.
  • Re-sniffed every installed app on the maintainer's Home Assistant (amd64) with the AppArmor profile enforcing. Scores were unchanged and nothing was denied.
  • Ran "Explain in context" three times on that finding with GLM 5.3. The last run made two passes, showed 8 statements about the diff plus the README opinion, and dropped 4 that didn't check out. Other models may do better or worse.
  • The security checks listed in the README (Gitleaks, Semgrep, CodeQL, Trivy, Checkov, Hadolint) all passed on the merged change.

Barkley 0.11.0

Choose a tag to compare

@SeriesOfTubez SeriesOfTubez released this 16 Nov 00:51
452c9c8

Barkley 0.11.0 makes the optional AI feature "Explain in context" read more of an app's code, and lets the AI ask once for more. Scores, findings and the scanner's rules are the same as in 0.10.4.

Barkley was built with AI pair-programming assistance (Claude, via Claude Code) under human direction and review. Most of the code and docs are AI-generated. The README says more under "AI-assisted development".

The AI features in the panel are optional and use the AI model you picked in Home Assistant. They are only as good as that model. The AI explains; it never clears, rescores or dismisses a finding.

What's new

"Explain in context" reads more code

When you click "Explain in context" on a finding in an integration, the code Barkley sends now includes:

  • the function the finding is in, as before;
  • the app's own functions and classes named on the flagged line, and the ones the code calls or refers to (150 lines of code at most);
  • the import lines and module-level constants behind the names that code uses (40 more lines at most).

The case that prompted this: on a real integration, the finding "Changes how Home Assistant itself works" sent 38 lines. The AI's questions were about an import at the top of the file and a function further down, neither of which it had been given. The same click now sends 166 lines that include both.

The AI can ask once for more code

For integrations, the AI's first answer may ask to see up to three more pieces of the app's code. It picks them from a list of names Barkley offers: functions, classes, methods and constants of the app, 40 names at most.

  • It can't name a file path or ask in its own words. Scanned code can contain text aimed at the AI, and that text must not decide what Barkley reads.
  • Barkley adds the picked code (150 lines at most) and asks a second time. There is no third request.
  • Your one click covers both requests. The sheet says what the AI asked for and shows the added code.
  • An ask that isn't on the list is ignored. The sheet says how many were ignored and shows what they were.
  • Home Assistant's own code and other packages can't be asked for.

"What it replaces"

For the finding "Changes how Home Assistant itself works", the page now says what is replaced, whose code that is and where the replacement is defined. Barkley reads this from the code's imports; the AI is not involved.

Dashboard cards are unchanged: their bundles are minified, so the AI still gets the lines around the finding and can't ask for more.

What Barkley keeps for this

To add code on your click without downloading anything, Barkley now keeps a compressed copy of an integration's Python files beside its scan.

  • One copy per version, for the installed version and an update that is waiting. Copies of older versions are deleted; their scans stay.
  • A copy of an app you only sniffed from search goes when its scan ages out.
  • An app whose Python is over 1 MB compressed, or has more than 3,000 Python files, gets no copy. Its sheet says the AI can't ask for more.
  • Dashboard cards get no copy.
  • The copy is text in Barkley's own database. It is never run, built or installed, and nothing in it is parsed on a click.

The app asks for no new permission, option or network destination. Its AppArmor profile and the scanner's tools are the same as in 0.10.4. The only new traffic is the second request to your AI inside a click you made.

Also changed

  • Diagnostics said that without a GitHub token about 8 scans an hour fit in GitHub's limit. Barkley sets aside 10 requests per scan, so the line now says about 6.
  • The app's Documentation tab caught up with the panel: the installed list, the two bulk sniff buttons, "Check any repository", and "Addresses you trust".

Updating

In Home Assistant, open Settings → Apps → Barkley and click Update.

After the update every app shows as not yet sniffed, because scans are tied to the Barkley version that made them. The button "Sniff the N not yet sniffed" on the list sniffs them all again; that is also when the copies described above are saved. Your earlier scans stay in each app's history.

This is the first update published through the app store. A fresh store install of 0.10.4 was tested; an update through the store could not be tested before a second release existed. If the update misbehaves, please open an issue.

Checking the signature (optional)

The image is built by this repository's release workflow from the source at the release tag, and signed with Cosign by that workflow. Home Assistant doesn't check app signatures, so there is nothing you have to do. If you'd like to check it yourself:

cosign verify ghcr.io/seriesoftubez/barkley:0.11.0 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github.com/SeriesOfTubez/ha-barkley/'

What was checked

  • 511 offline tests pass, 13 of them new for this release.
  • 15 real integrations, 2 cards and 3 test fixtures were scanned offline by 0.10.4's code and by this release's: every finding, score and completeness flag is identical.
  • On the maintainer's Home Assistant (amd64) the release's code re-sniffed every installed app under the enforcing AppArmor profile with no denial logged.
  • "Explain in context" was run there on one finding with GLM 5.3 and GLM 5.3 Flash. In a GLM 5.3 run that asked for three more pieces of code, the three statements shown were checked against the app's source by hand and were correct. Other runs ended after one request, and a different model may do better or worse.
  • The security checks listed in the README (Gitleaks, Semgrep, CodeQL, Trivy, Checkov, Hadolint) passed on the merged change.

Barkley 0.10.4

Choose a tag to compare

@SeriesOfTubez SeriesOfTubez released this 15 Nov 06:19
17c0af8

First public release of Barkley: a static security scanner for Home Assistant Marketplace (formerly HACS) custom integrations and frontend cards, packaged as a Home Assistant app (add-on).

Barkley is young and built by one person. It is a first pass, not a substitute for reading the code: a clean sniff means the checks found nothing, not that the code is safe.

AI-assisted development

Barkley was built with AI pair-programming assistance (Claude, via Claude Code) under human direction and review. Most of the code and docs are AI-generated. If that's a dealbreaker for you, that's a reasonable position, and this project isn't for you. For everyone else: all of the source is in the repository to read, and the checks listed under "How Barkley itself is secured" run on every change, so you can judge it for yourself instead of taking it on faith.

What it does

  • Scans exactly the version the Marketplace would install, without running, building or installing any of it.
  • Looks for token theft, data sent off your box, tampering with Home Assistant and supply-chain tricks, in the integration or card and in its dependencies (Semgrep 1.185.0, GuardDog 3.2.0, osv-scanner 2.7.1).
  • Lists what you have installed, sniffs installs and updates on its own, shows what an update would change before you take it, and asks about new advisories once a day.
  • The score is deterministic. The optional AI explanations (through an ai_task entity you choose) can explain a finding, never clear or rescore one. They are only as good as the model behind the entity you pick. In testing, GLM 5.3 and GLM 5.3 Flash both gave good results.

Install

Needs Home Assistant OS or Supervised, on amd64 or aarch64.

  1. Settings → Apps → the app store → ⋮ → Repositories, and add https://github.com/SeriesOfTubez/ha-barkley.
  2. Install Barkley, start it, and open it from the sidebar.

What the app can do on your box, and why, is in its documentation.

How Barkley itself is secured

  • The app on your box: it is reached through Home Assistant's ingress only, with no host network, no open port, no Supervisor role and no access to your configuration folder (so secrets.yaml and the auth storage stay out of its reach). It runs under its own enforcing AppArmor profile. It asks for one permission, Home Assistant API access, and uses it for a fixed list of calls that the documentation names one by one.
  • Every push and pull request is scanned before it can reach main: Gitleaks for secrets, Semgrep's registry rules and CodeQL for the code, Trivy for dependencies and for the built image (high and critical CVEs that have a fix), Checkov and Hadolint for the Dockerfile and the workflows. A finding fails the run. Anything accepted is written down with its reason in the repository.
  • The scanner's tools are pinned by version, the downloaded binaries by checksum, and nothing is compiled during the build.

Where the image comes from

The image the app store downloads is built on GitHub's runners by this repository's release workflow, from the source at the release tag, and signed with Cosign by that workflow. Home Assistant doesn't check app signatures, so there is nothing you have to do. If you'd like to check the signature yourself, this is the command:

cosign verify ghcr.io/seriesoftubez/barkley:0.10.4 \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp '^https://github.com/SeriesOfTubez/ha-barkley/'

Found a security problem in Barkley? Please report it privately: the repository's Security tab → "Report a vulnerability".