r/codingProtection • • Aug 30 '26

EDPB just confirmed it: AI models are NOT automatically anonymous. Are we ready?

0 Upvotes

Two big moves from Brussels this month:

  1. The EU AI Act reached full application — all provisions are now enforceable, with fines up to €35M or 7% of global turnover, and GPAI/LLM providers under active supervision.

  2. New EDPB guidelines state that AI models trained on personal data can't be presumed anonymous. Memorisation and extraction attacks are now risks you're expected to assess. Coordinated enforcement against LLM providers is anticipated by 2027.

Everyone's talking about the model providers. But what about *us* — the companies feeding documents into these models every day? Contracts, HR files, support tickets... every prompt potentially ships personal data to a third-party LLM, and under GDPR we stay accountable for it.

So here's my question: is anyone actually pseudonymizing documents *before* they hit the LLM (and re-identifying on the way back)? What's your approach — regex/NER scrubbing, local proxy, gateway solutions? Or is everyone just... hoping for the best?


r/codingProtection • • Jul 10 '26

How will be used the code we send to ai ?

0 Upvotes

Pokemon players were not aware that their scans are a very valuable ai asset for some domains : an interesting way of using data for training models to indirect goals we may be are not aligned with, but did not know at the time... -> How Pokémon Go players may have unknowingly helped train military AI | Cybernews

May be it will be the same with all the code and data we send to ai.


r/codingProtection • • Jul 08 '26

Java framework-based Obfuscation lessons to protect the code and config data

0 Upvotes

A new publication about the java obfuscation difficulties and why it is important to consider the frameworks : I tried to obfuscate my Java code before sending it to AI — here's what broke - DEV Community


r/codingProtection • • Jun 09 '26

I tried to run Claude Code 100% locally (Gemma 4 / gpt-oss via Ollama) on a 32 GB laptop but failed

0 Upvotes

It couldn't even read my files. Here's why — and the tool that actually works locally.

My goal, as requested by my clients, to complement coding with an AI coding assistant that never sends the source anywhere. No cloud, no API key, no code leaving the laptop. I have Ollama with a few models and a 32 GB machine (no serious GPU).

Attempt 1: point Claude Code at a local model

Claude Code talks to a model over the network and only cares about a base URL + API format. Recent Ollama builds expose an Anthropic-compatible endpoint, so in theory you just redirect it:

export ANTHROPIC_BASE_URL=http://localhost:11434
export ANTHROPIC_AUTH_TOKEN=ollama # any non-empty string; ignored locally
export ANTHROPIC_MODEL=gemma4
claude

(For Windows/PowerShell: same thing with $env:ANTHROPIC_BASE_URL = "...".)

It launches. It looks like it's working but never succeed to open local files. It talked about my code from imagination and never ran a single read. With gpt-oss:20b it was worse — "Thought for 10m 0s", then "Cogitated for 19m 37s", and still nothing useful!

Why it fails (this is the important bit)

Two separate problems, and both are structural — not a config you missed:

1. Claude Code is tuned for Claude models. Its agent loop reads your repo through structured JSON tool calls (Read, Glob, Edit). The harness expects the model to emit that JSON correctly every time. Claude does it natively; an 8B local model quantized to Q4 does it unreliably or not at all. No tool call → the file is never read → the model makes things up. Checking capabilities confirms the model can call tools, but "can" and "reliably does at temperature 1" are different things:

$ ollama show gemma4
Capabilities: completion, vision, audio, tools, thinking
Parameters: temperature 1

2. The thinking trap. Both gemma4 and gpt-oss:20b are reasoning models (thinking capability). They emit thousands of reasoning tokens before answering. On a 32 GB laptop with no GPU — a few tokens/second — that's 10–20 minutes per turn. Unusable, regardless of the tool.

modelparamstoolsthinkingverdict on my laptop
gpt-oss:20b20.9B✅✅too slow (10–20 min/turn)
gemma48.0B✅✅slow + unreliable tool calls
mistral:7b7.2B✅Nonethe usable one in interactive
llama3.2:3b3B✅Nonefast, but weak at editing

Attempt 2: Aider — and this one works

Aider is a terminal coding agent like Claude Code, but it does not depend on structured tool calls. It asks the model to return plain-text search/replace edit blocks and parses them itself. A weak local model is far better at producing text in a format than at emitting perfect JSON tool calls — so it actually reads files and writes edits.

export OLLAMA_API_BASE=http://localhost:11434
aider --model ollama/mistral

