Show HN: Airgap-check – find what your AI app silently downloads offline github....
HN Best 200 @best
Show HN: Airgap-check – find what your AI app silently downloads offline github.com · 10 points · 0 comments · HN thread
TL;DR airgap-check is an open-source Go CLI, released as Show HN, that finds what an AI application downloads or tries to reach when run without network access. It combines a static scan of manifests and code patterns, a containerised --run mode with a DNS sinkhole and socket hooks under --network none, and a --fix mode that prints Dockerfile lines for offline pre-warming. The README reports a probe-based evaluation on 20 open-source Python and TypeScript AI repos, with 35 true positives, 4 false positives and 5 false negatives at component level.
- Many AI libraries fetch assets on first use (tokenizer ranks, ONNX embedding weights, NLTK corpora, LiteLLM price maps, Hugging Face models) and hang or fail when the network is absent.
- Static scan reads manifests and code patterns and classifies .env key names only; secret values are never read or logged.
- --run executes the app in docker run --network none with a 127.0.0.1:53 DNS sinkhole and Python/Node hooks, logging every lookup and connection attempt; it is validated only on Python and Node targets.
- Stated limits: hardcoded IPs and DNS-over-HTTPS bypass the resolver, only exercised code paths are tested, and dropped packets in a real enclave could make hangs longer.
- Evaluation: phase 1 (10 repos) tuned rules and phase 2 (10 held-out repos) was run against rules frozen at commit 8ce2f11; all 9 repos with first-use downloads were flagged and chat-langchain was correctly clean.
- Known gaps: pyproject dev dependency groups caused false positives, while OCR downloaders, FlagEmbedding and LiteLLM's price-map fetch were false negatives; the authors say it is not a security certification.
Discussion No comments have been posted yet, so there is no discussion thread to summarise. The submission has 10 points and zero comments at the time of this digest.