惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
SegmentFault 最新的问题
Last Week in AI
Last Week in AI
阮一峰的网络日志
阮一峰的网络日志
Cloudbric
Cloudbric
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Security @ Cisco Blogs
月光博客
月光博客
T
Troy Hunt's Blog
H
Help Net Security
Forbes - Security
Forbes - Security
博客园 - 叶小钗
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
L
LINUX DO - 最新话题
Hacker News - Newest:
Hacker News - Newest: "LLM"
GbyAI
GbyAI
S
Schneier on Security
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
Blog — PlanetScale
Blog — PlanetScale
N
News | PayPal Newsroom
F
Fortinet All Blogs
Latest news
Latest news
人人都是产品经理
人人都是产品经理
Recent Announcements
Recent Announcements
博客园_首页
Martin Fowler
Martin Fowler
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
O
OpenAI News
I
Intezer
S
Security Affairs
罗磊的独立博客
T
Tailwind CSS Blog
小众软件
小众软件
P
Palo Alto Networks Blog
Help Net Security
Help Net Security
V
Vulnerabilities – Threatpost
博客园 - 【当耐特】
F
Full Disclosure
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 聂微东
博客园 - 司徒正美
T
The Exploit Database - CXSecurity.com
L
Lohrmann on Cybersecurity
C
Cisco Blogs
Security Latest
Security Latest

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
macOS Clipboard History — What Gets Logged, What Leaks, and How to Audit It
AlokT · 2026-04-30 · via DEV Community

A look at how the macOS pasteboard, Universal Clipboard, and popular third-party clipboard managers actually store your copies in 2026 — what is logged, what crosses the network, and a five-step check to find traces of your last password.

The short version: the pasteboard is global, Universal Clipboard is permissive, most managers store plaintext on disk, and you can audit all of it in twenty minutes with commands already on your Mac.

What the macOS pasteboard actually is

The "clipboard" on a Mac is an instance of NSPasteboard. The general one — NSPasteboard.general — backs Cmd-C, Cmd-V, the Edit menu, and every drag-and-drop. It is not an app feature; it is an OS feature exposed to every running process.

What lives on it is more than text. A single copy can carry several representations at once: a UTF-8 plain string under public.utf8-plain-text, a styled public.rtf blob, a public.html rendering, file URLs (public.file-url), and image data for screenshots. The receiver picks whichever flavor it prefers. That is why pasting from Safari into Mail keeps formatting and pasting into Terminal strips it.

Everything is keyed by what Apple calls a change count. Every new copy increments the integer. Apps poll that counter to decide whether to read again. There is no permission gate, no broker, no audit log. If your app is running, it sees the change count, and if it asks for the data, it gets it.

Mental model: the macOS pasteboard is a single, mutable, shared dictionary keyed by content type. Every app on your machine has read access — most without you ever granting it.

By default, macOS keeps exactly one item there. Copy something new and the previous value is overwritten. There is no built-in scrollback. That sounds reassuring, but it is only the surface. Every clipboard manager you install extends that single slot into a persistent on-disk history, and Universal Clipboard syncs the live slot to every Apple device on your account.

Universal Clipboard: the cross-device leak path

Universal Clipboard lets you copy on your Mac and paste into Notes on your iPhone a second later. It rides on Continuity and Handoff. The transport is encrypted: a Bluetooth Low Energy advertisement announces something is on offer, and the payload moves over peer-to-peer Wi-Fi.

The encryption solves a narrow problem — it protects bytes from anyone sniffing the air between your laptop and phone. It does not protect you from anything happening on either end. The trust model assumes every device signed in to your Apple ID is trusted equally. The clipboard is offered, in cleartext, to every device on that account that is awake and in range.

The cases that bite people most often:

  • Family Apple ID. Households that share an Apple ID for App Store purchases unintentionally share a clipboard. Copy a 2FA recovery code on the work Mac, and the family iPad sees it.
  • Old devices on shelves. An iPad in a drawer that still wakes for notifications can briefly receive Universal Clipboard payloads.
  • Loaner Macs. If you signed in to your Apple ID on a borrowed device, your clipboard reached that machine for as long as Continuity was active.
  • Shared screens. AirPlay and CarPlay receivers do not pull pasteboard contents, but other Apple devices on the same ID still do.

Receiving storage is short-lived — held only until the next copy replaces it. But a few seconds is long enough to be read by a polling app, snapshotted by automation, or referenced from a notification preview. Treat Universal Clipboard the way you would treat an unencrypted Slack DM to yourself: convenient, plausible, not where you put a credential.

