AI

EncGPT – AI-agent that Dynamically Generates Encryption & Decryption Rules

Researchers from Xi’an Jiaotong University have introduced EncGPT, an AI-powered multi-agent framework that dynamically generates encryption and decryption rules.

This innovation addresses critical challenges in communication security, balancing cost-efficiency and high-level encryption reliability. EncGPT leverages large language models (LLMs) to create a dynamic encryption workflow that adapts to evolving security needs, marking a significant leap forward in cryptographic technology.

Traditional encryption methods often struggle with inherent limitations. Symmetric encryption, while fast, risks compromising security if keys are intercepted, whereas asymmetric encryption offers higher security but at the cost of increased computational complexity. Moreover, static algorithms are vulnerable to advanced cyberattacks due to their predictability.

EncGPT’s Multi-Agent Workflow

Dynamic encryption technologies aim to overcome these issues by introducing adaptability into cryptographic systems. EncGPT takes this concept further by dynamically generating encryption rules and algorithms instead of relying on fixed methods.

Agent Workflow

EncGPT operates through three specialized agents: the Rule Agent, Encryption Agent, and Decryption Agent.

  • Rule Agent: This agent generates encryption rules dynamically during each communication round. It uses classical algorithms like Caesar and Vigenère ciphers as foundational templates, modifying them with randomly generated keys and parameters to ensure unpredictability.
  • Encryption Agent: It applies the rules generated by the Rule Agent to encrypt user inputs.
  • Decryption Agent: This agent decrypts ciphertext using the same dynamic rules, ensuring seamless communication flow.

The architecture ensures that plaintext only appears during user input and output stages, enhancing security by preventing “prompt contamination,” a phenomenon where previous encryption rules interfere with subsequent interactions.

Researchers tested EncGPT using GPT-4o as the core engine for rule generation and encryption-decryption workflows. The system demonstrated strong performance with substitution algorithms like Caesar, Vigenère, and Atbash ciphers.

AlgorithmRule Gen (s)Encryption (s)Decryption (s)Total (s)
Caesar13.366.457.5127.23
Vigenère14.138.428.3430.89
Atbash10.446.577.3224.33

Homomorphic properties allowing operations on encrypted data without decryption were successfully preserved during tests. The average execution time for these workflows was 15.99 seconds, highlighting efficiency but also room for optimization compared to traditional heuristic algorithms.

EncGPT addresses several key issues in cryptography:

  1. Enhanced Security: By dynamically generating encryption algorithms and keys, EncGPT eliminates vulnerabilities associated with static methods.
  2. Cost Efficiency: Classical algorithms modified dynamically are computationally simpler and less resource-intensive.
  3. Homomorphic Encryption: EncGPT supports operations on encrypted data without exposing sensitive information—a feature crucial for privacy-preserving applications like financial data processing.

EncGPT represents a significant advancement in communication encryption by introducing an agent-based workflow that dynamically generates encryption algorithms and keys. 

This approach enhances encryption reliability and addresses communication security challenges in LLM-MA systems.

Investigate Real-World Malicious Links & Phishing Attacks With Threat Intelligence Lookup - Try for Free

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

2 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

2 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

3 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

4 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

4 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

5 hours ago