X-StegDetect is an AI-powered digital forensic platform developed for the detection, analysis, and interpretation of image steganography generated using the ViT-DiffSteg framework. The platform integrates state-of-the-art deep learning models, forensic residual analysis, and Explainable Artificial Intelligence (XAI) to provide transparent, interpretable, and reliable steganographic investigations.
Designed for cybersecurity professionals, digital forensic investigators, researchers, and academic institutions, X-StegDetect delivers an end-to-end forensic workflow through an intuitive web-based interface.
- Detects Cover and Stego images
- Confidence score prediction
- High-performance deep learning inference
- Secure image preprocessing pipeline
Supports multiple state-of-the-art architectures:
- Vision Transformer (ViT)
- Swin Transformer
- ResNet50
- EfficientNet
Supports Ensemble Learning:
- Majority Voting
- Soft Voting
- Weighted Voting
Generate forensic visualization maps including:
- Noise Residual
- High-Pass Residual
- Sobel Edge Residual
- Local Variance Analysis
- Artifact Heat Maps
These visualizations expose hidden embedding artifacts that are difficult to observe using conventional image analysis.
Provides transparent AI predictions using:
- Grad-CAM
- SHAP
- LIME
The explainability module enables investigators to understand why a model classified an image as Stego instead of relying solely on prediction scores.
- Modern React Interface
- Responsive Design
- Drag-and-Drop Image Upload
- Live Prediction Results
- Residual Visualization
- Explainability Workspace
- Report Management
Generate investigation-ready PDF reports containing:
- Original Evidence
- Prediction Results
- Confidence Scores
- Residual Maps
- Grad-CAM Heatmaps
- SHAP Explanations
- LIME Explanations
- Investigation Metadata
- Docker
- Docker Compose
- Multi-container Deployment
- Cross-platform Support
- Python
- FastAPI
- PyTorch
- OpenCV
- NumPy
- Pillow
- ReportLab
- React
- Vite
- Tailwind CSS
- Axios
- Chart.js
- Grad-CAM
- SHAP
- LIME
- Docker
- Docker Compose
X-StegDetect/
│
├── backend/
│ ├── app/
│ ├── requirements.txt
│ └── init_models.py
│
├── frontend/
│ ├── src/
│ ├── public/
│ └── package.json
│
├── models/
├── uploads/
├── reports/
├── docker/
├── docker-compose.yml
├── README.md
└── API_DOCUMENTATION.md
Install the following software before running the project.
- Python 3.10+
- Node.js 18+
- Git
- Docker (Optional)
git clone https://github.com/amn2905/X-StegDetect.git
cd X-StegDetectNavigate to backend.
cd backendCreate virtual environment.
python -m venv venvActivate environment.
venv\Scripts\activatesource venv/bin/activateInstall dependencies.
pip install -r requirements.txtRun FastAPI server.
uvicorn app.main:app --reloadBackend
http://localhost:8000
Swagger Documentation
http://localhost:8000/docs
Open a new terminal.
cd frontendInstall packages.
npm installRun React application.
npm run devFrontend
http://localhost:5173
Build and start all containers.
docker compose up --buildor
docker-compose up --buildApplication URLs
Frontend
http://localhost
Backend
http://localhost:8000
API Documentation
http://localhost:8000/docs
- Upload an image.
- Select a deep learning model.
- Execute forensic detection.
- Review confidence scores.
- Analyze residual maps.
- Explore XAI visualizations.
- Generate forensic PDF report.
- Export investigation evidence.
X-StegDetect is suitable for:
- Digital Forensics
- Cybersecurity Research
- Multimedia Security
- Explainable AI Research
- Image Steganography Detection
- AI-Assisted Investigations
- Academic Research
- Security Education
- Video Steganography Detection
- Audio Steganography Detection
- Transformer Ensemble Optimization
- Cloud Deployment
- REST API Authentication
- Multi-user Investigation Workspace
- Real-time Monitoring
- GPU Batch Processing
This project has been developed as part of ongoing research in AI-assisted image steganography and digital forensic analysis using the ViT-DiffSteg framework.
The objective is to improve the transparency, interpretability, and reliability of deep learning-based steganalysis through Explainable AI techniques.
This project is licensed under the Apache License 2.0.
You are free to use, modify, and distribute this software in compliance with the terms and conditions of the Apache License 2.0.
See the LICENSE file for complete license details.
Mohd. Amaan Hamid
M.Sc. Cybersecurity
Research Interests
- Digital Forensics
- Artificial Intelligence
- Explainable AI
- Image Steganography
- Multimedia Security
- Post-Quantum Cryptography
If you use this project in your research, please cite the corresponding publication (to be updated after publication).
@software{xstegdetect,
title={X-StegDetect: AI-Powered Explainable Steganography Forensic Platform},
author={Mohd. Amaan Hamid},
year={2026},
note={Research Software}
}