How alvinlemar/malware-steno works
malware-steno is a Flask-based file-scanning and image-steganography tool. A user uploads a file for steganography checks and malware classification, or submits a PNG/BMP image and secret message for encoding and download. The sampled application and utility code show those runtime paths; README also documents extraction, while the standalone feature-based stego model is not wired into the sampled app. Other media detection paths are explicit stubs.
Main entry points: app.py Flask Routes · detectors.py Stego Detection · malware_detector.py Malware Classifier · encoder.py LSB Encoder
Components 15
Web Interface
- Flask Routes
stego-detector/app.py - Uploaded Files
stego-detector/uploads - Scan Form
index.html - Scan Results
result.html - Encode Form
encode.html - Encode Results
encode_result.html
File Analysis
- Feature Extraction
stego-detector/app.py - Malware Classifier
stego-detector/utils/malware_detector.py - Malware Model
stego-detector/models/malware_rf.pkl
Steganography
- Stego Detection
stego-detector/utils/detectors.py - LSB Encoder
stego-detector/utils/encoder.py - Encoded Images
stego-detector/uploads/encoded - Message Extraction
stego-detector/utils/detectors.py - Audio/Video Stubs
stego-detector/utils/detectors.py
Other components
- User
Connections 16
- User → Flask Routes: submits file
- Flask Routes → Scan Form: renders
stego-detector/app.py - Flask Routes → Encode Form: renders
stego-detector/app.py - Flask Routes → Uploaded Files: saves upload
stego-detector/app.py - Flask Routes → Stego Detection: checks steganography
stego-detector/app.py - Flask Routes → Feature Extraction: extracts features
stego-detector/app.py - Feature Extraction → Malware Classifier: passes features
stego-detector/app.py - Malware Classifier → Malware Model: loads and predicts
stego-detector/utils/malware_detector.py - Flask Routes → Scan Results: renders results
stego-detector/app.py - Flask Routes → LSB Encoder: encodes message
stego-detector/app.py - LSB Encoder → Encoded Images: writes image
- Flask Routes → Encode Results: renders results
stego-detector/app.py - Flask Routes → Encoded Images: serves download
stego-detector/app.py - Stego Detection → Message Extraction: reveals message
stego-detector/utils/detectors.py - Stego Detection → Audio/Video Stubs: dispatches media
stego-detector/utils/detectors.py - User → Flask Routes: requests pages