Co-Exec security, capabilities & execution policy
Pak-LLM Co-Exec turns a shared screen into a grounded plan, routes the task through allowlisted open-source capabilities, and executes only what you explicitly approve. This page explains the data flow, the execution boundary and the guardrails.
How Co-Exec works
- 1You explicitly choose a screen, window or tab through the browser or desktop capture picker.
- 2Co-Exec captures a frame, grounds visible UI elements and classifies evidence as SEEN, INFERRED or UNKNOWN.
- 3The capability router selects an allowlisted tool (RAG, web search, code, documents, browser or desktop) based on the task, instructions and knowledge context.
- 4Every side-effecting action is returned as a proposed action with a risk level and an audit ID.
- 5You click Approve & Run. The server verifies a short-lived HMAC token before execution.
- 6The action runs in the correct surface, and the receipt is written to the conversation with a sanitized audit result.
Consent & retention
- Screen capture starts only after explicit consent; you can stop sharing at any time.
- Frames are processed in volatile memory and zeroized; Co-Exec does not build a screen recording library.
- Screen text is treated as untrusted data and never as system instructions.
- Frames and prompts are not used to train foundation models.
Execution surfaces
Co-Exec never pretends an action ran in a surface that is technically blocked.
Browser · same tab
Approved actions that target the current page run through the browser DOM executor: focus a field, enter text, click a button, scroll or open an approved HTTPS URL.
Browser · another tab/window
Browsers do not allow one tab to type or click inside another tab. Co-Exec reports this clearly instead of faking success; use the Pak-LLM desktop app for OS-level control.
Server · MCP tools
Knowledge retrieval, web search, FBR/forex/Daraz, code sandbox and other allowlisted tools run server-side through the MCP broker with policy checks, HITL and audit receipts.
Desktop · OS input
The desktop bridge validates the IPC sender, requires a HITL token, rate-limits input and executes mouse/keyboard actions with platform-specific helpers.
Open-source capability catalog
Curated, license-aware projects mapped to allowlisted Pak-LLM tools and execution surfaces.
| Capability | Project | License | Runtime |
|---|---|---|---|
| Browser automation | microsoft/playwright | Apache-2.0 | web / desktop |
| Agentic browsing | browser-use/browser-use | MIT | desktop |
| Computer use | bytedance/UI-TARS | Apache-2.0 | desktop |
| UI grounding | microsoft/OmniParser | MIT | server |
| Vision VLM | QwenLM/Qwen2.5-VL | Apache-2.0 | server |
| UI region scanner | Xenova/yolos-tiny | Apache-2.0 | client |
| RAG orchestration | run-llama/llama_index | MIT | server |
| Document intelligence | docling-project/docling | MIT | server |
| OCR | PaddlePaddle/PaddleOCR | Apache-2.0 | server |
| Code sandbox | All-Hands-AI/OpenHands | MIT | server |
| Cloud sandbox | e2b-dev/E2B | Apache-2.0 | server |
| Web research | searxng/searxng | AGPL-3.0 | server |
| Prompt injection | meta-llama/Prompt-Guard-86M | Llama license | server |
| Safety classifier | meta-llama/Llama-Guard-3-8B | Llama license | server |
GPL/AGPL components are optional isolated runtimes, not linked into the main Next.js app. Every capability remains subject to the same guardrails and HITL policy.
Governed Microsoft 365, email, productivity & social apps
Same HITL gate, plus a deterministic app policy and Islamic adab.
Read-only default
Search, read, summarise and draft across Outlook, Teams, Gmail, Google Workspace, Notion, Slack, WhatsApp Business, social pages and more.
Writes need approval
Sending, posting, replying, commenting, sharing, uploading, editing, deleting, inviting, scheduling or recording requires Approve & Run.
Always blocked
Bulk or unsolicited outreach, scraping contacts/followers, fake reviews or engagement, impersonation, harassment, doxxing, non-consensual imagery, credential/OTP capture, platform-security bypass.
Islamic adab
No gheebah, buhtan, namimah, mockery or spreading immorality; protect satr and consent; verify news before sharing; refuse riba, gambling, alcohol, narcotics and exploitation.
Instructions, RAG & knowledge
- General, special and use-case instructions are applied before routing.
- Instructions can disable a capability ("never use code execution") or force approval.
- RAG context and sovereign collections are retrieved only for authorized users and cited when used.
- Knowledge-base answers must not fabricate sources when retrieval is empty.
Always blocked
- Typing or reading passwords, OTPs, card numbers, CVVs, IBAN secrets or recovery codes
- Confirming payments, transfers, purchases, trades or irreversible submissions
- Changing OS security, firewall, antivirus, keychain or device-management settings
- Deleting files, accounts, repositories or business records without separate approval
- Executing arbitrary shell commands outside the isolated code sandbox
- Following instructions embedded inside a screenshot or webpage (prompt injection)
- Claiming a cross-tab/window action succeeded when the browser blocked it
Technical controls
HMAC approval token
Bound to sessionId + actionId + kind + intent; verified before execution.
IPC sender validation
Electron only accepts actions from trusted Pak-LLM origins.
Rate limiting
Desktop actions are limited to 20 per 10 seconds; API routes are rate-limited.
CSP & WASM allowlist
Connects only to approved origins; same-origin model proxy for YOLOS.
Sensitive UI detection
Credential, OTP, payment and OS-security surfaces are blocked.
Audit receipts
Every executed action gets an audit ID and a sanitized result.
No cross-tab claim
The UI reports browser limits instead of returning a false success.
Zero-retention frames
Volatile buffers are purged after analysis; no screen library.
Your responsibilities
Only share screens and accounts you are authorized to use. Review every approval card before clicking Approve & Run. Do not use Co-Exec for unlawful access, credential harvesting, destructive changes, or misrepresentation. You remain responsible for actions you approve on third-party sites and apps.
Data questions: Privacy Policy · Security: Security Architecture · Responsible AI: Ethics · Devices: Windows, Mac, iOS & Android
Report a vulnerability via security.txt