
neo23x0/yargen-go
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
neo23x0/yargen-go - кандидат на агентские навыки, импортированный из https://github.com/neo23x0/yargen-go.
Обзор
neo23x0/yargen-go - кандидат на агентские навыки, импортированный из https://github.com/neo23x0/yargen-go.
Обзор (машинный перевод)
A Go rewrite of yarGen (Python) by Florian Roth — автоматический генератор правил YARA.
Обзор
yarGen-Go генерирует правила YARA из строк, найденных в файлах вредоносных программ, удаляя все строки, которые также появляются в файлах хорошего программного обеспечения. Он включает в себя:
yargen - Генератор основных правил (CLI + веб-сервер) yargen-util - Утилита управления базами данных
Начало работы
**Linux/macOS: **
-
** Предпосылки: ** Установить Go 1.22+
-
** Строительство: ** Репозиторий клонов или скачать ZIP и извлечь его
-
**Построить двоичные файлы: ** Выполните следующие команды:
-
** Базы данных: ** Запустите
./yargen-util updateдля загрузки хороших программных баз данных -
** Настройка (необязательно): ** Копирование
config/config.example.ymlвconfig/config.yamlи установка ключа LLM API -
**Использовать: ** Запустить
./yargen serveи открыть веб-интерфейс на http://127.0.0.1:8080
Окна:
-
** Предпосылки: ** Установить Go 1.22+
-
** Строительство: ** Репозиторий клонов или скачать ZIP и извлечь его
-
**Построить двоичные файлы: ** Выполните следующие команды:
-
** Базы данных: ** Запустите
yargen-util.exe updateдля загрузки хороших программных баз данных -
** Настройка (необязательно): ** Копирование
.\config\config.example.ymlв.\config\config.yamlи установка ключа LLM API -
Использовать: Запустить’.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
yarGen-Go
A Go rewrite of yarGen (Python) by Florian Roth - an automatic YARA rule generator.
Overview
yarGen-Go generates YARA rules from strings found in malware files while removing all strings that also appear in goodware files. It includes:
- yargen - Main rule generator (CLI + web server)
- yargen-util - Database management utility
Getting Started
Linux/macOS:
- Prerequisites: Install Go 1.22+
- Build: Clone repository or download the ZIP and extract it
- Build binaries: Run the following commands:
go mod tidy go build -o yargen ./cmd/yargen go build -o yargen-util ./cmd/yargen-util - Databases: Run
./yargen-util updateto download goodware databases - Configure (Optional): Copy
config/config.example.ymltoconfig/config.yamland set your LLM API key - Use: Run
./yargen serveand open the Web UI at http://127.0.0.1:8080
Windows:
- Prerequisites: Install Go 1.22+
- Build: Clone repository or download the ZIP and extract it
- Build binaries: Run the following commands:
go mod tidy go build -o yargen.exe .\cmd\yargen go build -o yargen-util.exe .\cmd\yargen-util - Databases: Run
yargen-util.exe updateto download goodware databases - Configure (Optional): Copy
.\config\config.example.ymlto.\config\config.yamland set your LLM API key - Use: Run
.\yargen.exe serveand open the Web UI at http://127.0.0.1:8080
📖 For detailed setup instructions, see the Step-by-Step Setup Guide
Features
- ASCII and UTF-16LE (wide) string extraction
- Opcode extraction from PE/ELF executables
- Encoding detection: Base64, hex-encoded, reversed strings
- Magic header and filesize conditions
- Super rule generation (overlapping string patterns across files)
- Customizable scoring rules (SQLite-backed, editable via Web UI)
- Efficient LLM integration for string selection (OpenAI, Anthropic, Gemini, Ollama)
- Only submits prefiltered top candidates (no goodware strings, max 500 from automatic evaluation)
- Requests numbered list instead of full strings to minimize token usage
- Significantly reduces API costs compared to naive approaches
- Web UI for rule generation and scoring rules management
Installation (Alternative Methods)
Using Pre-built Binaries
Download pre-built binaries from the Releases page for your platform.
Using Go Install
go install github.com/Neo23x0/yarGen-Go/cmd/yargen@latest
go install github.com/Neo23x0/yarGen-Go/cmd/yargen-util@latest
Binaries will be installed to $GOPATH/bin or $HOME/go/bin (add to PATH if needed).
Usage
CLI Mode
# Basic usage
yargen -m ./malware-samples
# With options
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add neo23x0/yargen-go