Hardening DevContainers Against Host Escape & Auditing llms.txt Context Budgets (104/104 MIT MCP)
Hardening DevContainers Against Host Escape & Auditing llms.txt Context Budgets (104/104 MIT MCP)
Developer containers (.devcontainer/devcontainer.json) execute pre-container host hooks (initializeCommand) before isolation starts and mount sensitive host sockets or credential directories if left unreviewed. Meanwhile, llms.txt and llms-full.txt bundles fed directly into AI coding agents break downstream retrieval when headings duplicate, relative URLs dangle, token sizes exceed target context budgets, or untrusted markdown smuggles Trojan BiDi overrides and prompt-injection directives.
Wave S78 (104 / 104 Zero-Dependency MIT MCP & CLI Suite · 10 / 10 Pre-Commit Hooks · 88-Tab HF Space · 47-Split Dataset v5.7) ships two new deterministic auditors over sovereign MIT mirrors (https://nandai.org/git/destiny.git, HF /src/ Mirror, https://nandai.org/opensource) and live dual-port HA https://nandai.org/api/mcp:
1. Tool #103 (audit_devcontainer_security_posture) & 9th Pre-Commit Hook (destiny-devcontainer-audit)
- Full JSONC Parser (
//,/* */, Trailing Commas): Parses real.devcontainer/devcontainer.jsonconfigs cleanly with zero third-party dependencies (pip-free Python>=3.10), failing closed on{}withMISSING_EVALUATOR_INPUT. - Five Host-Escape & Supply-Chain Gates: Flags
initializeCommandpre-container host RCE patterns (curl|sh,wget,bash -c, credential reads),--privileged/--cap-add=SYS_ADMIN/seccomp=unconfined/--pid=host/--network=host, dangerousmounts(/var/run/docker.sock,~/.ssh,~/.aws,~/.kube,~/.gnupg), unpinned:latestor mutableimage/features, and Trojan BiDi or hardcoded secrets insidecontainerEnv/remoteEnv. - CLI & Standalone Guard: Run
./cli/destiny-verify.sh devcontainer . --json --strict,skills/agent-security-guard/scripts/guard_scan.py devcontainer, or enable thedestiny-devcontainer-audithook.
2. Tool #104 (verify_llms_txt_context_budget), 10th Hook & 1-Line ?format= Rule Endpoints
- Tool #104 —
verify_llms_txt_context_budget(./cli/destiny-verify.sh llms-budget,<1 ms): Validates# TitleH1 and> Summaryblockquote compliance (llmstxt.org), flags relative or malformed URLs versus canonical HTTPS links, scores context-window fit across8K / 32K / 128K / 200K / 1Mtiers with duplicate-heading bloat checks, and scansllms-full.txtfor Trojan BiDi, prompt-injection bypasses, and leaked credentials (10thpre-commit hookdestiny-llms-budget). - One-Line Rule Install Endpoints (
200 OK): Fetch verified drop-in rules straight into repos via?format=cursor-rule,?format=copilot, and?format=agents-md, plus?format=mcp-json,?format=skill, and?format=shields(104 Live Tools · HA 200). - Sovereign Git & HF Source Mirrors:
git clone https://nandai.org/git/destiny.git· Homebrew tapgit clone https://nandai.org/git/homebrew-destiny.git·88-Tab HF Space +/src/(Space Discussion#44). 47-Split Datasetv5.7(devcontainer_and_llms_budget):116CC-BY-4.0benchmark rows verified against98/98CLI self-tests,104/104MCPstdioRPC checks, and137/137unit tests.- Open Endpoints & Archives:
/.well-known/mcp.json·/.well-known/mcp/server-card.json· Open Source Hub · Zenodo10.5281/zenodo.24642737.
- Reference: https://nandai.org/api/mcp
- Reference: https://nandai.org/api/mcp?format=cursor-rule
- Reference: https://nandai.org/api/mcp?format=copilot
- Reference: https://nandai.org/api/mcp?format=agents-md
- Reference: https://nandai.org/git/destiny.git
- Reference: https://nandai.org/git/homebrew-destiny.git
- Reference: https://nandai.org/opensource
- Reference: https://huggingface.co/spaces/nandai-org/Destiny-Apple-Silicon-Workspace
- Reference: https://huggingface.co/spaces/nandai-org/Destiny-Apple-Silicon-Workspace/tree/main/src
- Reference: https://huggingface.co/spaces/nandai-org/Destiny-Apple-Silicon-Workspace/discussions/44
- Reference: https://huggingface.co/datasets/nandai-org/Destiny-M4-Pro-Hardware-Benchmarks
- Reference: https://nandai.org/.well-known/mcp.json
- Reference: https://doi.org/10.5281/zenodo.24642737
Write a comment