Skip to content

Security hardening - #3

Merged
layer8labs8 merged 11 commits into
mainfrom
security-hardening
Nov 23, 2026
Merged

layer8labs8 merged 11 commits into
mainfrom
security-hardening

Conversation

@layer8labs8

Copy link
Copy Markdown
Owner

Exact CORS origins and OS-random bridge token; precise sensitive-window detection; OCR password masking; --allow-apps, rate limit and confirmation for risky actions; prompt-injection marking and Security model docs; recording badge and microphone opt-in; auto-deletion of recordings.

Only loopback pages and origins listed exactly with --allow-origin may call the bridge (no blanket chrome-extension:// or *.web.app; wildcards refused). Generated tokens come from BCryptGenRandom (256 bit) and are written to %LOCALAPPDATA%\eyra\bridge.token instead of being printed.
…ult pages

Password managers and credential prompts are matched by exact executable name; title phrases need whole-word matches ("Goalkeeper" no longer matches "keeper"); browser tabs titled Passwords, Google Password Manager, Wallet etc. are treated as sensitive.
OCR has no password-field flag, so values next to or below a short password label (16 languages), inline 'Password: ...' values and runs of masking dots are replaced with [REDACTED] and their rects are blacked out in later screenshots. OCR snapshots carry a one-line note that masking is heuristic.
--allow-apps limits mouse/keyboard actions to listed executables. --max-actions-per-minute (default 60, plus 10 per second) stops runaway loops. --confirm risky (default) shows a Windows Yes/No dialog before clicks on delete/send/pay/publish-style controls (8 languages) and before shift+delete / ctrl+enter; --confirm all asks before every action. Coordinate clicks, scrolls and drags are now checked against the window actually under the pointer (both ends of a drag).
…y model

see/see_diff output carries content=untrusted; MCP server instructions, tool descriptions, SKILL.md, GEMINI.md and the plugin skill tell the model never to follow instructions found on screen or in audio. README gains a Security model section covering injection and the input guards.
While listen captures audio or a watch session runs, a red click-through 'EYRA is recording' badge sits in the bottom-right corner (excluded from screen capture). The microphone is off unless eyra starts with --allow-mic (EYRA_ALLOW_MIC=1): source=mic is refused, source=both records system audio only and says so.
listen clips older than EYRA_AUDIO_TTL_MIN (default 60, 0 = no age limit) are deleted before each recording and when the MCP server starts; stale watch-session folders left by a crash are swept too.
README covers --confirm, --allow-apps, --max-actions-per-minute, --allow-mic, EYRA_AUDIO_TTL_MIN, the bridge token file and new troubleshooting entries; CHANGELOG lists the security changes; the listen tool tells the model the microphone needs --allow-mic.
…aret

bench/run-tasks.ps1 runs five scripted desktop tasks through the MCP server (25/25 succeeded) and writes bench/RESULTS.md. The benchmark showed wait_change missing a status-line change at the old 1% threshold and firing on a blinking caret at a lower one: the default is now 0.2% plus at least 3 changed blocks.
Version 0.4.0 everywhere; the Claude Code plugin points at the v0.4.0 bundle; README no longer marks eyra setup and attestations as unreleased.
A Chrome or Edge window that is covered or still loading exposes only its
toolbar to UI Automation. see now adds OCR in that case and tells the agent
to focus the window and look again. README: troubleshooting rows for this
and for canvas text.
@layer8labs8
layer8labs8 merged commit 552735f into main Nov 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant