项目说明
PolyScan - Image Polyglot Security Scanner
PolyScan is a high-performance security scanner designed to detect and extract embedded executables, scripts, and suspicious content hidden within image files. It's specifically built for defensi analysis and forensic in of image polyglots.
Features
Multi-format Support: PNG, JPEG, GIF, BMP, WebP, TIFF, ICOHigh Performance: Memory-mapped processing for large files, multiprocessing supportComprehensi: Embedded executables (PE, ELF), scripts, archives, nested imagesSe Classification: Risk-based classification (LOW/MEDIUM/HIGH/CRITICAL)Content Carving: Extract suspicious artifacts for further analysisJSON Export: Machine-readable output for automation and integrationColored Output: Enhanced terminal display with se coloringInstallation
Using pipx (Recommended)
Using u Python Package Manager)
Using pip
De Installation
Quick Start
Usage Examples
Basic Analysis
Batch Processing with Carving
High-Performance Scanning
Detection Capabilities
Image Formats
PNG (Portable Network Graphics)JPEG/JPG (Joint Photographic Experts Group)GIF (Graphics Interchange Format)BMP (Bitmap)WebP (Web Picture format)TIFF (Tagged Image File Format)ICO (Icon format)Embedded Content Detection
Executables: PE/COFF (Windows), ELF (Linux/Unix)Scripts: Shell scripts, Python, PowerShell commandsArchives: ZIP, GZIP compressed dataDocuments: PDF, RTF filesNested Images: Additional image files within imagesSuspicious Text Patterns
Shell commands and script interpretersSystem execution functionsNetwork utilities (wget, curl)Base64 encoding indicatorsCode injection patternsCommand Line Options
Output Format
Terminal Output
PolyScan provides colored, structured output showing:
File information (path, size, format, hash)Processing method and timingDetected embedded content with se levelsSuspicious text patternsCar locationsJSON Export
Machine-readable format containing:
Complete analysis resultsFile hashes for identificationDetailed detection informationProcessing metadataPerformance metricsPerformance
Processing Speed: 60+ files/second (parallel mode)Memory Efficiency: Memory-mapped processing for large filesScalability: Configurable worker processesFile Size Support: Optimized for files from KB to GB rangeSecurity Considerations
PolyScan is designed for defensi analysis only:
✅ Malware analysis and forensic in✅ Security research and threat hunting✅ Incident response and digital forensics❌ Should not be used for malicious purposesContributing
1. Fork the repository
2. Create a feature branch (git checkout -b feature/amazing-feature)
3. Commit your changes (git commit -m 'Add amazing feature')
4. Push to the branch (git push origin feature/amazing-feature)
5. Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
petruknisme
Acknowledgments
Built for defensi and forensic analysisInspired by the need for efficient polyglot detection in image filesThanks to the security research community for sharing polyglot techniques项目信息
开发语言:Python
Star 数:7
技术要点
该项目属于防护思路方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕PolyScan is a high-performance security scanner designed to detect and extract embedded executables, scripts, and suspicious content hidden within image files. It's specifically built for defensive security analysis and forensic investigation of image polyglots.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
使用与学习建议
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
免责声明
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。