The-Malware-Files/Stegcore

GitHub: The-Malware-Files/Stegcore

一款隐私优先的隐写工具包,可将加密信息隐藏在图片和音频文件中,并具备可否认双负载和内置隐写分析能力。

Stars: 18 | Forks: 0

Stegcore logo # Stegcore **在普通文件中隐藏加密信息** [![CI](https://static.pigsec.cn/wp-content/uploads/repos/cas/ad/ad5834178f7599af9fdda11629d49cae07f2997beec49821b2920eff5bfd50e7.svg)](https://github.com/The-Malware-Files/Stegcore/actions/workflows/ci.yml) [![Coverage](https://codecov.io/gh/The-Malware-Files/Stegcore/branch/main/graph/badge.svg)](https://codecov.io/gh/The-Malware-Files/Stegcore) [![Release](https://img.shields.io/github/v/release/The-Malware-Files/Stegcore)](https://github.com/The-Malware-Files/Stegcore/releases/latest) [![Licence: AGPL-3.0](https://img.shields.io/badge/licence-AGPL--3.0--or--later-blue)](LICENSE) [![Commercial licence available](https://img.shields.io/badge/commercial-available-purple)](COMMERCIAL.md)
## 这是什么 Stegcore 将加密信息隐藏在日常的图片和音频文件中。这些文件看起来和听起来依然完全正常。没有人能看出它包含隐藏信息,无论是你的网络服务提供商、边境检查人员,还是拥有专业工具的取证分析师都无法察觉。 你的数据永远不会离开你的设备。无需账户。没有云端。没有遥测。没有任何形式的网络连接。一个口令用于隐藏,同一个口令用于恢复。 如果有人强迫你交出密码,给他们诱饵密码。Stegcore 可以在同一个文件中容纳两条信息,每条都有自己的口令。任何查看该文件的人都无法分辨哪一半包含真实信息,甚至根本不知道第二条信息的存在。
底层原理 三种认证加密算法(Ascon-128, ChaCha20-Poly1305, AES-256-GCM)。使用 Argon2id 将口令转换为加密密钥,并经过专门调优以使暴力破解极其困难。自适应嵌入技术会选择载体文件中的噪声部分,让隐藏的数据消失在自然的颗粒感中。可否认的 dual-payload 模式。在经典的 SPA / RS / WS 检测器上达到与 Aletheia 同等水平的隐写分析套件,外加分层结构工具指纹识别(Exact 和 Heuristic)。桌面 GUI 和 CLI。一个小巧的 native binary。
## 安装 ### 下载二进制文件(推荐) 从 [**Releases 页面**](https://github.com/The-Malware-Files/Stegcore/releases) 获取适合你平台的最新版本。 | 平台 | CLI | GUI | |---|---|---| | **Linux x86_64** | `.tar.gz` | `.AppImage` 或 `.deb` | | **macOS (Intel 和 Apple Silicon)** | Universal binary | `.dmg` | | **Windows x86_64** | `.zip` | `.msi` | ### 一行命令安装程序 同一个 URL 适用于 Linux、macOS 和 Windows。会自动检测你的平台。 **Linux 和 macOS:** ``` curl -fsSL https://raw.githubusercontent.com/The-Malware-Files/Stegcore/main/install | sh ``` **Windows (PowerShell):** ``` irm https://raw.githubusercontent.com/The-Malware-Files/Stegcore/main/install | iex ```
安装程序选项 ``` # 固定版本 STEGCORE_VERSION=v4.0.1 curl -fsSL .../install.sh | bash # 自定义安装目录 STEGCORE_DIR=/opt/stegcore curl -fsSL .../install.sh | bash # 卸载 bash install.sh --uninstall ``` ``` # Windows 选项 .\install.ps1 -Component both # CLI plus GUI .\install.ps1 -Version v4.0.1 # Pin version .\install.ps1 -Uninstall # Remove .\install.ps1 -DryRun # Preview only ```
### 从源码构建 ``` cargo build --workspace --release ``` 这会在 `target/release/stegcore` 生成 CLI。如果要生成桌面应用,请在仓库根目录下运行 `cargo tauri build`。 ## CLI 使用方法 ``` # 向导模式(最适合首次使用的用户) stegcore wizard # 隐藏消息 stegcore embed cover.png secret.txt -o stego.png # 恢复消息 stegcore extract stego.png -o recovered.txt # 检查文件中的隐藏消息 stegcore analyse suspect.png # 带进度条扫描文件夹 stegcore analyse *.png --json # 在 pipe 中工作 echo "secret" | stegcore embed cover.png - -o stego.png stegcore extract stego.png --raw | xxd ``` ### 其他实用命令 ``` stegcore score cover.png # Is this file a good hiding spot? stegcore diff cover.png stego.png # Show the pixel difference stegcore info stego.png # Read metadata (needs the passphrase) stegcore ciphers # List available encryption options stegcore doctor # System health check stegcore benchmark # Test how fast your machine runs the ciphers stegcore completions bash # Shell completion setup stegcore verse # A small daily encouragement ``` 完整的参数参考请见:`stegcore --help`。 ## GUI 启动 Stegcore,然后按照分步向导进行隐藏、恢复或检查文件。所有界面均支持拖放操作。 | 功能 | 作用 | |---|---| | Embed 向导 | 四步流程:信息、载体文件、选项、确认 | | Extract 向导 | 三步流程:stego 文件、口令、恢复的 payload | | Analysis 面板 | 为每个检测器提供带有结论和各测试分数的动态图表 | | 音频分析 | 波形视图,高亮显示可疑区域 | | Pixel diff | 嵌入成功后的前后对比 | | 导出 | 将面板复制到剪贴板,或导出为 PDF、HTML、JSON 或 CSV | 分析历史记录会保留在你的设备上。不会有任何数据外传。 ## 支持的格式 | 格式 | 隐藏 | 恢复 | 分析 | 备注 | |---|---|---|---|---| | PNG | ✓ | ✓ | ✓ | 最佳容量和隐蔽性 | | BMP | ✓ | ✓ | ✓ | Lossless | | JPEG | ✓ | ✓ | ✓ | JSteg 风格的 JPEG 嵌入 | | WebP | ✓ | ✓ | ✓ | Lossless WebP | | WAV | ✓ | ✓ | ✓ | PCM 音频,least significant bit | | FLAC | ✓ | ✓ | ✓ | Lossless 音频,bit-exact round-trip | ## 为什么选择 Stegcore 我们将 Stegcore 与实际运行过的工具(Steghide 和 OpenStego)进行了对比。更广泛的基准测试正在进行中。 | | Stegcore | Steghide | OpenStego | |---|---|---|---| | 离线可用 | ✓ | ✓ | ✓ | | 现代加密技术 | 3 种认证加密算法加上 Argon2id | Rijndael 加上 MD5 | AES-128 | | 可否认的 dual-payload | ✓ | ✗ | ✗ | | 内置分析 | ✓ (SPA + RS + WS + fingerprints) | ✗ | ✗ | | Carrier 评分 | ✓ | ✗ | ✗ | | Pixel diff | ✓ | ✗ | ✗ | | GUI + CLI | ✓ | 仅 CLI | 仅 GUI | | 支持 pipe | ✓ | ✗ | ✗ | | 积极维护 | ✓ (2026) | ✗ (2003) | ✗ (2016) | ## 分析效果如何 Stegcore 是在公开环境中构建的,因此我们非常明确它能检测到什么,不能检测到什么。 - **经典检测器达到 Aletheia 同等水平。** Sample Pair Analysis、RS 和 Weighted Stego 在浮点精度上与公开的 [Aletheia](https://github.com/daniellerch/aletheia) 参考标准完全匹配,并且在 Rust 中运行速度要快得多。 - **表现强劲**:在中等及更高 payload 的空间域 least-significant-bit 替换,以及会留下结构指纹的工具(例如 OpenStego)上表现强劲,在这些情况下一旦命中基本就是决定性的。 - **困难点,我们如实相告。** 极低的 payload、LSB-matching 和 JPEG 域隐藏对于经典隐写分析来说很困难。Stegcore 并不掩盖这一点。 各版本的检测数据(在公开数据集上与 Aletheia 进行对比测量)均发布在 [changelog](CHANGELOG.md) 中。你可以对自己的文件重新运行分析: ``` stegcore analyse your-images/*.png --json > your-scores.jsonl ``` ## 文档 - [CLI 参考](USAGE.md) - [架构](ARCHITECTURE.md) - [Changelog](CHANGELOG.md) - [安全与威胁模型](SECURITY.md) - [贡献指南](CONTRIBUTING.md) ## 许可证 Stegcore 采用双重许可。 - **AGPL-3.0-or-later**:默认许可。对个人、研究人员、 开源项目、非政府组织,以及任何愿意以相同条款发布自己衍生 源代码的人免费。详见 [LICENSE](LICENSE)。 - **商业许可证**:适用于希望将 Stegcore 用于专有软件、内部工具或托管服务中 而不受 AGPL 源代码发布义务限制的组织。 请参阅 [COMMERCIAL.md](COMMERCIAL.md)。 这两个许可证均适用于相同的代码库;你可以选择最适合 你情况的许可证。[可接受使用政策](AUP.md) 无论你使用 哪个许可证均适用。 联系方式:`ops@themalwarefiles.com`
标签:DNS 反向解析, 信息隐藏, 可否认加密, 可视化界面, 密码学, 手动系统调用, 数据加密, 网络安全, 通知系统, 隐写术, 隐私保护