https://github.com/elementmerc/anya
A malware analysis platform built in Rust
https://github.com/elementmerc/anya
analysis cybersecurity forensics malware rust security
Last synced: 2 months ago
JSON representation
A malware analysis platform built in Rust
- Host: GitHub
- URL: https://github.com/elementmerc/anya
- Owner: elementmerc
- License: agpl-3.0
- Created: 2026-02-18T03:09:33.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2026-02-23T20:44:04.000Z (3 months ago)
- Last Synced: 2026-02-24T05:36:40.595Z (3 months ago)
- Topics: analysis, cybersecurity, forensics, malware, rust, security
- Language: Rust
- Homepage:
- Size: 1.32 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.TXT
Awesome Lists containing this project
README

# Anya
**Fast static malware analysis**
[](https://github.com/elementmerc/anya/actions/workflows/ci.yml)
[](https://github.com/elementmerc/anya/releases/latest)
[](LICENSE.TXT)
[](https://crates.io/crates/anya-security-core)
---
Anya analyses binary files without executing them. Drop a PE or ELF onto the GUI, or pipe files through the CLI. Get hashes, entropy, imports, sections, MITRE ATT&CK mappings, and a risk score. All in under seconds, all locally.
**Anya** (AHN-yah) means "eye" in Igbo.
---
## Install
```bash
curl -fsSL https://raw.githubusercontent.com/elementmerc/anya/master/install.sh | bash
```
Prompts for CLI, GUI, or both. No root required for CLI.
### Platform grid
| Platform | CLI | GUI |
|---|---|---|
| **Linux x86_64** | `.tar.gz` + `musl` | `.AppImage` / `.deb` |
| **Linux arm64** | `.tar.gz` + `musl` | — |
| **macOS (Intel + Apple Silicon)** | Universal binary | `.dmg` (universal) |
| **Windows x86_64** | `.zip` | `.msi` |
| **Docker** | `linux/amd64` + `linux/arm64` | — |
### Docker
```bash
docker pull elementmerc/anya:latest
docker run --rm \
-v "$(pwd)/samples:/samples:ro" \
elementmerc/anya:latest \
--file /samples/malware.exe --json
```
### From source
```bash
# CLI
cargo install anya-security-core --locked
# GUI (requires Node 22 + Tauri prerequisites)
npm ci && npm run tauri build
```
---
## CLI usage
```bash
# Analyse a file
anya --file suspicious.exe
# JSON output
anya --file suspicious.exe --json
# Batch scan
anya --directory ./samples --recursive --json --output results.jsonl --append
# Teacher Mode (guided lessons inline)
anya --file suspicious.exe --guided
# Random Bible verse
anya verse
# Init config
anya --init-config
```
Full flag reference: `anya --help`
---
## GUI
Launch Anya, drag a file onto the drop zone. Seven tabs:
| Tab | What it shows |
|---|---|
| Overview | Risk score, file metadata, SHA-256 |
| Entropy | Full entropy chart + per-section breakdown |
| Imports | DLL tree with expandable function lists and inline explanations |
| Sections | W+X detection, per-section entropy, characteristics |
| Strings | Extracted ASCII strings |
| Security | ASLR, DEP, version info, signed status |
| MITRE | Mapped ATT&CK techniques with tactic tagging |
**Teacher Mode** (toggle in Settings → Learning) surfaces contextual lessons as you navigate findings. **Bible Verses** (same section) shows a rotating NLT verse in the status bar.
Analysis history is stored in a local SQLite database. Nothing leaves your device.
---
## Why Anya?
| | Anya | VirusTotal | Ghidra | CAPA |
|---|---|---|---|---|
| Offline | ✓ | ✗ | ✓ | ✓ |
| No cloud upload | ✓ | ✗ | ✓ | ✓ |
| Desktop GUI | ✓ | Browser | ✓ | ✗ |
| < 1 s analysis | ✓ | Network-bound | ✗ | Seconds |
| MITRE mapping | ✓ | Partial | ✗ | ✓ |
| Beginner-friendly | ✓ | — | ✗ | — |
---
## Docs
- [Architecture](docs/ARCHITECTURE.md)
- [JSON output schema](docs/JSON_SCHEMA.md)
- [CHANGELOG](docs/CHANGELOG.md)
- [Security scope & limitations](SECURITY.md)
- [Privacy policy](docs/PRIVACY.md)
- [Commercial licensing](docs/COMMERCIAL_LICENSE.md)
---
## Uninstalling
- **Windows**: Use Add/Remove Programs — the uninstaller launches automatically.
- **Linux**: `sudo apt remove anya` — the uninstaller runs during removal.
- **macOS**: Drag Anya.app to the Trash, then optionally run:
`~/Applications/Anya.app/Contents/MacOS/anya-gui --uninstall`
to remove your analysis database and preferences.
---
## Licence
AGPL-3.0-or-later. See [LICENSE.TXT](LICENSE.TXT).
Commercial licensing: daniel@themalwarefiles.com