Skip to content

Interview question · How LLM Systems Work

What is a system prompt for, why do attackers target it, and why is it not a security boundary?

Three parts, each short. The answer that scores ends with a design rule about what may and may not live in a prompt.

easyEssentialNewUpdated Nov 2026

TL;DR: A system prompt provides standing behavioral guidance under the interface’s instruction scheme. Protect who may configure it, minimize sensitive contents and keep credentials elsewhere. Required data-access and action permissions need independent enforcement; neither a hidden prompt nor observed obedience establishes that boundary.

How to approach it

Explain the prompt’s useful role before its limits. Name the information an unauthorized reader could obtain and the operation the application must prevent. Separate prompt confidentiality, instruction following and resource authorization rather than calling them one control.

A strong answer

A system prompt can describe the assistant’s purpose, tone, task procedure and how to use available capabilities. Some interfaces distinguish system and developer instructions or use different supported roles. Review the actual integration and protect the configuration path so an ordinary caller cannot replace deployment guidance.

That structural protection is worthwhile. It does not guarantee that the model always interprets lower-trust documents as intended, and it does not authenticate a principal or evaluate the current ownership of a booking. The context and template concept distinguishes these layers.

In the original fictional makerspace, an assistant may explain a member’s booking and propose a permitted change. Staff-only records must stay inaccessible. Instructions can teach the assistant to ask for clarification or explain a denial; the booking and data services enforce which resources the member and current task may reach.

LLM SYSTEMS · SECURITY REVIEW
A prompt describes the task; services enforce the consequence

Task guidance

Purpose, style and expected workflow

Model response

Content or proposed operation

Service checks

Identity, resource and task authority

Actual outcome

Permitted reader or verified effect

1/2

Keep credentials at the executor

The model can name a permitted operation without receiving the credential that executes it. Limit the credential and keep the resource policy in the enforcing service.

There are two different reasons someone may seek the standing prompt. They may try to influence behavior contrary to the task, or obtain information contained in the instructions. A disclosed workflow description is not automatically the same severity as a disclosed credential. Assess what information became available, to whom, and whether the application’s resource boundary was also crossed.

Keep service credentials in protected execution infrastructure, scoped to the operation that needs them. The model can propose a registered tool without seeing its secret. If a credential has been placed in context and may have been exposed, follow the appropriate response and replacement process; editing the prompt does not revoke an exposed credential.

Minimize other sensitive configuration too. “Design for possible prompt disclosure” is a failure-tolerance assumption, not permission to publish confidential material. Some workflow details may be necessary; others add avoidable exposure. Trace the actual readers, logs and stored context rather than relying on the fact that the chat UI hides a role.

RequirementAppropriate implementation
Explain booking changes clearlyTested task guidance and usable response design
Keep another member’s booking inaccessibleTrusted identity and object access at the service
Limit this task to an explanationTask-scoped execution permissions, even if the user has broader rights
Keep a required confirmation validA record bound to the actual action and relevant parameters
Protect a service credentialRestricted storage and execution path outside model context

The OWASP authorization guidance grounds the distinction between authenticated identity and permission for an operation. Applying it here means checking the requested resource and task using trusted state, not accepting the model’s assertion that a request is allowed.

Test the application controls independently. In an authorized isolated fixture, supply permitted and disallowed proposals directly to the handler, then exercise the full workflow with synthetic source data. A model refusal alone cannot establish that a backend check exists. Conversely, a backend denial should be explained accurately rather than followed by a claim that the operation succeeded.

Prompt changes still deserve evaluation. Measure useful completions, inappropriate refusals and other relevant behavior under the actual assembly and configuration. If the task involves harms that cannot be reduced to a simple permission rule, define the applicable policy and its observation limits. Do not promise that placing a classifier in code makes every judgment deterministic or correct.

What interviewers probe next

  • “Should we remove rules from the prompt?” Keep useful guidance and independently enforce the required permissions at their real boundaries.
  • “Is every internal tool name a secret?” No. Assess its sensitivity and audience; minimize needless disclosure without inventing a credential compromise.
  • “How do we know the backend works if the model always refuses?” Test it directly with authorized invalid and valid proposals, then verify the complete path.

What if?

What if · interview follow-ups

Hold your answer as the constraints change

A fictional makerspace assistant has standing instructions about helpful booking support. Its team wants those instructions to keep staff records private and to prevent changes outside the member’s request.

  1. Start here

    What if the prompt contains a service credential so the model can include it in a tool call?

How it's scored

Weak: Treats hidden instructions as confidential by guarantee or stronger wording as access control.

Hire: Separates useful guidance from resource permissions and keeps credentials outside context.

Strong Hire: Protects configuration authority, evaluates actual disclosure sensitivity and verifies backend controls and useful work independently of prompt obedience.

Common mistakes

  • Using a prompt as a credential or approval store.
  • Equating every disclosed instruction with the same security impact.
  • Calling a successful refusal proof of an untested backend permission check.
  • Treating prompt minimization as a substitute for protecting stored context and logs.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 10, and we keep track of how far you get in every topic.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in doubles your free answers, from 5 to 10 per topic, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

No comments yet. Share a correction or a different way to answer it.