
neo23x0/yargen-go
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
neo23x0/yargen-go は https://github.com/neo23x0/yargen-go. からインポートされたエージェント スキル 候補者です
概要
neo23x0/yargen-go は https://github.com/neo23x0/yargen-go. からインポートされたエージェント スキル 候補者です
概要(AI 翻訳)
YarGen (Python) を、Florian Roth で書き直します。
概要
yarGen-Go は、マルウェアファイルで見つかった文字列から YARA ルールを生成し、すべての文字列を削除しても良いファイルに表示されます。 それは下記のものを含んでいます:
- yargen - 主要な規則の発電機(CLI + Webサーバー)
- yargen-util - データベース管理ユーティリティ
はじめる
Linux/macOS:
- 前提条件: インストール ゴー 1.22+ 2.ビルド: リポジトリをクローンするか、ZIPをダウンロードし、それを抽出します 3。 バイナリービルド: 次のコマンドを実行します。
4。データベース: ./yargen-util updateを実行して、グッドウェアデータベースをダウンロード
5.設定(オプション): [config/config.example.yml]を[config/config.yaml]にコピーし、LM APIキーを設定
6.使用: [./yargen serveを実行し、[http://127.0.0.1:8080でWeb UIを開きます
Windows:
- 前提条件: インストール ゴー 1.22+ 2.ビルド: リポジトリをクローンするか、ZIPをダウンロードし、それを抽出します 3。 バイナリービルド: 次のコマンドを実行します。
4。データベース: [`yargen-util.exe update`を実行して、グッドウェアデータベースをダウンロード 5.設定(オプション): [`.\config\config.example.yml`]を[`.\config\config.yaml`]にコピーし、LM APIキーを設定 6.使用: 実行`.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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