Skip to main navigation Skip to search Skip to main content

Adaptive Adversarial Prompt Detection in Large Language Models via Quantum-Resistant Cryptography and Spectral-Spatial Wave Networks

  • A. Mosses*
  • , N. Ramshankar
  • , J. Anvar Shathik
  • , R. Raja
  • , K. Raju
  • , K. Manikandan
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

The rapid growth of large language models (LLMs) has intensified concerns over adversarial prompts, which can manipulate model outputs, bypass safety constraints, or cause unintended behaviors. Traditional prompt filtering systems rely on keyword-based detection or basic semantic similarity checks, which often fail to identify obfuscated, rephrased, or structurally disguised malicious inputs. Furthermore, many existing solutions store prompts in plain text for analysis, creating a significant security vulnerability. To address these challenges, a secure and adaptive adversarial prompt detection framework is introduced, integrating post-quantum cryptography, advanced semantic-behavioral analysis, and metaheuristic optimization. In this approach, incoming prompts are immediately encrypted using a Quantum-Resistant Cryptography algorithm before any storage, ensuring confidentiality even under future quantum attacks. A normalization-based preprocessing stage removes obfuscations, malicious syntax, and hidden tokens, followed by a Hierarchical Attention Transformer for combined semantic and behavioral analysis, capturing both local syntactic cues and global semantic dependencies. The extracted features are processed through a self-attention-based Spectral-Spatial Wave Network(Self-SSWN), whose parameters are optimized using the Migrating Walrus Algorithm to enhance detection accuracy. The optimized deep learning classifier assigns confidence-based threat levels - benign, potentially adversarial, or confirmed adversarial - while a continuous feedback loop updates the model with newly detected attack patterns.

Original languageEnglish
Title of host publicationProceedings of the 6th International Conference on Smart Electronics and Communication, ICOSEC 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages1951-1957
Number of pages7
ISBN (Electronic)9798331598594
DOIs
StatePublished - 2025
Externally publishedYes
Event6th International Conference on Smart Electronics and Communication, ICOSEC 2025 - Trichy, India
Duration: 24 Sep 202526 Sep 2025

Publication series

NameProceedings of the 6th International Conference on Smart Electronics and Communication, ICOSEC 2025

Conference

Conference6th International Conference on Smart Electronics and Communication, ICOSEC 2025
Country/TerritoryIndia
CityTrichy
Period24/09/2526/09/25

Bibliographical note

Publisher Copyright:
© 2025 IEEE.

Keywords

  • Hierarchical Attention Transformer
  • Large language models
  • Migrating Walrus Algorithm
  • Self-attention
  • Spectral-Spatial Wave Network

ASJC Scopus subject areas

  • Artificial Intelligence
  • Computer Networks and Communications
  • Computer Science Applications
  • Hardware and Architecture
  • Information Systems and Management
  • Safety, Risk, Reliability and Quality

Fingerprint

Dive into the research topics of 'Adaptive Adversarial Prompt Detection in Large Language Models via Quantum-Resistant Cryptography and Spectral-Spatial Wave Networks'. Together they form a unique fingerprint.

Cite this