Encode, decode, detect, and analyze steganographic content in images. A comprehensive steganography and steganalysis toolkit that works as a skill for OpenCode, Claude Code, Codex, and Hermes Agent.
Covers spatial-domain, frequency-domain, and modern encrypted steganography including HIDEAGEM, F5, JSteg, spread spectrum, and LSB matching techniques.
git clone https://github.com/vRobM/steganalysis-skill.git
cd steganalysis-skillpython3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtTell your agent to install it:
Install the steganalysis skill from https://github.com/vRobM/steganalysis-skill
The agent will clone the repo and symlink it into the correct skills directory for your runtime:
| Runtime | Skills directory |
|---|---|
| OpenCode | ~/.config/opencode/skills/steganalysis |
| Claude Code | ~/.claude/skills/steganalysis |
| Codex | ~/.codex/skills/steganalysis |
| Hermes Agent | ~/.hermes/skills/steganalysis |
After installation, restart your agent session. The skill activates automatically when you mention steganography, steganalysis, hiding data in images, or detecting hidden content.
- numpy, pillow, scipy — core image processing
- opencv-python, scikit-image, pandas — enhanced analysis (optional)
- aletheia — steganalysis framework integration
# LSB Replacement — simple, detectable
python3 scripts/steg_encode.py encode --cover image.png --input secret.txt --output stego.png
# LSB Matching — harder to detect
python3 scripts/steg_encode.py encode --cover image.png --input secret.txt --output stego.png --method lsb-matchingpython3 scripts/steg_decode.py --input stego.png --output extracted/# Single image — runs all detection methods
python3 scripts/steg_detect.py --input suspicious.png
# Specific method group
python3 scripts/steg_detect.py --input image.png --method lsb # spatial domain checks
python3 scripts/steg_detect.py --input image.jpg --method dct # DCT/frequency only
python3 scripts/steg_detect.py --input image.png --method chi # chi-square only
python3 scripts/steg_detect.py --input image.png --method fast # appended + lsb + chi
# Comma-separated mix
python3 scripts/steg_detect.py --input image.png --method chi,entropy,autocorr
# Scan a directory
python3 scripts/steg_detect.py --input ./images/ --recursivepython3 scripts/steg_scan.py --dir ./images/ --recursive# DCT coefficient analysis
python3 scripts/dct_analyze.py --input image.jpg
# LSB plane visualization
python3 scripts/lsb_visualize.py --input image.png --channel all
# Cross-image correlation (detect common payloads)
python3 scripts/cross_correlate.py --images *.jpg# Auto-detect all methods
aletheia auto images/
# RS analysis
aletheia rs image.png
# SPA analysis
aletheia spa image.png| Method | Targets | Format |
|---|---|---|
| Chi-Square | LSB Replacement | Any |
| RS Analysis | LSB Replacement | PNG |
| SPA | LSB Matching | PNG |
| Weighted Stego | LSB Replacement/Matching | PNG |
| F5 Calibration | F5 embedding | JPEG |
| DCT LSB Bias | DCT-domain steganography | JPEG |
steganalysis-skill/
├── SKILL.md # Full skill documentation (aidevops)
├── README.md # This file
├── requirements.txt # Python dependencies
├── scripts/
│ ├── steg_encode.py # Encode/hide data in images
│ ├── steg_decode.py # Decode/extract hidden data
│ ├── steg_detect.py # Multi-method detection engine
│ ├── steg_scan.py # Batch directory scanner
│ ├── dct_analyze.py # DCT coefficient analysis
│ ├── dct_lsb_bias.py # DCT LSB bias detection (JPEGs)
│ ├── lsb_visualize.py # LSB plane visualization
│ └── cross_correlate.py # Cross-image correlation
├── reference/
│ ├── methods.md # Steganographic method reference
│ ├── hideagem.md # HIDEAGEM technical deep-dive
│ ├── compression-resistant.md # Compression-resistant techniques
│ └── detection-signatures.md # Known detection signatures
└── templates/
├── report-template.md # Analysis report template
└── expert-questions.md # Expert review question template
Encoding:
- LSB Replacement (1-4 bits per channel)
- LSB Matching (±1 modification, harder to detect)
- DCT coefficient embedding (JPEG domain)
Detection:
- Chi-square statistical test
- Regular-Singular (RS) analysis
- Sample Pair Analysis (SPA)
- Weighted Stego analysis
- F5 calibration attack
- DCT LSB bias detection
MIT