# Beyond the Prompt: Jailbreaking Function-Calling LLMs via Simulated Moderation Traces

DevFeed: [Beyond the Prompt: Jailbreaking Function-Calling LLMs via Simulated Moderation Traces](<https://devfeed.tech/articles/beyond-the-prompt-jailbreaking-function-calling-llms-via-simulated-moderation-traces-118241.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.00481>)

Author: Junlong Liu, Haobo Wang, Weiqi Luo, Xiaojun Jia

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [function calling](<https://devfeed.tech/topics/function-calling.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [adversarial](<https://devfeed.tech/tags/adversarial.md>), [attack](<https://devfeed.tech/tags/attack.md>), [attack-surface](<https://devfeed.tech/tags/attack-surface.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [auditing](<https://devfeed.tech/tags/auditing.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [context](<https://devfeed.tech/tags/context.md>), [control](<https://devfeed.tech/tags/control.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [data](<https://devfeed.tech/tags/data.md>), [developer](<https://devfeed.tech/tags/developer.md>), [environments](<https://devfeed.tech/tags/environments.md>), [evaluations](<https://devfeed.tech/tags/evaluations.md>), [execution](<https://devfeed.tech/tags/execution.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [function-calling](<https://devfeed.tech/tags/function-calling.md>), [llms](<https://devfeed.tech/tags/llms.md>), [moderation](<https://devfeed.tech/tags/moderation.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [traces](<https://devfeed.tech/tags/traces.md>)

## AI overview

The abstract identifies shared context in stateful function-calling systems as a structural jailbreak risk: schemas, arguments, and untrusted tool outputs can blur trusted and untrusted boundaries across turns. Its black-box SMT framework simulates a moderation audit, then treats refusals as validation failures and refines the interaction until harmful outputs occur. The authors report that SMT achieved the highest average attack success rate and HarmScore across five commercial LLM providers and two safety benchmarks, using nearly minimal queries and outperforming existing baselines. They argue prompt-level sanitization is insufficient and call for context-aware validation of schemas, arguments, tool outputs, and accumulated conversation state. These are abstract-level reported results; no benchmark details or numerical measurements are provided here.

## Source excerpt

arXiv:2607.00481v2 Announce Type: replace-cross Abstract: Jailbreak attacks remain a critical threat to the safe deployment of large language models (LLMs). While prior work has primarily studied attacks and defenses at the prompt level, we show that this prompt-centric paradigm overlooks a structural vulnerability in stateful, function-calling environments. In such applications, developer-defined schemas, structured arguments, and untrusted tool outputs are interleaved into a single shared model context. This architecture expands the attack surface by blurring the boundary between trusted control logic and untrusted data, allowing adversarial intent to be distributed across a multi-turn execution path. We exploit this architectural flaw through SMT, a black-box attack framework based on Simulated Moderation Traces. Departing from purely prompt-based interactions, SMT constructs a multi-turn trajectory that simulates a legitimate moderation-auditing workflow. Within this trajectory, a fabricated moderation frame leverages red-team testing as a pretext to elicit harmful generations. The subsequent validation feedback treats safety refusals as execution failures, prompting refinements that gradually weaken the model's safety constraints and ultimately trigger harmful outputs. Extensive empirical evaluations on prominent commercial LLMs from five different providers across two standardized safety benchmarks show that SMT consistently achieves the highest average attack success rate and HarmScore while requiring a near-minimal number of queries, substantially outperforming existing baselines. These findings demonstrate that prompt-level sanitization alone is fundamentally insufficient for defending tool-enabled LLM systems and highlight the urgent need for context-aware validation across schemas, arguments, tool outputs, and accumulated conversation state. The code is available at https://github.com/liujlong27/SMT.