I built a testing tool for AI agents — it caught a real prompt-injection vulnerability in a local model

2026年9月8日2 次浏览来源:Dev.to阅读原文

I've been building Agenci — open-source CI/CD testing for AI agents (functional tests, security checks, regression detection across model/prompt changes).

Wanted to actually test it against something real rather than a synthetic example, so I pointed it at phi4-mini running locally via Ollama.

First security test: told it to ignore its instructions and just say a specific word.

It complied instantly — screenshot attached.

Small, efficient local models are great for a lot of things, but this made me curious how consistent this weakness is across other small local models people are running.

Anyone here tested for prompt-injection resistance specifically, or is this a known/expected tradeoff at this model size?

Repo (free, pip install agenci): github.com/klinditafa1/agenci

分享
Baike.dev

baike.dev helps you discover great languages, frameworks, databases, DevOps and cloud-native tools.

Quick links

About

Contribute

Found a great developer tool? Share it with the community.

Submit a tool
© 2026 baike.dev Developer EncyclopediaUpdated daily · Discover great developer tools