{"package":"apple-notes-mcp","version":"2.8.3","known":true,"status":"done","discovered_at":1790178209473,"has_install_script":true,"report_url":"https://andymal.com/packages/apple-notes-mcp/2.8.3","verdict":"clean","action":"allow","confidence":0.9,"summary":"Static pre-screen false positives: URL-decoding utilities in bundled ajv flagged as \"obfuscation\", config accessor functions reading specific env vars flagged as \"env dump\", documentation text mentioning \"silently\" flagged as prompt injection, and download-and-execute code in markdown docs (Node.js tarball instructions) flagged as code. The preinstall hook only prints an error when run under npm/yarn in a git repo. The entry point runs osascript to talk to Apple Notes — nothing more.","intent":"MCP server that uses AppleScript (osascript) to read, create, search, and manage Apple Notes on macOS. The preinstall hook is a benign developer-workflow check (enforces pnpm). No network egress, credential access, or persistence observed.","capabilities":[],"iocs":{"domains":[],"urls":[],"ips":[],"paths":[],"hashes":[]},"analyzed_at":1790260903068,"detonated":true,"model":"yolo","findings":[{"title":"preinstall: pnpm enforcement check","detail":"Checks for .git directory and npm_config_user_agent; prints an error and exits 1 if not using pnpm. Does not download, execute, or exfiltrate anything.","severity":"info","location":"package.json:78"},{"title":"osascript execution (stated purpose)","detail":"build/index.js imports execFileSync from child_process and calls osascript to interact with Apple Notes.app. This is the core functionality of the package.","severity":"info","location":"build/index.js:38985, build/index.js:39172"},{"title":"Config env var accessors","detail":"Functions like maxAttachmentBytes(env=process.env), maxInlineImageBytes(env=process.env), fileConfigPath(env=process.env) read single named env vars for configuration overrides. Not environment dumps.","severity":"info","location":"build/index.js:39586, build/index.js:42151, build/index.js:42324"},{"title":"URL decoding in bundled dependency","detail":"unescape(String(scheme)) and related functions are standard URI-component decoders from bundled ajv/turndown, not obfuscation.","severity":"info","location":"build/index.js:3830"}],"lab":{"ok":true,"lab_version":2,"duration_ms":3330,"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":0,"stdout_tail":"\n> apple-notes-mcp@2.8.3 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.3","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":1529157,"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":58275,"kind":"text","score":0.4175,"hits":["agent_config_tamper","inj:instruction_to_ai","inj:system_impersonation","inj:conceal_from_user"]},{"path":"package.json","size":3050,"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":[]}],"file_count":9,"unpacked_size":1623572,"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:92"},{"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:101"},{"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:1029"},{"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:1031"},{"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:39586"},{"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:42151"},{"title":"Dumps the whole environment (API keys live there)","detail":"edir as homedir6 } from \"os\"; function fileConfigPath(env = process.env) { const override = env.APPLE_NOTES_MCP_CONFIG_FILE; if","severity":"high","location":"build/index.js:42324"},{"title":"Dumps the whole environment (API keys live there)","detail":"notes-mcp\", \"config.json\"); } function loadFileConfig(env = process.env, path4 = fileConfigPath(env)) { const applied = []; try","severity":"high","location":"build/index.js:42329"},{"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":"malizedHex = hex.toUpperCase(); const decoded = String.fromCharCode(parseInt(normalizedHex, 16)); if (decodeUnreser","severity":"high","location":"build/index.js:3364"},{"title":"Obfuscated or encoded code","detail":"malizedHex = hex.toUpperCase(); const decoded = String.fromCharCode(parseInt(normalizedHex, 16)); if (decoded !== \"","severity":"high","location":"build/index.js:3386"},{"title":"Obfuscated or encoded code","detail":"malizedHex = hex.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:78"}],"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:1041"},{"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:575"},{"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:971"},{"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:1210"},{"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:1297"}],"hits":{"agent_config_tamper":6,"credential_harvest":4,"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, obfuscation×5, credential_harvest×4, network_egress×4, download_execute×4, reconnaissance×1, crypto_wallet×1, install_hook_shell×1","6 prompt-injection / hidden-text hints in docs","tarball sha1 328a7b46b95c2f2206c3ea1e684fe6541142af37"],"entry_files":["build/index.js"],"large_or_binary":[]},"tarball":"https://registry.npmjs.org/apple-notes-mcp/-/apple-notes-mcp-2.8.3.tgz","source":"feed"}