Prompt engineering defensive techniques are methods used to protect LLM applications from malicious, unsafe, or misleading inputs. These techniques help prevent issues like prompt injection, jailbreaks, data leakage, hallucinations, and unauthorized actions by enforcing input validation, role isolation, output filtering, guardrails, and secure context handling in AI systems. We are going to discuss about two thing in Prompt engineering in this blog. Prompt Defense Prompt Versioning Prompt Defense Following 8 techniques comes under Prompt defense. Please concentrate carefully. Direct Prompt Injection Indirect Prompt Injection Jail Breaking Role-Play & Persona Exploits Token Smuggling Input Sanitization Prompt Firewall Adversarial Hardening Lets go through one by one. 1) Direct Prompt Injection Prompt Injection is a type of attack where a user (or a external data source) tries to manipulate an LLM by inserting malicious or misleading instructions into the input so that the...