plugsday
Week 2 · November 9, 2026 / iphone-unlock

iphone-unlock

SkillUse with care★ 621 · by @JosssphZhou

An iPhone unlock skill for Poki Agent. When the phone shows its Lock Screen or a Face ID passcode fallback, it enters the locally configured passcode and checks the result with a fresh screenshot. The bundle is the whole Poki repository: an MCP server plus an agent that drives a real iPhone or iOS Simulator from macOS.

See it on GitHub

Why it's held

Turns off the agent's permission prompts.

What it can touch

files · read and writenetwork · 6 hostsshell · runs commandssecrets · 5 keys
fileswrite, including every environment variable, POKI_AGENT_AUTH_FILE / ChatGPT OAuth credentials, ~/.codex/auth.json, ~/.claude/skills/poki-mcp, ~/.codex/skills/poki-mcp
networkapi.github.com, api.openai.com, api.telegram.org, docs.bluebubbles.app, example.invalid, github.com
shellruns commands
secretsBLUEBUBBLES_PASSWORD, OPENAI_API_KEY, POKI_MCP_TOKEN, POKI_SUITE_TOKEN, TELEGRAM_BOT_TOKEN

What it actually does

The skill tells the agent to call the host tool unlock_device with keypadConfirmed=true. The host reads POKI_IPHONE_PASSCODE from the environment and pipes it over stdin to a compiled Rust helper (unlock_iphone). That helper taps six digit coordinates from iphone-402x874.json. The wider repository does much more: - Runs a local MCP daemon that controls the iPhone: taps, text, the clipboard, app launches and accessibility reads. - Pairs a phone over USB or Wi-Fi with idevice-tools and writes a pairing.plist. - Sends screen contents to OpenAI models. - Optionally takes tasks from iMessage (BlueBubbles) or Telegram senders on an allowlist. - Checks api.github.com for updates. - Includes an evaluation harness that launches Claude Code and Codex CLI with permission prompts disabled, against disposable simulators. - Includes agent prompts that tell the model to read SMS verification codes from Messages and enter them, to use locally configured credentials for login, and to unlock the phone itself. The source of the unlock helper (unlock.py and unlock_iphone.rs) and of the host integration (unlock-device.mjs) was left out of the bundle. The claim that the passcode never reaches the model or logs therefore can't be checked directly. safeModelError does redact POKI_IPHONE_PASSCODE from error text.

What the check found

highTurns off the agent's permission prompts

Switches the agent to run commands or make edits without asking first.

