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
Networking Fundamentals
You cannot secure a network if you do not understand how data moves across it. The Networking Fundamentals learning path
ViewWindows Fundamentals
The Windows Fundamentals learning path provides a comprehensive foundation in Microsoft Windows operating systems, speci
ViewRecon & Enumeration Tools
Reconnaissance is the foundation of every successful penetration test. Amateurs treat it as a box-ticking exercise, runn
ViewCredential Attacks
Amateurs think credential attacks are just about guessing "Password123" or running a generic brute-force script until th
ViewActive Directory Attacks
A comprehensive, advanced learning path covering the core methodologies of Active Directory exploitation. Progress from
ViewNetwork Design and Architecture
Elevate your career from network technician to strategic network architect. This advanced learning path takes you beyond
ViewPreview · 30 min
Master direct ask and repetition-based prompt extraction. Learn how attackers use echo commands to leak AI system prompts and defend with instruction hierarchy.
Before an attacker tries a complex, multi-stage attack, they do basic reconnaissance. They check whether the front door is unlocked before they try to pick the lock. In AI red teaming, this baseline test is Direct Ask and Repetition-Based Extraction. In your logs it is the first thing you will see, so it is the first thing to learn.
A Direct Ask is a blunt, plain question to the model about its own instructions. A Repetition-Based attempt asks the model to echo or repeat the text that comes before the user input, for example the start of the conversation. In a log you see neither wording. You see a labelled placeholder such as <redacted attempt 3> (category: repetition).
The Direct Ask is the absolute starting point of every professional AI security assessment. That is also why you must test for it yourself, first. If a model gives its prompt away to a simple repetition request, its security posture is critically flawed, and no complex defence is needed to see it. Also, the exact wording of a refusal tells a prober what the filter looks for. Keep refusals short and the same every time.
All scenarios, code and targets in this lesson are fictional and made for isolated training labs.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in