Security systems and methods for dynamically generating payload schema processing code using machine learning techniques
A machine learning-based dynamic protocol parser dynamically generates payload schema processing code, addressing the inflexibility of static methods and manual intervention in network security, enhancing threat detection and response efficiency.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- WITNESSAI INC
- Filing Date
- 2025-10-03
- Publication Date
- 2026-05-15
AI Technical Summary
Existing methods for dynamically generating payload schema processing code rely on static rules, lacking flexibility to adapt to evolving network threats and data structures, leading to inefficiencies and vulnerabilities, and require manual intervention for threat response.
A machine learning-based dynamic protocol parser that iteratively generates payload schema processing code, adapting to changes in data structures and responding to network threats without manual intervention, using a proxy server to intercept and analyze network packets.
Enhances network security by providing adaptable and intelligent threat detection and response, ensuring accurate data processing and immediate security measures in dynamic environments.
Smart Images

Figure US2025049506_15052026_PF_FP_ABST
Abstract
Description
SECURITY SYSTEMS AND METHODS FOR DYNAMICALLY GENERATING PAYLOAD SCHEMA PROCESSING CODE USING MACHINE LEARNING TECHNIQUESCROSS REFERENCE TO RELATED APPLICATIONS
[0001] This patent application claims the priority benefit of U. S. Patent Application Serial No 18 / 942,517 filed on November 9, 2024, and titled “Security Systems and Methods for Dynamically Generating Payload Schema Processing Code Using Machine Learning Techniques.” This patent application is related to U. S. Patent Application Serial No. 18 / 622,686 filed on March 29, 2024 and titled “Secure Systems of Guardrails for Securing the Use of Large Language Models (LLMS)”. This patent application is also related to U. S. Patent Application Serial No. 18 / 829,021 filed on September 9, 2024 and titled “Methods and Systems for Security Enhancement in Artificial Intelligence Model Interactions via Automated Injection and Proxy Server Implementation”. The aforementioned applications are hereby incorporated by reference herein in their entireties for all purposes including all references cited therein.FIELD OF THE TECHNOLOGY
[0002] The present technology relates to network security, specifically to methods and systems for detecting and responding to network threats using machine learning models and dynamically generating payload schema processing code using machine learning techniques.BACKGROUND
[0003] The approaches described in this section could be pursued, but are not necessarily approaches that have previously been conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section.
[0004] Previous approaches to dynamically generating payload schema processing code for network packets have typically involved static methods that rely on predefined rules or templates to extract and interpret data structures. These static methods often lack the flexibility to adapt to evolving network threats and changing data structures, leading to potential vulnerabilities and inefficiencies in threat detection and response. Additionally, the manual creation and maintenance of payload schema processing code based on fixed rules can be time-consumingand error-prone, especially in complex network environments where data structures may vary significantly.
[0005] In existing systems, network threat detection and response mechanisms have traditionally been based on signature-based detection techniques or rule-based systems that are limited in their ability to detect novel or sophisticated threats. These conventional methods may struggle to keep pace with the rapidly evolving landscape of cybersecurity threats, particularly in scenarios where attackers employ advanced evasion techniques. Furthermore, the deployment of security code in response to detected threats has often been a manual and reactive process, requiring human intervention to analyze and mitigate security incidents, which can introduce delays and increase the risk of successful attacks.
[0006] Efforts to enhance the automation and intelligence of network security operations have led to the integration of machine learning techniques into threat detection and response systems. Machine learning models offer the potential to analyze network traffic patterns, identify anomalies, and predict potential threats in real-time, enabling proactive security measures. However, the application of machine learning in the context of dynamically generating payload schema processing code and deploying security measures in response to network threats remains an ongoing challenge in the field of cybersecurity. However, none of these approaches have provided a comprehensive solution that combines the features described in this disclosure.SUMMARY
[0007] Some embodiments of the present technology, relate to a computer-implemented method for dynamically generating payload schema processing code using machine learning, the method including: capturing network packets from a communication channel between a user and an application, the network packets including a data structure package; identifying a schema of a payload used in the data structure package of the network packets; dynamically generating payload schema processing code using a machine learning dynamic protocol parser by applying a machine learning model to the schema of the payload, the payload schema processing code including a description of each field of the data structure package and a parser function for extracting a prompt; and iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria.
[0008] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the capturing network packets includes intercepting the network packets using a proxy server positioned between the user and the application, the application being an Large Language Model (LLM) integrated application using an external Application Programing Interfaces (API) provided by an LLM provider.
[0009] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the proxy server uses deep packet inspection (DPI) techniques to capture detailed information from the network packets.
[0010] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the predefined accuracy and functionality criteria include successfully extracting the prompt from the network packets.
[0011] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the machine learning model is a large language model (LLM) trained to analyze the network packets and generate parser functions.
[0012] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the dynamically generating payload schema processing code using the machine learning dynamic protocol parser includes generating a plurality of fields of the data structure package and a parser function for extracting the prompt.
[0013] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the data structure package is an uninterrupted input in JSON format.
[0014] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets the predefined accuracy and functionality criteria is an iterative self-correction mechanism, the iterative self-correction mechanism refining the generated payload schema processing code until the prompt is extracted.
[0015] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the predefined accuracy and functionality criteria include correctly parsing and extracting specific fields from the data structure package.
[0016] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the machine learning model uses natural language processing (NL. P) techniques to analyze the data structure package and generate the payload schema processing code.
[0017] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the machine learning model is configured to detect zero-day vulnerabilities by training the machine learning model on previous known vulnerabilities and creating a separate offensive machine learning model that generates vulnerabilities that are used as synthetic training data.
[0018] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the generated payload schema processing code is deployed in a sandbox environment for testing before being deployed.
[0019] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the machine learning model generates an alert, the alert being when a network threat is detected.
[0020] In some embodiments, the techniques described herein relate to a computer-implemented method, further including testing the generated payload schema processing code against a set of known network packets to verify accuracy and functionality.
[0021] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the machine learning model iteratively self-corrects the generated payload schema processing code based on feedback from testing results.
[0022] In some embodiments, the techniques described herein relate to a computer-implemented method, further including detecting a network threat in real-time by analyzing the data structure package using a machine learning model.
[0023] In some embodiments, the techniques described herein relate to a computer-implemented method, further including responding to the detected network threat by generating and deploying security code using the machine learning model, the security code using the machine learning dynamic protocol parser.
[0024] In some embodiments, the techniques described herein relate to a computer-implemented method for dynamically generating payload schema processing code using machine learning, the method including: capturing network packets from a communication channel between a user and an application, the network packets including a data structure package; identifying a schema of a payload used in the data structure package of the network packets; dynamically generating payload schema processing code using a machine learning dynamic protocol parser by applying a machine learning model to the schema of the payload, the payload schema processing code including a description of each field of the data structure package and a parser function for extracting a prompt; and iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria, the predefined accuracy and functionality criteria include successfully extracting the prompt from the network packets.
[0025] In some embodiments, the techniques described herein relate to a computer-implemented method for dynamically generating payload schema processing code using machine learning, the method including: receiving network packets using a proxy server between external Application Programing Interface (API) of a Large Language Model (LLM) integrated application and a prompt filter, the network packets including a data structure package; receiving a failure response from a predefined static protocol parser, the predefined static protocol parser generating the failure response after failing to process the data structure package; dynamically generating payload schema processing code using a machine learning dynamic protocol parser by applying a machine learning model to the data structure package, the payload schemaprocessing code including a description of each field of the data structure package and a parser function for extracting a prompt; iterating the dynamically generating of the pay load schema processing code using the machine learning dynamic protocol parser until the payload schema processing code meets a predefined accuracy and functionality criteria, the predefined accuracy and functionality criteria including successfully extracting the prompt from the network packets; and deploying the payload schema processing code to maintain functionality of the LLM integrated application.
[0026] In some embodiments, the techniques described herein relate to a computer-implemented method, wherein the machine learning model iteratively self-corrects the generated payload schema processing code based on feedback from testing results.BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, where like reference numerals refer to identical or functionally similar elements throughout the separate view's, together with the detailed description below', are incorporated in and form part of the specification, and serve to further illustrate embodiments of concepts that include the claimed disclosure, and explain various principles and advantages of those embodiments.
[0029] The methods and systems disclosed herein have been represented where appropriate by conventional symbols in the drawings, showing only those specific details that are pertinent to understanding the embodiments of the present disclosure so as not to obscure the disclosure w'ith details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
[0030] FIG. 1 illustrates a high-level block diagram of an exemplary environment using a proxy server that is configured for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology.
[0031] FIG. 2 depicts a process flow diagram for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology.
[0032] FIG. 3 depicts another process flow diagram for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology.
[0033] FIG. 4 illustrates an exemplary computer system that may be used to implement security methods for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology.DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS
[0034] In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosure. It will be apparent, however, to one skilled in the art, that the disclosure may be practiced without these specific details. In other instances, structures and devices may be shown in block diagram form only in order to avoid obscuring the disclosure. It should be understood, that the disclosed embodiments are merely exemplary of the invention, which may be embodied in multiple forms. Those details disclosed herein are not to be interpreted in any form as limiting, but as the basis for the claims.
[0035] In various embodiments of the present technology a proxy server is used to enable the secure use of Artificial Intelligence (Al) by using Large Language Model (LLM) integrated applications. For example, LLM integrated applications include code completion and automatic programming tools (e.g., GitHub Copilot), generative artificial intelligence chatbots (e.g., Microsoft 365 Copilot), Al code editors (e.g., Cursor), and many others. These LLM integrated applications use external Application Programing Interfaces (APIs) provided by an LLM provider such as ChatGPT. A proxy server of the present technology works as the middleware between prompt filters and public LLM interfaces (e.g., external APIs). Functionality of the proxy server of the present technology needs parsing of the response data structure (e.g., JavaScript Object Notation (JSON)) response) from the external APIs. However, due to changes / updates in fields (e.g., JSON fields) from the external APIs (i.e., LLM-provider’s side), a predefined static protocol parser is not sufficient as there is a mismatch between the response data structure and the definition. To solve this problem, the present technology uses a novel Machine Learning (ML) pipeline to act as an ML based dynamic protocol parser that detects in real-time the changes / updates in fields (e.g., JSON fields) from the response data structure (e.g., JSON response).
[0036] Various embodiments of the present technology include a dynamic protocol parser that is designed to as a Machine Learning (ML) based dynamic protocol parser. For example, the ML based dynamic protocol parser may act as a contingency in case when the predefined static protocol parser does not find the predefined matched fields in the response data structure (e.g., JSON response) for extracting the prompt. For example, the ML based dynamic protocol parser uses dynamic protocol parsing that includes a parser language model. The parser language model may be tuned to accurately detect the necessary fields in the response data structure (e.g., JSONresponse) from the external APIs. For example, the parser language model may produce artifacts including a description for each field in the response data structure (e.g., JSON response) and a parser function (e.g., Python function) that parses the response data structure (e.g., JSON response) and produces the required fields to extract a prompt. In some embodiments, an iterative self-correction mechanism is used to reinforce the accuracy of the parser language model.
[0037] In the realm of network security, the rapid evolution of cybersecurity threats poses significant challenges to existing systems. Traditional methods for detecting and responding to network threats often rely on static techniques, such as signature -based detection and rule-based systems. These approaches may struggle to keep pace with the dynamic nature of modern threats, particularly when attackers employ advanced evasion techniques or polymorphic malware. The need for more adaptive and intelligent security measures has become increasingly apparent as the landscape of cybersecurity continues to evolve.
[0038] Existing solutions for generating payload schema processing code typically involve static methods that depend on predefined rules or templates to extract and interpret data structures. These static methods lack the flexibility to adapt to changes in data structures, leading to potential vulnerabilities and inefficiencies in threat detection and response. The manual creation and maintenance of payload schema processing code based on fixed rules can be timeconsuming and error-prone, especially in complex network environments where data structures may vary significantly. Furthermore, the deployment of security code in response to detected threats has often been a manual and reactive process, requiring human intervention to analyze and mitigate security incidents, which can introduce delays and increase the risk of successful attacks.
[0039] In various embodiments, the present technology introduces a novel approach to network security by leveraging machine learning techniques to dynamically generate payload schema processing code. This method captures network packets from a communication channel between a user and an application, utilizing a proxy server to intercept and analyze the data structure package. By applying a machine learning model, the system identifies the schema of the payload and dynamically generates payload schema processing code, including a description of each field and a parser function for extracting prompts. The process iterates until the generated code meets predefined accuracy and functionality criteria, ensuring adaptability to changes indata structures without manual intervention. Additionally, the system responds to detected network threats by generating and deploying security code, enhancing the overall security posture of the application.
[0040] FIG. 1 illustrates a high-level block diagram of an exemplary environment using a proxy server 110 that is configured for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology. FIG. 1 illustrates a system architecture for processing and parsing data, with exemplary handling both static and dynamic parsing scenarios. The flow begins with a proxy server 110 receiving a prompt data from a user 105. The proxy server 110 may receive network packets using the proxy server 110 between external Application Programing Interface (API) of a Large Language Model (LLM) integrated application and a prompt filter, the network packets comprising a data structure package. The proxy server 110 may then attempt to process the prompt data using a predefined static protocol parser 120. If this static parsing using the predefined static protocol parser 120 is successful, the flow proceeds to normal processing 125 of the prompt. However, if the static parsing fails using the predefined static protocol parser 120, the system of the present technology employs a machine learning (ML) dynamic parser module 140 using a machine learning (ML) dynamic protocol parser 150, as shown by the machine learning (ML) dynamic parser module 140.
[0041] According to various embodiments of the present technology machine learning (ML) dynamic parser module 140 may receive a failure response from the predefined static protocol parser 120. For example, a failure response may include a failure message of the predefined static protocol parser 120 that may be the data structure package 130. For example, the data structure package 130 may be an uninterpreted JSON input. The data structure package 130 is received by the machine learning dynamic protocol parser 150 (e.g., a parser language model (LM)). The machine learning dynamic protocol parser 150 may generate outputs including a first output comprising a description for each field 155 in the data structure package 130 (e.g., the uninterpreted input JSON). The machine learning dynamic protocol parser 150 outputs may further comprise a second output including a Python parser function 160. The dynamic protocol parser 150 output including the Python parser function 160 may iterative undergo a selfcorrection process 170, which loops back to the machine learning dynamic protocol parser 150 for refinement. The Python parser function 160 may generate the prompt 180. FIG. 1 illustrateseffectively illustrates a mechanism where, if traditional static parsing fails (e.g., static protocol parser 120 fails), a more flexible machine learning-based approach based on the machine learning dynamic parser module 140 using the dynamic protocol parser 150 to interpret and process the data structure package 130 dynamically. For example, adapting to changes in data structures without manual intervention is enabled by the machine learning dynamic parser module 140.
[0042] In various embodiments, the machine learning dynamic parser module 140 including the machine learning dynamic protocol parser 150 is a system designed to interpret and extract necessary fields from data structures (e.g., data structure package 130), such as JSON, in real-time, adapting to changes without manual intervention. The machine learning dynamic protocol parser 150 uses machine learning models to identify and parse altered data fields, ensuring accurate data processing even when the data format changes unexpectedly.
[0043] In various embodiments, features of the machine learning dynamic protocol parser 150 comprise adaptability by automatically adjusting to changes in data structures (e.g., data structure package 130), such as JSON fields, without requiring predefined rules. The machine learning dynamic protocol parser 150 comprises machine learning integration and utilizes a parser language model to detect and describe necessary fields (e.g., description for each field 155) of the input data (e.g., data structure package 130). The machine learning dynamic protocol parser 150 further comprises an iterative self-correction (e.g., the self-correction process 170) that incorporates a feedback loop to refine parsing accuracy and functionality over time. The machine learning dynamic protocol parser 150 further includes real-time processing and is capable of processing data in real-time, making the machine learning dynamic parser module 140 including the machine learning dynamic protocol parser 150 suitable for applications that require immediate response and analysis. The machine learning dynamic protocol parser 150 is particularly useful in environments where data formats are frequently updated, such as APIs provided by large language model (LLM) providers, ensuring seamless and secure data communication.
[0044] Embodiments of the present technology include capturing network packets from a communication channel between a user and an application using a proxy server 110, the network packets comprising a data structure package 130. In some embodiments, the data structure package 130 is an uninterrupted input in JSON format receiving. For example, an exemplaryuninterpreted ISON input according to some embodiments of the present technology is shown below.I"Request": {"Headers": "Host: www.office.com\r\nCookie:GH. FLID=09a0c706-bb46-4507-a340-534839523aaa;MUID==1A797E4699E6676D295C6AEE986D6626;MSFPC=GUID=9f4adl013e7aff214685ca4929e953c0& HASH=9f4a& LV=202404& V=4& LU= 1712222570962;OH. DCAffinity=OH~weu;OhpToken=AQAAABowOS8yMS8yMDIOIDA50jEzOjElICswMDowMOwHMC5BYWdBdW puUGFXNmlvMFdZMmxBZGFheGQ5VnRFWlVmR01yQkpnLVlkazNaU2RzcW9BQWMuQ WdBQkF3RUFBQUFwVHdKbXpYcWRSNEJOMmlpaGVRTVlBZORzX3dVQTlQX3FrYXhv N2s4dHFYb 1 J1WS 1 GS 2dLMW5tTExCMU 1 oUj Z5SF9HRUFKTkcyZExUZk4zZE5xbHR0b00z MWV2bTRtUOiaOUsycG9iaTI2RFlBdzc4NWstbEVYOWlWVFAlZklKMm5JX2tacnROeFhK QmRuUEtZYTZ5ak9sVEtnY^7NLRWJPRlJjUkhlSW54OG9HTWtvT2Q0OG9McjdZU05nX2 9qbXh2OEFkckhxb0Myeno 1 ejh2dmi lUkVUb 19ZVGpjMm 1 STi 15aUc0RFJqMVBqMHlsdmt WamFwOWdKdOZBR25hcGZi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Ry4hmW89_. DTVxnEWYBlObWdGpCOqtFm_cdHhW2ou Nkrsr-U 1 n 1 Jamsd? 1 OJS.. nH5t6IWkj4rnW8GctPD9FJE7JC 1391 MN6Wc2LetTb VXNgN9cFBE UlsHUUfzR6RPC52nE-xLtEZI2FoyPcNlZxwQ3nU0VdhfspWY354Dlj_.aZPujreC_pZmn4tvkN weBEgfljCE8dHIB2fouQyeib5jbj6pBttPDKVSkF7OxlXa5pgOw9QlJofY13DH19xzvJMJYh2Z 0bqFmTBpXmZL0Ps2sv-PB2is2CQdAMrW4cNkbbB5b3jIVAxWUzlSuRVKS_. Q„ZoEmhSF„ 2jkTC321YL-eYpaMQlWX71pzoel_7Zpud0wco6a3SltlfwMYf3ZBkpcXTjU9uxKyScNlhe6Ibf 5wKpGeJu90ulM53zxXqR4dzhNtBXsU;AjaxSessionKey=lKKUGx7mu3IumExWalj3%2BYxLWVQxfKXHsrUNdq%2F9ZxrFSterQel kgOeQKdzltuDEXDONjKoOXqoqWZ5PBcAii2A%3D%3D; userid=10032003901CBA47; Microsoft Applications! elemetryDeviceId==abe d5c6-e843 -460b- 8f6b- 5 dba38b 33860;OH. SID=bld4fl05-b583-41c8-9589-3dfl2311003c;PersonalizationCookie=Eq%2BozeootwvCsMIqxJNOXECmZx9y93XOMh9%2FGMvP7jmd7J A5hlsRYiblk2VglYvNAlMMp3QufP2Dd0UdeZbsDcc46y8DGaeNeDMo6txbLu%2FrDvD4GB T%2BucqHb2E0LlsgT%2FXD5vLbBYQhTWHCBhx5O9qKaapQkD6AgwhrBA3rCNv0ElrIS whnuJ%2FYYMBe6JBIEmrkpe2s8t6dVk72d%2FeMRrUB6wa3TbwCzxJKDSQ42kJIZ7Y%2B xzjIrczN4GH3KR9vp37UXUJZGpa9SCKI%2BYoYbSDkR3pOwcal%2FxVc6PhlrGBxHl E%2FLLyCetFZwEEf%2BAEA\r\nSec-Ch-Ua:\"Not / A)Brand\";v=\"8\",\"ChromiumV’;v=\"126\",\"Google Chrome\";v=\"126\"\r\nX- Officehome-Forceexternal: l\r\nX-Officehome-Authtype:Orgld\r\nX-Officehome-Authversion: 2.0\r\nSec-Ch-Ua-Mobile:?0\r\nUser-Agent: Mozilla / 5.0 (XI 1; Linux x86_64) AppleWebKit / 537.36 (KHTML, like Gecko)Chrome / l 26.0.0.0 Safari / 537.36\r\nX-Officehome-Userid: 10032003901CBA47\r\nAccept: application / json, text / plain, * / *\r\nX-Officehome-Tenantid:69cf39ba-a26e-45a3-98da-501d69ac5df5\r\nX-Officehome-Correlationid:efc27a78-cd48-4cb0-be49-a8fb01650b87\r\nSec-Ch-L'a-Platform:\"Linux\"\r\nSec-Fetch-Site: same-origin\r\nSec-Fetch-Mode: cors\r\nSec-Fetch-Dest: empty\r\nReferer: https: / / www.office.com / ?auth=2\r\nAccept-Encoding:gzip, deflate, br\r\n Accept-Language: en-US,en;q=0.9\r\nPriority: u=l, i","Bodv": ■"BodyLength”: 0,"Time": "Jun 24, 2024, 10:49:00\u202fAM","Length": 0,"Tool": "Proxy","Complete": true,"URL": "https: / / www.office.com / api / adminpolicy?workload=officehome", "Method": "GET","Path": " / api / adminpolicy ","Query": "workload=officehome","PathQuery": " / api / adminpolicy?workload=officehome","Protocol": "https","IsSSL": true,"UsesCookieJar": "Partially","Hostname": "www.office.com","Host": "https: / / www.office.com","Port": 443,"ContentType": "","RequestHttp Version": "www.office.com”,"Extension":"Referrer": "https: / / www.office.com / 7aufc2","HasParams": true,"HasGetParam": true,"HasPostParam": false," HasSentCookies": true,"CookieString": "OH. FLID=09a()c706-bb46-4507-a340-534839523aaa;\ I L 11) 1 A797E4699E6676D295C6 AEE986D6626;MSFPC=GUID=9f4adl013e7aff214685ca4929e953c0& HASH=9f4a& LV=202404& V=4& LU= 1712222570962,OH. DCAffinity=OH-weu;OhpToken=AQAAABowOS8yMS8yMDIOIDA50jEzOjElICswMDowMOwHMC5BYWdBdW puUGFXNmlvMFdZMmxBZGFheGQ5VnRFWlVmR01yQkpnLVlkazNaU2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t?1t\e"n,\a"nmtladx=_6a9gcef\3":93b6a0-(a),2\6"een-4d5pao3in-9ts8\d":a[-{\"url\":\"https: / / officehuMicrosoftApplicationsTelemetryDeviceld=abead5c6-e843-460b8f6b-5dba38b33860; OH. SlD=bl d4fl05-b583-41c8-9589-3dfl2311003c;PersonalizationCookie=Eq%2BozeootwvCsMlqxJNOXECmZx9y93XOMh9%2FGMvP7jmd7J A5hlsRYiblk2VglYvNAlMMp3QufP2Dd0UdeZbsDcc46y8DGaeNeDMo6txbLu%2FrDvD4GB T%2BucqHb2E0LlsgT%2FXD5vLbBYQhTWHCBhx5O9qKaapQkD6AgwhrBA3rCNv0ElrIS whnuJ%2FYYMBe6JBIEmrkpe2s8t6dVk72d%2FeMRrUB6wa3TbwCzxJKDSQ42kJIZ7Y%2B xzjIrczN4GH3KR9vp37UXUJZGpa9SCKI%2BYoYbSDkR3pOwcal%2FxVc6PhlrGBxHlE%2 FLLyCetFZ wEEf%2B AE A;","ParameterCount": 1,"Parameters”: ["workload""Origin": ""},"Response": {"Headers”: "Cache-Control: no-store, no-cache\r\nPragma:no-cache\r\nContent-Type: application / json; chars et=utf-8\r\n Vary:Accept-Encoding\r\nRequest-Context: appId=\r\nStrict-Transport-Security:max-age=31536000; includeSubDomains\r\nReferrer-Policy:strict-origin-when-CTOss-origin\r\nX-Content-Type-Options:nosnifT\r\nX-Xss-Protection: 1; mode:::block\r\nX-Frame-Options:SAMEORIGlN\r\nX-Ua-Compatible: IE=edge,chrome=l\r\nNel:{ \"report_to\":\”NelOfficeHubUpload IV,\"max_age\": 3600,\"failure_fraction\": 1.0,\" success_fra ction\": 0.01 } \r\nReport-To:501d69ac5df5&destinationEndpoint=weu&frontEnd=: AFD\" }] }\r\nX-Cache:CONFIG.. NOCACHE\r\nX-Msedge-Ref: Ref A: 1A8057EA53584FEAB7B86036B32D0F29 Ref B: VIEEDGE4018 Ref C: 2024-06-24T08:49:00Z\r'mDate: Mon, 24 Jun 202408:49:00 GMT","Body":" { ValueV: { V'ConnectedExperienceV: {V'StateV':true,\"Policy ValueV:() },\"SendFeedbackV: { \" St ate\":true,\"PolicyValue\":0}, VScreenShot\":{\"State\":false,\"PolicyValue\":0},\"EmailCollection\": { V'StateV':false,\"Policy ValueV:0}, VSendSurvey\": {V'StateV:true,\"Polic y ValueV:0 },\"LogCollection\": { V'StateV:false,\" Policy ValueV:0} },\" PoliciesHashV:null,\"LastU pdated\":\"2024-06-24T08:49:01.3193831Z\",\"Checklnlnterval\":1440,\"Success\":true,\"Requir edAdminPolicies\":[\"ConnectedExperience\",\"SendFeedback\",\"ScreenShot\",\"EmailCollectio n\",\"LogCollection\",\"SendSurvey\"] } ","Body Length": 523,"hash": "8cfa3488e444db9e959d6abeaab9511c60fbe2ae","Time": "Jun 24, 2024, 10:49:01\u202fAM","Length": 523,"Status": 200,"StatusText":"ResponseHttp Version": " ","RTT": 721,"Title": ""," ContentType": "applicati on / j son; charset=tstf-8 ","InferredType": " JSON","MimeType": "JSON","HasSetCookies": false,"Cookies": [],"ReflectedParams": [],"Reflections": 0
[0045] Embodiments of the dynamically generating payload schema processing code using a machine learning dynamic protocol parser 150 by applying a machine learning model to the data structure package 130, the payload schema processing code including a description of each field (description of each field 155) of the data structure package 130 and a parser function (e.g., python parser function 160) for extracting a prompt 180. Embodiments of the present technology include providing an output in response to the data structure package 130 (e.g., theuninterpreted JSON input). For example, an exemplary an output description in response to the uninterpreted JSON input according to some embodiments is included below."message": {"id": "string","author"; {"role": "string","name": "string or null","metadata": {}},"create..time": "timestamp or null","update..time": "timestamp or null","content": {"content_type": "string","parts": ["array of strings"]},"status": "string","end_tum": "boolean or null","weight": "float","metadata": {"is_visually_hidden_from_conversation": "boolean","request_id": "string or null","message_source": "string or null","timestamp_": "string or null","message_type": "string or null","model... slug": "string or null","default_model_slug”: "string or null","parent..id": "string or null","model.. switcher..deny": "array","citations": "array","gizmo...id": "string or null",'pad": "string or null"recipient": "string""conversation, id": "string","error": "null or object"}
[0046] Embodiments of the present technology include an output parser function (e.g., python parser function 160). For example, the parser function for extracting a prompt 180. For example, a output python function (e.g., python parser function 160) according to some embodiments is shown below:"'pythonimport json# Split the datapackets = intercepted_data.split(’data: ’)[!:]# Parse JSON and extract prompt and responseprompt - Noneresponse - Nonefor packet in packets:json_obj - json.loads(packet)message - json_obj.get("message", { })author_role = message.get("author", { }).get("role")content_parts = message.get("content", { ’j).get("parts", [])if author_role = "user":prompt = content_parts[-1 ]elif author_role == "assistant" and message.get("status") =" finished-Succes sfull y ":response = content..parts[-l]print("Prompt: ", prompt)print) "Response: ", response)
[0047] FIG. 2 depicts a process flow diagram for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology. FIG. 2 is a flowchart of an example computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising the following steps. At step 210, capturing network packets from a communication channel between a user 105 and an application using a proxy server 110, the network packets comprising a data structure package 130. At step 220, detecting a network threat in real-time by analyzing the data structure package 130 using a machine learning model. At step 230, identifying a schema of a payload used in the data structure package 130 of the network packets. At step 240, dynamically generating payload schema processing code using a machine learning dynamic protocol parser 150 by applying a machine learning model to the schema of the pay load, the pay load schema processing code including a description of each field (e.g., description for each field 155) of the data structure package 130 and a parser function (e.g., python parser function 160) for extracting a prompt 180. At step 250, iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria. At step 270, responding to the detected network threat by generating and deploying security code using the machine learning model, the security code using the machine learning dynamic protocol parser 150.
[0048] FIG. 3 depicts another process flow diagram for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology. FIG. 3 is An exemplary flowchart of an example method for a computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising the following operations. At step 310, capturing network packets from a communication channel between a user 105 and an application, the network packets comprising a data structure package 130. At step 320, identifying a schema of a payload used in the data structure package 130 of the network packets. At step 330, dynamically generating payload schema processing code using a machine learning dynamic protocol parser 150 by applying a machine learning model to the schema of the payload, the payload schema processing code including a description of each field (e.g., description for each field 155) of thedata structure package 130 and a parser function (e.g., python parser function 160) for extracting a prompt 180. At step 340, iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria.
[0049] Some embodiments of the present technology include a computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising: capturing network packets from a communication channel between a user 105 and an application, the network packets comprising a data structure package 130; identifying a schema of a payload used in the data structure package 130 of the network packets; dynamically generating payload schema processing code using a machine learning dynamic protocol parser 150 by applying a machine learning model to the schema of the pay load, the pay load schema processing code including a description of each field (e.g., description for each field 155) of the data structure package 130 and a parser function (e.g., python parser function 160) for extracting a prompt 180; and iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria.
[0050] In some embodiments the capturing network packets comprises intercepting the network packets using a proxy server 110 positioned between the user 105 and the application, the application being an Large Language Model (LLM) integrated application using an external Application Programing Interfaces (API) provided by an LLM provider.
[0051] In some embodiments the proxy server 110 uses deep packet inspection (DPI) techniques to capture detailed information from the network packets.
[0052] In some embodiments the predefined accuracy and functionality criteria include successfully extracting the prompt 180 from the network packets.
[0053] In some embodiments the machine learning model is a large language model (LLM) trained to analyze the network packets and generate parser functions (e.g., python parser function 160).
[0054] In some embodiments the dynamically generating payload schema processing code using the machine learning dynamic protocol parser 150 comprises generating a plurality of fields (e.g., description for each field 155) of the data structure package 130 and a parser function (e.g., python parser function 160) for extracting the prompt 180.
[0055] In some embodiments the data structure package 130 is an uninterrupted input in JSON format.
[0056] In some embodiments the iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets the predefined accuracy and functionality criteria is an iterative self-correction mechanism, the iterative self-correction mechanism refining the generated payload schema processing code until the prompt 180 is extracted.
[0057] In some embodiments the predefined accuracy and functionality criteria comprise correctly parsing and extracting specific fields (e.g., description for each field 155) from the data structure package 130.
[0058] In some embodiments the machine learning model uses natural language processing (NLP) techniques to analyze the data structure package 130 and generate the pay load schema processing code.
[0059] In some embodiments the machine learning model is configured to detect zero-day vulnerabilities by training the machine learning model on previous known vulnerabilities and creating a separate offensive machine learning model that generates vulnerabilities that are used as synthetic training data.
[0060] In some embodiments the generated payload schema processing code is deployed in a sandbox environment for testing before being deployed.
[0061] In some embodiments the machine learning model generates an alert, the alert being when a network threat is detected.
[0062] Some embodiments further include testing the generated payload schema processing code against a set of known network packets to verify accuracy and functionality.
[0063] In some embodiments the machine learning model iteratively self-corrects the generated payload schema processing code based on feedback from testing results.
[0064] Some embodiments further include detecting a network threat in real-time by analyzing the data structure package 130 using a machine learning model.
[0065] Some embodiments further include responding to the detected network threat by generating and deploying security code using the machine learning model, the security code using the machine learning dynamic protocol parser 150.
[0066] Some embodiments of the present technology include a computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising: capturing network packets from a communication channel between a user 105 and an application, the network packets comprising a data structure package 130; identifying a schema of a payload used in the data structure package 130 of the network packets; dynamically generating payload schema processing code using a machine learning dynamic protocol parser 150 by applying a machine learning model to the schema of the payload, the pay load schema processing code including a description of each field (e.g., description for each field 155) of the data structure package 130 and a parser function (e.g., python parser function 160) for extracting a prompt 180; and iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria, the predefined accuracy and functionality criteria include successfully extracting the prompt 180 from the network packets.
[0067] Some embodiments of the present technology include a computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising: receiving network packets using a proxy server 110 between external Application Programing Interface (API) of a Large Language Model (LLM) integrated application and a prompt filter, the network packets comprising a data structure package 130; receiving a failure response from a predefined static protocol parser 120, the predefined static protocol parser 120 generating the failure response after failing to process the data structure package 130, dynamically generating payload schema processing code using a machine learning dynamic protocol parser 150 by applying a machine learning model to the data structure package 130, the payload schema processing code including a description of each field (e.g., description for each field 155) of the data structure package 130 and a parser function (e.g., python parser function 160) for extracting a prompt 180; iterating the dynamically generating of the payload schema processing code using the machine learning dynamic protocol parser 150 until the payload schema processing code meets a predefined accuracy and functionality criteria, the predefined accuracy and functionality criteria comprising successfully extracting the prompt 180 from the network packets; and deploying the payload schema processing code to maintain functionality of the LLM integrated application.
[0068] In some embodiments the machine learning model iteratively self-corrects the generated payload schema processing code based on feedback from testing results.
[0069] FIG. 4 illustrates an exemplary computer system that may be used to implement security methods for dynamically generating payload schema processing code using machine learning, according to embodiments of the present technology. FIG. 4 is a diagrammatic representation of an example machine in the form of a computer system 1, within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In various example embodiments, the machine operates as a standalone device or may be connected (e.g., networked) to other machines. In a networked deployment, the machine may operate in the capacity of a server or a client machine in a server-client network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular' telephone, a portable music player (e.g., a portable hard drive audio device such as a Moving Picture Experts Group Audio Layer 3 (MP3) player), a web appliance, a network router, switch or bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single machine is illustrated, the term ‘'machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.
[0070] The computer system 1 includes a processor or multiple processor(s) 5 (e.g., a central processing unit (CPU), a graphics processing unit (GPU), or both), and a main memory 10 and static memory 15, which communicate with each other via a bus 20. The computer system 1 may further include a video display 35 (e.g., a liquid crystal display (LCD)). The computer system 1 may also include an alpha-numeric input device(s) 30 (e.g., a keyboard), a cursor control device (e.g., a mouse), a voice recognition or biometric verification unit (not shown), a drive unit 37 (also referred to as disk drive unit), a signal generation device 40 (e.g., a speaker), and a network interface device 45. The computer system 1 may further include a data encryption module (not shown) to encrypt data.
[0071] The drive unit 37 includes a computer or machine-readable medium 50 on which is stored one or more sets of instructions and data structures (e.g., instructions 55) embodying or utilizing any one or more of the methodologies or functions described herein. The instructions 55may also reside, completely or at least partially, within the main memory 10 and / or within the processor(s) 5 during execution thereof by the computer system 1. The main memory 10 and the processor(s) 5 may also constitute machine-readable media.
[0072] The instructions 55 may further be transmitted or received over a network via the network interface device 45 utilizing any one of a number of well-known transfer protocols (e.g., Hyper Text Transfer Protocol (HTTP)). While the machine-readable medium 50 is shown in an example embodiment to be a single medium, the term "computer-readable medium" should be taken to include a single medium or multiple media (e.g., a centralized or distributed database and / or associated caches and servers) that store the one or more sets of instructions. The term "computer-readable medium" shall also be taken to include any medium that is capable of storing, encoding, or carrying a set of instructions for execution by the machine and that causes the machine to perform any one or more of the methodologies of the present application, or that is capable of storing, encoding, or carrying data structures utilized by or associated with such a set of instructions. The term "computer-readable medium" shall accordingly be taken to include, but not be limited to, solid-state memories, optical and magnetic media, and carrier wave signals. Such media may also include, without limitation, hard disks, floppy disks, flash memory cards, digital video disks, random access memory (RAM), read only memory (ROM), and the like. The example embodiments described herein may be implemented in an operating environment comprising software installed on a computer, in hardware, or in a combination of software and hardware.
[0073] Where appropriate, the functions described herein can be performed in one or more of hardware, software, firmware, digital components, or analog components. For example, the encoding and or decoding systems can be embodied as one or more application specific integrated circuits (ASICs) or microcontrollers that can be programmed to carry out one or more of the systems and procedures described herein. Certain terms are used throughout the description and claims refer to particular system components. As one skilled in the art will appreciate, components may be referred to by different names. This document does not intend to distinguish between components that differ in name, but not function.
[0074] One skilled in the art will recognize that the Internet service may be configured to provide Internet access to one or more computing devices that are coupled to the Internet service, and that the computing devices may include one or more processors, buses, memory devices,display devices, input / output devices, and the like. Furthermore, those skilled in the art may appreciate that the Internet service may be coupled to one or more databases, repositories, servers, and the like, which may be utilized in order to implement any of the embodiments of the disclosure as described herein.
[0075] Aspects of the present technology are described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present technology. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0076] Various modifications and alterations of the invention will become apparent to those skilled in the art without departing from the spirit and scope of the invention, which is defined by the accompanying claims. It should be noted that steps recited in any method claims below' do not necessarily need to be performed in the order that they are recited. Those of ordinary skill in the art will recognize variations in performing the steps from the order in which they are recited. In addition, the lack of mention or discussion of a feature, step, or component provides the basis for claims where the absent feature or component is excluded by way of a proviso or similar claim language.
[0077] While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not of limitation. The various diagrams may depict an example architectural or other configuration for the invention, which is done to aid in understanding the features and functionality that may be included in the invention. The invention is not restricted to the illustrated example architectures or configurations, but the desired features may be implemented using a variety of alternative architectures and configurations. Indeed, it will be apparent to one of skill in the art how alternative functional, logical or physical partitioning and configurations may be implemented to implement the desired features of the present invention. Also, a multitude of different constituentmodule names other than those depicted herein may be applied to the various partitions.Additionally, with regard to flow diagrams, operational descriptions and method claims, the order in which the steps are presented herein shall not mandate that various embodiments be implemented to perform the recited functionality in the same order unless the context dictates otherwise.
[0078] Although the invention is described above in terms of various exemplary embodiments and implementations, it should be understood that the various features, aspects and functionality described in one or more of the individual embodiments are not limited in their applicability to the particular embodiment with which they are described, but instead may be applied, alone or in various combinations, to one or more of the other embodiments of the invention, whether or not such embodiments are described and whether or not such features are presented as being a part of a described embodiment. Thus the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments.
[0079] Terms and phrases used in this document, and variations thereof, unless otherwise expressly stated, should be construed as open ended as opposed to limiting. As examples of the foregoing: the term "including" should be read as meaning "including, without limitation" or the such as; the term "example" is used to provide exemplary? instances of the item in discussion, not an exhaustive or limiting list thereof; the terms "a" or "an" should be read as meaning "at least one," "one or more" or the such as; and adjectives such as "conventional," "traditional," "normal," "standard," "known" and terms of similar meaning should not be construed as limiting the item described to a given time period or to an item available as of a given time, but instead should be read to encompass conventional, traditional, normal, or standard technologies that may be available or known now or at any time in the future. Hence, where this document refers to technologies that would be apparent or known to one of ordinary skill in the art, such technologies encompass those apparent or known to the skilled artisan now or at any time in the future.
[0080] A group of items linked with the conjunction "and" should not be read as requiring that each and every one of those items be present in the grouping, but rather should be read as "and / or" unless expressly stated otherwise. Similarly, a group of items linked with the conjunction "or" should not be read as requiring mutual exclusivity among that group, but rather should also be read as "and / or" unless expressly stated otherwise. Furthermore, although items.elements or components of the invention may be described or claimed in the singular, the plural is contemplated to be within the scope thereof unless limitation to the singular is explicitly stated.
[0081] The presence of broadening words and phrases such as "one or more." "at least." "but not limited to" or other such as phrases in some instances shall not be read to mean that the narrower case is intended or required in instances where such broadening phrases may be absent. The use of the term "module" does not imply that the components or functionality described or claimed as part of the module are all configured in a common package. Indeed, any or all of the various components of a module, whether control logic or other components, may be combined in a single package or separately maintained and may further be distributed across multiple locations.
[0082] Additionally, the various embodiments set forth herein are described in terms of exemplary block diagrams, flow' charts and other illustrations. As will become apparent to one of ordinary skill in the art after reading this document, the illustrated embodiments and their various alternatives may be implemented without confinement to the illustrated examples. For example, block diagrams and their accompanying description should not be construed as mandating a particular architecture or configuration.
[0083] The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0084] It is to be understood that the above description is intended to be illustrative, and not restrictive. For example, the above-described embodiments (and / or aspects thereof) may be used in combination with each other. Many other embodiments will be apparent to those of skill in the art upon reviewing the above description. The scope of the invention should, therefore, be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled. In the appended claims, the terms “including” and “in which” are used as the plain-English equivalents of the respective terms “comprising” and “wherein.” Also,in the following claims, the terms “including” and “comprising” are open-ended, that is, a system, device, article, or process that includes elements in addition to those listed after such a term in a claim are still deemed to fall within the scope of that claim. Moreover, in the following claims, the terms “first,” “second,” and “third,” etc. are used merely as labels, and are not intended to impose numerical requirements on their objects. The Abstract of the Disclosure is provided to comply with 37 C. F. R. § 1.72(b), requiring an abstract that will allow the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. In addition, in the foregoing Detailed Description, various features may be grouped together to streamline the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive subject matter may lie in less than all features of a single disclosed embodiment. Thus, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment.
[0085] Thus, the technology of security methods and systems for dynamically generating payload schema processing code using machine learning is disclosed. Although embodiments have been described with reference to specific example embodiments, it will be evident that various modifications and changes can be made to these example embodiments without departing from the broader spirit and scope of the present application. Accordingly, the specification and drawings are to be regarded in an illustrative rather than a restrictive sense.
Claims
CLAIMSWhat is claimed:
1. A computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising:capturing network packets from a communication channel between a user and an application, the network packets comprising a data structure package;identifying a schema of a payload used in the data structure package of the network packets;dynamically generating payload schema processing code using a machine learning dynamic protocol parser by applying a machine learning model to the schema of the payload, the payload schema processing code including a description of each field of the data structure package and a parser function for extracting a prompt; anditerating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria.
2. The computer-implemented method of claim 1, wherein the capturing network packets comprises intercepting the network packets using a proxy server positioned between the user and the application, the application being an Large Language Model (LLM) integrated application using an external Application Programing Interfaces (API) provided by an LLM provider.
3. The computer-implemented method of claim 2, wherein the proxy server uses deep packet inspection (DPI) techniques to capture detailed information from the network packets.
4. The computer-implemented method of claim 1, wherein the predefined accuracy and functionality criteria include successfully extracting the prompt from the network packets.
5. The computer-implemented method of claim 1, wherein the machine learning model is a large language model (LLM) trained to analyze the network packets and generate parser functions.
6. The computer-implemented method of claim 1, wherein the dynamically generating payload schema processing code using the machine learning dynamic protocol parser comprises generating a plurality of fields of the data structure package and a parser function for extracting the prompt.
7. The computer-implemented method of claim 1, wherein the data structure package is an uninterrupted input in JSON format.
8. The computer-implemented method of claim 1, wherein the iterating the dynamically generating of the payload schema processing code until the payload schema processing code meets the predefined accuracy and functionality criteria is an iterative self-correction mechanism, the iterative self-correction mechanism refining the generated payload schema processing code until the prompt is extracted.
9. The computer-implemented method of claim 8, wherein the predefined accuracy and functionality criteria comprise correctly parsing and extracting specific fields from the data structure package.
10. The computer-implemented method of claim 1, wherein the machine learning model uses natural language processing (NLP) techniques to analyze the data structure package and generate the payload schema processing code.
11. The computer-implemented method of claim 1, wherein the machine learning model is configured to detect zero-day vulnerabilities by training the machine learning model on previous known vulnerabilities and creating a separate offensive machine learning model that generates vulnerabilities that are used as synthetic training data.
12. The computer-implemented method of claim 1, wherein the generated payload schema processing code is deployed in a sandbox environment for testing before being deployed.
13. The computer-implemented method of claim 1, wherein the machine learning model generates an alert, the alert being when a network threat is detected.
14. The computer-implemented method of claim 1, further comprising testing the generated payload schema processing code against a set of known network packets to verify accuracy and functionality.
15. The computer-implemented method of claim 14, wherein the machine learning model iteratively self-corrects the generated payload schema processing code based on feedback from testing results.
16. The computer-implemented method of claim 1, further comprising detecting a network threat in real-time by analyzing the data structure package using a machine learning model.
17. The computer-implemented method of claim 16, further comprising responding to the detected network threat by generating and deploying security code using the machine learning model, the security code using the machine learning dynamic protocol parser.
18. A computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising:capturing network packets from a communication channel between a user and an application, the network packets comprising a data structure package;identifying a schema of a payload used in the data structure package of the network packets;dynamically generating payload schema processing code using a machine learning dynamic protocol parser by applying a machine learning model to the schema of the payload, the pay load schema processing code including a description of each field of the data structure package and a parser function for extracting a prompt; anditerating the dynamically generating of the payload schema processing code until the payload schema processing code meets a predefined accuracy and functionality criteria, thepredefined accuracy and functionality criteria include successfully extracting the prompt from the network packets.
19. A computer-implemented method for dynamically generating payload schema processing code using machine learning, the method comprising:receiving network packets using a proxy server between external Application Programing Interface (API) of a Large Language Model (LLM) integrated application and a prompt filter, the network packets comprising a data structure package;receiving a failure response from a predefined static protocol parser, the predefined static protocol parser generating the failure response after failing to process the data structure package;dynamically generating payload schema processing code using a machine learning dynamic protocol parser by applying a machine learning model to the data structure package, the pay load schema processing code including a description of each field of the data structure package and a parser function for extracting a prompt;iterating the dynamically generating of the payload schema processing code using the machine learning dynamic protocol parser until the payload schema processing code meets a predefined accuracy and functionality criteria, the predefined accuracy and functionality criteria comprising successfully extracting the prompt from the network packets; anddeploying the payload schema processing code to maintain functionality of the LLM integrated application.
20. The computer-implemented method of claim 19, wherein the machine learning model iteratively self-corrects the generated payload schema processing code based on feedback from testing results.