YaraScanTUI banner

gY Tool is the front-end name for your local YaraScanTUI setup — a clean, fast terminal UI that lets you take the YARA rules published on this site and use them locally with almost zero setup. Install Python → run the launcher → drop rules in a folder → start scanning. That’s it.

This page covers:

  • Where to get the tool
  • How to clone or download it
  • What the launchers do behind the scenes
  • How to use ghostYara rules with the tool
  • How to start scanning files or folders immediately

1. Where to get YaraScanTUI

YaraScanTUI now lives in its own dedicated repo:

You can either clone the repo or grab the ZIP.

Option A — Clone via git (recommended)

git clone https://github.com/Sab0x1D/YaraScanTUI.git
cd YaraScanTUI

Option B — Download as ZIP

  1. Visit: https://github.com/Sab0x1D/YaraScanTUI
  2. Click Code → Download ZIP or use the direct link above
  3. Extract
  4. Open the extracted YaraScanTUI folder

Once inside that folder, everything else is automatic.

2. Requirements

Very minimal:

You do not manually create venvs or run pip. The run scripts do all setup automatically.

3. Folder structure

YaraScanTUI/
├── add-python-to-path.bat               # <-- run right after your Python installation (run as admin)
├── add-python-to-path.ps1
├── app/
│   ├── controllers/
│   │   ├── __init__.py
│   │   └── scan.py
│   ├── services/
│   │   ├── __init__.py
│   │   ├── export.py
│   │   ├── rules.py
│   │   ├── scanner.py
│   │   └── staging.py
│   └── views/
│       ├── __init__.py
│       ├── file_info.py
│       ├── log.py
│       ├── matches.py
│       ├── rule_editor.py
│       └── ruleset.py
├── pyproject.toml
├── README.md
├── requirements.txt
├── run.bat               # <-- tool start
├── run.ps1
├── run.sh
├── scan_tui.py
├── settings.yaml
├── workspace/
│   ├── reports/
│   └── samples/
├── yara_rules/               # <-- your .yar/.yara files go here (flat folder)
│   └── gotoRat.yar
└── yara_scan_core/
    ├── __init__.py
    ├── models.py
    └── state.py

10 directories, 27 files

Important

yara_rules/ must remain a flat folder. No subdirectories. Drop .yar / .yara files directly inside it.

If you want to group families, use filename prefixes such as:

stealer_Formbook.yar
loader_DarkGate.yar
banker_Mispadu.yar

4. Installation & first run

Windows

  1. Install Python 3.10+
    • Make sure Add Python to PATH is enabled
    • If not, run add-python-to-path.bat
  2. Run the tool:
    • Double-click run.bat, or
    • Right-click run.ps1Run with PowerShell

What the launcher does:

  • Detects Python
  • Creates .venv if missing
  • Installs dependencies
  • Launches YaraScanTUI

YaraScanTUI running on Windows terminal

Next runs are instant unless requirements.txt changes.

macOS / Linux

  1. Install Python 3.10+ (macOS example: brew install python)
  2. Open terminal and run:
cd /path/to/YaraScanTUI
chmod +x run.sh   # one-time
./run.sh

Same behaviour as Windows — automated venv setup and launch.

5. Adding ghostYara rules

This is where gY Tool becomes useful.

  1. Go to the ghostYara section on this site.
  2. Use Download .yar OR copy/paste into a new .yar file.
  3. Save rules directly into your local yara_rules/ folder:
yara_rules/
├── Formbook_ElasticSecurity.yar
├── Mispadu_Banking_Trojan.yar
└── DarkGate_Loader.yar

ghostYara rule card with Download .yar button

ghostYara rule example

  1. Re-run run.bat, run.ps1, or run.sh.
  2. Scan your samples and confirm hits.

6. Example lab workflow

  1. Clone the repo:
git clone https://github.com/Sab0x1D/YaraScanTUI.git
cd YaraScanTUI
  1. Launch once to let it set itself up.
  2. Drop samples into workspace/ (any structure you prefer).
  3. Drop rules from ghostYara into /yara_rules/ (flat folder).
  4. Scan via TUI — single file or whole folder.
  5. Review hits, tune rules, rescan until satisfied.
  6. Once a binary file is imported into the tool, a sample copy is placed within the workspace/samples/ folder. When finished, you will have to manually delete the sample, unless you are wanting to keep it.

YaraScanTUI scan view with matches

Rule editing within our TUI environment

Choose Edit Rule from top menu and select the rule from the drop-down.

YaraScanTUI rule editing

Scan report export

Choose Export from top menu; the tool will export a .json, .md, and .html file of your matches.

YaraScanTUI match export

7. Troubleshooting

“Python not found”

Install Python 3.10+ and ensure PATH is set. Use add-python-to-path.bat if needed.

Dependency install slow or stuck

Ensure internet on first run. Reset environment:

rm -rf .venv          # macOS/Linux
rmdir /S /Q .venv     # Windows

Then run the launcher again.

Rules not loading

  • Ensure files go into yara_rules/, not workspace/.
  • Ensure file extension is .yar or .yara.
  • A syntax error in a rule can block compilation.

No matches for known malware

  • Confirm correct sample path.
  • Confirm the right rule is present in yara_rules/.
  • Loosen rules temporarily to sanity-check detection.

8. Final notes

YaraScanTUI gives you a portable, repeatable, dead-simple YARA scanning workflow. As the ghostYara rule section on this site grows, you can keep pulling new rules into your local yara_rules/ folder and instantly use them against any sample set you’re analysing.