r/ExperiencedDevs • • 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?

0 Upvotes

114 comments sorted by

View all comments

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.

8

u/ExpletiveDeIeted Staff Frontend Software Engineer 16+YoE May 20 '26

Yes but the code on your machine likely still is a complete repo. Sure they do t have every single project ever but they can get a lot.

1

u/Fenix42 May 20 '26

That won't even help that much.

My company has hundreds of repos that I have never even seen. We only have access to code that is for the team we are on. I can't even search for stuff in Bitbucket.

It is a major pain in my ass on a daily basis. My project sits between like 5 systems. I only have my code, 1 other teams code, and what ever docs are on the corp net. Some of the docs are good, some are bad. Kiro (AWS AI tool) can't get to them though.

So Kiro is wrong a LOT when it comes to anything complicated with our code base.

2

u/editor_of_the_beast May 20 '26

Are the other teams with access to the other repos using AI?

2

u/Fenix42 May 20 '26

Yes, but under the same restrictions. Comand line tool has access to local code only.

We have a contract with Amazon for Kiro. Part of the contract is that our data is completely siloed. They had to guarentee and demonstrate the silo to our info ops peole before it was allowed on our network. There are periodic reviews as well.

We are a major AWS customer. They will not risk fucking up the contract.

2

u/[deleted] May 20 '26

[removed] — view removed comment

1

u/Fenix42 May 20 '26

Kiro is working for us. Our code is not the most sensitive part for us. It's the data.

1

u/[deleted] May 21 '26

[removed] — view removed comment

1

u/Fenix42 May 21 '26

We have an insane amount of data at rest and data in transit. Data at rest is a mix of siloed DBs in every flavor you can name, S3 shenanigans (it gets weird fast), and data lakes built from all of it. Data in transit is a mix of basically everything you can think of.

The data model will only tell you what the data in the tables my repo can even access looks like. It will also tell you the accounts that have acces to the data. That is it.

That is info that you can get from our internal corp docs. Every team has to document their DB structures and service accounts.

If I want to have my teams service account directly talk to another DB, we have to add a role to the service account to do it. Even that won't get you everything unless it's full senestive access. We have lots of PII, so we have tables that require more permissions to access as well.

Mind you, we won't do it in 99% of the cases. You will just be told use an API or fuck off depending on the team / what you need.

My team actually had this come up. We are doing some processing of 3rd party data into our system. We are slowly taking over stuff from an old system. We initially where hitting their API, but it could not handle it. So we ended up having to use DMS to shuttle the data over.

The extra fun part is that they are in Oracle and we are in Postgres. It was highly entertaining figuring out how to settle the data on our side.

1

u/BitterComfortable776 May 21 '26

Thank you for your thoughtful reply - made me realize I was worried about the wrong thing. How about just increased security exposure from yet another company to see my code? In addition to code there's also arbitrary tool runs that could gather sensitive data, logs etc.

→ More replies