How saniamusliar/yara-live-hunt-final works
YARA Live Hunt is an educational ransomware-hunting demo: users simulate activity with harmless lab files, then inspect hash and YARA findings in a browser. The main paths are a browser-only guided demo and an optional local-terminal bridge; the bridge watches the lab and serves events and scan results to the page. The README documents the UI’s behavior, while the sampled agent confirms its local monitoring, authentication, hash checks, and fixed YARA invocation. The UI and setup scripts were not sampled, so their internal wiring is not shown.
Main entry points: yara-hunt-agent.py Local agent · index.html Hunt page · connect.sh Shell connector · setup.sh Lab setup
Components 13
Browser experience
- Hunt page
index.html - Guided demo
index.html
Lab activity
- Lab setup
setup.sh - Attack simulation
attack_sim.sh - User shell
- Lab files
Local bridge
- Shell connector
agent/connect.sh - Local agent
agent/yara-hunt-agent.py - Activity logs
Detection
- Known hashes
- YARA rules
rules/rules.yar - YARA engine
Other components
- User
Connections 16
- User → Hunt page: uses
README.md - Hunt page → Guided demo: runs
README.md - User → User shell: connects via
README.md - Hunt page → Shell connector: provides command
README.md - Shell connector → User shell: hooks
README.md - Shell connector → Local agent: starts
README.md - Lab setup → Lab files: builds
README.md - Attack simulation → Lab files: simulates in
README.md - User shell → Lab files: changes
README.md - Local agent → Lab files: watches
agent/yara-hunt-agent.py - Local agent → Activity logs: reads
agent/yara-hunt-agent.py - Local agent → Known hashes: checks
agent/yara-hunt-agent.py - Local agent → YARA engine: runs scan
agent/yara-hunt-agent.py - YARA engine → YARA rules: loads
- Hunt page → Local agent: polls
README.md - Local agent → Hunt page: returns results
README.md