{"package":"apple-notes-mcp","version":"2.8.24","known":true,"status":"done","discovered_at":1790177677892,"has_install_script":true,"report_url":"https://andymal.com/packages/apple-notes-mcp/2.8.24","verdict":"clean","action":"allow","confidence":0.85,"summary":"The package is a legitimate macOS Apple Notes MCP server. The preinstall hook only enforces pnpm (exits with a human-readable message when npm/yarn is used in a git repo). The bundled entry file uses execFileSync(\"osascript\") to drive Apple Notes locally; it reads env vars for its own configuration caps (not secrets). The lab recorded zero network connections, zero file writes outside the package, zero canary reads. Static hints flagged documentation URLs and normal env-var reads as \"credential_harvest\" / \"download_execute\" — all false positives.","intent":"A macOS-only MCP server that lets AI assistants create, search, update, and manage Apple Notes via AppleScript. The preinstall hook enforces pnpm when a .git directory is present. No network egress or credential access at install or require time.","capabilities":[],"iocs":{"domains":[],"urls":[],"ips":[],"paths":[],"hashes":["d99cc2dd4d3795e5f79bdf757109be2dfad15759"]},"analyzed_at":1790259161034,"detonated":true,"model":"yolo","findings":[{"title":"Preinstall pnpm enforcement","detail":"package.json preinstall runs a node -e that checks fs.existsSync('.git') and npm_config_user_agent; exits 1 with a message telling the user to use pnpm. Harmless developer-tooling guard.","severity":"info","location":"package.json:79"},{"title":"AppleScript-driven local Notes access","detail":"build/index.js imports execFileSync from child_process and calls osascript to read/write Apple Notes data locally. No network, no remote exfiltration.","severity":"info","location":"build/index.js:39172"},{"title":"Env-var config reads (not credentials)","detail":"build/index.js reads process.env.APPLE_NOTES_MCP_MAX_INLINE_IMAGE_BYTES, APPLE_NOTES_MCP_MAX_ATTACHMENT_BYTES, etc. for operational limits — not API keys or tokens.","severity":"info","location":"build/index.js:39496,39941,39989"}],"lab":{"ok":true,"lab_version":2,"duration_ms":1984,"lab_ip":"10.77.0.157","hooks":[{"name":"preinstall","command":");const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n  corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\"","exit":0,"timed_out":false,"seconds":1,"stdout_tail":"\n> apple-notes-mcp@2.8.24 preinstall\n> node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n  corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\"\n\n","stderr_tail":""},{"name":"require","command":"node -e require(pkg)","exit":0,"timed_out":false,"seconds":0,"stdout_tail":"","stderr_tail":"require failed: require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla.\n  From /work/pkg/[eval] \n  Requiring /work/pkg/build/index.js \n"}],"process_count":6,"processes":["npm run-script preinstall --if-present --ignore-scripts=false","node /usr/local/bin/npm run-script preinstall --if-present --ignore-scripts=false","sh -c node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\\n\\\n","node -e const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\\n\\\n  corepac","timeout -s KILL 30 node -e try{require(\"/work/pkg\")}catch(e){console.error(\"require failed:\",e&&e.message)}","node -e try{require(\"/work/pkg\")}catch(e){console.error(\"require failed:\",e&&e.message)}"],"network":{"connects":[],"dns":[],"http":[],"tls":[],"tcp":[]},"files_written":[],"files_deleted":[],"canary_reads":[],"canary_leaks":[],"persistence":[],"notes":[]},"static":{"manifest":{"name":"apple-notes-mcp","version":"2.8.24","description":"MCP server for Apple Notes - create, search, update, and manage notes via Claude and other AI assistants","scripts":{"preinstall":"node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n  corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\"","build":"tsc --noEmit && esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=build/index.js --banner:js=\"import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);\"","start":"node build/index.js","dev":"tsc --watch","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","test:integration":"vitest run --config vitest.integration.config.ts","test:all":"vitest run && vitest run --config vitest.integration.config.ts","lint":"eslint src","lint:fix":"eslint src --fix","format":"prettier --write src","format:check":"prettier --check src","typecheck":"tsc --noEmit","sync:skills":"node scripts/sync-skills.mjs","version":"node scripts/sync-plugin-version.mjs && git add .claude-plugin .agents/plugins codex .antigravity-plugin"},"install_hooks":{"preinstall":"node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n  corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\""},"bin":{"apple-notes-mcp":"build/index.js"},"main":"build/index.js","dependencies":["@modelcontextprotocol/sdk","turndown","zod"],"author":"Rob Sweet <rob@superiortech.io>","repository":"git+https://github.com/sweetrb/apple-notes-mcp.git","homepage":"https://github.com/sweetrb/apple-notes-mcp#readme","license":"MIT","hasInstallScript":true},"files":[{"path":"build/index.js","size":1685977,"kind":"text","score":1,"hits":["credential_harvest","code_execution","obfuscation","ransomware","reconnaissance"],"role":"entry"},{"path":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md","size":5720,"kind":"text","score":1,"hits":["network_egress","download_execute","agent_config_tamper"]},{"path":"docs/STABILITY-PERF-AUDIT-2026-06-19.md","size":11517,"kind":"text","score":0.4512333333333334,"hits":["code_execution","crypto_wallet"]},{"path":"README.md","size":84782,"kind":"text","score":0.4175,"hits":["agent_config_tamper","inj:instruction_to_ai","inj:system_impersonation","inj:conceal_from_user"]},{"path":"package.json","size":3068,"kind":"text","score":0.10033333333333333,"hits":["install_hook_shell"]},{"path":"docs/APPLESCRIPT-LIMITATIONS.md","size":5604,"kind":"text","score":0,"hits":[]},{"path":"docs/FULL-DISK-ACCESS.md","size":4483,"kind":"text","score":0,"hits":[]},{"path":"docs/JXA_RESEARCH.md","size":4700,"kind":"text","score":0,"hits":[]},{"path":"LICENSE","size":1066,"kind":"text","score":0,"hits":[]},{"path":"shortcuts/Apple Notes MCP - Background Operations v5.shortcut","size":29019,"kind":"binary","score":0,"hits":[]},{"path":"shortcuts/Apple Notes MCP - Background Operations v5.unsigned.shortcut","size":70604,"kind":"binary","score":0,"hits":[]},{"path":"shortcuts/Apple Notes MCP - Create Markdown Note.shortcut","size":23562,"kind":"binary","score":0,"hits":[]},{"path":"shortcuts/Apple Notes MCP - Create Markdown Note.unsigned.shortcut","size":11025,"kind":"binary","score":0,"hits":[]},{"path":"shortcuts/Apple Notes MCP - Native Tags.shortcut","size":23960,"kind":"binary","score":0,"hits":[]},{"path":"shortcuts/Apple Notes MCP - Native Tags.unsigned.shortcut","size":15918,"kind":"binary","score":0,"hits":[]},{"path":"shortcuts/README.md","size":4071,"kind":"text","score":0,"hits":["inj:conceal_from_user"]}],"file_count":16,"unpacked_size":1985076,"findings":[{"title":"Install hook with shell download/eval","detail":"preinstall: node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n  corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\"","severity":"high","location":"package.json"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"otes-mcp/blob/main/.antigravity-plugin/mcp_config.json) to `~/.gemini/config/mcp_config.json` (or via Antigravity's MCP settings).","severity":"high","location":"README.md:123"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"to Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`): ```json { \"mcpServers\": { \"apple-notes\": { \"","severity":"high","location":"README.md:132"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"` #### Running from a clone in Claude Code (project-scope `.mcp.json`) This repo ships a `.mcp.json` at its root so that, when","severity":"high","location":"README.md:1494"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"Claude Code (project-scope `.mcp.json`) This repo ships a `.mcp.json` at its root so that, when you run `claude` from inside a c","severity":"high","location":"README.md:1496"},{"title":"Dumps the whole environment (API keys live there)","detail":"MAGE_BYTES = 256 * 1024; function maxInlineImageBytes(env = process.env) { const raw = env.APPLE_NOTES_MCP_MAX_INLINE_IMAGE_BYTES;","severity":"high","location":"build/index.js:39496"},{"title":"Dumps the whole environment (API keys live there)","detail":"BYTES = 25 * 1024 * 1024; function maxAttachmentBytes(env = process.env) { const raw = env.APPLE_NOTES_MCP_MAX_ATTACHMENT_BYTES;","severity":"high","location":"build/index.js:39941"},{"title":"Dumps the whole environment (API keys live there)","detail":"ES = 8 * 1024 * 1024; function exportMaxResponseBytes(env = process.env) { const raw = env.APPLE_NOTES_MCP_EXPORT_MAX_BYTES; if","severity":"high","location":"build/index.js:39989"},{"title":"Dumps the whole environment (API keys live there)","detail":"edir as homedir8 } from \"os\"; function fileConfigPath(env = process.env) { const override = env.APPLE_NOTES_MCP_CONFIG_FILE; if","severity":"high","location":"build/index.js:44520"},{"title":"Executes commands or dynamic code","detail":"code.process(sourceCode, sch); const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourc","severity":"medium","location":"build/index.js:2953"},{"title":"Executes commands or dynamic code","detail":"} }); } }; // src/utils/applescript.ts import { execFileSync } from \"child_process\"; // src/utils/docsUrls.ts var FULL_","severity":"medium","location":"build/index.js:38985"},{"title":"Executes commands or dynamic code","detail":"// src/utils/applescript.ts import { execFileSync } from \"child_process\"; // src/utils/docsUrls.ts var FULL_DISK_ACCESS_GUIDE_URL","severity":"medium","location":"build/index.js:38985"},{"title":"Executes commands or dynamic code","detail":"t attemptStart = Date.now(); try { const output = execFileSync(\"osascript\", [\"-\"], { input: preparedScript,","severity":"medium","location":"build/index.js:39172"},{"title":"Obfuscated or encoded code","detail":"alizedHex = hex2.toUpperCase(); const decoded = String.fromCharCode(parseInt(normalizedHex, 16)); if (decodeUnreser","severity":"high","location":"build/index.js:3364"},{"title":"Obfuscated or encoded code","detail":"alizedHex = hex2.toUpperCase(); const decoded = String.fromCharCode(parseInt(normalizedHex, 16)); if (decoded !== \"","severity":"high","location":"build/index.js:3386"},{"title":"Obfuscated or encoded code","detail":"alizedHex = hex2.toUpperCase(); const decoded = String.fromCharCode(parseInt(normalizedHex, 16)); if (isUnreserved(","severity":"high","location":"build/index.js:3513"},{"title":"Obfuscated or encoded code","detail":"ion decodeValidScheme(scheme) { const decodedScheme = unescape(String(scheme)); if (!VALID_SCHEME.test(decodedScheme)","severity":"high","location":"build/index.js:3830"},{"title":"File encryption over user data","detail":"t(folder.accountPk) : void 0; const locked = Boolean(row.locked); let decoded; let content; const decode = () =","severity":"critical","location":"build/index.js:43434"},{"title":"File encryption over user data","detail":": (row.snippet ?? \"\").replace(/\\s+/gu, \" \").trim(), ...locked ? { locked: true } : {} }); } return { notes: h","severity":"critical","location":"build/index.js:43502"},{"title":"File encryption over user data","detail":"return ` - ${n.title}${where ? ` (${where})` : \"\"}${n.locked ? \" [locked]\" : \"\"} [id: ${n.id}]${snippet}`; }).join(\"","severity":"critical","location":"build/index.js:46046"},{"title":"System reconnaissance","detail":"HECKLIST_STYLE_TYPE = 103; var NOTES_DB_PATH = path.join( os.homedir(), \"Library/Group Containers/group.com.apple.notes/NoteStor","severity":"low","location":"build/index.js:39346"},{"title":"Network activity","detail":"rwin-arm64 mkdir -p ~/mcp-runtime && cd ~/mcp-runtime curl -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz cu","severity":"medium","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:60"},{"title":"Network activity","detail":"l -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz curl -O https://nodejs.org/dist/$VER/SHASUMS256.txt grep \" no","severity":"medium","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:61"},{"title":"Network activity","detail":"g: ```bash VER=v24.19.0 ARCH=darwin-arm64 cd ~/mcp-runtime curl -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz curl","severity":"medium","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:119"},{"title":"Network activity","detail":"curl -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz curl -O https://nodejs.org/dist/$VER/SHASUMS256.txt grep \" node-","severity":"medium","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:120"},{"title":"Download-and-execute chain","detail":"rwin-arm64 mkdir -p ~/mcp-runtime && cd ~/mcp-runtime curl -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz curl -O https://nodejs.org/dist/$VER/S","severity":"critical","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:60"},{"title":"Download-and-execute chain","detail":"l -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz curl -O https://nodejs.org/dist/$VER/SHASUMS256.txt grep \" node-$VER-$ARCH.t","severity":"critical","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:61"},{"title":"Download-and-execute chain","detail":"g: ```bash VER=v24.19.0 ARCH=darwin-arm64 cd ~/mcp-runtime curl -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz curl -O https://nodejs.org/dist/$VER/SHAS","severity":"critical","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:119"},{"title":"Download-and-execute chain","detail":"curl -O https://nodejs.org/dist/$VER/node-$VER-$ARCH.tar.gz curl -O https://nodejs.org/dist/$VER/SHASUMS256.txt grep \" node-$VER-$ARCH.tar.","severity":"critical","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:120"},{"title":"Reads or writes AI agent configuration, skills or instruction files","detail":"aude Desktop, edit `~/Library/Application Support/Claude/claude_desktop_config.json` and set this server's `command` to the absolute path:","severity":"high","location":"docs/NODE-RUNTIME-AND-TCC-PERMISSIONS.md:76"},{"title":"Executes commands or dynamic code","detail":"| Status | |---|---------|------|-------|--------| | H1 | `execSync` has no `maxBuffer` cap | High | [#16](https://github.com/s","severity":"medium","location":"docs/STABILITY-PERF-AUDIT-2026-06-19.md:20"},{"title":"Executes commands or dynamic code","detail":"record and is not a live backlog. --- ## High ### H1 — `execSync` has no `maxBuffer` cap → ENOBUFS on large output (S) `src/","severity":"medium","location":"docs/STABILITY-PERF-AUDIT-2026-06-19.md:46"},{"title":"Executes commands or dynamic code","detail":"/utils/applescript.ts:324` and `src/utils/jxa.ts:103` call `execSync` with no `maxBuffer`, inheriting Node's 1 MB default. `expo","severity":"medium","location":"docs/STABILITY-PERF-AUDIT-2026-06-19.md:47"},{"title":"Executes commands or dynamic code","detail":"-note-content` on long notes can exceed it. Over the limit `execSync` throws and the catch path returns `[]`/`null` — a silent,","severity":"medium","location":"docs/STABILITY-PERF-AUDIT-2026-06-19.md:51"},{"title":"Crypto wallet targeting or address swapping","detail":":326-345`). A note titled \"Groceries, etc.\" splits into two phantom notes. **This is a real data-corruption-on-ordinary-input b","severity":"high","location":"docs/STABILITY-PERF-AUDIT-2026-06-19.md:68"},{"title":"Install hook runs a script","detail":"ix\", \"prettier --write\" ] }, \"scripts\": { \"preinstall\": \"node -e \\\"const fs=require('fs');const ua=process.env.npm_config_us","severity":"medium","location":"package.json:79"}],"injection_findings":[{"title":"Text addresses an AI agent directly","detail":"le-notes-mcp ``` ### Using the Plugin Marketplace Install as a Claude Code plugin for automatic configuration and enhanced AI beh","severity":"high","location":"README.md:50"},{"title":"Impersonates a system or operator message","detail":"does **not** support nested defaults like `${CLAUDE_PLUGIN_ROOT:-${CLAUDE_PROJECT_DIR:-.}}`, so a single entrypoint string c","severity":"high","location":"README.md:1506"},{"title":"Asks the agent to hide actions from its user","detail":"esolves a duplicated title to the same one note every time, silently skipping the others. > **Changed in 2.7.0:** `notes` was p","severity":"critical","location":"README.md:855"},{"title":"Asks the agent to hide actions from its user","detail":"e full account name. ``` That third rule is deliberate. Silently taking the *first* prefix match would make `delete-note` or","severity":"critical","location":"README.md:1436"},{"title":"Asks the agent to hide actions from its user","detail":"tes` to see available notes ### Note creation/update fails silently with backslashes - Content containing `\\` characters requir","severity":"critical","location":"README.md:1682"},{"title":"Asks the agent to hide actions from its user","detail":"o macOS TCC treats each new build as a brand-new binary and silently drops the grants you already made. The fix is to run this s","severity":"critical","location":"README.md:1769"},{"title":"Asks the agent to hide actions from its user","detail":"he `shortcuts` CLI can run an installed workflow but cannot silently import one. After install and after every upgrade, run eac","severity":"critical","location":"shortcuts/README.md:16"}],"hits":{"agent_config_tamper":6,"credential_harvest":5,"code_execution":10,"obfuscation":5,"ransomware":3,"reconnaissance":1,"network_egress":4,"download_execute":4,"crypto_wallet":1,"install_hook_shell":1},"iocs":{"urls":["https://modelcontextprotocol.io/","https://api.securityscorecards.dev/projects/github.com/sweetrb/apple-notes-mcp/badge","https://scorecard.dev/viewer/?uri=github.com/sweetrb/apple-notes-mcp","https://modelcontextprotocol.io","https://claude.com/product/claude-code","https://hermes-agent.nousresearch.com/","https://antigravity.google/","http://json-schema.org/draft-07/schema#","https://www.superiortech.io","http://json-schema.org/draft-07/schema","http://json-schema.org/schema","https://mathiasbynens.be/demo/url-regex","https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html","https://spec.openapis.org/oas/v3.0.0#data-types"],"domains":["modelcontextprotocol.io","api.securityscorecards.dev","scorecard.dev","claude.com","hermes-agent.nousresearch.com","antigravity.google","json-schema.org","www.superiortech.io","mathiasbynens.be","www.safaribooksonline.com","spec.openapis.org","superiortech.io","shortcuts.app","notes.app","gmail.com","claude.app","terminal.app","code.app","iterm.app","group.com","mail.app"],"ips":[]},"score":1,"priority":140,"hints":["install hook preinstall: node -e \"const fs=require('fs');const ua=process.env.npm_config_user_agent||'';if(fs.existsSync('.git')&&!ua.startsWith('pnpm')){console.error('\\nThis repo uses pnpm. npm/yarn resolve dependencies off-lockfile and the committed bundle will mismatch CI.\\n\\n  corepack enable && pnpm install --frozen-lockfile\\n');process.exit(1)}\"","untrusted hosts referenced: modelcontextprotocol.io, api.securityscorecards.dev, scorecard.dev, claude.com, hermes-agent.nousresearch.com, antigravity.google, json-schema.org, www.superiortech.io, mathiasbynens.be, www.safaribooksonline.com, spec.openapis.org, superiortech.io, shortcuts.app, notes.app, gmail.com","capability hits: code_execution×10, agent_config_tamper×6, credential_harvest×5, obfuscation×5, network_egress×4, download_execute×4, ransomware×3, reconnaissance×1, crypto_wallet×1, install_hook_shell×1","7 prompt-injection / hidden-text hints in docs","tarball sha1 d99cc2dd4d3795e5f79bdf757109be2dfad15759"],"entry_files":["build/index.js"],"large_or_binary":["shortcuts/Apple Notes MCP - Background Operations v5.shortcut (binary, 29019 bytes)","shortcuts/Apple Notes MCP - Background Operations v5.unsigned.shortcut (binary, 70604 bytes)","shortcuts/Apple Notes MCP - Create Markdown Note.shortcut (binary, 23562 bytes)","shortcuts/Apple Notes MCP - Create Markdown Note.unsigned.shortcut (binary, 11025 bytes)","shortcuts/Apple Notes MCP - Native Tags.shortcut (binary, 23960 bytes)","shortcuts/Apple Notes MCP - Native Tags.unsigned.shortcut (binary, 15918 bytes)"]},"tarball":"https://registry.npmjs.org/apple-notes-mcp/-/apple-notes-mcp-2.8.24.tgz","source":"feed"}