{"package":"apple-notes-mcp","version":"2.8.14","known":true,"status":"done","discovered_at":1790176915031,"has_install_script":true,"report_url":"https://andymal.com/packages/apple-notes-mcp/2.8.14","verdict":"clean","action":"allow","confidence":0.75,"summary":"Clean. Install hook is a pnpm-enforcement check (exits with error, does nothing harmful). Runtime uses osascript and sqlite3 to interact with Apple Notes as expected. No network egress, no credential access, no file writes outside the package.","intent":"MCP server for Apple Notes on macOS. Uses AppleScript and sqlite3 to read/create/search notes — exactly as documented. The only non-standard element is a preinstall hook that rejects npm/yarn in git-checked-out repos to enforce pnpm.","capabilities":[],"iocs":{"domains":[],"urls":[],"ips":[],"paths":[],"hashes":[]},"analyzed_at":1790257782375,"detonated":true,"model":"yolo","findings":[{"title":"pnpm-enforcement preinstall hook","detail":"Exits with code 1 if .git exists and npm_config_user_agent doesn't start with 'pnpm'. Prints an error suggesting `corepack enable && pnpm install --frozen-lockfile`.","severity":"info","location":"package.json:79"},{"title":"AppleScript execution for Notes.app","detail":"Uses osascript to query and modify Apple Notes — expected for this package's purpose.","severity":"info","location":"build/index.js:39172"},{"title":"Local SQLite database access","detail":"Reads NoteStore.sqlite from ~/Library/Group Containers/group.com.apple.notes/ — expected for Apple Notes data.","severity":"info","location":"build/index.js:39337"}],"lab":{"ok":true,"lab_version":2,"duration_ms":3549,"lab_ip":"10.77.0.155","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":0,"stdout_tail":"\n> apple-notes-mcp@2.8.14 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.14","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":1619666,"kind":"text","score":1,"hits":["credential_harvest","code_execution","obfuscation","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":68122,"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 - 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":1917,"kind":"text","score":0,"hits":["inj:conceal_from_user"]}],"file_count":14,"unpacked_size":1865364,"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:105"},{"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:114"},{"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:1222"},{"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:1224"},{"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:39489"},{"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:39934"},{"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:39984"},{"title":"Dumps the whole environment (API keys live there)","detail":"edir as homedir7 } from \"os\"; function fileConfigPath(env = process.env) { const override = env.APPLE_NOTES_MCP_CONFIG_FILE; if","severity":"high","location":"build/index.js:43304"},{"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":"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:39337"},{"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:1234"},{"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:653"},{"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:1164"},{"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:1404"},{"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:1491"},{"title":"Asks the agent to hide actions from its user","detail":"he `shortcuts` CLI can run an installed workflow but cannot silently import one. The bridge receives a private temporary JSON f","severity":"critical","location":"shortcuts/README.md:16"}],"hits":{"agent_config_tamper":6,"credential_harvest":5,"code_execution":10,"obfuscation":5,"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","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, notes.app, gmail.com, claude.app","capability hits: code_execution×10, agent_config_tamper×6, credential_harvest×5, obfuscation×5, network_egress×4, download_execute×4, reconnaissance×1, crypto_wallet×1, install_hook_shell×1","7 prompt-injection / hidden-text hints in docs","tarball sha1 27096beb0b08d923c2512bf2a87d07f60fd69589"],"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 - 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.14.tgz","source":"feed"}