Scan your whole stack
From OX Research Newsroom
Are you using dark-knight-agent-framework?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.0
dark-knight-agent-framework was last scanned on 23 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.5.0 LATEST | 23 Nov 2026 | No rules fired |
| 0.4.0 | 23 Nov 2026 | No rules fired |
| 0.3.1 | 23 Nov 2026 | No rules fired |
| 0.3.0 | 23 Nov 2026 | Not shown |
| 0.2.0 | 23 Nov 2026 | Not shown |
Findings for v0.5.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.5.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
DKAF packages a single-owner assistant you talk to from your own Telegram DM, together with
its restricted routing services and one-machine deployment template. The John's Harness Light
gateway, control UI and connection-aware context profile are embedded; there is no separately
installed Harness or proxy add-on. dkaf on a laptop is an offline packaging/configuration CLI.
Installing it does not change the laptop's routes or start a less-private local agent.
Telegram is the control channel, not a tool. A fresh install only needs a bot token and your numeric Telegram user ID: the Machine boots, answers your DM, and reports what is still unconfigured — with no model, no VPN and no public web origin. Model replies come from a local, deterministic setup guide until you connect a model endpoint.
Not a verified Fly deployment. This is for ordinary browser, search and connected email tasks. No shell, node/device tools, arbitrary URL fetch API, external browser relay or spawned agents are enabled in the assistant tool allowlist. Graph CLI is x64-only upstream; Outlook is not available in the ARM64 image.
| Request | Network path |
|---|---|
| Owner DMs, commands and replies | Direct TCP 443 to api.telegram.org through a local relay pinned to Telegram's published Bot API addresses. One destination, one port, one tunnel type; TLS is verified by the Telegram client, so a stale pin fails closed. No DNS is used: the workload's hosts file carries one fixed entry for that name. |
| Voice notes and audio files in the owner DM | Fetched from Telegram over the same pinned relay, then transcribed on the Machine by the bundled whisper.cpp. No transcription service, no API key, no extra destination: the audio stays on the Machine and only the resulting text continues to the selected model, like a typed message. |
Browser navigation and ddg_search |
Local headless Chromium → owner's Proton WireGuard tunnel. Search uses the DuckDuckGo Lite page; if unavailable/challenged, it reports failure. No search API or Brave/Exa fallback. |
| Connected Gmail / Outlook, including token refresh | Light's email extension launches gog / mgc inside the same network and filesystem sandbox. |
| Tool DNS | Only the configured tunnel resolver is listed. Port 53 to other resolvers is blocked on the tunnel. No host resolver fallback; Chromium's secure DNS is disabled. |
| Selected model | Only POST /chat/completions against the owner's HTTPS base URL. Supports OpenAI Chat Completions-compatible streaming/tool calling, not arbitrary provider protocols. |
| Optional MemoryRouter | Only the fixed prepare/ingest/search/date-search/inspect/warmup/consolidation POST routes at the owner's HTTPS service. No imports, URL proxy, redirects or fetch-by-URL API. |
| Incoming UI / WebSocket (optional) | Raw TCP port 443 to app port 8443; the app presents the owner's cert. No Fly HTTP or TLS handler. Gateway token and normal device pairing still apply. |
The Linux bootstrap creates a WireGuard interface in the outer network namespace and moves it
into an initially empty one. Only the encrypted UDP socket remains outside. The assistant has
loopback plus that tunnel interface: no veth, default gateway to the host, or general-purpose
forward proxy. Default-drop workload nftables rules block IPv6 independently of sysctls. An outer
Machine firewall also limits new IPv4 flows to the numeric VPN peer and three separate connector
UIDs' pinned HTTPS addresses — the model/memory connector, the certificate ingress and the
Telegram relay each reach only their own destinations. Replies to incoming management/TLS
connections and IPv6 neighbor discovery are infrastructure traffic, not tool egress. A private
PID/mount/IPC sandbox hides host /proc, /run, secrets and devices; the workload runs as UID
31001, no capabilities, no new privileges, with a socket-family filter. Chromium's renderer
sandbox stays on. Browsers, OAuth helpers and descendants inherit the boundary. Failure to create
the boundary stops startup.
The direct services use fixed Unix sockets, separate local capability tokens, owner-configured or fixed public IPv4 addresses, TLS SNI and certificate verification for the configured DNS name. They relay only specific methods/paths (or, for Telegram, a single CONNECT destination), replace caller headers and inject upstream credentials. No DNS lookups are needed for these links or the numeric WireGuard peer. If a service IP rotates, update its pin and restart; there is no alternate destination. Losing Proton stops tools, not the control channel — that is deliberate, so you can fix the tunnel from the same DM. A failed internet link for the whole Machine can of course stop everything.
This does not anonymize accounts or prompts. Telegram sees DM contents and the bot token; the model sees prompts, MemoryRouter sees submitted memories, and email providers know the authenticated account. The endpoints of direct connections see the Machine's egress IP. Proton is the tool-traffic intermediary; a website can still recognize a signed-in user or browser. Fly hosts the computation and can access process memory. One trusted owner per Machine; no defense against a malicious host/kernel, compromised provider, stolen operator token or secrets that a user deliberately pastes into a tool. Browser login on a separate personal device is outside this boundary.
npm install -g dark-knight-agent-framework
dkaf verify
dkaf init ./dkaf-machine
init requires a new directory; it will not overwrite anything. It exports the embedded
runtime, image recipe, fixed services and fly.toml. docker build -t dkaf ./dkaf-machine builds
the same one-container image. Build-time downloads include public registry dependencies, Chromium,
the architecture-specific pinned email CLIs, and the pinned whisper.cpp source and speech model. Build traffic is not runtime traffic. Nothing
here provisions, deploys, publishes, reads your existing assistant's state or edits system
networking on the laptop.
Send the bot a voice note or an audio file and it is transcribed before the model sees it. This is the standard and only speech-to-text path; there is nothing to configure and no key to add.
ffmpeg decodes Telegram's Ogg/Opus (and MP3/M4A/WAV) first.base (148 MB, language auto-detected). It is downloaded once at image
build from the upstream model repository at a pinned revision and checked against a pinned
SHA-256; it is not inside the npm package and nothing is downloaded at run time.base needs about 400 MB of memory while it runs. The image build transcribes a bundled
sample with the exact binary and model and fails if the text is wrong./opt/dkaf/deploy/transcribe.sh --selftest on the Machine console repeats the build-time check.
Create a private JSON file outside the repo/build context (chmod 600). telegram is what
makes the instance administrable from your DM; model, proton, memory and ingress are all
optional and can be added later.
{
"telegram": {"botToken":"<bot id>:<secret>","ownerId":"<your numeric Telegram user id>"},
"model": {"baseUrl":"https://model.example/v1","address":"<current public IPv4>","id":"<model ID>","apiKey":"<your key>"},
"memory": {"baseUrl":"https://memory.example","address":"<current public IPv4>","apiKey":"<your memory key>"},
"ingress": {"origin":"https://agent.example","token":"<at least 32 random non-space characters>","certPem":"<PEM full certificate chain>","keyPem":"<matching PEM private key>"}
}
ownerId is the numeric ID Telegram assigns to you (@userinfobot or a bot getUpdates
response). It is the only sender allowed to use commands; everyone else is refused and never sees
state. The bot token is the channel credential: keep it in owner configuration, never in chat.
dkaf check-config /private/path/owner.json validates the file without connecting or printing
secrets. Supply it as a read-only file at /run/secrets/dkaf-owner.json or as base64 in the
Machine secret DKAF_OWNER_B64 (base64 is not encryption). Use stdin when importing secrets;
never commit them, pass them as image build args or paste them into chat. Rotate owner inputs and
restart for pin/key/cert changes.
model is the default endpoint. Give it an optional alias and set capabilities per endpoint:
store defaults to false; tools defaults to true. Set tools: false for a text-only API.
Inert store: false and empty tool fields are omitted for providers that cannot accept them;
real tool calls are never silently rewritten as ordinary text. To add selectable endpoints,
include additionalModels in the same private owner JSON. For example (placeholder values):
{
"model": {"alias":"writer","baseUrl":"https://one.example/v1","address":"<public IPv4>","id":"text-model","apiKey":"<key>","capabilities":{"store":false,"tools":false}},
"additionalModels":[{"alias":"assistant","baseUrl":"https://two.example/v1","address":"<public IPv4>","id":"tool-model","apiKey":"<other key>","capabilities":{"store":false,"tools":true}}]
}
Restart after changing this file. /model assistant selects that endpoint for the chat; /model writer
switches back. Each alias has its own connector capability, pinned HTTPS destination and model ID;
there is no fallback to another endpoint on failure. /login model sets the primary endpoint on disk,
which takes precedence over the JSON model on restart; it does not provision alternate providers.
Create the bot with @BotFather, copy the token, and write the owner JSON above with your own
numeric ID. docker build/deploy the Machine and mount /data. The Fly template includes an always-restart policy; use --restart=unless-stopped on Docker or an equivalent supervisor so imported profiles activate automatically.
Send the bot any message. It replies with the setup guide and refuses anyone who is not the configured owner.
/setup reports the state of the control channel, model, Proton tunnel, MemoryRouter vault and
the tunnel-only tools, plus the next command. It is a native command: it works with no model
and no VPN.
Add what you want:
/login proton — create a Linux WireGuard configuration in your own Proton account
(Downloads → WireGuard configuration), then choose the original .conf file or paste it on the single-use owner page. DKAF saves it
root-only on the volume and requests an automatic restart. Once the bot returns, send /login proton again.
Configured means a file was accepted; connected requires a fresh DNS answer through the
encrypted peer. Without a public origin the same import runs on your private Machine console
(docker exec -i CONTAINER /opt/dkaf/deploy/admin.sh proton import < proton.conf, or
fly ssh console -a APP --pty=false -C '/opt/dkaf/deploy/admin.sh proton import')./login MemoryRouter — the bot links to an owner-only page that runs MemoryRouter's hosted
consent for auth.memoryrouter.ai; sign in, pick the vault, approve read/write/reflect. DKAF
verifies the vault over MCP and stores the grant outside the harness filesystem. If the
hosted client registration from this origin is refused, the same consent runs with
dkaf login memoryrouter --docker CONTAINER (or --fly APP) on your own computer./login model — an owner-only page for an OpenAI Chat-Completions-compatible HTTPS base URL,
model ID and key, plus the public IPv4 to pin (or a hostname resolved once at that moment).
Until this exists, replies come from the local setup guide and no model traffic exists./login gmail, /login outlook — email authorization; the Proton tunnel must exist first
because the mail CLIs inherit the tool boundary.None of these accept credentials in chat, and the agent never receives them as prompt text.
Setup pages are https://<your origin>/dkaf/setup/<single-use id>: one kind of secret per page,
ten-minute lifetime, five submission attempts, no-store/origin-only referrers/CSP default-src 'none',
and the submitted secret goes straight to a root broker — the gateway only ever sees the link.
Ingress (a public HTTPS origin) is what makes those pages reachable; without it the commands
print console steps instead.
The control UI is optional. With ingress configured, the gateway is reachable at the
configured origin with the gateway token and normal device pairing
(/opt/dkaf/deploy/admin.sh devices list, then … devices approve <requestId>).
Set a new app name and region, an appropriately sized persistent volume dkaf_data and exactly
one Machine (--ha=false for initial deploy; confirm final Machine count). Use a public IP
suitable for raw TCP passthrough only if you want the optional control UI: point the custom
hostname at it and provide the matching certificate in-app. Shared IPv4/HTTP edge certificates are
not a substitute for raw TCP with app TLS. Fly compute, storage and dedicated IPv4 may cost
money. fly.toml has no target app or account identifiers.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.