Systems and methods to improve network and data security by automatically preventing rogue database queries
Systems, computer program products, and methods are described herein for improving network and data security by automatically preventing rogue database queries. The present disclosure is configured to identify a query request, wherein the query request comprises query request metadata; apply the query request to a generative adversarial network (GAN) model, wherein the GAN model is protected by a security gateway; generate, by the GAN model, a result metadata based on the query request, wherein the GAN model is trained on a database schema; and determine, based on a comparison of the query request metadata and the result metadata, whether to allow the query request by the security gateway.
1 . A system for improving network and data security by automatically preventing rogue database queries, the system comprising:
a processing device;
a non-transitory storage device containing instructions when executed by the processing device, causes the processing device to perform the steps of:
identify a query request, wherein the query request comprises query request metadata, wherein the query request metadata comprises a potential quantity of results and a potential processing time of results;
apply the query request to a generative adversarial network (GAN) model, wherein the GAN model is protected by a security gateway;
generate, by the GAN model, a result metadata based on the query request, wherein the GAN model is trained on a database schema, wherein the result metadata comprises simulated quantity of results and simulated time of results; and
determine, based on a comparison of the query request metadata and the result metadata, whether to allow the query request by the security gateway,
wherein, in an instance where the potential quantity of results does not match the simulated quantity of results or the potential processing time of results does not match the simulated time of results, automatically block the query request, or
wherein, in an instance where the potential quantity of results matches the simulated quantity of results and the potential processing time of results matches the simulated time of results, automatically allow the query request.
2 . The system of claim 1 , wherein the GAN model is pre-trained on at least one of a results cache database or an historical query pattern database.
3 . The system of claim 1 , wherein the query request metadata is generated based on an intelligent instrumented bot.
4 . The system of claim 3 , wherein the intelligent instrumented bot is applied on a computing system for at least one of an external client or an internal client to the network associated with the database schema.
5 . The system of claim 1 , wherein the security gateway protects the GAN model from an internal client or an external client that generates the query request.
6 . The system of claim 1 , wherein the query request data comprises a purpose, a potential quantity of results, a data and time metadata, a source identifier, or the potential processing time.
7 . The system of claim 1 , wherein the GAN model generates the result metadata by simulating an output of the query request without executing the query request.
8 . The system of claim 1 , wherein the matching of the query request metadata and the result metadata comprises a difference percentage, and wherein the difference percentage is compared to a threshold of difference and in an instance where the difference percentage meets or exceeds the threshold of difference, allow the query request.
9 . A computer program product for improving network and data security by automatically preventing rogue database queries, the computer program product comprising a non-transitory computer-readable medium comprising code causing an apparatus to:
identify a query request, wherein the query request comprises query request metadata, wherein the query request metadata comprises a potential quantity of results and a potential processing time of results;
apply the query request to a generative adversarial network (GAN) model, wherein the GAN model is protected by a security gateway;
generate, by the GAN model, a result metadata based on the query request, wherein the GAN model is trained on a database schema, wherein the result metadata comprises simulated quantity of results and simulated time of results; and
determine, based on a comparison of the query request metadata and the result metadata, whether to allow the query request by the security gateway,
wherein, in an instance where the potential quantity of results does not match the simulated quantity of results or the potential processing time of results does not match the simulated time of results, automatically block the query request, or
wherein, in an instance where the potential quantity of results matches the simulated quantity of results and the potential processing time of results matches the simulated time of results the result, automatically allow the query request.
10 . The computer program product of claim 9 , wherein the GAN model is pre-trained on at least one of a results cache database or an historical query pattern database.
11 . The computer program product of claim 9 , wherein the query request metadata is generated based on an intelligent instrumented bot.
12 . The computer program product of claim 9 , wherein the security gateway protects the GAN model from an internal client or an external client that generates the query request.
13 . The computer program product of claim 9 , wherein the query request data comprises a purpose, a potential quantity of results, a data and time metadata, a source identifier, or the potential processing time.
14 . A computer implemented method for improving network and data security by automatically preventing rogue database queries, the computer implemented method comprising:
identifying a query request, wherein the query request comprises query request metadata, wherein the query request metadata comprises a potential quantity of results and a potential processing time of results;
applying the query request to a generative adversarial network (GAN) model, wherein the GAN model is protected by a security gateway;
generating, by the GAN model, a result metadata based on the query request, wherein the GAN model is trained on a database schema, wherein the result metadata comprises simulated quantity of results and simulated time of results; and
determining, based on a comparison of the query request metadata and the result metadata, whether to allow the query request by the security gateway,
wherein, in an instance where the potential quantity of results does not match the simulated quantity of results or the potential processing time of results does not match the simulated time of results, automatically blocking the query request, or
wherein, in an instance where the potential quantity of results matches the simulated quantity of results and the potential processing time of results matches the simulated time of results, automatically allowing the query request.
15 . The computer implemented method of claim 14 , wherein the GAN model is pre-trained on at least one of a results cache database or an historical query pattern database.
16 . The computer implemented method of claim 14 , wherein the query request metadata is generated based on an intelligent instrumented bot.
17 . The computer implemented method of claim 14 , wherein the security gateway protects the GAN model from an internal client or an external client that generates the query request.
18 . The computer implemented method of claim 14 , wherein the query request data comprises a purpose, a potential quantity of results, a data and time metadata, a source identifier, or the potential processing time.