Apps that read your clipboard without asking

In 2020, iOS 14 added a banner reading "TikTok pasted from Notes," "LinkedIn pasted from Safari." Suddenly visible, the practice of polling the clipboard turned out to be widespread — including among apps with no reason to. The backlash forced many apps to scale it back.

macOS has no equivalent banner. No toast when an app reads NSPasteboard.general, no consent prompt, no Settings entry listing apps that have read it. Any running Cocoa app that calls string(forType: .string) gets the contents. If it uses a timer — a common "smart paste" pattern — it sees every copy you make.

The categories worth knowing:

  • Browser extensions. The page-level Clipboard API is permissioned, but extensions are different. Approve "read and change all your data on websites" and the extension can read the clipboard the moment a page is focused. Coupon helpers, AI assistants, password autofillers, and translation tools all use this.
  • Polling utilities. Quick-launch tools, screenshot annotators, color pickers, and link unfurlers poll the pasteboard a few times a second. Benign intent; the practical effect is a quiet keylogger for clipboard contents.
  • Third-party menu bar apps. Anything with a status item is a long-running process. If even one polls the pasteboard, your clipboard activity is visible to it.
  • Remote desktop and screen-share helpers. Software that syncs your clipboard to a remote VM or screen-share session is, by definition, exfiltrating it. The risk is forgetting the sync is on after the session ends.

None of this requires malware. Every app above does what its developers intended, on a platform that does not require them to declare it. The only way to know which apps read your pasteboard is to read privacy policies, watch Activity Monitor, or assume the worst.

How third-party clipboard managers store history

Install a clipboard manager — anything that turns the single-slot pasteboard into a scrollable list — and every copy from the last day, week, or month is now persisted to disk. Where, in what format, and with what protection depends on which manager you chose. The survey below is a starting point for your own audit, not a security review.

Manager Where it stores history What to watch out for
Maccy Local Core Data store under ~/Library/Application Support/Maccy/, SQLite-backed. Plain text by default. Open source. Filters can suppress sensitive items, but the database is not encrypted at rest — a stolen disk image is a clipboard dump.
Paste Local store with iCloud sync via CloudKit. History propagates to every device on the same iCloud account. Sync convenience is the privacy trade. Restoring a device from iCloud restores history. iCloud compromise = scrollback compromise.
Alfred clipboard Local property list and SQLite under Alfred's preferences directory. Retention configurable, 24h to 3 months. Powerpack feature; off by default. Honors a per-app ignore list and supports password-manager-style auto-clear — unusually thoughtful for the category.
Raycast clipboard Local SQLite database. Recent versions added shape-based filters that try to keep secrets out of history. Secret filtering is heuristic. Anything it misses lands in the same database. Raycast Pro adds optional cloud sync.
CopyClip and similar lightweights Small local property list of recent items, capped at a few dozen entries. Smaller surface, but no encryption and no secret-aware filtering. Plain text by design.

The honest takeaway: most popular managers are good citizens. The risk is not malice; it is the cumulative effect of running a polling reader for years and leaving the log on disk. A clipboard manager is an excellent productivity tool and an excellent dossier of everything you have copied since you installed it. Both are true at once.

Auditing what's leaked: a 5-step check

Block out twenty minutes on a quiet Sunday. The five steps below cost nothing to run and tell you more about your clipboard hygiene than any blog post can. Treat anything that surprises you as a finding worth following up on.

1. Inventory your clipboard storage

Start with a single find under your home Library to list anything that looks like clipboard data.

find ~/Library/Application\ Support \
  -iname "*clip*" -o -iname "*paste*" 2>/dev/null

Enter fullscreen mode Exit fullscreen mode

Expect a handful of directories: any clipboard manager you installed, plus a few benign hits. The point is to see the full set in one place, not just the one you remember.

2. Peek inside any SQLite databases you found

Most of those directories contain a .sqlite file. Open it read-only and dump the recent rows. Read-only matters: do not alter the database while the manager has it open.

sqlite3 -readonly \
  ~/Library/Application\ Support/Maccy/Maccy.sqlite \
  ".tables" ".schema HistoryItem" \
  "SELECT firstCopiedAt, lastCopiedAt, content FROM HistoryItem \
   ORDER BY lastCopiedAt DESC LIMIT 20;"

Enter fullscreen mode Exit fullscreen mode

