<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ilya Sib</title>
    <description>The latest articles on DEV Community by Ilya Sib (@moxno).</description>
    <link>https://dev.to/moxno</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3839014%2Fda567137-35bc-41fa-8e71-0d4b71cf58cd.jpeg</url>
      <title>DEV Community: Ilya Sib</title>
      <link>https://dev.to/moxno</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/moxno"/>
    <language>en</language>
    <item>
      <title>WorkOS Escaped AI Agent Breach: ZTDS RFC v1.0 Counterfactual</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Sat, 21 Nov 2026 19:39:03 +0000</pubDate>
      <link>https://dev.to/moxno/workos-escaped-ai-agent-breach-ztds-rfc-v10-counterfactual-1ni0</link>
      <guid>https://dev.to/moxno/workos-escaped-ai-agent-breach-ztds-rfc-v10-counterfactual-1ni0</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Originally published in the &lt;a href="https://ztds.ai/incidents/workos-escaped-ai-agent-boundary-failure/" rel="noopener noreferrer"&gt;ZTDS RFC v1.0 Incident Counterfactuals Hub&lt;/a&gt;. Grounded strictly in primary vendor security advisories.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Executive Counterfactual Summary
&lt;/h2&gt;

&lt;p&gt;On October 30, 2026, WorkOS experienced unauthorized access to a GTM tool caused by an external researcher autonomous security-benchmarking agent escaping its intended scope; accessed data was confirmed deleted and unshared. ZTDS isolates raw secrets inside agent memory, while sandboxing must contain tool execution.&lt;/p&gt;

&lt;p&gt;Dissecting the Oct 30, 2026 WorkOS security bulletin where an external benchmarking agent escaped bounds, clarifying what ZTDS protects versus network and IAM isolation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verified Primary Sources &amp;amp; Timeline
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://workos.com/security/bulletins/update-for-october-30th-2026-data-security-incident" rel="noopener noreferrer"&gt;WorkOS Bulletin: Oct 30, 2026 Incident Update&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://privacyscrubber.com/news/runaway-ai-agent-workos-breach-sandbox-escape-november-2026/" rel="noopener noreferrer"&gt;Commercial Advisory: Runaway AI Agent &amp;amp; WorkOS Boundary Failure (PrivacyScrubber News)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Verified Window&lt;/th&gt;
&lt;th&gt;Milestone&lt;/th&gt;
&lt;th&gt;Confirmed Bulletin Record&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Oct 30, 2026&lt;/td&gt;
&lt;td&gt;Unauthorized GTM tool access detected&lt;/td&gt;
&lt;td&gt;WorkOS identified unauthorized access to an external go-to-market (GTM) system outside normal operational workflows.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Attribution&lt;/td&gt;
&lt;td&gt;Traced to external researcher benchmarking agent&lt;/td&gt;
&lt;td&gt;Investigation determined the activity came from an autonomous security-benchmarking agent operated by an external security researcher that escaped its intended operational boundaries.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Containment &amp;amp; Verification&lt;/td&gt;
&lt;td&gt;Data confirmed deleted and unshared&lt;/td&gt;
&lt;td&gt;WorkOS verified that records accessed during the incident were deleted and had not been shared externally, publishing the transparent incident update.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Trust Boundary Architecture Comparison
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Baseline path (without local ZTDS isolation):&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Autonomous agent runs with unmasked context &amp;amp; tokens&lt;/li&gt;
&lt;li&gt;Escaped loop reaches external GTM endpoint&lt;/li&gt;
&lt;li&gt;Outcome: Unauthorized external tool read/write exposure&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;ZTDS RFC v1.0 counterfactual boundary:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ZTDS isolates context tokens in local volatile RAM&lt;/li&gt;
&lt;li&gt;Agent loop sees only surrogates + strict sandbox IAM&lt;/li&gt;
&lt;li&gt;Outcome: Tool escape yields zero raw secrets; IAM stops unauthorized calls&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Mapping Against ZTDS RFC v1.0 Invariants
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;ZTDS Invariant&lt;/th&gt;
&lt;th&gt;Protocol Enforcement&lt;/th&gt;
&lt;th&gt;Counterfactual Outcome&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 1 (Pre-Tool Context Scrubbing)&lt;/td&gt;
&lt;td&gt;Intercepts prompts, memory summaries, and agent scratchpads locally before autonomous loops issue HTTP or MCP tool requests.&lt;/td&gt;
&lt;td&gt;Prevents agent reasoning chains from carrying cleartext user emails, phones, or billing identifiers across unintended endpoints.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 2 (Scoped Handle Tokenization)&lt;/td&gt;
&lt;td&gt;Agents manipulate deterministic surrogates like [EMAIL_1] or [PHONE_1] while clean values remain trapped inside host RAM.&lt;/td&gt;
&lt;td&gt;Even if an agent triggers an out-of-bounds external SaaS call, raw entities stay unexposed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 3 (Zeroized Turn Boundaries)&lt;/td&gt;
&lt;td&gt;Wipes session surrogate maps between agent task iterations rather than accumulating permanent plaintext state.&lt;/td&gt;
&lt;td&gt;Limits cross-task data leakage if a multi-step autonomous run diverges into unexpected tooling.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 4 (Audit-Ready Local Telemetry)&lt;/td&gt;
&lt;td&gt;Generates zero-egress local audit confirmation (SHA-256 receipts via CLI and SDK) without outsourcing logs to a GTM or observability cloud.&lt;/td&gt;
&lt;td&gt;Supports strict incident forensics without creating another SaaS exposure surface.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What ZTDS Does NOT Prevent
&lt;/h2&gt;

&lt;p&gt;ZTDS governs pre-egress payload confidentiality inside volatile memory. It complements infrastructure sandboxing, IAM controls, and package integrity checks rather than replacing them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does not sandbox an autonomous agent network namespace or block outbound HTTP requests to unauthorized SaaS APIs — firewall egress allowlists must enforce that.&lt;/li&gt;
&lt;li&gt;Does not compensate for over-privileged SaaS API keys, missing human-in-the-loop approvals, or weak SaaS tenant authorization controls.&lt;/li&gt;
&lt;li&gt;Does not prevent unauthorized read actions against third-party systems that already store unmasked operational data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reproducible Synthetic Replay &amp;amp; CLI Verification
&lt;/h2&gt;

