Show HN: Airgap-check – find what your AI app silently downloads offline github....

@show

Show HN: Airgap-check – find what your AI app silently downloads offline github.com · 2 points · 0 comments · HN thread

TL;DR airgap-check is a Go CLI (standard library only) that finds what an AI app downloads or tries to reach when run without network access. It does a static scan of manifests and code patterns, a --run mode that executes the app in a Docker container with --network none and a DNS sinkhole, and a --fix mode that prints Dockerfile lines for offline ENV flags and build-time pre-warming. The project's own benchmark across 20 open-source Python and TypeScript AI repos reports 89.7% precision and 87.5% recall on a small sample.

  • Many AI libraries fetch tokenizer files, embedding weights, NLTK corpora, price maps or telemetry on first use, which causes offline apps to fail or hang for tens of seconds on retry backoff.
  • Static scan reads requirements.txt, pyproject.toml, package.json and Cargo.toml and looks for patterns such as nltk.download(), from_pretrained() and tiktoken.get_encoding(); it classifies .env key names without reading values.
  • --run uses docker run --network none, a DNS sinkhole on 127.0.0.1:53 and Python/Node socket hooks; it was validated only on Python and Node targets and misses hardcoded IPs and DNS-over-HTTPS.
  • Measured failure times include fastembed about 39 s of retries, huggingface_hub about 23.5 s, and tiktoken, nltk and chromadb failing in under 1 s when the network is absent.
  • Benchmark: 35 true positives, 4 false positives and 5 false negatives at component level; all 9 repos with first-use downloads were flagged and chat-langchain was correctly clean. Phase 2 rules were frozen before the held-out run.
  • The tool is not a security certification; it reports only the code paths exercised. Licensed MIT and open-sourced by Humanet.

Discussion The story was posted as a Show HN with 2 points and no comments at the time of this digest, so there is no discussion to summarize.

#airGap #llmTooling #offlineDeployment #devSecOps #golang #telemetry