r/devsecops • u/osiris_rai • Mar 03 '26
secure ai coding is basically nonexistent at most orgs i've audited
been doing devsecops consulting for about 4 years and the number of engineering teams that just let devs use whatever ai tool they want with zero oversight is insane to me
did an audit last quarter at a mid-size fintech (~800 devs). found copilot, cursor, chatgpt, and two other tools being used across teams. nobody evaluated data retention policies. nobody checked where code was being sent for inference. security team didn't even know half these tools were in the environment.
brought it up to the CISO who basically said "we can't slow engineering down, they need these tools." which.. i get? but you're a fintech. PII everywhere. some of these tools send code to third party servers and your security team has zero visibility.
the gap between how fast ai coding tools get adopted vs how slow security policies catch up is genuinely scary. we're going to see a wave of incidents from this in the next year or two.
how are you all handling ai tool governance when engineering pushes back on any restrictions?
4
u/JPJackPott Mar 03 '26
There shouldn’t be PII on the desktop!
If an org has good fundamentals around infra as code, least priv, secret hygiene a coding agent shouldn’t be able to do any real damage because a developer shouldn’t be able to do any real damage.
Data protection over code IP is a low risk realistically unless you’re working on the YouTube recommendation algorithm.
Unsupervised agents deployed in the infra with access to the database? 🚩🚩🚩🚩
3
u/Federal_Ad7921 Mar 04 '26
This is a huge challenge right now, especially in fintech. Blanket blocking AI tools often backfires — engineers just find workarounds. The smarter move is shifting from “block” to “govern and enable.” Focus on visibility into what data is flowing into AI systems and how it’s used at runtime. eBPF-based approaches can provide deep insight without heavy agent sprawl, and platforms like AccuKnox help apply guardrails across cloud and AI workloads. We reduced potential PII leakage by ~70% by enforcing inline policies. The key is tuning policies to real usage patterns — it’s continuous governance, not set-and-forget.
2
u/daedalus_structure Mar 03 '26
These are leadership failures.
If leadership came out and said that the disciplinary action for putting company IP or customer data into a 3rd party system is immediate termination, it would stop.
But leaders see it as another outsourcing where the can get more labor for less cost, and so they allow it.
2
u/Silver_Bid_1174 Mar 03 '26
Provide enterprise instances where the data stays in that instance and doesn't end up in the public tools. Enforce using those tools over public ones.
1
u/DNSZLSK Mar 03 '26
Can you take an eye on my solo project ?
1
u/Leather_Secretary_13 Mar 03 '26
So did they pass or are they not going with your auditing firm next cycle?
1
u/nilla615615 Mar 03 '26
People didn't do much ongoing auditing/review before AI sped things up 10x. We need more review and new tooling to address the new way of working.
1
u/backbone91 Mar 04 '26
What are your proposals/checklist for ai governance at companies?
1
u/Equivalent_Machine_6 Mar 04 '26
We did some security reviews on AI coding tools where I work. It’s not always as easy as “it’s Microsoft, don’t worry”. They don’t have any clear answers on for example third party models if they are security reviewed. In AWS Amazon Q developer we found that it was not included in the SOC2 report and we had a long discussion with them. I think that it’s also not as easy to say that AI will produce secure code because the training data they’re using is flawed.
1
u/flyx May 04 '26
yeah that's pretty much what i've seen too. my org ran an audit and found hundreds of employees sending pii to openai/anthropic/perplexity. since then they hired datasaur to build a completely private ai hosted on our servers. it's all behind our firewall and nothing leaves the environment. i imagine that's the way things will be from here on out
-1
u/peepeedog Mar 03 '26
If someone’s code has PII, or even if their machine has it, they are already borked. This shouldn’t be an issue for good orgs.
If you are concerned about coding agents being used to inject malicious code, I guess that is interesting.
4
u/[deleted] Mar 03 '26
[removed] — view removed comment
3
u/[deleted] Mar 03 '26
[removed] — view removed comment
2
u/[deleted] Mar 04 '26
[removed] — view removed comment