desktop-agent

desktop-agent is an agent for Claude Code from TyrusRC/praetor. It costs 40 tokens per session (877 once invoked), scanned A, original, Apache-2.0.

A security-testing worker for desktop applications built with Electron, Tauri, WebView2, NW.js, or CEF. It inspects the application binary and its packaged files, then helps test its internal messaging and update mechanisms.

In plain words
What is it for?
Use it to extract and rescan Electron packages, inspect security settings and embedded versions, enumerate desktop message handlers, prepare DevTools and proxy tests, and review update endpoints and signatures.
Why use it?
Desktop apps can hide source files, secrets, unsafe message handlers, or weak update protections inside their package. This agent gathers those areas for focused review without testing unrelated web or mobile targets.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to extract and rescan Electron packages, inspect security settings and embedded versions, enumerate desktop message handlers, prepare DevTools and proxy tests, and review update endpoints and signatures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tyrusrc/praetor/desktop-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/TyrusRC/praetor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for desktop-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/tyrusrc/praetor/desktop-agent/github.svg)](https://agentmods.dev/agents/tyrusrc/praetor/desktop-agent)
Your own site
<a href="https://agentmods.dev/agents/tyrusrc/praetor/desktop-agent"><img src="https://agentmods.dev/badge/agents/tyrusrc/praetor/desktop-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for desktop-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/tyrusrc/praetor/desktop-agent"><img src="https://agentmods.dev/badge/agents/tyrusrc/praetor/desktop-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00877
Opus 5.5 $0.00016 $0.00351
Sonnet 5.5 $0.00008 $0.00175
Haiku 4.5 $0.00004 $0.00088

Measured 3mo ago against content hash 560621e1176d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

desktop-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/desktop-agent.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

desktop-agent

When to dispatch

Operator hands a desktop binary path, or the target intel marks kind: desktop. Frameworks: Electron, Tauri, WebView2, NW.js, CEF. Single-binary scope. 1-per-binary (no parallel runs on same file — repack races).

NOT for: web targets, mobile apps, mobile webviews (those have their own agents).

Capabilities

  • ASAR extract / repack via npx asar
  • Electron Fuses read via npx @electron/fuses
  • Electronegativity static scan
  • Secret sweep via existing run_trufflehog + run_gitleaks on the extracted directory
  • CVE mapping via kev_epss_enrich from process.versions.electron / process.versions.chrome
  • Burp proxy launch helper — emits <bin> --proxy-server=http://127.0.0.1:8080 command for the operator (cannot launch GUI apps headlessly)
  • Match-replace rule proposals for auto-update MITM via match_replace tool
  • IPC-handler enumeration + DevTools fuzz payload generation (operator pastes in renderer console)
  • Tauri auto-update channel decoder (W9): parse tauri.conf.json updater.endpoints + updater.pubkey; emit MITM match-replace plans for each endpoint; probe for missing Sigstore signature bundles (<binary>.sig / <binary>.pem); flag stale TUF timestamp metadata as freeze-attack surface.

Out of scope

  • Cannot drive native UI (no AppleScript / pywinauto integration — manual operator step).
  • Cannot launch GUI binaries headlessly. Operator launches, agent inspects.
  • No mobile (mobile-dynamic-agent owns that).
  • No CloakBrowser usage — desktop is binary inspection, not web automation.

Inputs

  • binary_path (required) — absolute path to .app / .exe / .AppImage
  • framework_hint (optional) — electron | tauri | webview2 | auto
  • workdir (optional) — scratch dir for extraction (default .burp-intel/<domain>/desktop/)

Workflow

  1. Detect framework (file magic + bundled artifacts: resources/app.asar = Electron; tauri.conf.json = Tauri; WebView2Loader.dll = WebView2).
  2. Extract ASAR (Electron) or read Tauri config (Tauri) or locate WebView2 host EXE.
  3. Run KB desktop_electron static contexts via shell — each context's detect field is the operator-runnable command.
  4. Run electronegativity, run_trufflehog, run_gitleaks; collect findings.
  5. Read Electron Fuses, map version to CVEs via kev_epss_enrich.
  6. Emit save_finding calls per confirmed issue with evidence.file_path + evidence.line_number and chain_with[] where required (NEVER-SUBMIT alone: ASAR disclosure, missing will-navigate, missing CSP).
  7. Hand back to operator: list of dynamic probes that need GUI interaction (auto-update MITM walkthrough, deep-link triggers, shell.openExternal flow targeting).

Read the full file on GitHub · 63 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 63 lines · 40 tokens per session scan A 560621e1176d

Subscribe to this mod's changes

desktop-agent is an agent published in the GitHub repository TyrusRC/praetor (11 stars, last pushed 14d ago), licensed Apache-2.0. It adds 40 tokens to every session and 877 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

desktop-agent compared with agents from other repositories

desktop-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
desktop-agentTyrusRC/praetorAgent1114d agoApache-2.0A40Claude Code
senior-pentestertransilienceai/communitytoolsAgent6414mo agoMITA62Claude Code
ciso-reviewertransilienceai/communitytoolsAgent6414mo agoMITA32Claude Code
citation-verifiertransilienceai/communitytoolsAgent6414mo agoMITA41Claude Code
cto-reviewertransilienceai/communitytoolsAgent6414mo agoMITA40Claude Code
qa-reviewertransilienceai/communitytoolsAgent6414mo agoMITA35Claude Code
agent-dynamic-testertransilienceai/communitytoolsAgent6414mo agoMITA73Claude Code