Method and device for non-invasive detection of sql injection and storage medium
Through dynamic annotation and redefinition of Class objects, non-invasive detection of SQL injection is achieved, solving the problem that SQL injection defense method in the existing technology requires modifying existing functional code, and achieving comprehensive detection and defense of SQL injection attacks.
Patent Information
- Application Number
- CN202411411339.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-03
AI Technical Summary
The existing technology SQL injection defense method requires modifying existing functional code, resulting in strong coupling and security risks, and it is difficult to fully detect SQL injection attacks.
By obtaining multiple code packages on the server, dynamically obtaining Class objects, and encapsulating the preset SQL injection verification rules as annotations at runtime, labeling them on potential risk fields, and redefining the Class objects with ByteBuddy to implement input to the client Real-time verification of requests to avoid SQL injection attacks.
It realizes non-invasive detection of SQL injection, which can directly verify the attack keywords and characters in the client input request before the SQL statement is executed, detect all attacks, avoid the risk of SQL injection, and reduce the existing code Revise.
Smart Images

Figure CN119249433A_ABST
