TypePilot: Securing LLM-Generated Code with the Scala Type System
Large language models (LLMs) are increasingly used for code generation but still often introduce subtle vulnerabilities. This poses serious risks in security-critical contexts, where system failures can be catastrophic. We present TypePilot, an agentic AI framework that leverages the Scala type system to guide and verify LLM-generated code. By embedding type-driven constraints into the generation process, TypePilot mitigates issues such as input validation flaws and injection vulnerabilities. Our results show that structured, type-focused pipelines enhance the trustworthiness of automated code generation in high-assurance domains.
About the speaker
Alexander Sternfeld
Read more …
