intelligence_src_6dc544294b7f21f98a
- Source-provided label
- Publisher RSS metadata
- Evidence class
- mentioned in report
- Confidence
- Not reported
- Observed
- Dec 04, 2026 18:17 UTC
- Retrieved
- Dec 04, 2026 18:28 UTC
Telegram has released Dictator, an AI agent for the Mac that you talk to through an "AI Assistant" chat inside Telegram. The code is public: TelegramMessenger/Dictator. I build agent tooling myself and have run into the same questions: how do you isolate an agent, how do you keep keys away from it, and how do you make permissions it can't talk its way around? So I read the source. These notes are based on commit 832e5a5 (December 4, 2026). I didn't build or run anything; I only read the code and the docs in docs/. File paths are relative to the repo root so every claim can be checked. One caveat up front: this repo contains the Mac app and the agent's VM. The part that actually performs actions inside Telegram lives in Telegram for macOS and isn't included here. What it is The agent itself isn't Telegram's own: it's Hermes Agent from Nous Research, as the README says. Dictator is everything around it: the VM, a proxy, permissions, dictation and the bridge to Telegram. Telegram for macOS ⇄ Dictator.app (menu bar, proxy, rules) ⇄ Linux VM (Hermes Agent) Isolation: a separate Linux VM The agent runs in a VM on Apple's Virtualization.framework (Sources/HarnessCore/HarnessVirtualMachine.swift). The image is Debian 13 genericcloud for arm64, verified against SHA512SUMS (ImageStore.swift). The defaults are 2 CPUs and a 16 GB disk (HarnessConfig.swift). The VM talks to the Mac over vsock; the host-side proxy listens on port 8080. A neat detail: connections from guest source ports up to 1023 are treated as privileged, because only root inside the VM can bind them, and service routes like /harness/egress accept only those. The agent itself runs as a hermes user with a locked password. Your folders aren't shared into the VM. A shared directory is attached only when building the golden image. Network. Internet inside the VM is on by default: // Sources/HarnessCore/HarnessConfig.swift:18 public var internet = true Turn it off and the VM gets no network device at all. The diagram in docs/setup.md labels the VM "Debian 13, no NIC", which doesn't match the default; probably just a stale doc. The agent's outbound TCP is redirected by nftables to a local relay, which asks the host before each connection (EgressGuest.swift). The model key never enters the VM To me this is the best decision in the project. Inside the VM, Hermes is configured with a placeholder key: // Sources/HarnessCore/GuestScripts.swift:6 public static let placeholderSecret = "vm-placeholder" Model requests go through the proxy on the Mac, which adds the real Authorization header. Keys live in the Keychain as kSecAttrAccessibleWhenUnlockedThisDeviceOnly (SecretStore.swift). Even a fully hijacked agent doesn't hold the model key. The proxy allows only the endpoints it needs, forces the model back to the allowed list and caps max_tokens (16384 by default). Reaching openrouter.ai directly from the VM is blocked, so the agent can't bypass the proxy with a key of its own. Local models are supported too: Ollama and LM Studio on the Mac. Where it's thin. Secrets you hand the agent yourself (Settings → Secrets) do enter the VM as environment variables, written to /home/hermes/.harness/secrets.env (SecretVault.swift). The proxy strips them from model requests, but only by exact value and its JSON-escaped form. Base64 or a value split in pieces won't be caught. That's an honest trade-off: if the agent needs a key to do its job, it has the key. Prompt injection as a state, not a filter An agent that reads other people's messages will eventually read text that tries to steer it. Dictator doesn't try to classify malicious text. Instead it marks the session: once the agent has read private or outside content, the session is "tainted", and from then on connecting to a new host or running anything that persists data needs approval (InjectionGuard.swift). I like this approach because it doesn't depend
42ab4a7265fd213ac057e4a212903a84643a6838ae358fb594f374f8f788c555Network indicators are visibly defanged. This page does not make them clickable or send them to another service.
No validated file hashes or network indicators are stored for this record.
This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.
Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.
1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.
Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.