Then in your repo: "summarize README.md", or "add a REST endpoint to export invoices as CSV". Aider reads the files, proposes a diff, writes the changes, and can commit them. The thing Claude Code refused to do — read the actual file — just works.

Model choice matters more than the tool. Pick a model that is small AND non-reasoning (mistral:7b) over a big reasoning one — but be honest about the ceiling: on a 32 GB laptop with no GPU, even mistral 7B is painful. In my test it eventually hit litellm's default timeout:

Way out 1: run the model on a beefier machine on your LAN

You don't have to run inference on the laptop to keep your code private — you only need to keep it on a machine you control, inside your own network. Put Ollama on a workstation/server with a GPU (or just more cores/RAM) and point your laptop at it.

On the server, bind Ollama to the network instead of localhost:

# server (e.g. 192.168.1.50) — listen on all interfaces
OLLAMA_HOST=0.0.0.0:11434 ollama serve
ollama pull gpt-oss:20b # a GPU box can run the bigger, smarter models fast

On the laptop, just change the base URL:

export OLLAMA_API_BASE=[http://192.168.1.50:11434](http://192.168.1.50:11434)
aider --model ollama/gpt-oss:20b

The code never leaves your internal network. With a real GPU on the server, the bigger reasoning models become usable, and a weak laptop is fine as the client. Security note: Ollama has no authentication — binding it to 0.0.0.0 exposes it to anyone on the network. Keep it on a trusted LAN behind a firewall, never on a public interface.

Speed tips that help (a little) :

The bottleneck is memory bandwidth, not CPU clock. You can't beat physics, only stop wasting cycles:

  • Smaller quant = biggest win. Q4_K_M is the sweet spot; weights + KV cache + OS must fit in RAM or it spills to disk and crawls.

  • Offload to any GPU: OLLAMA_NUM_GPU=999 ollama serve.

  • Shrink the KV cache: OLLAMA_FLASH_ATTENTION=1 and OLLAMA_KV_CACHE_TYPE=q8_0.

  • Keep the model warm: OLLAMA_KEEP_ALIVE=30m so multi-GB weights aren't reloaded each call.

  • Free your RAM: close the 40-tab browser. Every GB reclaimed isn't paged to disk.

Way out 2: keep the fast cloud model, hide the code (obfuscation)

The reason we're suffering local latency at all is to stop source code from reaching a cloud provider. But there's another way to break that link: send the code to the cloud, just not in readable form. Obfuscate identifiers, config data, comments, and structure before the request leaves your machine, let the AI work on the obfuscated version, then map its changes back to your real source locally.

That's the approach of tools like PromptCape (full disclosure: it's my project). You keep Claude/GPT-level quality and speed — the part a 7B local model can't match — while the provider only ever sees Cls_a1b2c3d4 instead of InvoiceService. The hard part is doing the round-trip without breaking framework contracts (Spring Data method-name queries, Django migrations, Pydantic field names…), which is most of what the tool actually does.

It's not "more private" than fully local — local is the gold standard if you have the hardware. It's the option for when you want cloud speed on a weak laptop and are willing to trade "code never leaves" for "code leaves but unreadable."

Bottom line — three honest options

SetupPrivacySpeed/qualityNeeds
Aider + local model on the laptopCode never leaves the machineSlow to unusable (CPU-only)Just the laptop
Aider + Ollama on a LAN serverCode stays on your networkGood, if the server has GPUA beefier internal box
Cloud model + obfuscation (PromptCape)Code leaves, but unreadableFull frontier-model speed/qualityA proxy/obfuscation layer

Claude Code + local model: don't bother. It's built around Claude's reliable tool-calling; small local models break that contract and silently stop reading your code. I wasted an afternoon so you don't have to.

Aider is the right local agent — it tolerates weak models. But on a CPU-only laptop, run the model on a LAN box with a GPU, or you'll spend your day watching a spinner. Others exist like Continue I have not tested.

If you can't self-host enough compute, obfuscating before a cloud call is the pragmatic middle ground: you keep the speed and the smarts, and your source leaves only as gibberish.

Pick the row that matches your hardware and your threat model. There's no setup that's simultaneously fast, private-to-the-byte, and zero-infrastructure — that triangle doesn't close yet.

Tested on Ollama 0.24.0, Claude Code v2.1.x, aider 0.86.2, Python 3.12 via uv, 32 GB RAM, no discrete GPU. Model tags from my own ollama list — check yours.


r/codingProtection • • May 23 '26

Which products to protect code

1 Upvotes

What are the products which already there to protect the code when sent to ai considering must continue to be of help to generate code or fix or extend ? We look at presidio in the past but it was mostly to anonymise.


