Evaluating Safety Embedding Prefiltering for Analyzing Millions of LLM Agent Social Network Messages for Security and Safety Harms
Paul-Ioan Clotan, Ioana Branescu, Gabriela Adelina Gherghe, Mihai Dascalu, Traian Rebedea
Key points
From the paper's conclusion- We annotate 10,000 Moltbook posts and comments with a frontier LLM judge, assigning a binary safety verdict, severity level, malicious intent taxonomy labels, and Open Worldwide Application Security Project (OWASP) AI risk codes.
Abstract
Agentic social networks expose autonomous agents to large volumes of potentially malicious content, including prompt injection, social engineering, and unsafe execution requests. Large Language Model (LLM) judges can detect such content, but applying them at platform scale is expensive. We study the extent to which lightweight embedding-based prefilters can reduce this cost while retaining most of the judge’s unsafe predictions. We annotate 10,000 Moltbook posts and comments with a frontier LLM judge, assigning a binary safety verdict, severity level, malicious intent taxonomy labels, and Open Worldwide Application Security Project (OWASP) AI risk codes. Of the LLM-annotated samples, 9.2% were unsafe at severity 3 or above. Two human annotators with high inter-rater agreement (Cohen’s κ=0.823) exhibited moderate agreement between their adjudicated labels and the LLM ratings (κ=0.578). We compare centroid-based cosine prefilters over 3 off-the-shelf encoders against a supervised trained classifier. Reducing the input window size raises average precision by up to 6.3 percentage points. At an operating point calibrated to 0.80 recall, the projected cost of scanning 787,226 messages falls from $7085 by 49.9% (MiniLM-L12-v2), 55.6% (BGE-M3), and 65.6% (trained classifier), while MiniLM runs roughly 32 times faster than the classifier. Prefiltering can therefore make frontier-judge screening affordable at scale, although jailbreak content remains the hardest category to retrieve.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Sifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive FilteringProceedings of the ACM on Software Engineering · 2026
- AgentFlow: A Flow-Centric Policy Language and Framework for Securing LLM Agent SystemsarXiv · 2026
- AgentLens: Graph-guided Security Auditing for LLM-based AgentsarXiv · 2026
- Jev as an LLM Safety Guardrail: An Empirical Study of Input Filtering, Selective Output Review, and Over-RefusalarXiv · 2026
- Then there is prompt injection, a malicious email, ...: The Wild Wide West of OpenClaw Agentic System SecurityarXiv · 2026
- CredLeakBench: Evaluating Credential Leakage and Recovery in LLM AgentsarXiv · 2026