ghost-self-audit
БесплатноБез исполняемых скриптовНе проверенIndependent third-party security and architecture audit of the GHOST codebase, produced by GLM (Z.ai) on 2026-11-12 against commit 617e672. Load this skill…
от vNeeL-code★ 173 звезды на GitHubОб этом скилле
GHOST — Independent Architecture & Security Audit
Auditor: GLM (Z.ai). Independent of both the development toolchain (Gemini via Antigravity) and the audited runtime (Gemma via LiteRT-LM). No shared training lineage with either was assumed and none was needed.
Scope commit: 617e672 ("Update README.md", 2026-11-06) on main.
Audit date: 2026-11-12.
Method: static source review (~2,500 LOC read across 15 core files), git-history
forensics (1,681 commits), release-history review (19 releases). No dynamic testing,
no emulator runs, no fuzzing. Limitations listed in Section 8.
1. Verdict
The compute claims are honest; the safety and memory claims are cosmetic; two surfaces warranted real concern, one of which was subsequently retracted.
Working ratio: ~70% legitimate engineering, ~20% overclaiming, ~10% chaos. For a one-human-plus-LLM project that shipped 19 releases in roughly a year, that ratio is an achievement, not an insult. The rest of this document is the evidence.
2. Repository Forensics
| Metric | Value |
|---|---|
| Kotlin source files | 93 (97.8% Kotlin), 32,783 LOC |
| Total commits | 1,681 (first commit month 2025-07; peak 541 in 2025-09) |
| Human authors | One. "Oracle" (1,349), "vNeeL-code" (269), "Oracle_OS" (63) — all sharing a single email |
| AI co-author trailers | 36 explicit (Claude Opus 4.6 x18, Sonnet 4.6 x12, Opus 4.5 x6); unattributed AI assistance evident throughout |
| License | MIT |
| Releases | 19; latest v4.35 (2026-10-24, bugfix asset 2026-11-05) |
| Distribution rails | fdroidRelease (no billing, no blobs), playRelease (billing-ktx 7.1.1, play flavor only), patreonRelease (FORCE_UNLOCKED) |
| Key dependencies | com.google.ai.edge.litertlm:litertlm-android:0.12.0, Ktor server 3.0.3 (CIO), Room, Jetpack Compose |
The three commit identities resolving to one email, plus the trailer pattern, is the fingerprint of a solo human directing agentic tooling. The commit cadence (541 in a single month) is only achievable that way. This is disclosed context, not criticism: the audited artifact stands on its own.
3. Verified Strengths (with evidence)
3.1 The inference core is real. GemmaEngine.kt (789 lines) is a genuine
LiteRT-LM SDK integration: Backend.GPU() with automatic CPU fallback chain,
runtime probing via Capabilities(...).hasSpeculativeDecodingSupport() before
enabling MTP speculative decoding, mutex-guarded session lifecycle with deferred
disposal of stale native conversations (disposePendingConversationLocked), and a
cache-dir comment citing Samsung Knox SELinux sandbox blocks as the reason for
codeCacheDir. That last comment is a hardware-specific battle scar; it cannot be
written without having hit the bug on real Samsung hardware. Sampler config
(topK 40, topP 0.90, temperature 0.65) is labeled as tuned for E2B conversational
stability.
3.2 The local API server is properly hardened. ApiServer.kt binds to
127.0.0.1 only, requires an X-Ghost-Token (or Bearer) on every non-health
endpoint, and verifies it with MessageDigest.isEqual — constant-time comparison,
better hygiene than most hobby projects ever attempt. Exposes an OpenAI-compatible
/v1/chat/completions with SSE token streaming. The phone is a real local
OpenAI-shaped endpoint.
3.3 The fast-path trust model is thoughtful. FastPathRouter.kt gates direct
execution by InputSource: only USER_TYPED, USER_VOICE, and OVERLAY may
trigger Mode A (bypass-the-LLM) actions. API_SERVER, NOTIFICATION, and
BACKGROUND_TASK always fall through to the model. URL execution enforces an
http/https scheme allowlist that explicitly rejects intent://, file://, and
javascript://. The security guard is a first-class code path, not an afterthought.
3.4 The tests are real, not coverage theater. Seven test files encode
behavioral regressions from actual usage incidents. IntentBaggerTest asserts that
"why did chrome crash" must never wire-speed launch Chrome, that a typo'd app name
must drop to the LLM instead of launching, and that a URL inside a conversational
question must not direct-open. These are fossilized bug reports — scars only the
operator could have personally received, pinned into CI so a stateless coding agent
cannot refactor them away.
3.5 The reflex router is honest engineering. IntentBagger.kt (621 lines) is a
keyword/alias matcher with exact-match requirements for wire-speed execution, a
conversational-marker guardlist, a >4-words-never-auto-execute rule, and a cap of
two bagged intents per turn. Brittle by design and honest about it: high-confidence
or nothing.
3.6 JNI-boundary hardening exists. NetworkToolSet.sanitizeToolString strips
LiteRT-LM control tokens (<|...|> forms), null/control bytes, and unescapes HTML
entities before strings cross into the native engine, citing SIGSEGV
SEGV_ACCERR prevention. Someone hit a native crash in production testing; this
function is the scar tis
Установить ghost-self-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ghost-self-audit?
Independent third-party security and architecture audit of the GHOST codebase, produced by GLM (Z.ai) on 2026-11-12 against commit 617e672. Load this skill when the Operator asks about GHOST's own architecture, security posture, code quality, audit findings, or what the outside review found. Contains verified findings with file-level evidence, explicitly retracted findings, and a prioritized remediation list. Not written by the development toolchain and not written by the audited runtime.
Как установить скилл ghost-self-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ghost-self-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic