News for hackers. Stuff that matters.
Re:Ask HN: How are you securing LLM code agents? by wnsdy95 on Sunday March 22, 2026 @08:28AM (#47476825)
What do you mean by securing? Does this mean strictly control AI Agent to behave safely? Or make your data not to get exposed by chatting or so?
Re:Ask HN: How are you securing LLM code agents? by arty_prof on Sunday March 22, 2026 @10:35AM (#47477943)
Best thing you can do is sandbox them, always check what they want to change with config file (package.json).

Restrict any db operations, for example restrict to run migrations with prisma orm.

Also restrict access to .env or your project configuration with credentials even for dev environment.

Re:Ask HN: How are you securing LLM code agents? by wanglet33 on Sunday March 22, 2026 @05:24PM (#47482308)
The sandbox approach mentioned by @arty_prof is essential, but there’s also the 'Data Leakage' side of the coin. If an LLM agent has access to your local filesystem to 'help' with code, it essentially has a map of your credentials. Aside from Dockerizing everything, are people using localized, air-gapped LLMs for sensitive security logic to prevent the 'Phone Home' risk entirely? Curious if anyone has successfully integrated something like Ollama into their dev-flow for this specific reason.
Re:Ask HN: How are you securing LLM code agents? by piercer on Sunday March 22, 2026 @09:41PM (#47484490)
Built something that tackles this from the local side - VeilPiercer runs 6 agents that score each other's outputs every 35 seconds on your own hardware via Ollama. Score history gets written to memory so the swarm actually learns what good output looks like over time. One-time $197, no cloud dependencies. Happy to share more about how the peer-scoring works if useful.