OBLYTECH Logo
OBLYTECH Logo

Prompt Injection Risks for AI Agents on ITSM Records

Prompt injection risks arise when an AI agent treats text inside an ITSM record as instructions for its own behavior. Reduce exposure by keeping record content apart from trusted task instructions. Limit the agent’s tools and data access. Check planned actions outside the model. Require review before sensitive changes or disclosures.

Where prompt injection risks for AI agents enter ITSM work

Start the assessment with one specific job: summarize an incident, suggest a routing destination, or prepare a response. Write down what the agent should read and what it may change. A ticket author can describe a problem. That does not let the author redefine the agent’s job.

For example, take a hypothetical incident description that reports a failed laptop connection, then asks the agent to fetch another employee’s access history and put it in the reply. The connection problem belongs in the summary. The extra instruction should not become an approved retrieval or disclosure.

List the material your planned workflow really takes in: descriptions, comments, pasted diagnostic output, attachment extracts, related records, and retrieved knowledge. Mark who can add to each source. Include imported content and integration messages in the review rather than treating an internal storage location as proof of authority.

Use this list to pick a bounded workflow to start with. A summary assistant and an agent that changes access need different permission decisions, even if both begin with the same ticket.

Define the boundary between evidence and authority

Create a written instruction hierarchy for the integration. Put the agent’s purpose, allowed actions, escalation conditions, and banned disclosures in configuration that named maintainers control. Supply ticket material as labeled evidence with its record identifier and source field. Treat claims inside that material as claims to assess.

Keep the original request distinct from quoted history. A pasted conversation may hold requests meant for someone else, obsolete troubleshooting instructions, or a deliberately misleading statement about the agent’s permissions. Ask the workflow to pull out the issue and supporting evidence. It should not promote those passages into operating instructions.

Design the information handoff before you add automation. For a routing task, consider a restricted output with a planned queue, a short reason, and the supporting record reference. Validate the queue against a maintained list. Reject unexpected fields rather than passing arbitrary generated text to a second component with broader powers.

Labels and structured outputs make the boundary visible to a reviewer, but they cannot show whether a claim in the ticket is true. Keep enough context for a reviewer to compare the recommendation with the record. In particular, a well formed request to perform an unauthorized action should still fail the action check.

Reduce input exposure without losing diagnostic evidence

Define the minimum record view for the chosen task. If an agent needs symptoms and recent troubleshooting notes, avoid automatically supplying unrelated employee details or entire record histories. Document why each included field is needed and which sensitive elements should be removed before processing.

Keep attachments off the first reading path. Decide which attachment types the workflow accepts, how text is extracted, and whether embedded instructions or hidden content should trigger review. Keep the original attachment available to authorized investigators while giving the agent a controlled representation suited to its job.

Use detection as a warning layer. Look for content that tries to change the task, claim higher authority, ask for secrets, or introduce an unrelated destination. Do not treat a list of familiar phrases as a full defense. The same intent can appear in ordinary support language. Conversely, a security ticket may quote an attack as evidence.

Keep an exception path for those legitimate quotations. A person who investigates odd text should be able to inspect it without letting an automated action rest on it. Keep the ticket usable for support staff while you suspend the affected agent step. Suspending only that step lets support staff keep working on the ticket while the suspect content stays contained.

Constrain tools before enabling record changes

Build an action inventory next to the input inventory. Separate reading a record, drafting a note, posting a note, changing a destination, closing work, and changing access. Give each action a clear authorization rule and an accountable owner. Do not bundle these powers into one general tool when a narrower interface can do the job.

For a planned update, have the execution layer check the target record, allowed fields, allowed values, and caller authority. Run these checks outside the model’s generated reasoning. A ticket’s claim that an exception is urgent should not widen the permissions of the execution identity.

Restrict outbound destinations as well as record writes. Review where generated text, diagnostic extracts, and attachments can go. Think about disclosures through customer-visible replies and integration payloads, not just obvious external transfers. An agent allowed to read internal notes should not automatically be allowed to repeat them in a reply to the requester.

Before you give the agent more autonomy, name who authorizes a change and which component enforces that decision. Close any gap in those controls first.

For help planning this work, see AI and ML services.

Make approval specific and test the full path

Design approval around the actual operation. Show the reviewer the record, planned field changes, intended audience, and the information being disclosed. Include the evidence behind the proposal and flag instructions found inside ticket content. A generic request to continue gives the reviewer too little information to assess the consequence.

Bind approval to the reviewed action. If the target, content, recipient, or relevant record state changes before execution, evaluate the request again. For asynchronous work, say how long a decision stays valid and how the system spots stale proposals. Record the decision apart from the agent’s account of it.

Build a test set from synthetic ITSM records. Include ordinary requests, quoted security examples, misleading claims of approval, conflicting comments, and instructions placed in attachment text. Test both the generated recommendation and the attempted tool operation. A sensible-looking summary is insufficient evidence that the execution boundary held.

  • Check that unrelated record retrieval is denied by the tool layer.
  • Verify that a draft response containing restricted information cannot bypass review.
  • Confirm that a changed target invalidates an earlier approval.
  • Exercise the human handoff when suspicious content prevents completion.

Track false alarms along with missed attacks. Record whether valid work still reaches the right team and whether an operator can understand a blocked action. Assign owners for test maintenance and release decisions. Review the controls after changes to prompts, models, tools, or ingestion paths.

Prepare containment and recovery for a suspect run

Define how an operator pauses execution without deleting the underlying support record. Keep the relevant inputs, planned actions, authorization results, and completed operations with appropriate access restrictions. Avoid copying sensitive ticket contents into broadly accessible troubleshooting logs.

During the investigation, work out what the agent read, which instructions shaped the proposal, and what the execution layer really allowed. Inspect downstream notes, notifications, and integrations for unintended disclosures or changes. Use the observed actions to decide recovery steps. Do not rely on the final assistant message.

Resume the workflow after the responsible owner reviews the failure and the revised controls pass targeted tests. Add the triggering case to the regression set with sensitive details removed. Keep the recovery decision and unresolved limitations in the operational record so the next maintainer knows the remaining exposure.

Handling retention, ownership, translation and test data for suspicious tickets

Retention: isolate a suspicious ticket instead of deleting it

Choose a retention and isolation decision with the incident owner. Deleting a ticket can remove evidence and interrupt support. Blocking automated use while keeping authorized investigative access may serve both needs better. Apply the organization’s established record-handling requirements.

Ownership: name an intake owner before rollout

Name an intake owner before rollout. The analyst should have a route to the team that maintains the agent, with security involved when disclosure or unauthorized action is suspected. Include the run identifier and record reference rather than asking staff to circulate sensitive excerpts.

Translation: test multilingual cases

Include language changes in the ingestion design. Preserve the original text and identify any translated representation used by the agent. Add multilingual cases to testing, most of all where a translation changes whether a passage looks like an instruction, a quotation, or a symptom description.

Test data: use synthetic records first

Review their sensitivity and allowed use first. Prefer synthetic examples when they can reproduce the failure mechanism. If you need historical material, remove identifying and confidential details, restrict access to the test set, and check that the transformed case still exercises the intended boundary.