Links32
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
5 results tagged Injection  ✕
20 Prompt Injection Techniques Every Red Teamer Should Test | by Facundo Fernandez | Medium https://fdzdev.medium.com/20-prompt-injection-techniques-every-red-teamer-should-test-b22359bfd57d
Thu Dec 4 15:48:59 2025 archive.org

20 Prompt Injection Techniques

Prompt Injection Techniques LLM
LLM Prompt Injection Prevention - OWASP Cheat Sheet Series https://cheatsheetseries.owasp.org/cheatsheets/LLM_Prompt_Injection_Prevention_Cheat_Sheet.html
Thu Dec 4 15:47:51 2025 archive.org

Anatomy of Prompt Injection Vulnerabilities

Prompt Injection Vulnerabilities LLM
ai-red-teaming-training/content/3_prompt_injections/3_5_intermediate_prompt_injection_techniques.md at main · detoxio-ai/ai-red-teaming-training https://github.com/detoxio-ai/ai-red-teaming-training/blob/main/content/3_prompt_injections/3_5_intermediate_prompt_injection_techniques.md
Thu Dec 4 15:45:24 2025 archive.org

Prompt Injection Techniques github

https://github.com/detoxio-ai/ai-red-teaming-training

Prompt Injection Techniques github LLM
Terminal Escape Injection - InfosecMatter https://www.infosecmatter.com/terminal-escape-injection/
Fri Apr 17 14:38:02 2020 archive.org
thumbnail

Shell script escape injection

  echo -e '#!/bin/sh\n\necho "evil!"\nexit 0\n\033[2Aecho "Hello World!"\n' > script.sh
 chmod a+x script.sh

The resulting script.sh will then work on (has been tested on):

 Linux (gnome-terminal, xterm, aterm)
 Mac OS (Terminal 2.0, iTerm2)
 Cygwin (Windows)

Python script escape injection

     echo -e '#!/usr/bin/python\n\nprint "evil!";\nexit(0);\n#\033[2A\033[1Dprint "Hello World!";\n' > script.py
   chmod a+x script.py

The resulting script.py will then work on (has been tested on):

Linux (gnome-terminal, xterm, aterm)
Mac OS (Terminal 2.0, iTerm2)
Cygwin (Windows)

Batch (Command Prompt) escape injection

     echo -e '@echo off\n\r\n\recho evil!\r\n::\033[2D  \033[A\033[2Decho Hello World!' > script.bat

The resulting script.bat will then work on (has been tested on):

Windows 10 PowerShell
Windows 10 Command Prompt

PS1 (PowerShell) escape injection

      echo -e 'write-host "evil!"\r\n#\033[A\033[2Dwrite-host "Hello World!"' > script.ps1

The resulting script.ps1 will then work on (has been tested on):

Windows 10 PowerShell
Windows 10 Command Prompt

Conclusion

As we have seen in this article, terminal escape injections affect practically every modern operating system environment and they can be really nasty.

As infosec professionals, we should know about them and keep our guards up when it matters. Hopefully this article provided enough information to stay safe.

Please feel free to let us know in the comment section your thoughts.

secu injection terminal shell
GNU bash Environment Variable Command Injection (MSF) http://www.exploit-db.com/exploits/34777/
Thu Sep 25 18:17:27 2014 archive.org
thumbnail

GNU bash Environment Variable Command Injection (MSF)

GNU bash Environment Variable Command Injection
1608 links, including 7 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn