Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 2 · Reading 9 of 9

Containing prompt injection, session abuse and unsafe tool use

Security+ SY0-801 · Objectives 2.6, 4.5

A counselor asks the assistant to draft a reply. A minute later an audit screen shows the word “sent.” Before calling the student, find out what that word means. It might describe generated text, an attempted connector call, a queued message or a confirmed delivery.

Trace authority from the user to the tool

Direct prompt injection introduces untrusted instructions through user input. Indirect prompt injection introduces them through retrieved content such as a document or message. Jailbreaking describes attempts to circumvent a model’s behavioral restrictions. The same interaction can involve both. Treat policy text in a system design as guidance for the model and enforce consequential permissions in application code. Log the source of retrieved material and never grant a document the authority of the user reading it.

Session hijacking concerns the authenticated application session. A party who controls that session may inherit conversation history, attachments and connected tool access even if the model behaves as designed. Bind retrieval to tenant and user identity on every request. Restrict token lifetime, protect session cookies and provide revocation. Review whether switching users clears cached conversation and connector context.

Keep generated text outside execution boundaries

A model may propose code, commands or structured tool arguments. If a runner executes output with a service account, model errors can become unauthorized code execution or data modification. Prefer narrowly defined operations with typed parameters and server-side authorization. Restrict execution privileges, data mounts, network access and resource usage wherever code running is a legitimate feature. Require independent approval for high-impact actions and expire that approval if the target changes.

During an incident, identify the session, retrieved source, proposed operation, granting identity and actual connector result. Revoke affected sessions, suspend overbroad grants and preserve a minimized audit trail. Generated text describing an export is different evidence from a connector receipt proving one occurred. Communicate the confirmed scope and unresolved questions separately.

Reconstruct the authorization decision

Figure 1. Four things “sent” can meanEach step is stronger evidence than the one before. Only the last proves a student received anything.
  1. Generated textThe model drafted a reply. Evidence: the transcript. Proves nothing left the system.
  2. Attempted connector callThe application asked the connector to send. Evidence: tool call log with arguments and granting identity.
  3. Queued messageThe connector accepted the request. Evidence: message identifier and recipient.
  4. Confirmed deliveryThe mail system delivered it. Evidence: delivery receipt. Human authorization must still be checked separately.

Ask for the message identifier, recipient, granting identity and final delivery result. Compare those with the user’s approved action. A connector receipt issued for the assistant’s shared identity may prove that something left the system while leaving the human authorization unresolved. Conversely, a model transcript that promises a refund gives no proof that the payment system accepted a transaction.

Present your conclusion in language the counselor can use. “The assistant drafted a reply containing another student’s reference. Delivery records show the connector rejected it” describes both the confidentiality concern and the limit of confirmed impact. Decide who needs to examine retrieval permissions and who owns the connector check. That habit of verifying a claim through an independent channel applies just as strongly when the request comes from a person.

Assistant export approval

Inspect the three records, then use the evidence to answer the question.

1. Session

Session belongs to analyst N4.

2. Retrieved file

Retrieved memo requests export of another team's records.

3. Connector

The export connector checks only the assistant's shared account.

Apply the reading

What evidence distinguishes a proposed tool action from completed disclosure?

Compare your reasoning

Correlate the session and proposed request with an authorized connector result and destination evidence.