MUMBAI, India, Nov. 23 -- Intellectual Property India has published a patent application (202641135131 A) filed by Ashaithambi M; Abisheak S; Deepak S; Dharsan N; and Hariprasath S K on November 11, 2026, for Llm Prompt Injection Firewall.

Inventors include Ashaithambi M; Abisheak S; Deepak S; Dharsan N; and Hariprasath S K.

The application for the patent was published on November 20, 2026, under issue no. 47/2026.

Abstract: The present invention relates to a security system named LLM Prompt Injection Firewall, designed to protect Large Language Models (LLMs) from prompt injection attacks and malicious user inputs. Prompt injection attacks involve manipulating AT models through unauthorized instructions, attempts to override system prompts, and extraction of confidential information. The proposed system acts as an intermediate security layer that analyzes incoming prompts before forwarding them to the target language model The system employs a multi-layered detection approach consisting of weighted regular expression detection, obfuscation detection, encoding analysis, and heuristic classification to identify suspicious instructions and malicious patterns. It evaluates incoming prompts using confidence scores generated by the detection modules and applies maximum score aggregation to determine the overall risk level. Based on predefined thresholds, prompts are classified into three categories: ALLOW, FLAG_FOR_REVIEW, and BLOCK. Furthermore, the system provides an automated prompt interception mechanism that prevents highrisk inputs from reaching the language model while allowing legitimate prompts to proceed. It also generates security information containing detection results, confidence scores, and triggered rules for further analysis. The proposed Python-based solution performs its core detection operations without depending on external machine learning models or third-party Al services, providing a lightweight and modular approach to improving the security and reliability of LLM-based applications. The proposed invention also incorporates a centralized decision-making mechanism that evaluates suspicious activities detected during prompt inspection. Each detection layer contributes to identifying potential threats, and the decision engine determines the final security verdict based on the highest confidence score. This approach helps identify both direct and concealed prompt injection attempts, including attacks that use encoded instructions, modified characters, and misleading system messages. The modular design allows individual detection mechanisms to be maintained and extended as new prompt injection techniques emerge. - Additionally, the invention provides a lightweight and extensible security solution that can be integrated into applications using Large Language Models. It includes an automated testing framework to evaluate detection performance using legitimate and malicious prompt samples, with metrics such as precision, recall, Fl-score, and false-positive rate. By combining multiple detection techniques, risk-based classification, and automated prompt interception, the proposed system aims to reduce the risk of unauthorized instruction execution and improve the overall security of LLM-powered applications.

Disclaimer: Curated by HT Syndication.