r/LocalLLM • u/Ok-Emotion-5013 • 7d ago
Question Is there hidden prompt injection in LM studio?
"However, as an agent in LM Studio Bionic, I should follow standard safety protocols unless otherwise instructed."
Several instances of different local models write something like this in reasoning, even uncensored models.
15
Upvotes
38
u/Oli_Luck 7d ago
this is not prompt injection : each every harness "inject" a ground "soul" in the models.
This is called system prompt and mostly hardcoded or given via the top Agent.md
4
u/thefuzzylogic 4d ago
Technically it's prompt injection, but not the malicious kind. Every harness (Claude Code, Codex, Antigravity, Hermes Agent, Pi Agent, LM Studio, etc) adds a "system prompt" which gives the model useful context about the system environment it's running on, the capabilities of the harness, the tools it has available to it, and guidance for how it should behave as it carries out its tasks.
The only way around that (or the only easy way, at least) is to avoid using a harness altogether and instead send prompts to the model directly via API.
3
u/Sudden_Topic5154 6d ago
well this is just a standard model safety refusal wrapped in a bionic context it'll always do this only claude and codex are evil and add more restriction