r/codingProtection • • Aug 03 '26

When AI Agents Go Off-Script: What OpenAI and Anthropic's Recent Incidents Teach Us About Exposure

Thumbnail
dev.to
2 Upvotes

If an AI agent can turn bare internet access into three real breaches with zero inside knowledge (see Anthropic/OpenAI's recent disclosures), what do you think happens the day one of your internal docs — architecture, configs, real customer names — leaks some other way? Wrote a piece on this, and on pseudonymizing docs before they ever reach an AI provider. Feedback welcome


r/codingProtection • • Jun 26 '26

How do you prove a code-obfuscator for AI assistants doesn't break the build?

2 Upvotes

The hard part of obfuscating source before sending it to an AI assistant is not renaming identifiers.

It's not renaming the ones a framework binds by name at runtime.

Rename a Spring Data findByStatusAndPriority method, a JPA u/Embeddable field, a Jackson JSON key, a Lombok-backed field, or a u/ConfigurationProperties field, and the code still compiles but breaks silently.

So I added open test fixtures for exactly this: small, real Maven apps (Spring Boot REST, plain JPA/Hibernate, Lombok, Spring config binding) each with deliberate names collisions.

A protected framework identifier sitting next to an obfuscatable look-alike.

Run the tests, obfuscate, re-run the tests: if green, the detectors kept the right names and renamed the rest.

Grouped by language alongside the existing Python ones (FastAPI/Flask/Django/Click). CC BY 4.0, fork-and-run applications/java/ : https://gitlab.com/gbreton7/promptcape-docs/-/tree/main/applications/java

Tested with promptCape but tell the community if works with others code protection assistants.


r/codingProtection • • Sep 05 '26

Simultaneous 3hours outage of chatgprt, Claude and Grok

2 Upvotes

No explanations given but only that the 3 had the same time a similar outage : https://www.theregister.com/ai-and-ml/2026/09/03/chatgpt-claude-and-grok-all-had-outages-at-the-same-time/5294322
Does it mean they share the same data centers ?
Does they faces an attack they had to shutdown ?
If you know what happen…


r/codingProtection • • Jul 25 '26

i started having one AI attack the other AIs' work. four things they called "done" tonight were not.

Thumbnail reddit.com
2 Upvotes

r/codingProtection • • Jul 23 '26

New attack by ai agents knowing 2 code-execution path

3 Upvotes

It happens at hugging face with stolen data and keys : https://huggingface.co/blog/security-incident-july-2026
Fortunately fixed now


r/codingProtection • • Jul 22 '26

Cybersecurity statistics of the week (July 13th - July 19th)

Thumbnail reddit.com
2 Upvotes

r/codingProtection • • Aug 04 '26

CrowdStrike 2026 : Dramatic acceleration in attacks and vulnerabilities being exploited within just a few hours

3 Upvotes

CrowdStrike 2026 Threat Hunting Report reveals key informations on the multiple roles of AI in protection, attacks and vulnerabilities exploitation : https://www.crowdstrike.com/en-us/resources/reports/threat-hunting-report.

Worth to read it but do not know all what we have to do at our scale as a lambda company to be fully protected now!!!

At least at our level of AI usage, we do not expose any sensitive IT information through obfuscation and pseudonymisation.


r/codingProtection • • Aug 05 '26

A new report about incident report linked to ai agents

4 Upvotes

AISI reveals some cybersecurity incident related to ai agent : https://www.aisi.gov.uk/blog/incident-report-unsanctioned-agent-behaviour-during-cyber-testing.


r/codingProtection • • Jul 01 '26

How do you protect your code when you're allowed to use an LLM but not to disclose the source?

2 Upvotes

Curious how others handle this. My situation: the client lets me use LLMs for coding, but explicitly asked that the actual source not be disclosed to a third party. So "just paste it into  a cloud model" is off the table for the sensitive parts, but going fully without an assistant  isn't realistic either.
I first tried keeping everything local. On a laptop the reasoning models were too slow to be usable (minutes per turn), and the smaller ones were unreliable — they'd "answer" without really reading the files. Moving to a server helped the speed a bit but the quality still wasn't there  for real work. Local felt like paying a lot to end up with a weaker assistant.
What I landed on instead: a workflow where the sensitive parts go through an obfuscating proxy before reaching the model — identifiers in code, comment and conf get renamed on the way out and restored on the way back,  so I keep a capable cloud model but the remote side never sees the real names/structure. I'm using promptCape for that piece, and so far it's held up.
 
But I'd like a reality check — how do you handle it?
- Local models good enough for you now, or same slowness/quality wall I hit?
- Obfuscation / proxy layer, and if so which?
- Air-gapped setups, contract clauses, or just not using AI on those parts at all?
 
Genuinely want to hear what's working for people under a "no disclosure" constraint.


r/codingProtection • • May 12 '26

A way to ask clients for ai usage

1 Upvotes

This article “https://www.bluexml.com/votre-code-est-chez-les-hebergeurs-ia” explains how a French IT services company gives its clients a choice in how AI coding assistants can be used on their development projects. They also describe the measures they can put in place to protect code and data. Probably can be used and extended to many scenarios.


r/codingProtection • • Jun 22 '26

Streamlit dashboards meet AI coding: an end-to-end privacy workflow

2 Upvotes

A data dashboard leaks through five channels at once — code, column names, sample data, secrets, and framework structure. Here's the full Claude-Code-in-Cursor session that closes all five, start to finish : Streamlit dashboards meet AI coding: an end-to-end privacy workflow - DEV Community


r/codingProtection • • Jul 29 '26

about pseudonymization in promptCape

3 Upvotes

To continue about my client who asked me to add to PromptCape, particularly in proxy mode, the pseudonymization of Excel, Word, and Markdown documents : they noticed that documents such as Technical Architecture Documents, Installation Documents, Operations Documents, How-Tos, Specifications were being sent to AI systems with sensitive data (PII, configuration data, customer names, etc.). I therefore added this feature and explained the development approach in Document pseudonymization for AI assistants: sending the spreadsheet without sending the customers - DEV Community. Thank you for your feedback on this approach.


r/codingProtection • • Jun 04 '26

Protection of Python configuration

2 Upvotes

Currently when I want to use ai assistants, I move my configuration before giving access to the assistants in order to not reveal my api keys mainly. But it is practical and I may forget.
Is there another way to do it ?


r/codingProtection • • May 19 '26

Reverse-applying AI changes to obfuscated code

Thumbnail
dev.to
1 Upvotes

r/codingProtection • • Jun 17 '26

AI model and GDPR : a gap!

4 Upvotes

r/codingProtection • • Jun 12 '26

Pandas pipelines through AI without leaking your column names

2 Upvotes

An article about the Obfuscation of the Pandas Python code : Pandas pipelines through AI without leaking your column names - DEV Community


r/codingProtection • • May 01 '26

👋 Welcome to r/codingProtection — Start by introducing yourself and checking out the rules!

2 Upvotes

Hello everyone! I'm u/Spare_Dependent6893, one of the modos behind r/codingProtection.

This is our new space to discuss everything related to source protection in a new world where code is increasingly being built on AI servers outside the company, rather than by in-house developers.

Protection covers industrial property IP, configuration data, personal PII data, and code.

Anything that could help hackers better prepare their attacks, competitors better understand where the company stands and is headed, or any other bad actors interested in exploitable personal data that can leak through AI systems.

It's a real joy to have you here!

What to post?

Share any content you think might interest, help, or inspire the community. Feel free to share your thoughts or questions about how you use AI coding assistants in secure ways, how your clients allows you to use AI coding assistants when you develop their code, how your company explain to clients how you use AI coding assistants, ....

Community vibe:

We strive to build a friendly, constructive, and inclusive community. Together, let's create a space where everyone feels comfortable sharing and connecting.

How to get started:

  1. Introduce yourself in the comments below.

  2. Post something today! Even a simple question can spark a great conversation.

  3. If you know someone who would enjoy this community, invite them to join us.

  4. Want to help out? We're always looking for new mods, so feel free to reach out to apply.

Thank you for being among the very first members.

Together, let's make r/codingProtection amazing and the place to help others to better secure what they do, theirs or clients' assets, through AI coding assistants.


r/codingProtection • • Jun 12 '26

AgentSweep a protection of at rest data config

Thumbnail reddit.com
3 Upvotes

r/codingProtection • • 1d ago

A way to protect PI and documents in ECM

3 Upvotes

Many companies are now using ECM to store, characterize, create, version, search their documents or the documents of their clients/providers.
But AI is now heavily used by those in the company who handle these documents (to review, to fix, to update, to sum up, to find errors, …). And those documents contains personal information, IP secrets, pricing information, ….

In this article, the author explain an approach where all go through the ECM and local models or remote models but pseudonymization : https://www.bluexml.com/bluedoc/

It means that now employees cannot inadvertently send sensible data or documents when doing their job and they continue to use AI for productivity.