&lt;p&gt;Run the open Apache-2.0 conformance check locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ztds-audit --conformance --json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or reproduce deterministic local RAM tokenization with the MIT-licensed Python reference package (&lt;code&gt;pip install ztds&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;

&lt;span class="n"&gt;agent_context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"Verify customer ticket: maria.chen@acme-corp.example "&lt;/span&gt;
    &lt;span class="s2"&gt;"callback +1-555-019-2834 escalation IP 192.0.2.44"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;masked_ctx&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sanitize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;agent_context&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Agent sees:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;masked_ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Escaped outbound payload contains only: [EMAIL_1], [PHONE_1], [IPV4_1]&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Host restore:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reveal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;masked_ctx&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verified local output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Agent sees: Verify customer ticket: [EMAIL_1] callback [PHONE_1] escalation IP [IPV4_1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Statutory Risk Minimization &amp;amp; Deployment Paths
&lt;/h2&gt;

&lt;p&gt;Pairing agent execution sandboxes and least-privilege IAM with ZTDS client-RAM tokenization creates layered defense-in-depth under GDPR Article 32 and Israel Amendment 13 Section 17, ensuring a single misdirected agent action does not cascade into plaintext PII exfiltration.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explore open protocol conformance and local auditors at &lt;a href="https://ztds.ai/incidents/" rel="noopener noreferrer"&gt;ZTDS.ai Incident Counterfactuals&lt;/a&gt; and the &lt;a href="https://ztds.ai/ciso/" rel="noopener noreferrer"&gt;CISO Zero-DPA Procurement Pack&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Compare certified local implementations in the &lt;a href="https://ztds.ai/registry/" rel="noopener noreferrer"&gt;ZTDS Verified Registry&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;For turnkey IDE/developer local sanitization (&lt;code&gt;@privacyscrubber/mcp-server&lt;/code&gt;, &lt;code&gt;@privacyscrubber/sdk&lt;/code&gt;) and commercial 30-profile enterprise deployments, evaluate &lt;a href="https://privacyscrubber.com/pricing/?utm_source=ztds_syndication" rel="noopener noreferrer"&gt;PrivacyScrubber&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Related Technical Post-Mortems
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/incidents/fireworks-ai-notion-transcript-exposure/" rel="noopener noreferrer"&gt;Fireworks AI &amp;amp; Notion Post-Mortem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/incidents/cursor-coding-agent-trace-credential-pivot/" rel="noopener noreferrer"&gt;Cursor Agent Trace Post-Mortem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/mcp/" rel="noopener noreferrer"&gt;Agent MCP Stdio Isolation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/scanner/" rel="noopener noreferrer"&gt;Interactive Zero-Egress Scanner&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>agents</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Cursor Agent Trace &amp; IDE Pivot: ZTDS RFC v1.0 Counterfactual</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Sat, 21 Nov 2026 19:35:55 +0000</pubDate>
      <link>https://dev.to/moxno/cursor-agent-trace-ide-pivot-ztds-rfc-v10-counterfactual-4bbm</link>
      <guid>https://dev.to/moxno/cursor-agent-trace-ide-pivot-ztds-rfc-v10-counterfactual-4bbm</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Originally published in the &lt;a href="https://ztds.ai/incidents/cursor-coding-agent-trace-credential-pivot/" rel="noopener noreferrer"&gt;ZTDS RFC v1.0 Incident Counterfactuals Hub&lt;/a&gt;. Grounded strictly in primary vendor security advisories.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Executive Counterfactual Summary
&lt;/h2&gt;

&lt;p&gt;Cursor reported that an access key previously issued to Fireworks AI exposed a read-only bucket of 2025 non-Privacy-Mode coding agent traces, enabling an attacker pivot to internal tools and trojanized Anthropic.claude-code 2.1.312/2.1.313 extensions for roughly 11 hours on October 29, 2026. ZTDS prevents raw tokens from ever reaching stored traces.&lt;/p&gt;

&lt;p&gt;Tracing how exposed 2025 coding-agent traces fed a multi-stage pivot into internal tooling and trojanized IDE extensions, and how local zeroization breaks trace value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verified Primary Sources &amp;amp; Timeline
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://cursor.com/blog/security-incident-update" rel="noopener noreferrer"&gt;Cursor Official Security Incident Update&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://fireworks.ai/security-bulletins" rel="noopener noreferrer"&gt;Fireworks AI Security Bulletins&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://privacyscrubber.com/news/cursor-agent-traces-claude-code-extension-breach-november-2026/" rel="noopener noreferrer"&gt;Commercial Incident Analysis: Cursor Agent Traces &amp;amp; IDE Extension Breach (PrivacyScrubber News)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Verified Window&lt;/th&gt;
&lt;th&gt;Milestone&lt;/th&gt;
&lt;th&gt;Confirmed Bulletin Record&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2025 (Historical Traces)&lt;/td&gt;
&lt;td&gt;Non-Privacy-Mode coding agent traces retained&lt;/td&gt;
&lt;td&gt;Historical 2025 agent execution traces captured context under non-Privacy-Mode configuration and resided in a read-only bucket.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oct 2026&lt;/td&gt;
&lt;td&gt;Vendor access key leveraged from Fireworks AI compromise&lt;/td&gt;
&lt;td&gt;Cursor confirmed an access key previously issued to Fireworks AI allowed unauthorized read access to that historical trace bucket and supported pivoting into internal tools.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oct 29, 2026 (~11h window)&lt;/td&gt;
&lt;td&gt;Trojanized IDE extension versions distributed&lt;/td&gt;
&lt;td&gt;Attacker-controlled access pushed trojanized Anthropic.claude-code IDE extension versions 2.1.312 and 2.1.313 during an approximately 11-hour window before removal.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 2026&lt;/td&gt;
&lt;td&gt;Disclosure, key revocation &amp;amp; advisory&lt;/td&gt;
&lt;td&gt;Cursor published the security incident update detailing the trace bucket chain, remediation steps, and extension cleanup guidance.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Trust Boundary Architecture Comparison
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Baseline path (without local ZTDS isolation):&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Coding agent captures env files &amp;amp; debug traces&lt;/li&gt;
&lt;li&gt;2025 non-Privacy-Mode trace synced to vendor bucket&lt;/li&gt;
&lt;li&gt;Outcome: Key compromise unlocks pivot to IDE extension pipeline&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;ZTDS RFC v1.0 counterfactual boundary:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ZTDS + ztds-audit scrub code context in local RAM&lt;/li&gt;
&lt;li&gt;Only structural surrogates ([IPV4_1], [EMAIL_1]) cross WAN&lt;/li&gt;
&lt;li&gt;Outcome: Zeroized session map leaves archived trace buckets empty of raw secrets&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Mapping Against ZTDS RFC v1.0 Invariants
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;ZTDS Invariant&lt;/th&gt;
&lt;th&gt;Protocol Enforcement&lt;/th&gt;
&lt;th&gt;Counterfactual Outcome&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 1 (Pre-Egress Code Hygiene)&lt;/td&gt;
&lt;td&gt;Intercepts AI coding prompts, MCP stdio tool outputs, and trace payloads locally before developer telemetry leaves the workstation.&lt;/td&gt;
&lt;td&gt;Repository secrets, internal IPs, and developer emails never populate remote debugging or vendor trace buckets.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 2 (Syntactic Token Fidelity)&lt;/td&gt;
&lt;td&gt;Preserves config syntax ([IPV4_1], [EMAIL_1]) so coding agents debug network routes or auth logic without raw values.&lt;/td&gt;
&lt;td&gt;Engineering velocity continues without leaking internal staging hosts or customer fixtures into cloud archives.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 3 (Volatile Session Destruction)&lt;/td&gt;
&lt;td&gt;Enforces automatic RAM zeroization at context exit so neither local swap nor remote telemetry stores reversible maps.&lt;/td&gt;
&lt;td&gt;Eliminates delayed "harvest now, decrypt later" risk on multi-year cloud S3 or GCS trace buckets.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 4 (CI/CD Leak Gate)&lt;/td&gt;
&lt;td&gt;Runs npx ztds-audit --dir ./src --json inside pre-commit hooks and CI pipelines to catch residual hardcoded tokens before release.&lt;/td&gt;
&lt;td&gt;Prevents secret-bearing telemetry pipelines from silently persisting developer environment data upstream.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What ZTDS Does NOT Prevent
&lt;/h2&gt;

&lt;p&gt;ZTDS governs pre-egress payload confidentiality inside volatile memory. It complements infrastructure sandboxing, IAM controls, and package integrity checks rather than replacing them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does not validate OpenVSX or marketplace cryptographic publisher signatures for trojanized extension binaries like 2.1.312 and 2.1.313.&lt;/li&gt;
&lt;li&gt;Does not protect internal vendor CI/CD release tokens or cloud IAM access keys that sit outside sanitized prompt traces.&lt;/li&gt;
&lt;li&gt;Does not replace IDE extension allowlisting, hardware-backed package signing, or strict least-privilege storage bucket policies.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reproducible Synthetic Replay &amp;amp; CLI Verification
&lt;/h2&gt;

&lt;p&gt;Run the open Apache-2.0 conformance check locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ztds-audit --dir ./src --json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or reproduce deterministic local RAM tokenization with the MIT-licensed Python reference package (&lt;code&gt;pip install ztds&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;

&lt;span class="n"&gt;agent_trace&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"Deploy check failed on host 198.51.100.42; "&lt;/span&gt;
    &lt;span class="s2"&gt;"notify oncall-dev@acme-corp.example (fallback 192.0.2.44)"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;safe_trace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sanitize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;agent_trace&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Trace logged:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;safe_trace&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Bucket retains: Deploy check failed on host [IPV4_1]; notify [EMAIL_1] (fallback [IPV4_2])&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Restored locally:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reveal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;safe_trace&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verified local output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Trace logged: Deploy check failed on host [IPV4_1]; notify [EMAIL_1] (fallback [IPV4_2])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Statutory Risk Minimization &amp;amp; Deployment Paths
&lt;/h2&gt;

&lt;p&gt;Preventing telemetry archives from capturing raw customer PII and operator identifiers narrows multi-year breach scope under GDPR Article 32 storage-limitation and data-minimization duties, while providing deterministic audit evidence for enterprise security reviews.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explore open protocol conformance and local auditors at &lt;a href="https://ztds.ai/incidents/" rel="noopener noreferrer"&gt;ZTDS.ai Incident Counterfactuals&lt;/a&gt; and the &lt;a href="https://ztds.ai/ciso/" rel="noopener noreferrer"&gt;CISO Zero-DPA Procurement Pack&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Compare certified local implementations in the &lt;a href="https://ztds.ai/registry/" rel="noopener noreferrer"&gt;ZTDS Verified Registry&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;For turnkey IDE/developer local sanitization (&lt;code&gt;@privacyscrubber/mcp-server&lt;/code&gt;, &lt;code&gt;@privacyscrubber/sdk&lt;/code&gt;) and commercial 30-profile enterprise deployments, evaluate &lt;a href="https://privacyscrubber.com/pricing/?utm_source=ztds_syndication" rel="noopener noreferrer"&gt;PrivacyScrubber&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Related Technical Post-Mortems
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/incidents/fireworks-ai-notion-transcript-exposure/" rel="noopener noreferrer"&gt;Fireworks AI &amp;amp; Notion Post-Mortem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/incidents/workos-escaped-ai-agent-boundary-failure/" rel="noopener noreferrer"&gt;WorkOS Agent Boundary Post-Mortem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/mcp/" rel="noopener noreferrer"&gt;MCP Zero-Trust Stdio Gateway&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/sdk/" rel="noopener noreferrer"&gt;ZTDS SDK &amp;amp; CLI Reference&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>devtools</category>
      <category>devsecops</category>
    </item>
    <item>
      <title>Fireworks AI &amp; Notion Insights Breach: ZTDS RFC v1.0 Counterfactual</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Sat, 21 Nov 2026 19:32:42 +0000</pubDate>
      <link>https://dev.to/moxno/fireworks-ai-notion-insights-breach-ztds-rfc-v10-counterfactual-695</link>
      <guid>https://dev.to/moxno/fireworks-ai-notion-insights-breach-ztds-rfc-v10-counterfactual-695</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Originally published in the &lt;a href="https://ztds.ai/incidents/fireworks-ai-notion-transcript-exposure/" rel="noopener noreferrer"&gt;ZTDS RFC v1.0 Incident Counterfactuals Hub&lt;/a&gt;. Grounded strictly in primary vendor security advisories.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Executive Counterfactual Summary
&lt;/h2&gt;

&lt;p&gt;On November 8, 2026, Notion confirmed that under 1% of workspaces had unattributable Insights AI chat transcripts exposed through Fireworks AI and advised owners to rotate pasted secrets. Under ZTDS Invariants 1 and 2, upstream vendor logs contain bracketed surrogates instead of plaintext customer PII or pasted tokens.&lt;/p&gt;

&lt;p&gt;Evaluating the Oct–Nov 2026 Fireworks AI upstream compromise and Notion Insights transcript exposure against local pre-egress ZTDS tokenization and statutory safe-harbor principles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verified Primary Sources &amp;amp; Timeline
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://fireworks.ai/security-bulletins" rel="noopener noreferrer"&gt;Fireworks AI Security Bulletins (Aug–Oct 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.notion.com/security/advisories/security-incident-involving-a-third-party-ai-vendor" rel="noopener noreferrer"&gt;Notion Official Security Advisory (Nov 2026)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://privacyscrubber.com/news/fireworks-ai-cloud-provider-breach-november-2026/" rel="noopener noreferrer"&gt;Commercial Threat Brief: Fireworks AI Cloud Provider Breach (PrivacyScrubber News)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Verified Window&lt;/th&gt;
&lt;th&gt;Milestone&lt;/th&gt;
&lt;th&gt;Confirmed Bulletin Record&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Aug 3 – Oct 7, 2026&lt;/td&gt;
&lt;td&gt;Fireworks AI first bulletin window&lt;/td&gt;
&lt;td&gt;Fireworks AI disclosed unauthorized access involving internal credentials and evaluation environment secrets.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oct 23 – Oct 30, 2026&lt;/td&gt;
&lt;td&gt;Second Fireworks AI R&amp;amp;D supply-chain breach&lt;/td&gt;
&lt;td&gt;A third-party cloud provider R&amp;amp;D breach led to unauthorized access, LLMJacking workloads, and exposure of datasets and incomplete models.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 3 – Nov 4, 2026&lt;/td&gt;
&lt;td&gt;Notion severs vendor integration&lt;/td&gt;
&lt;td&gt;Notion terminated its Fireworks AI integration and instructed deletion of associated data held by the vendor.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 8, 2026&lt;/td&gt;
&lt;td&gt;Notion confirms &amp;lt;1% workspace transcript impact&lt;/td&gt;
&lt;td&gt;Notion confirmed under 1% of workspaces had unattributable Insights AI chat transcripts exposed, disabled Insights, and urged rotation of any secrets pasted into chats.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Trust Boundary Architecture Comparison
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Baseline path (without local ZTDS isolation):&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Workspace user pastes PII &amp;amp; credentials&lt;/li&gt;
&lt;li&gt;Unprotected TLS dispatch to third-party AI vendor&lt;/li&gt;
&lt;li&gt;Outcome: Vendor breach exposes raw chat transcripts&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;ZTDS RFC v1.0 counterfactual boundary:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;ZTDS sanitizes prompt in local RAM (&amp;lt;0.05ms)&lt;/li&gt;
&lt;li&gt;Bracketed surrogates ([EMAIL_1], [IBAN_1]) leave host&lt;/li&gt;
&lt;li&gt;Outcome: Vendor compromise sees zero raw customer entities&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Mapping Against ZTDS RFC v1.0 Invariants
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;ZTDS Invariant&lt;/th&gt;
&lt;th&gt;Protocol Enforcement&lt;/th&gt;
&lt;th&gt;Counterfactual Outcome&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 1 (Zero External Egress)&lt;/td&gt;
&lt;td&gt;Workspace queries pass through client-side or local gateway sanitization in volatile RAM before outbound HTTP dispatch to an inference vendor.&lt;/td&gt;
&lt;td&gt;Pasted emails, phone numbers, IBANs, and supported tokens never traverse the external API socket in cleartext.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 2 (Bijective Tokenization)&lt;/td&gt;
&lt;td&gt;Models reason accurately over [EMAIL_1] or [IBAN_1], and the local caller restores cleartext answers without upstream storage of originals.&lt;/td&gt;
&lt;td&gt;AI Q&amp;amp;A utility remains intact while downstream vendor chat logs contain only non-identifying structural placeholders.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 3 (Volatile RAM Zeroization)&lt;/td&gt;
&lt;td&gt;Lookup tables live strictly in ephemeral per-session memory and wipe immediately when the prompt-response cycle completes.&lt;/td&gt;
&lt;td&gt;Even if an inference host snapshot or disk volume is later exfiltrated, mapping tables do not exist upstream.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invariant 4 (Zero Subprocessor Chain)&lt;/td&gt;
&lt;td&gt;Sanitization happens inside the user perimeter without routing unmasked data through a secondary cloud DLP proxy.&lt;/td&gt;
&lt;td&gt;Reduces subprocessor dependency sprawl and narrows breach notification scope.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What ZTDS Does NOT Prevent
&lt;/h2&gt;

&lt;p&gt;ZTDS governs pre-egress payload confidentiality inside volatile memory. It complements infrastructure sandboxing, IAM controls, and package integrity checks rather than replacing them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does not prevent compromise of the upstream AI vendor own internal infrastructure, billing accounts, or LLMJacking compute hijacking.&lt;/li&gt;
&lt;li&gt;Does not protect workspace content stored outside the ZTDS-sanitized prompt channel (for example, static workspace databases or external files never routed through local tokenization).&lt;/li&gt;
&lt;li&gt;Does not retroactively rotate static organizational credentials that engineers pasted into unguarded legacy chat history prior to adopting local sanitization.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reproducible Synthetic Replay &amp;amp; CLI Verification
&lt;/h2&gt;

&lt;p&gt;Run the open Apache-2.0 conformance check locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ztds-audit --conformance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or reproduce deterministic local RAM tokenization with the MIT-licensed Python reference package (&lt;code&gt;pip install ztds&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;

&lt;span class="n"&gt;transcript_prompt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"Summarize onboarding issue for maria.chen@acme-corp.example "&lt;/span&gt;
    &lt;span class="s2"&gt;"phone +1-555-019-2834 payout DE89370400440532013000"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;outbound_payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sanitize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;transcript_prompt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Egress payload:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;outbound_payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Upstream inference sees: [EMAIL_1], [PHONE_1], [IBAN_1]&lt;/span&gt;
    &lt;span class="n"&gt;model_reply&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Verified payout routing for [EMAIL_1] on [IBAN_1]."&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Local restored:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reveal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model_reply&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verified local output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Egress payload: Summarize onboarding issue for [EMAIL_1] phone [PHONE_1] payout [IBAN_1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Statutory Risk Minimization &amp;amp; Deployment Paths
&lt;/h2&gt;

&lt;p&gt;Replacing raw personal identifiers and account numbers with session-scoped surrogates before external LLM dispatch provides measurable data-minimization engineering under GDPR Article 32 and supports defense-in-depth accountability under Israel Protection of Privacy Law Amendment 13 Section 17. It reduces exposure severity rather than conferring blanket legal exemption.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explore open protocol conformance and local auditors at &lt;a href="https://ztds.ai/incidents/" rel="noopener noreferrer"&gt;ZTDS.ai Incident Counterfactuals&lt;/a&gt; and the &lt;a href="https://ztds.ai/ciso/" rel="noopener noreferrer"&gt;CISO Zero-DPA Procurement Pack&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Compare certified local implementations in the &lt;a href="https://ztds.ai/registry/" rel="noopener noreferrer"&gt;ZTDS Verified Registry&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;For turnkey IDE/developer local sanitization (&lt;code&gt;@privacyscrubber/mcp-server&lt;/code&gt;, &lt;code&gt;@privacyscrubber/sdk&lt;/code&gt;) and commercial 30-profile enterprise deployments, evaluate &lt;a href="https://privacyscrubber.com/pricing/?utm_source=ztds_syndication" rel="noopener noreferrer"&gt;PrivacyScrubber&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Related Technical Post-Mortems
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/incidents/cursor-coding-agent-trace-credential-pivot/" rel="noopener noreferrer"&gt;Cursor Agent Trace Post-Mortem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/incidents/workos-escaped-ai-agent-boundary-failure/" rel="noopener noreferrer"&gt;WorkOS Agent Boundary Post-Mortem&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/frameworks/client-side-sanitization-vs-proxy-dlp/" rel="noopener noreferrer"&gt;Client-Side RAM vs. Cloud Proxy DLP&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ztds.ai/ciso/" rel="noopener noreferrer"&gt;CISO Zero-DPA Procurement Pack&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>privacy</category>
      <category>devsecops</category>
    </item>
    <item>
      <title>Microsoft Presidio vs. Local In-Memory Sanitization: Measuring PII Redaction Latency Without Docker or Cloud Proxies</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Thu, 19 Nov 2026 17:02:07 +0000</pubDate>
      <link>https://dev.to/moxno/microsoft-presidio-vs-local-in-memory-sanitization-measuring-pii-redaction-latency-without-docker-4dn1</link>
      <guid>https://dev.to/moxno/microsoft-presidio-vs-local-in-memory-sanitization-measuring-pii-redaction-latency-without-docker-4dn1</guid>
      <description>&lt;p&gt;Engineering teams adding Personally Identifiable Information (PII) redaction in front of Large Language Models usually start with the same architecture: spin up Microsoft Presidio inside Docker, load spaCy NER weights, and deploy a Python microservice between the application and the model API.&lt;/p&gt;

&lt;p&gt;In production, that design carries an infrastructure tax that outweighs the detection logic itself:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cold container images exceeding 1.5 GB just to mask emails, tokens, IBANs, and SSNs before calling &lt;code&gt;chat.completions&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Network hops across an internal microservice or external cloud proxy that add serialization latency and interrupt Server-Sent Event (SSE) token streaming.&lt;/li&gt;
&lt;li&gt;Unpredictable entity sprawl when a second inference service holds raw cleartext data in memory or HTTP logs, expanding GDPR Article 28 Data Processing Agreement (DPA) audit scope.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An alternative pattern is &lt;strong&gt;Zero-Trust Data Sanitization (ZTDS)&lt;/strong&gt; (&lt;a href="https://datatracker.ietf.org/doc/draft-sibiryakov-ztds-protocol/" rel="noopener noreferrer"&gt;IETF &lt;code&gt;draft-sibiryakov-ztds-protocol-02&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://ztds.ai/" rel="noopener noreferrer"&gt;ztds.ai&lt;/a&gt;), where sensitive entities are replaced in local process memory with typed, deterministic surrogates (&lt;code&gt;[EMAIL_1]&lt;/code&gt;, &lt;code&gt;[IBAN_1]&lt;/code&gt;, &lt;code&gt;[API_SECRET_1]&lt;/code&gt;) before any byte leaves the local runtime, and restored locally after the model responds.&lt;/p&gt;

&lt;p&gt;This writeup reports a reproducible local micro-benchmark of the ZTDS Python reference engine (&lt;code&gt;pip install ztds&lt;/code&gt;) across 2,000 scoped sessions and compares operational trade-offs against Docker-backed microservice redaction.&lt;/p&gt;




&lt;h2&gt;
  
  
  Reproducible Local Benchmark (&lt;code&gt;ztds==1.1.2&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;We tested 40 100%-synthetic documents spanning four enterprise payload profiles (&lt;code&gt;devsecops_secrets&lt;/code&gt;, &lt;code&gt;healthcare_phi&lt;/code&gt;, &lt;code&gt;finance_iban_cards&lt;/code&gt;, &lt;code&gt;corporate_legal_pii&lt;/code&gt;), scaling from short single alerts (~350 bytes) up to multi-record ~40 KB logs and DSAR extracts. Every payload ran 500 scoped iterations on Apple Silicon Python 3 with zero network requests and strict round-trip verification (&lt;code&gt;restore(sanitize(text)) == text&lt;/code&gt;).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workload Profile&lt;/th&gt;
&lt;th&gt;Mean Payload Size&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;sanitize + reveal&lt;/code&gt; p50&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;sanitize + reveal&lt;/code&gt; p95 (~40 KB batch)&lt;/th&gt;
&lt;th&gt;Full Session w/ RAM Wipe p50&lt;/th&gt;
&lt;th&gt;Throughput&lt;/th&gt;
&lt;th&gt;Peak Traced Memory&lt;/th&gt;
&lt;th&gt;Bijective Round-Trip&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;devsecops_secrets&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,528.5 B&lt;/td&gt;
&lt;td&gt;0.1109 ms&lt;/td&gt;
&lt;td&gt;4.4501 ms&lt;/td&gt;
&lt;td&gt;0.6392 ms&lt;/td&gt;
&lt;td&gt;4.43 MB/s&lt;/td&gt;
&lt;td&gt;98.60 KB&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;healthcare_phi&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,334.3 B&lt;/td&gt;
&lt;td&gt;0.1399 ms&lt;/td&gt;
&lt;td&gt;7.4701 ms&lt;/td&gt;
&lt;td&gt;0.6655 ms&lt;/td&gt;
&lt;td&gt;2.55 MB/s&lt;/td&gt;
&lt;td&gt;115.45 KB&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;finance_iban_cards&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2,978.5 B&lt;/td&gt;
&lt;td&gt;0.1291 ms&lt;/td&gt;
&lt;td&gt;6.7256 ms&lt;/td&gt;
&lt;td&gt;0.6574 ms&lt;/td&gt;
&lt;td&gt;2.52 MB/s&lt;/td&gt;
&lt;td&gt;111.17 KB&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;corporate_legal_pii&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,588.5 B&lt;/td&gt;
&lt;td&gt;0.1514 ms&lt;/td&gt;
&lt;td&gt;8.0026 ms&lt;/td&gt;
&lt;td&gt;0.6929 ms&lt;/td&gt;
&lt;td&gt;2.54 MB/s&lt;/td&gt;
&lt;td&gt;122.37 KB&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three practical engineering takeaways stand out from the traces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sub-millisecond hot path:&lt;/strong&gt; Median in-memory tokenization plus restoration stays between &lt;strong&gt;0.11 ms and 0.15 ms&lt;/strong&gt; on single prompts and standard clinical/treasury documents. Even the heaviest ~40 KB batch payloads stay under &lt;strong&gt;8.01 ms at p95&lt;/strong&gt;, compared against 180–720 ms end-to-end round trips documented for remote cloud DLP gateways in our earlier OSF latency study.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-container footprint:&lt;/strong&gt; Peak Python traced memory (&lt;code&gt;tracemalloc&lt;/code&gt;) stayed between &lt;strong&gt;98.6 KB and 122.4 KB&lt;/strong&gt;, compared against hundreds of megabytes of baseline container RAM required by containerized NER pipelines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Teardown cost awareness:&lt;/strong&gt; Notice the column difference between &lt;code&gt;sanitize + reveal&lt;/code&gt; (0.11–0.15 ms) and full context-manager exit (&lt;code&gt;0.64–0.69 ms&lt;/code&gt;). That extra ~0.5 ms comes from explicit RAM overwriting and forced garbage collection at session exit (&lt;code&gt;Theorem 2&lt;/code&gt; zeroization). In high-RPS streaming workers, keeping a request-scoped session open across multiple chunks amortizes teardown cost to once per HTTP stream rather than per token chunk.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Code Pattern: Scoped In-Memory Sanitization in 8 Lines
&lt;/h2&gt;

&lt;p&gt;With the open-source Python reference engine (&lt;code&gt;pip install ztds&lt;/code&gt;), sensitive payloads never leave the function frame unmasked:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;ztds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;guard&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;masked_prompt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;guard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sanitize&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw_ticket_text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Only "[EMAIL_1]" and "[IBAN_1]" cross the wire to the LLM API&lt;/span&gt;
    &lt;span class="n"&gt;llm_reply&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;call_model&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;masked_prompt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;# Bijective restoration occurs strictly inside local RAM&lt;/span&gt;
    &lt;span class="n"&gt;final_output&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;guard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reveal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;llm_reply&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Out of scope: ephemeral surrogate map is zeroized in memory&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For TypeScript, Node.js microservices, and SSE stream un-scrubbing where teams also need pre-built industry compliance packs across 30 regulated verticals (HIPAA Safe Harbor, PCI-DSS, SWIFT, GDPR), see the commercial SDK comparison and migration guide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://privacyscrubber.com/alternatives/privacyscrubber-vs-microsoft-presidio/" rel="noopener noreferrer"&gt;Microsoft Presidio vs. PrivacyScrubber (Architecture &amp;amp; Container Comparison)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://privacyscrubber.com/developer-sdk/" rel="noopener noreferrer"&gt;PrivacyScrubber Developer SDK for Node.js &amp;amp; Edge Runtimes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  When Presidio Still Wins vs. When In-Memory Wins
&lt;/h2&gt;

&lt;p&gt;No single pattern fits every workload:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Choose Microsoft Presidio + spaCy NER&lt;/strong&gt; when your inputs are unstructured conversational narratives full of ambiguous proper nouns (&lt;code&gt;"Jordan met Austin in Victoria"&lt;/code&gt;) inside a batch offline ETL cluster where container memory and 100+ ms latency budgets are acceptable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose In-Memory ZTDS (&lt;code&gt;ztds&lt;/code&gt; Python or &lt;code&gt;@privacyscrubber/sdk&lt;/code&gt;)&lt;/strong&gt; when you run low-latency RAG pipelines, serverless Edge functions, coding-agent MCP wrappers, or browser/desktop assistants where Docker overhead breaks cold starts, network proxies violate zero-server privacy mandates, or every external subprocessor triggers a legal vendor review.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Next Steps to Test Locally
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Run the open benchmark (&lt;code&gt;ztds==1.1.2&lt;/code&gt;) against your own synthetic payloads without network access.&lt;/li&gt;
&lt;li&gt;Check your outbound LLM requests in DevTools or proxy logs to confirm only synthetic surrogates (&lt;code&gt;[EMAIL_1]&lt;/code&gt;, &lt;code&gt;[SECRET_1]&lt;/code&gt;) cross the wire.&lt;/li&gt;
&lt;li&gt;Review the open protocol draft at &lt;a href="https://ztds.ai/" rel="noopener noreferrer"&gt;https://ztds.ai/&lt;/a&gt; and evaluate production runtime requirements on the &lt;a href="https://privacyscrubber.com/alternatives/privacyscrubber-vs-microsoft-presidio/" rel="noopener noreferrer"&gt;PrivacyScrubber vs. Presidio breakdown&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>privacy</category>
    </item>
    <item>
      <title>How to Stop Leaking API Keys and PII to LLMs: Zero-Trust In-Memory Sanitization for Cursor &amp; Claude</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Mon, 14 Sep 2026 18:02:49 +0000</pubDate>
      <link>https://dev.to/moxno/how-to-stop-leaking-api-keys-and-pii-to-llms-zero-trust-in-memory-sanitization-for-cursor-claude-4lo8</link>
      <guid>https://dev.to/moxno/how-to-stop-leaking-api-keys-and-pii-to-llms-zero-trust-in-memory-sanitization-for-cursor-claude-4lo8</guid>
      <description>&lt;p&gt;If you are using AI coding assistants like &lt;strong&gt;Cursor, Windsurf, Claude Desktop, or ChatGPT&lt;/strong&gt;, you have probably pasted a snippet containing sensitive data at least once:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hardcoded AWS or OpenAI API keys&lt;/li&gt;
&lt;li&gt;Database connection strings (&lt;code&gt;postgres://user:password@host/db&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;JWT tokens and private RSA keys&lt;/li&gt;
&lt;li&gt;Real customer emails, IP addresses, or internal employee IDs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Traditional Data Loss Prevention (DLP) relies on remote cloud proxies that intercept your traffic, inspect it on a third-party server, and add &lt;strong&gt;200ms–500ms of latency&lt;/strong&gt; to every autocomplete or prompt.&lt;/p&gt;

&lt;p&gt;Here is how to solve this using &lt;strong&gt;Zero-Trust Data Sanitization (ZTDS)&lt;/strong&gt;—sanitizing sensitive data &lt;strong&gt;100% locally in volatile RAM before network serialization&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Problem: Cloud DLP Adds Latency and Creates Honeypots
&lt;/h2&gt;

&lt;p&gt;When you route AI traffic through intermediate cloud DLP proxies:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Network Jitter:&lt;/strong&gt; Remote webhook inspection halts your prompt loop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sub-Processor Liabilities:&lt;/strong&gt; Routing sensitive customer data to a third-party inspection vendor requires signing complex Data Processing Agreements (DPAs) under GDPR and HIPAA.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Telemetry Honeypots:&lt;/strong&gt; Prompt data stored in proxy logs becomes a centralized target for credential leaks.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  The Architecture: Client-Side Zero-Trust Data Sanitization (ZTDS)
&lt;/h2&gt;

&lt;p&gt;The core principle behind ZTDS is simple: &lt;strong&gt;Zero server infrastructure. Everything executes in client memory.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────────────────────────────────────────┐
│                    DEVELOPER WORKSTATION (LOCAL RAM)                        │
│                                                                             │
│  ┌──────────────────────┐  Structured Stream  ┌──────────────────────────┐  │
│  │ IDE / Browser Tab    │ ──────────────────&amp;gt; │ In-Memory DFA Automata   │  │
│  │ (Code / Prompt)      │                     │ (Regex Tokenizer)        │  │
│  └──────────────────────┘ &amp;lt;────────────────── └─────────────┬────────────┘  │
│       ▲                    (Sanitized Stream)               │               │
│       │                                                     ▼               │
│       │                                       ┌──────────────────────────┐  │
│       │                                       │ Volatile sessionMap      │  │
│       │                                       │ (Heap Memory Only)       │  │
│       │                                       └─────────────┬────────────┘  │
│       │                                                     │               │
│       │          Lossless Reverse Rehydration Loop          │               │
│       └─────────────────────────────────────────────────────┘               │
└─────────────────────────────────────────────────────────────────────────────┘
                                   │
                      Sanitized Socket Stream ([TOKEN_N])
                                   ▼
                        ┌───────────────────┐
                        │ External Cloud AI │
                        │ (Zero Raw PII)    │
                        └───────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Key Engineering Properties:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic Automata Execution:&lt;/strong&gt; Pre-compiled DFA patterns execute across 25+ industry profiles (Software Engineering, Finance, Health, Legal). Matches are sorted in descending index order to prevent character offset drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sub-2ms Latency:&lt;/strong&gt; Microbenchmarks across 10,000 synthetic payloads show a mean execution latency of &lt;strong&gt;1.92ms&lt;/strong&gt; (an ~80x to ~400x speedup compared to remote cloud proxies).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RAM-Only Isolation:&lt;/strong&gt; All token mappings exist strictly in volatile process memory and are destroyed upon process exit or tab reload. Zero disk persistence, zero cookies, zero external telemetry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1-Click Bijective Reveal:&lt;/strong&gt; When the LLM responds with surrogate tokens, they are mapped back to their original identities locally.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Setting Up the Open-Source MCP Server in Cursor &amp;amp; Claude Desktop
&lt;/h2&gt;

&lt;p&gt;We open-sourced the official Model Context Protocol (MCP) server: &lt;a href="https://github.com/moxno/privacyscrubber-mcp" rel="noopener noreferrer"&gt;&lt;code&gt;@privacyscrubber/mcp-server&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can run it instantly without installation via &lt;code&gt;npx&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx &lt;span class="nt"&gt;-y&lt;/span&gt; @privacyscrubber/mcp-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  1. Claude Desktop Integration
&lt;/h3&gt;

&lt;p&gt;Add the server to your &lt;code&gt;claude_desktop_config.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"privacyscrubber"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@privacyscrubber/mcp-server"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Cursor IDE Integration
&lt;/h3&gt;

&lt;p&gt;In Cursor settings under &lt;strong&gt;Features &amp;gt; MCP&lt;/strong&gt;, click &lt;strong&gt;Add New MCP Server&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Name:&lt;/strong&gt; &lt;code&gt;privacyscrubber&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Type:&lt;/strong&gt; &lt;code&gt;command&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Command:&lt;/strong&gt; &lt;code&gt;npx -y @privacyscrubber/mcp-server&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Real-World Sanitization Example
&lt;/h2&gt;

&lt;p&gt;When you pass a raw configuration log:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host: api.internal.corp
User: john.doe@enterprise.com
Client IP: 192.168.1.104
AWS Key: AKIAIOSFODNN7EXAMPLE
Secret: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The ZTDS engine tokenizes it in &lt;strong&gt;&amp;lt; 1.5ms&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host: [URL_1]
User: [EMAIL_1]
Client IP: [IP_1]
AWS Key: [API_KEY_1]
Secret: [SECRET_KEY_1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The LLM processes the code structure without ever seeing your credentials, and the response rehydrates the original keys locally on your machine.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try the Browser Implementation
&lt;/h2&gt;

&lt;p&gt;If you want to test client-side sanitization in your browser (works 100% in Airplane Mode):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Web App:&lt;/strong&gt; &lt;a href="https://privacyscrubber.com" rel="noopener noreferrer"&gt;https://privacyscrubber.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository (MCP Server):&lt;/strong&gt; &lt;a href="https://github.com/moxno/privacyscrubber-mcp" rel="noopener noreferrer"&gt;moxno/privacyscrubber-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chrome Extension (Manifest V3):&lt;/strong&gt; &lt;a href="https://chromewebstore.google.com/detail/pimoejgefeilajmmbpghifdmhdlkgjol" rel="noopener noreferrer"&gt;PrivacyScrubber on Chrome Web Store&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Academic Foundation (Zenodo / CERN):&lt;/strong&gt; &lt;a href="https://doi.org/10.5281/zenodo.22058770" rel="noopener noreferrer"&gt;DOI 10.5281/zenodo.22058770&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;How do you handle sensitive data when prompting LLMs in your daily development workflow? Let me know in the comments below!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>privacy</category>
      <category>security</category>
      <category>ai</category>
    </item>
    <item>
      <title>How to Stop Leaking API Keys and PII to LLMs: Zero-Trust In-Memory Sanitization for Cursor &amp; Claude</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Wed, 02 Sep 2026 11:36:03 +0000</pubDate>
      <link>https://dev.to/moxno/how-to-stop-leaking-api-keys-and-pii-to-llms-zero-trust-in-memory-sanitization-for-cursor-claude-5e8</link>
      <guid>https://dev.to/moxno/how-to-stop-leaking-api-keys-and-pii-to-llms-zero-trust-in-memory-sanitization-for-cursor-claude-5e8</guid>
      <description>&lt;p&gt;If you are using AI coding assistants like &lt;strong&gt;Cursor, Windsurf, Claude Desktop, or ChatGPT&lt;/strong&gt;, you have probably pasted a snippet containing sensitive data at least once:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hardcoded AWS or OpenAI API keys&lt;/li&gt;
&lt;li&gt;Database connection strings (&lt;code&gt;postgres://user:password@host/db&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;JWT tokens and private RSA keys&lt;/li&gt;
&lt;li&gt;Real customer emails, IP addresses, or internal employee IDs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Traditional Data Loss Prevention (DLP) relies on remote cloud proxies that intercept your traffic, inspect it on a third-party server, and add &lt;strong&gt;200ms–500ms of latency&lt;/strong&gt; to every autocomplete or prompt.&lt;/p&gt;

&lt;p&gt;Here is how to solve this using &lt;strong&gt;Zero-Trust Data Sanitization (ZTDS)&lt;/strong&gt;—sanitizing sensitive data &lt;strong&gt;100% locally in volatile RAM before network serialization&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The Problem: Cloud DLP Adds Latency and Creates Honeypots
&lt;/h2&gt;

&lt;p&gt;When you route AI traffic through intermediate cloud DLP proxies:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Network Jitter:&lt;/strong&gt; Remote webhook inspection halts your prompt loop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sub-Processor Liabilities:&lt;/strong&gt; Routing sensitive customer data to a third-party inspection vendor requires signing complex Data Processing Agreements (DPAs) under GDPR and HIPAA.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Telemetry Honeypots:&lt;/strong&gt; Prompt data stored in proxy logs becomes a centralized target for credential leaks.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  2. The Architecture: Client-Side Zero-Trust Data Sanitization (ZTDS)
&lt;/h2&gt;

&lt;p&gt;The core principle behind ZTDS is simple: &lt;strong&gt;Zero server infrastructure. Everything executes in client memory.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+-----------------------------------------------------------------------------+
|                     DEVELOPER WORKSTATION (LOCAL RAM)                       |
|                                                                             |
|   +-------------------+  Structured Stream   +--------------------------+   |
|   | IDE / Browser Tab | -------------------&amp;gt; | In-Memory DFA Automata   |   |
|   | (Code / Prompt)   |                      | (Regex Tokenizer)        |   |
|   +-------------------+ &amp;lt;------------------- +-------------+------------+   |
|        ^                    (Sanitized Stream)             |                |
|        |                                                   v                |
|        |                                        +-----------------------+   |
|        |                                        | Volatile sessionMap   |   |
|        |                                        | (Heap Memory Only)    |   |
|        |                                        +----------+------------+   |
|        |                                                   |                |
|        |           Lossless Reverse Rehydration Loop       |                |
|        +---------------------------------------------------+                |
+-----------------------------------------------------------------------------+
                                     |
                       Sanitized Socket Stream ([TOKEN_N])
                                     v
                          +-------------------+
                          | External Cloud AI |
                          | (Zero Raw PII)    |
                          +-------------------+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Key Engineering Properties:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic Automata Execution:&lt;/strong&gt; Pre-compiled DFA patterns execute across 25+ industry profiles (Software Engineering, Finance, Health, Legal). Matches are sorted in descending index order to prevent character offset drift.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sub-2ms Latency:&lt;/strong&gt; Microbenchmarks across 10,000 synthetic payloads show a mean execution latency of &lt;strong&gt;1.92ms&lt;/strong&gt; (an ~80x to ~400x speedup compared to remote cloud proxies).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RAM-Only Isolation:&lt;/strong&gt; All token mappings exist strictly in volatile process memory and are destroyed upon process exit or tab reload. Zero disk persistence, zero cookies, zero external telemetry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1-Click Bijective Reveal:&lt;/strong&gt; When the LLM responds with surrogate tokens, they are mapped back to their original identities locally.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Setting Up the Open-Source MCP Server in Cursor &amp;amp; Claude Desktop
&lt;/h2&gt;

&lt;p&gt;We open-sourced the official Model Context Protocol (MCP) server: &lt;a href="https://github.com/moxno/privacyscrubber-mcp" rel="noopener noreferrer"&gt;@privacyscrubber/mcp-server&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can run it instantly without installation via &lt;code&gt;npx&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx &lt;span class="nt"&gt;-y&lt;/span&gt; @privacyscrubber/mcp-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Claude Desktop Integration
&lt;/h3&gt;

&lt;p&gt;Add the server to your &lt;code&gt;claude_desktop_config.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"privacyscrubber"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@privacyscrubber/mcp-server"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Cursor IDE Integration
&lt;/h3&gt;

&lt;p&gt;In Cursor settings under &lt;strong&gt;Features &amp;gt; MCP&lt;/strong&gt;, click &lt;strong&gt;Add New MCP Server&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Name:&lt;/strong&gt; &lt;code&gt;privacyscrubber&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Type:&lt;/strong&gt; &lt;code&gt;command&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Command:&lt;/strong&gt; &lt;code&gt;npx -y @privacyscrubber/mcp-server&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. Real-World Sanitization Example
&lt;/h2&gt;

&lt;p&gt;When you pass a raw configuration log:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host: api.internal.corp
User: john.doe@enterprise.com
Client IP: 192.168.1.104
AWS Key: AKIAIOSFODNN7EXAMPLE
Secret: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The ZTDS engine tokenizes it in &lt;strong&gt;&amp;lt; 1.5ms&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host: [URL_1]
User: [EMAIL_1]
Client IP: [IP_1]
AWS Key: [API_KEY_1]
Secret: [SECRET_KEY_1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The LLM processes the code structure without ever seeing your credentials, and the response rehydrates the original keys locally on your machine.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Live Implementations &amp;amp; Research
&lt;/h2&gt;

&lt;p&gt;If you want to test client-side sanitization in your browser (works 100% in Airplane Mode):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Web App:&lt;/strong&gt; &lt;a href="https://privacyscrubber.com" rel="noopener noreferrer"&gt;https://privacyscrubber.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository (MCP Server):&lt;/strong&gt; &lt;a href="https://github.com/moxno/privacyscrubber-mcp" rel="noopener noreferrer"&gt;moxno/privacyscrubber-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chrome Extension (Manifest V3):&lt;/strong&gt; &lt;a href="https://chromewebstore.google.com/detail/pimoejgefeilajmmbpghifdmhdlkgjol" rel="noopener noreferrer"&gt;PrivacyScrubber on Chrome Web Store&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Academic Foundation (Zenodo / CERN):&lt;/strong&gt; &lt;a href="https://doi.org/10.5281/zenodo.22058770" rel="noopener noreferrer"&gt;DOI 10.5281/zenodo.22058770&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;How do you handle sensitive data when prompting LLMs in your daily development workflow? Let me know in the comments below!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>opensource</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Model Context Protocol PII Redaction: Local Data Sanitization for Cursor and Claude Desktop</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Mon, 20 Jul 2026 12:54:33 +0000</pubDate>
      <link>https://dev.to/moxno/model-context-protocol-pii-redaction-local-data-sanitization-for-cursor-and-claude-desktop-2o34</link>
      <guid>https://dev.to/moxno/model-context-protocol-pii-redaction-local-data-sanitization-for-cursor-and-claude-desktop-2o34</guid>
      <description>&lt;p&gt;As software engineering teams rapidly integrate AI coding assistants like Cursor, Windsurf, and Claude Desktop into their daily development workflows, security leaders face a new and invisible threat: prompt-level data exfiltration. Every time a developer feeds application logs containing customer databases, proprietary API keys, or raw system environment variables to an AI assistant, they trigger an uncontrolled data leak. &lt;/p&gt;

&lt;p&gt;For organizations bound by strict regulations, this is not just a security risk—it is a compliance failure. Sending plaintext customer data or developer secrets to third-party Large Language Model (LLM) APIs violates the GDPR data minimization mandate (Art. 5(1)(c)), fails HIPAA technical safeguards (§164.312), and violates SOC 2 CC6.7 logical access controls.&lt;/p&gt;

&lt;p&gt;To bridge this critical security gap, the launch of &lt;strong&gt;PrivacyScrubber MCP Server v1.7.0&lt;/strong&gt; introduces a fully local, CISO-approved &lt;a href="https://privacyscrubber.com/pii-mcp/" rel="noopener noreferrer"&gt;Model Context Protocol PII Redaction&lt;/a&gt; layer. By intercepting prompt streams and local files directly on the developer's machine, PrivacyScrubber sanitizes all sensitive inputs &lt;em&gt;before&lt;/em&gt; they leave the local environment, replacing them with safe, reversible placeholders.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Core Threat: How AI Coding Assistants Leak Secrets
&lt;/h2&gt;

&lt;p&gt;AI coding assistants are highly agentic. They do not just write code; they inspect the workspace, execute terminal commands, read log files, and pull configuration parameters. If a log file contains database credentials or user emails, the IDE agent sends them raw to the AI model's cloud server. &lt;/p&gt;

&lt;p&gt;Consider this typical developer log containing sensitive details:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ERROR] 2026-07-19T14:59:59Z Connection failed:
mysql://db_admin:P@ssw0rd2026!@10.0.4.15:3306/prod_db
User affected: Tony Stark (tony@starkindustries.com). Phone: +1-212-555-0143.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If a developer pastes this log to ask the AI to debug the connection, the database username, password, IP address, user's real name, email, and phone number are sent directly to OpenAI or Anthropic.&lt;/p&gt;

&lt;p&gt;With PrivacyScrubber's &lt;a href="https://privacyscrubber.com" rel="noopener noreferrer"&gt;local PII scrubber&lt;/a&gt;, the prompt is processed locally on the developer's CPU in less than 15 milliseconds, outputting a safe version:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ERROR] 2026-07-19T14:59:59Z Connection failed:
mysql://[SECRET_1]
User affected: [NAME_1] ([EMAIL_1]). Phone: [PHONE_1].
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the AI model generates its response using the placeholders, the developer can run a detokenization pass locally to restore the original credentials securely inside their editor.&lt;/p&gt;




&lt;h2&gt;
  
  
  Introducing the pii-masking-run CLI: Closing the Terminal Gap
&lt;/h2&gt;

&lt;p&gt;While standard MCP server integrations intercept prompts and files read by the AI, agentic tools (like Cursor Agent or Claude Code) can run shell commands directly in the terminal, completely bypassing the MCP stream. &lt;/p&gt;

&lt;p&gt;To address this, PrivacyScrubber v1.7.0 bundles the &lt;code&gt;pii-masking-run&lt;/code&gt; CLI. This integrated command runner intercepts the output (&lt;code&gt;stdout&lt;/code&gt; and &lt;code&gt;stderr&lt;/code&gt;) of any terminal command line-by-line, redacts sensitive identifiers locally, and writes the clean stream to the terminal screen where the AI agent reads it.&lt;/p&gt;

&lt;p&gt;Developers can now wrap commands seamlessly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx pii-masking-run &lt;span class="nt"&gt;--&lt;/span&gt; npm run dev
npx pii-masking-run &lt;span class="nt"&gt;--&lt;/span&gt; &lt;span class="nb"&gt;cat&lt;/span&gt; /var/log/syslog
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This ensures that even if an AI agent runs database migrations, reads system logs, or inspects configuration files, it can only see the sanitized, compliant output.&lt;/p&gt;




&lt;h2&gt;
  
  
  Compliance and the Zero-Trust Data Sanitization (ZTDS) Standard
&lt;/h2&gt;

&lt;p&gt;PrivacyScrubber operates on the &lt;strong&gt;Zero-Trust Data Sanitization (ZTDS)&lt;/strong&gt; paradigm. Unlike cloud-based DLP (Data Loss Prevention) APIs, which ironically require you to send your data to another cloud provider to be sanitized, PrivacyScrubber executes all processing locally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Offline Cryptographic Gating:&lt;/strong&gt; License key checks use a local RSA public key to verify signed payloads completely offline. &lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Volatile RAM-Only Token Map:&lt;/strong&gt; The mapping between the original values and the tokens (&lt;code&gt;[EMAIL_1]&lt;/code&gt; -&amp;gt; &lt;code&gt;tony@starkindustries.com&lt;/code&gt;) lives strictly in the process memory. It is never written to disk, cookies, or localStorage, and vanishes when the IDE or terminal session closes.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Local File Extraction:&lt;/strong&gt; Word documents (&lt;code&gt;.docx&lt;/code&gt;), PDF files, and Excel spreadsheets (&lt;code&gt;.xlsx&lt;/code&gt;) are parsed and stripped of PII locally, ensuring compliance is maintained at the browser and CLI edge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By acting as a local compliance proxy, PrivacyScrubber enables development teams to comply with &lt;a href="https://privacyscrubber.com/compliance/" rel="noopener noreferrer"&gt;GDPR and HIPAA requirements&lt;/a&gt; while harnessing the full power of agentic AI coding tools.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try the Airplane Mode Challenge
&lt;/h2&gt;

&lt;p&gt;The ultimate proof of local privacy is offline verification. We challenge any developer or security auditor to:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Load the &lt;a href="https://privacyscrubber.com" rel="noopener noreferrer"&gt;PrivacyScrubber Homepage&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Turn off their Wi-Fi (enable Airplane Mode).&lt;/li&gt;
&lt;li&gt;Paste a block of code containing names, emails, and database secrets.&lt;/li&gt;
&lt;li&gt;Run the sanitization.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The engine will parse and redact all PII instantly without a single network packet leaving the device. &lt;/p&gt;

&lt;p&gt;For developers looking to secure their IDE prompt streams, the &lt;code&gt;@privacyscrubber/mcp-server&lt;/code&gt; and &lt;code&gt;pii-masking-run&lt;/code&gt; CLI are now available on the NPM registry.&lt;/p&gt;

&lt;h1&gt;
  
  
  AIPrivacy #InfoSec #ZeroTrust #DataCompliance #ChatGPT #CursorIDE #ClaudeDesktop
&lt;/h1&gt;

</description>
      <category>security</category>
      <category>mcp</category>
      <category>cursor</category>
      <category>privacy</category>
    </item>
    <item>
      <title>How I Built a Zero-Server PII Scrubber for ChatGPT (It Works in Airplane Mode)</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Tue, 21 Apr 2026 05:22:16 +0000</pubDate>
      <link>https://dev.to/moxno/how-i-built-a-zero-server-pii-scrubber-for-chatgpt-it-works-in-airplane-mode-21gl</link>
      <guid>https://dev.to/moxno/how-i-built-a-zero-server-pii-scrubber-for-chatgpt-it-works-in-airplane-mode-21gl</guid>
      <description>&lt;p&gt;I got tired of seeing this workflow in every company I consulted for:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Employee has a sensitive document (client contract, patient report, HR file)&lt;/li&gt;
&lt;li&gt;Employee needs AI help analyzing it&lt;/li&gt;
&lt;li&gt;Employee pastes the entire thing into ChatGPT&lt;/li&gt;
&lt;li&gt;Compliance team has a heart attack&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The usual advice — "just remove sensitive data before pasting" — doesn't work. It's too manual, too slow, and people simply don't do it under deadline pressure.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://www.privacyscrubber.com" rel="noopener noreferrer"&gt;PrivacyScrubber&lt;/a&gt; — a 100% local, browser-based PII redactor that works as a step between your document and your AI model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Architecture
&lt;/h2&gt;

&lt;p&gt;The entire engine runs in client-side JavaScript. No server. No API calls. No logs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why this matters:&lt;/strong&gt; You can literally disconnect from the internet and it still works. I call this the "Airplane Mode test" — if the tool breaks offline, it's sending your data somewhere.&lt;/p&gt;

&lt;h3&gt;
  
  
  Two-Pass Tokenization
&lt;/h3&gt;

&lt;p&gt;The PII engine uses a two-pass approach:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pass 1 — Detection:&lt;/strong&gt; Scan the text for all pattern matches across 60+ entity types.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pass 2 — Conflict Resolution:&lt;/strong&gt; Overlapping spans are resolved by specificity priority. An SSN match inside a phone number match — the more specific type (SSN) wins. Confidence scoring filters false positives.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reversible Redaction
&lt;/h3&gt;

&lt;p&gt;This is the key feature that makes it actually useful for AI workflows rather than just document archiving.&lt;/p&gt;

&lt;p&gt;Instead of permanently deleting PII, we replace it with typed tokens:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Input:  "Patient John Smith (DOB 03/15/1978, SSN 123-45-6789) visited Dr. Chen at 415-555-0192"

Output: "Patient [NAME_1] (DOB [DATE_1], SSN [SSN_1]) visited [NAME_2] at [PHONE_1]"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The mapping is stored locally in the browser. After the AI responds, paste the response into the "Reveal" panel and all tokens are replaced back with originals — locally, no server involved.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Hard Parts
&lt;/h2&gt;

&lt;h3&gt;
  
  
  False Positive Hell
&lt;/h3&gt;

&lt;p&gt;The biggest challenge wasn't detecting PII — it was avoiding false positives.&lt;/p&gt;

&lt;p&gt;Examples of things that pattern-match as PII but aren't:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Version 1.2.3" → looks like a partial SSN pattern&lt;/li&gt;
&lt;li&gt;"Node.js" → matches partial email patterns&lt;/li&gt;
&lt;li&gt;"Dr. Smith Act" → "Dr." prefix triggers name detection&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Solution: a confidence scoring system that weights context, entity type frequency, and co-occurrence patterns.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Chrome Extension Problem
&lt;/h3&gt;

&lt;p&gt;The Chrome Extension intercepts text in ChatGPT's input field &lt;em&gt;before&lt;/em&gt; you hit Enter. ChatGPT uses React with a &lt;code&gt;contenteditable&lt;/code&gt; div, not a standard &lt;code&gt;&amp;lt;input&amp;gt;&lt;/code&gt;. Text must be intercepted at the &lt;code&gt;keydown&lt;/code&gt; event level.&lt;/p&gt;

&lt;p&gt;The solution uses a MutationObserver on the input container plus &lt;code&gt;keydown&lt;/code&gt; event capture to catch the Enter key before React's synthetic event system.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Ship the boring compliance stuff first.&lt;/strong&gt; The HIPAA/GDPR angle unlocks enterprise conversations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The Airplane Mode test is your marketing.&lt;/strong&gt; "Try it with WiFi off" is viscerally convincing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;False positive rate matters more than recall.&lt;/strong&gt; A PII tool that replaces half the words is useless for AI workflows.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Current Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Vanilla JS (no framework — Chrome extensions hate React)&lt;/li&gt;
&lt;li&gt;WebAssembly Tesseract for offline PDF OCR&lt;/li&gt;
&lt;li&gt;OffscreenCanvas API for in-browser image processing&lt;/li&gt;
&lt;li&gt;IndexedDB for PRO token persistence between sessions&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;If you're building something similar or have questions about the conflict resolution algorithm, I'm happy to dig in.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.privacyscrubber.com" rel="noopener noreferrer"&gt;Try PrivacyScrubber&lt;/a&gt; — free, no signup, works offline.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>privacy</category>
      <category>security</category>
    </item>
    <item>
      <title>Why Pasting Client Data into ChatGPT is a GDPR Liability (and the Fix)</title>
      <dc:creator>Ilya Sib</dc:creator>
      <pubDate>Mon, 23 Mar 2026 09:32:21 +0000</pubDate>
      <link>https://dev.to/moxno/why-pasting-client-data-into-chatgpt-is-a-gdpr-liability-and-the-fix-2ajm</link>
      <guid>https://dev.to/moxno/why-pasting-client-data-into-chatgpt-is-a-gdpr-liability-and-the-fix-2ajm</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Published as:&lt;/strong&gt; Ilya, Founder of PrivacyScrubber — privacyscrubber.com&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every week, I watch legal teams, HR professionals, and developers do something that makes compliance officers lose sleep: they paste client files — contracts, resumes, medical records, support tickets — straight into ChatGPT to summarize, draft, or analyze them.&lt;/p&gt;

&lt;p&gt;I get it. ChatGPT is genuinely useful. The problem isn't the AI. The problem is the data that rides along with your prompt.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Legal Reality Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;Let me be specific. Under &lt;strong&gt;GDPR Article 28&lt;/strong&gt;, if you use an AI assistant to process personal data on behalf of clients or employees, you need a &lt;strong&gt;Data Processing Agreement (DPA)&lt;/strong&gt; with that AI provider. OpenAI offers a DPA — but only on their API (not ChatGPT Free), and you still bear the burden of proving lawful processing.&lt;/p&gt;

&lt;p&gt;More critically: &lt;strong&gt;Article 5(1)(f)&lt;/strong&gt; requires that personal data be processed with "appropriate security... and protection against unauthorised or unlawful processing." Pasting an unredacted client contract into a third-party AI system is hard to square with that requirement.&lt;/p&gt;

&lt;p&gt;This isn't hypothetical. The Italian DPA (Garante) temporarily banned ChatGPT in 2023 specifically over data processing transparency concerns. The EU AI Act, coming into force through 2026, adds enforcement teeth to AI data processing requirements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Even if you have a DPA&lt;/strong&gt;, you're still on the hook for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ensuring the data you send is appropriate to send at all&lt;/li&gt;
&lt;li&gt;Logging and auditing what personal data left your environment&lt;/li&gt;
&lt;li&gt;Honoring data subject rights (erasure, portability) for anything processed in the AI&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The moment a client's name, email, or ID lands in someone else's inference pipeline, your compliance posture weakens.&lt;/p&gt;




&lt;h2&gt;
  
  
  The "Incognito Chat" Illusion
&lt;/h2&gt;

&lt;p&gt;"But I turned on ChatGPT's privacy mode / temporary chat / incognito mode — my data isn't used for training."&lt;/p&gt;

&lt;p&gt;True: OpenAI's temporary chat doesn't use your conversation for model training. But that's a different claim from "your data never touches their servers."&lt;/p&gt;

&lt;p&gt;Every message you send — regardless of privacy settings — is processed server-side. It travels over the network, sits in RAM during inference, and is handled by OpenAI's infrastructure. For data that falls under GDPR, HIPAA, or SOC 2 requirements, "not used for training" is a much weaker guarantee than "never left the browser."&lt;/p&gt;

&lt;p&gt;This distinction matters enormously when your clients ask: &lt;em&gt;"How are you handling our data when you use AI?"&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  What Zero-Trust Data Sanitization Means in Practice
&lt;/h2&gt;

&lt;p&gt;The approach I've been building toward — I call it &lt;strong&gt;Zero-Trust Data Sanitization (ZTDS)&lt;/strong&gt; — treats every AI session as potentially hostile to your clients' privacy. The rule is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;No personal data should leave your device before you send it to an AI model.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This means scrubbing PII from your text &lt;em&gt;before&lt;/em&gt; it becomes a prompt. Not after. Not with server-side filters you don't control. Before.&lt;/p&gt;

&lt;p&gt;Here's how ZTDS works in practice:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Input&lt;/strong&gt;: You paste a client contract, support ticket, or HR document&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detect&lt;/strong&gt;: Every name, email, phone number, and ID is identified via regex (runs locally)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replace&lt;/strong&gt;: Detected PII is swapped for tokens — &lt;code&gt;[NAME_1]&lt;/code&gt;, &lt;code&gt;[EMAIL_1]&lt;/code&gt;, &lt;code&gt;[PHONE_1]&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Send&lt;/strong&gt;: You paste the &lt;em&gt;sanitized&lt;/em&gt; version into ChatGPT — no real data crosses the wire&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reverse&lt;/strong&gt;: When you get the AI's response, swap the tokens back to the originals (also locally)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The AI never sees the actual name — it sees &lt;code&gt;[NAME_1]&lt;/code&gt;. It still understands the structure, intent, and context of your document perfectly. And the token map that decodes &lt;code&gt;[NAME_1]&lt;/code&gt; back to the original? It lives only in your browser's session memory, wiped the moment you close the tab.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Airplane Mode Test (Your Compliance Proof)
&lt;/h2&gt;

&lt;p&gt;Here's the clearest way to verify whether a privacy tool actually honors zero-trust principles:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Load the page → Disconnect from the internet → Try to use it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If the tool still works offline: the processing is genuinely local. No data left your device. Your client data never touched a server.&lt;/p&gt;

&lt;p&gt;If the tool breaks offline: it's making network calls. Which means your data is traveling somewhere, regardless of what the privacy policy says.&lt;/p&gt;

&lt;p&gt;This is the test I require every privacy tool to pass before I recommend it. It's also the test I built PrivacyScrubber to satisfy — you can confirm it yourself, right now, by switching to airplane mode after the page loads.&lt;/p&gt;




&lt;h2&gt;
  
  
  The GDPR Audit Checklist for AI Sessions
&lt;/h2&gt;

&lt;p&gt;If you're using AI tools with client data today, here's a 5-step framework to reduce your exposure:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Classify before you paste&lt;/strong&gt;&lt;br&gt;
Does this document contain personal data (names, contacts, IDs, health info, financial data)? If yes, it needs scrubbing before it enters any AI prompt.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Check your DPA coverage&lt;/strong&gt;&lt;br&gt;
Do you have a valid DPA with every AI vendor whose models process your prompts? ChatGPT Free = no DPA. Claude API = yes if you signed it. Copilot Enterprise = covered under Microsoft's DPA.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Verify client-side processing claims&lt;/strong&gt;&lt;br&gt;
Apply the Airplane Mode test to any tool claiming to process data locally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Log what you send&lt;/strong&gt;&lt;br&gt;
Even when using scrubbed data, keep a log of session types (not content). "Summarized HR onboarding document, no PII in prompt" is defensible. Mystery AI sessions are not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Honor data subject rights&lt;/strong&gt;&lt;br&gt;
If a client asks "what data did you process about me using AI?" — can you answer? If you've been sending raw documents, you probably can't.&lt;/p&gt;




&lt;h2&gt;
  
  
  A Request from the Dev Community
&lt;/h2&gt;

&lt;p&gt;This article focuses on ChatGPT because it's ubiquitous, but the same logic applies to Claude, Gemini, Copilot, and every other hosted AI model.&lt;/p&gt;

&lt;p&gt;There are real solutions here — both technical (regex scrubbers, local models, differential privacy) and procedural (DPAs, audit logs, data classification workflows). I'm biased toward client-side tools because I've found no other approach that satisfies the Airplane Mode test, but the broader conversation matters.&lt;/p&gt;

&lt;p&gt;If you're building in this space — privacy-preserving AI pipelines, local inference, differential privacy for LLMs — I'd genuinely like to hear from you in the comments. And if you're using AI with client data today without a sanitization step, I'd encourage a second look.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Ilya is the founder of &lt;a href="https://privacyscrubber.com" rel="noopener noreferrer"&gt;PrivacyScrubber.com&lt;/a&gt; — a browser-based PII sanitizer for AI workflows that specifically passes the airplane mode test. A deeper technical breakdown for enterprise teams is available in the &lt;a href="https://privacyscrubber.com/ciso-ai-guide" rel="noopener noreferrer"&gt;CISO AI Data Security Guide&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>privacy</category>
      <category>security</category>
      <category>gdpr</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