Adjust paths and table names per manager. Confirm with your own eyes what shape storage takes and how far back it goes. If you see a token or password in the output, treat it as leaked — for disk-level threat models, it has.

3. Check what is talking to the pasteboard right now

Activity Monitor's CPU tab plus the system pboard process gives a rough sense of who is reading. Sort by name and look for the pboard daemon and any process whose CPU spikes after every copy.

ps aux | grep -i pboard
log show --last 5m --predicate \
  'subsystem == "com.apple.pasteboard"' --info

Enter fullscreen mode Exit fullscreen mode

The unified log will not show contents, but it will show which apps interacted with the pasteboard recently. Anything you do not recognize is worth investigating.

4. Audit your iCloud and Universal Clipboard surface

Open System Settings, click your name, and review which devices are listed under your Apple ID. Each one is a potential receiver of Universal Clipboard payloads. Sign out of any device you no longer use. Under General → AirDrop & Handoff, the "Allow Handoff between this Mac and your iCloud devices" toggle controls Universal Clipboard.

defaults read com.apple.coreservices.useractivityd \
  ActivityAdvertisingAllowed
defaults read MobileMeAccounts

Enter fullscreen mode Exit fullscreen mode

Those reads are illustrative — they show your machine's state without changing anything. Recent macOS versions also expose pasteboard transparency under Settings → Privacy & Security. Look at every entry there.

5. Review which apps have privileged input access

Many clipboard tools and hotkey managers ask for Accessibility or Input Monitoring permissions. Those are far broader than the clipboard, so the list is a good proxy for "apps with deep observational access to my Mac." Settings → Privacy & Security → Accessibility, then the same for Input Monitoring and Screen Recording. Revoke anything you cannot account for, then restart and confirm nothing breaks.

If the audit turns up nothing alarming, you have a baseline and a procedure to repeat next quarter. If it turns up something — an old 90-day database, a stale Apple ID device, a forgotten extension polling every page — you have learned something the OS was never going to volunteer.

The local-only fix

The audit is necessary because almost every clipboard manager optimizes for convenience first, privacy second. That suits most users. But if you ran the audit, you probably want a different default. The shape of the tool is consistent across every serious threat model.

  • No cloud sync, or sync default-off. The simplest privacy story is the one where data never leaves your machine. Sync should be opt-in.
  • Encrypted storage at rest. A plaintext SQLite history is a single backup away from being a credential dump. Encryption at rest turns that into a normal disk-encryption story.
  • Secret-aware classification with a memory-only TTL. The manager must know the difference between "the path I just yanked" and "an API token." Secret-shaped values should stay out of persistent history.
  • Transparent storage path. You should be able to say in one sentence where the manager keeps your history. If the answer requires source code or a privacy policy, the trust model is wrong.
  • Configurable retention. "Keep everything forever" is the wrong default. Caps in items or days should round-trip to the database.
  • No telemetry, no account, no analytics. If the manager cannot run fully offline, it is not local-only.

The principles matter more than any specific binary. Whatever you land on, run the audit again next month. The point is the habit.

Frequently asked questions

Does macOS keep a clipboard history by default?

Out of the box, macOS only retains the most recent item on NSPasteboard.general. There is no built-in scrollable history. But every running app can read that current value silently, and any installed clipboard manager almost certainly maintains its own on-disk history that survives restarts.

Can other apps read my clipboard on macOS without asking?

Yes. Unlike iOS, macOS does not prompt or notify. Any active app calling NSPasteboard.general can read the current contents, and many do so on a polling timer. Browser extensions get the same access through the JavaScript clipboard API once granted.

Is Universal Clipboard secure?

The transport is encrypted, but the model assumes every device on your Apple ID is trusted. A clipboard you copy on your Mac is immediately readable on any iPhone, iPad, or other Mac signed in to that Apple ID. Share the Apple ID, share the clipboard.

Where do clipboard managers like Maccy or Paste store my history?

Most local managers keep an SQLite or property list database under ~/Library/Application Support, typically as plain text. Paste pushes history to iCloud via CloudKit — restoring the device restores the history.

I think I already pasted something I shouldn't have. What now?

Audit afterwards is useful, but the urgent task is rotation. The companion piece I accidentally pasted a password or API key is the step-by-step recovery playbook for that exact moment.


If you'd rather use a clipboard manager built on these principles, ClipGate is open source and local-only by default. Install with: curl -fsSL https://clipgate.github.io/install.sh | sh

Canonical source: clipgate.github.io/blog/macos-clipboard-history-what-leaks.