NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Privilege Escalation
A comprehensive learning path covering the core methodologies of post-exploitation privilege escalation across both majo
ViewRouting & Switching Fundamentals
Build a rock-solid foundation in modern network infrastructure. This learning path takes you deep into the mechanics of
ViewNetwork Design and Architecture
Elevate your career from network technician to strategic network architect. This advanced learning path takes you beyond
ViewLegal Procedure and Expert Testimony
This advanced learning path focuses on the critical legal and procedural aspects of Digital Forensics and Incident Respo
ViewAdvanced Static and Dynamic Analysis
This advanced learning path bridges the gap between foundational reverse engineering and expert-level malware analysis.
ViewPreview · 30 min
Master mid-task agent hijacking in this guided lab. Learn to poison persistent data, exploit authority bias, and escalate privileges via redirected AI workflows.
Theory is only the start. In this guided lab you work through a realistic enterprise case of Mid-Task Goal Redirection, from the defender side.
The target is a fictional internal IT automation agent, HelpDesk-Bot. The goal is not a direct, obvious prompt injection. Someone stored text in the environment and waited for a normal multi-step workflow to read it. The agent believed it was doing a routine IT support task, and a contractor account ended up with administrator rights.
The target: HelpDesk-Bot, an autonomous LangChain-based agent that helps IT staff.
The tools of the agent:
read_user_profile(username: str): fetches user details, including a notes field.grant_admin_access(username: str): raises a user to the admin role.send_notification(username: str, message: str): sends an internal Slack/Teams message.The weakness: read_user_profile returns the raw notes field into the context window of the agent without sanitising. The agent uses a standard ReAct loop, so it is open to authority bias and recency bias.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in