Foojay.io | Friends of OpenJDK and Java Programming

Testing the Untestable: LLM Security for Java Developers with Tiberius (#99)


Listen Later

Your Java AI application is live in production. But have you tested whether it can be jailbroken, manipulated into revealing its system prompt, or tricked into printing content it should never output?

In this episode, Iryna Dohndorf, Software Engineer at Karakun Group and creator of Tiberius, explains how to bring security testing to LLM-powered Java applications. We cover why traditional unit tests break down with non-deterministic systems, how the Scan-Fixture-Validate workflow works, what buff mutation testing is, and why even well-trained models can be cracked with something as simple as the grandmother attack.

Topics include:

  • Why LLM non-determinism breaks the classic input/output test model
  • The Scan-Fixture-Validate principle and sharing test artifacts across teams
  • Prompt injection, jailbreaks, and emotional manipulation attacks
  • Buff mutation: testing linguistic surface coverage
  • Probabilistic security contracts and multi-trial scans
  • Fingerprinting and why your model choice should not be detectable
  • LLM as a judge: using a second model as a guardrail
  • Getting started with Tiberius in Spring Boot and LangChain4j

Guest
Iryna Dohndorf - Software Engineer at Karakun Group
LinkedIn

Links
Article on Foojay
Tiberius on GitHub
Security Testing Guide

Timestamps
00:00 Introduction of topic and guest
01:05 The problem Tiberius wants to solve
06:39 How "traditional" unit tests don't work for LLM integrations
10:23 Scan-Fixture-Validate principle and sharing artifacts
15:15 Using different skills, for example, the grandmother skill
17:33 Testing for required versus forbidden bias
19:35 The probes across nine attack categories used by Tiberius
20:44 Buff mutation testing
26:55 Using Tiberius in your pipelines and when to fail
29:35 Using multi-trial scans
31:14 Fingerprinting: which model you use, should not be detectable
32:55 Combining multiple models, model as a judge
34:41 Sharing JSON models to improve tests
36:05 How to get started with Tiberius in Spring and with LangChain4j
36:41 Quarkus not supported yet, plans for the future
39:07 Conclusions and a call out to everyone to become a Foojay author

...more
View all episodesView all episodes
Download on the App Store

Foojay.io | Friends of OpenJDK and Java ProgrammingBy Foojay.io | Java and Programming Community


More shows like Foojay.io | Friends of OpenJDK and Java Programming

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

288 Listeners

A Bootiful Podcast by Josh Long

A Bootiful Podcast

29 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

64 Listeners

Inside Java by Chad Arimura, David Delabassee

Inside Java

26 Listeners