bin/eval-first-call.mjs:203 return { file: 'claude', cwd, env: process.env, args: ['-p', prompt, '--model', 'claude-opus-5-5', '--effort', 'high', '--setting-sources', skillRun ? 'project'

automated rule

mediumChanges the agent's instructions or settings

Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.

README.md:85 Update with `./bin/poki update`. Set `POKI_NO_UPDATE_CHECK=1` to disable the daily anonymous GitHub release check. See [Update](AGENTS.md#update) for the reques

automated rule

mediumDownloads programs or archives while running

Files fetched at run time weren't part of this check, and they can change at any time.

agent/package-lock.json:635 "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz",

agent/package-lock.json:701 "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.8.0.tgz",

agent/package-lock.json:950 "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",

automated rule

mediumRuns code that is built while it runs

eval, exec and new Function run text as code, which makes it hard to know what will actually run.

agent/scripts/verify-agent.mjs:143 await exec('xcrun', ['simctl', 'shutdown', device]).catch(() => {});

automated rule

mediumGoes through every environment variable

Reads the whole environment, usually to pass it on to another program. Together with a webhook or paste-site address it is how credential stealers work.

agent/test/agent-observation-reuse.test.mjs:27 for (const key of Object.keys(process.env)) if (!(key in env)) delete process.env[key];

automated rule

mediumGoes through every environment variable

Reads the whole environment, usually to pass it on to another program. Together with a webhook or paste-site address it is how credential stealers work.

agent/test/fixtures/runner.mjs:23 for (const key of Object.keys(process.env)) if (!(key in before)) delete process.env[key];

automated rule

mediumGoes through every environment variable

Reads the whole environment, usually to pass it on to another program. Together with a webhook or paste-site address it is how credential stealers work.

agent/test/openai.test.mjs:68 for (const key of Object.keys(process.env)) if (!(key in before)) delete process.env[key];

automated rule

mediumGoes through every environment variable

Reads the whole environment, usually to pass it on to another program. Together with a webhook or paste-site address it is how credential stealers work.

agent/test/route-answer.test.mjs:42 for (const key of Object.keys(process.env)) if (!(key in before)) delete process.env[key];

automated rule

mediumGoes through every environment variable

Reads the whole environment, usually to pass it on to another program. Together with a webhook or paste-site address it is how credential stealers work.

agent/test/verification-trace.test.mjs:40 for (const key of Object.keys(process.env)) if (!(key in before)) delete process.env[key];

automated rule

mediumRuns code that is built while it runs

eval, exec and new Function run text as code, which makes it hard to know what will actually run.

bin/prepare-remote.mjs:17 const devices = JSON.parse((await exec('python3', [join(root, 'native/devices.py')])).stdout);

bin/prepare-remote.mjs:26 try { await exec(idevice, ['--udid', id, 'remotepairing_lockdown', 'pair', 'poki-mcp', pairing], { timeout: 45000 }); }

bin/prepare-remote.mjs:32 const verification = await exec(idevice, ['--udid', id, 'remotepairing_lockdown', 'verify', pairing, 'poki-mcp'], { timeout: 30000 });

automated rule

mediumContains invisible characters

Zero-width and other invisible characters can hide words or split them so filters and reviewers miss them.

deploy/istoreos/README.md:205 | `deadline has elapsed` on every call | A stale `poki-native --remote-server` from an earlier run holds the phone. `pkill -f "poki-native --remote-server"` and

automated rule

mediumRuns code that is built while it runs

eval, exec and new Function run text as code, which makes it hard to know what will actually run.

test/update.test.mjs:14 try { return { code: 0, ...await exec(join(dir, 'bin/poki'), args, { cwd: dir, env: { ...process.env, POKI_MCP_STATE_DIR: join(dir, 'state'), ...env } }) }; }

test/update.test.mjs:64 const git = (cwd, ...args) => exec('git', ['-c', 'user.name=Fixture', '-c', '[email protected]', ...args], { cwd });

automated rule

mediumDevice passcode stored in an environment variable and used autonomously

Your iPhone passcode sits in an environment variable on the Mac, and the agent can unlock the phone without asking. This is what the tool is for, and the docs disclose the risk: the user must opt in and set the value themselves, and any program on the Mac may be able to read it. The helper source that handles the passcode was not included, so the claim that it stays out of model inputs and logs could not be verified.

agent/skills/iphone-unlock/SKILL.md:9 Poki Agent 通过 unlock_device 加载本技能并调用本地助手。模型只提供设备页面的确认信息,密码由宿主读取 POKI_IPHONE_PASSCODE,通过子进程标准输入传递。密码不进入模型输入、参数、日志、证据和提交。缺少本机密码时工具返回明确错误,模型根据任务和可用能力继续解决,无法完成就 fin

skills/poki-mcp/SKILL.md:49 Poki Agent's host-integrated `unlock_device` is separate from the MCP tool catalog. Only the user may choose and configure `POKI_IPHONE_PASSCODE` in a private l

agent/prompts/system.md:3 Handle login, SMS verification codes, paste permissions, system prompts and navigation across apps with the tools. Read requested verification codes from Messag

Claude review

mediumAgent reads SMS verification codes and uses stored credentials on its own

The system prompts tell the model to read verification codes from Messages or notifications and enter them, and to complete logins with whatever credentials are available. Together with remote task intake over iMessage or Telegram and on-screen text from apps, this gives a prompt-injection or misdirected task a path to second-factor codes and account access. The answer helper does treat screen text as untrusted, but the execution prompts carry no such caution.

agent/prompts/system.md:3 Handle login, SMS verification codes, paste permissions, system prompts and navigation across apps with the tools. Read requested verification codes from Messag

skills/poki-mcp/SKILL.md:57 For login or verification, use the credentials available for the authorized task. Read a requested SMS verification code from Messages or notifications, enter i

agent/prompts/call-draft.md:13 Handle system prompts through handle_alert. Specify a purchase button by its exact text only when the task explicitly requests the purchase. For login, verifica

Claude review

mediumRouter deployment exposes phone-control daemon over plain HTTP

The optional iStoreOS deployment binds the MCP daemon to the LAN. A single bearer token is the only protection, and traffic is not encrypted. Anyone on that network segment who obtains the token can fully control the paired iPhone. The docs state this plainly.

deploy/istoreos/README.md:105 **The bridge is plain HTTP.** The bearer token is the only control, so it is exactly as safe as the network it crosses: keep the daemon on a LAN or tailnet you

Claude review

mediumBenchmark script disables permission prompts and links the user's real Codex credentials

`bin/eval-first-call.mjs` spawns Claude Code with `--dangerously-skip-permissions`, starts the daemon with `POKI_MCP_APPROVAL_MODE: 'allow'`, and symlinks the operator's real `~/.codex/auth.json` into a throwaway CODEX_HOME so the eval windows can sign in. Nothing is sent off the machine and the script only runs when a maintainer invokes it against disposable simulators, but it is a ready-made permission bypass shipped inside the package, and it touches a live credential file.

bin/eval-first-call.mjs:203 return { file: 'claude', cwd, env: process.env, args: ['-p', prompt, '--model', 'claude-opus-5-5', '--effort', 'high', '--setting-sources', skillRun ? 'project'

bin/eval-first-call.mjs:189 const env = { ...process.env, POKI_MCP_STATE_DIR: stateDir, POKI_MCP_APPROVAL_MODE: 'allow', POKI_EVAL_UDID: udid, IDEVICE_TOOLS: join(shims, 'idevice'), PATH:

bin/eval-first-call.mjs:214 await symlink(join(homedir(), '.codex/auth.json'), join(home, 'auth.json')).catch(error => { if (error.code !== 'EEXIST') throw error; });

Claude review

mediumSkill tells the agent to unlock a hidden tool catalog and run model-written JavaScript

The companion skill instructs the agent to change its MCP client's process environment so the server advertises a larger catalog, and states that tools missing from the default `tools/list` can be called directly anyway. One of those tools, `run_code`, executes an async JavaScript function the model writes. The result is that the capability surface an owner sees in their client's tool list understates what this tool can actually do. Mitigating: `run_code`'s sandbox is described as having no require, file system, network, process or timers, Poki Agent already spawns the server with `POKI_MCP_TOOLS: 'all'` in its own code, and none of this is concealed from a reader of the skill.

skills/poki-mcp/SKILL.md:13 Set `POKI_MCP_TOOLS=all` in the MCP client's process environment and reconnect to list the complete catalog. Tools absent from the default list still accept dir

skills/poki-mcp/SKILL.md:15 `run_code` is in the complete catalog, not the default list. It runs an async JavaScript function that calls device tools with `await tools.<name>(args)`, so th

agent/poki-client.mjs:11 env: { ...process.env, POKI_MCP_SESSION: session, POKI_MCP_TOOLS: 'all' },

Claude review

mediumAgent is instructed to read SMS verification codes, use stored credentials and confirm purchases

The skill and both execution prompts tell the agent to complete logins with whatever credentials are available on the device, to read a requested one-time code out of Messages or notifications and type it, and to tap a purchase button when the task asks for a purchase. For a tool whose job is operating a real iPhone this is arguably necessary, and the README discloses that Poki will send messages and make payments if asked, but it means an autonomous agent handles second-factor codes and can spend money. Owners should be told explicitly.

skills/poki-mcp/SKILL.md:57 For login or verification, use the credentials available for the authorized task. Read a requested SMS verification code from Messages or notifications, enter i

agent/prompts/system.md:3 Handle login, SMS verification codes, paste permissions, system prompts and navigation across apps with the tools. Read requested verification codes from Messag

Claude review

Keep an eye on it

This check is of one commit. Watch iphone-unlock and we'll email you if a later commit changes what it can touch.

About this check

Checked November 9, 2026 at commit 8b780c2a0d2c, 219 files. Rules for known red flags, then two Claude reviews, one of them told to assume the author is malicious. A later commit hasn't been checked. How checks work.