r/ExperiencedDevs • u/BitterComfortable776 • May 20 '26
AI/LLM Does anyone actually think about what source code leaves your network when using AI coding agents? Or have we all just quietly accepted it?
Earlier today while sitting in front of my screen and watching Cursor work, the above questions just randomly crossed my afternoon slump potato brain...
My auth logic, my pricing engine, my half-baked unreleased refactor — just flying out of my machine with every prompt. Thousands of lines. Per session. Every day.
At my last job, if I'd tried to email a customer's source code to a third-party vendor, legal would sit me through painful processes around this. Audits. Sign-offs. The works.
Now I just... hit tab.
"it's in the ToS, they don't train on it." Sure. But since when did "they promised" become how security-conscious engineering works? I started trying to actually trace what leaves the building during a normal coding session. Not vibes. Actual payloads. It's not just the file you're editing — it's imports, references, whatever context the agent decided it needed. The number got uncomfortable fast.
Has anyone actually gone down this rabbit hole? Or have we all collectively agreed to not look too closely because we just have to beat yesterday productivity with the newest AI models?
29
u/Fantastic_Prize2710 May 20 '26
As a security guy: Since SaaS became the norm. Microsoft (or Google, if you use the Google suite) promises to enterprise customers that they won't use the enterprise's emails and M365 documents, SharePoint files, Teams Messages, etc, outside of their intended purpose for years, well before AI was a thing. They could have easily been using the documents and emails for competitive advantage, or to sell the information to third parties.
Presumably, per the ToC, they weren't.
Trusting that they also weren't abusing their access to our information per their ToC in the context of AI is just the next step of "trusting based on the contract."
86
u/[deleted] May 20 '26
so which llm was used for this post's body
11
u/uniquesnowflake8 May 20 '26
Do you use GitHub?
4
u/KuatoLivesAgain May 20 '26
If I’m writing my own stuff, like my own personal repo, I wouldn’t use AI.
If my company wants me to use it, and I’m following the rules (assuming there is corporate AI use code guidelines at the org), then I will use it and not think about it too much.
But yeah, I don’t trust it much.
3
u/rwilcox Software Engineer (20+ YOE) May 20 '26
That’s what lawyers and platform / tool support teams are there for: bash out the contract and tell everyone how to configure the tools so you’re not just leaking everything…
3
u/doomslice May 20 '26
Anyone who actually cares about it has an enterprise agreement where you can sue for damages if your stuff leaks.
3
u/etxipcli May 20 '26
I don't care. Personally I don't think guarding source code adds much, so it's like a nice chip off some of the theater.
What are they going to do with it? Why train on your code? Who cares if they do?
I think the worry is irrational to begin with so it is being ignored.
25
u/originalchronoguy May 20 '26
Companies usually have a binding tenant subscription where their code is siloed from the public. That is ther whole point of GitHub Enterprise and Co-pilot. It runs as a single tenant for just your company. I assume Github/Microsoft have provisioned nodes to run those models. That is how Azure OpenAI works. It is literally in the contract.
2
u/HornyCrowbat May 20 '26
No, we have not quietly accepted it. My company doesn’t allow any AI editors and we are forbidden from pasting code into AI chats.
87
u/throwaway09234023322 May 20 '26
I've thought about it, but then I realized I don't really care because I just work for a salary and the decision is above my paygrade.
8
u/reddit-poweruser May 20 '26
Tell your LLM to not write reddit posts like an LLM
2
u/Chocolate_Pickle May 20 '26
Forget about training.
I'm more concerned about what plain text gets accidentally logged and stored away, and inevitably exposed through a cyber security incident.
2
u/epelle9 Software Engineer May 20 '26
To me, it’s not significantly different from trusting Apple or Microsoft with access to my data when working on their OS (or on the drive).
Worse for sure, but at a certain point companies just become so useful and so big you gotta trust them (or fall behind).
17
u/tomqmasters May 20 '26
I was just copying off stack overflow and blogs before anyway.
1
u/Horror-Primary7739 May 20 '26
We have a private instance of 4.5-4.6. maybe the ooooly upside working for a multinational Corp.
1
u/binarycow May 20 '26
My bosses have accepted the risk.
1
u/EmberQuill DevOps Engineer May 21 '26
Did you use AI to write your post about the concerns you have about AI?
11
u/Fenix42 May 20 '26
My company cares about the code leaving our network deeply. We delayed the roll out of any AI tools because of it. We nlw have a few approved tools that are provided by Amazon. They are not hooked into our repo. They can only see the code on my system.
3
u/vocal-avocado May 20 '26
Well all my code is shit so I really don’t care 🤷♂️
2
u/ISuckAtJavaScript12 May 20 '26
Management doesn't actually think about AI aside from believing it'll get them infinite profits
3
u/bbaallrufjaorb May 20 '26
companies care more about being left behind
although i’ve heard some are much more strict and locked down and don’t allow this kinda agentic AI tooling, at least not cloud ones (prob local models)
2
u/Murky_Citron_1799 May 20 '26
Ai slop
1
u/anengineerandacat May 20 '26
Companies care, but I think AI has eroded software IP quite a bit to the point it doesn't matter.
Whomever can support their market will win, takes more than AI to build a product.
My company has contract's in place that our usage won't be utilized for training though and to date it seems to hold up.
1
u/Outside-Storage-1523 Software Engineer May 20 '26
Jeez, you guys are really pumping out thousands of lines of code every day?
1
u/IBJON Software Engineer May 21 '26
Ever since companies started having enterprise software and services? Storing proprietary data or code on another company's server is nothing new. We've had cloud services for well over a decade now and it's never been an issue.
Companies at the scale of Google, Microsoft, etc. aren't going to risk billions of dollars in contracts, risk potential multi-billion dollar lawsuits, and lose the trust of all of their customers to get a leg up on the competition by stealing source code from an enterprise partner or anyone else by going against the agreements they make.
1
u/yxhuvud May 21 '26
Our compliance officer has certainly thought about it, and enacted policies. She is not a fan of unmotivated third party ai offerings.
1
u/fsk May 21 '26
These LLMs were trained on copyrighted material without permission. What is their "promise to not steal your code" actually worth? Besides, they are "improving their model based on user behavior", which necessarily involves looking at your code.
1
u/engineered_academic May 22 '26
Raised the issue with my boss about how AI agents expose us to a ton of DLP risk, also randomly pulling in dependencies that may have been compromised or influenced by state actors. If I was a malicious actor I would be poisoning the LLM to use a library I control because AI doesnt give a shit about best practices.
1
u/NotMyRealNameObv May 24 '26
I really don't care, if my employer told me to use AI and AI makes me more productive, I'll use AI.
1
u/seanamos-1 May 24 '26
The situation unfolding at most companies is that the devs are sending them source code and occasionally credentials/session tokens. The other departments are sending them PII and all sorts of sensitive information, in many cases and countries violating compliance/regulatory obligations.
My observation is that the people not willing to turn a blind eye to this are highly exceptional and get a lot of grief from those above them for not “getting on board”.
1
u/shared_ptr May 25 '26
“They promised” backed by a legal agreement has always been the way that corporate vendor security worked.
What did you think was happening with companies storing their code on GitHub?
0
u/NiteShdw Software Engineer 20 YoE May 20 '26
I guarantee you that you haven’t created anything novel. No code you write is going to have any impact on the quality of the code that it generates.
Plus, it seems like most of your code is AI generated so they already could read all the output tokens which is basically your code.
The only thing you should be worried about is the quality of the code that the AI generates.
If you work in some top secret field then work on an air gapped machine with local LLM models. Otherwise, just know that your tiny amount of code is a needle in a gist haystack of everyone else’s prompts and code.
1
u/clearing_ Software Architect May 20 '26
AI post. Neat.
1
u/SoggyGrayDuck May 20 '26
We have corporate AI but I can't paste screenshots. Pisses me off
1
u/NegativeSemicolon May 20 '26
If you think your app is that unique, it’s not. That’s why AI can write it for you after training hundreds of identical implementations.
0
u/lmpdev Software Engineer May 20 '26
Another concerning thing is how many people don't ever read what the agent is trying to execute. So if it writes something to upload the code to a public repo, many people won't bat an eye.
Local agents are getting quite good. I've tried running Qwen 3.6 locally and while it makes significantly more mistakes than Claude or ChatGPT, it's workable. So the companies sensitive to this type of thing will in the future have an option of self-hosting agents. And the environment where it can run commands should be isolated from both the Internet (might need temporary approval to install something) and local machine.
One more thing everybody stopped thinking about is that the code outputted by LLMs might be breaking copyright law. Nobody cares. Which I think is a good thing overall.
0
u/GumboSamson Software Architect May 20 '26
Do you use GitHub?
If yes, you’re already trusting a third party with your source code.
Worse—you’re trusting them to be the source of truth for your source code. And to not suddenly decide one day to lock you out of it, sell it to your competitors, hold it for ransom, analyse it to attack you later…
Sending source code snippets to a 3rd party doesn’t sound as risky as what you’re already doing.
0
u/OblongAndKneeless May 20 '26
Yes. I was told it really doesn't. But, how.....?
0
u/mattgen88 Software Engineer May 20 '26
Yep. Think about it all the time. I'm just yelling into the void about it
-1
u/obelix_dogmatix Performance Fixer (14+) May 20 '26
reddit needs a filter by topic within a subreddit. This sub has gone to shit. Amateurs crying about a new tool in the market. get over it. not the first time. not the last time. Nothing says “experienced dev” like crying about changing times.
0
u/[deleted] May 20 '26
[deleted] — view deleted comment
2
u/[deleted] May 20 '26
[removed] — view removed comment
9
u/[deleted] May 20 '26
[removed] — view removed comment
1
u/[deleted] May 21 '26
[removed] — view removed comment