百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
H

hacksguard

> 安全
开源

Rust 中内置的一个极其快速、多线程的 TUI 恶意软件分析工具,具有深度 PE 分析、YARA 扫描和启发式风险评分等功能。

182 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Rust 中内置的一个极其快速、多线程的 TUI 恶意软件分析工具,具有深度 PE 分析、YARA 扫描和启发式风险评分等功能。

Hacksguard 0.4 - Blazing Fast TUI Malware Analysis Tool ️

Hacksguard is a blazingly fast, multi-threaded Terminal UI (TUI) static analysis tool designed for SOC analysts, threat hunters, and reverse engineers. Built entirely in Rust, it provides an intuitive dashboard for quick triage and deep inspection of Windows (PE), Linux (ELF), and macOS (Mach-O & Universal Fat) binaries right from your terminal.

Key Features

  • Blazing Fast & Multi-Threaded: The core analysis pipeline runs concurrently. This ensures zero UI latency, even when analyzing large executables.
  • Multi-Format Static Analysis: Native deep inspection of Portable Executable (PE), Linux (ELF), and macOS (Mach-O / Fat containers) formats.
  • Advanced Risk Scoring: Hacksguard automatically compiles a 0-100% Risk Score based on 5 heuristic axes (Entropy, Suspicious APIs, Format Anomalies, Strings, and Packing), visualized through an interactive radar chart.
  • Integrated YARA Engine: Powered by the boreal crate, Hacksguard dynamically loads local YARA rules (e.g., Elastic protections-artifacts and Neo23x0 signature-base) to detect known threats, packers, and evasion techniques.
  • Deep PE, ELF & Mach-O Inspection: Headers, Sections/Segments, Imports & Exports, Security Mitigations (ASLR/PIE, DEP/NX, RELRO, CodeSign, RPATHs), Mandiant Imphash, and Rich Header parsing (toolchain ID decoding & RichPE hash).
  • Authenticode Certificate Decoding: Zero-dependency ASN.1 DER and PKCS#7 parser extracting X.509 leaf certificate details (Subject, Issuer, Validity window, Digest Algorithm, Serial Number) and flagging self-signed certificates.
  • 1-Byte XOR Payload Brute-Forcer: High-speed single-pass scanner detecting obfuscated PE binaries (MZ...PE), DOS stubs, and URLs hidden inside overlays or high-entropy sections.
  • Direct & Indirect Syscall Detection: Automated scanning for evasion techniques including x86/x64 direct/indirect syscalls (syscall, sysenter, int 0x80) and ARM64 supervisor calls (svc #0 on Linux AArch64, svc #0x80 on macOS ARM64).
  • Visual Entropy Graph: A dedicated Entropy tab plots the Shannon entropy distribution of the file using sparklines, allowing analysts to visually spot encrypted or packed payloads instantly.
  • ASCII & UTF-16LE Strings: Automatically extracts and categorizes ASCII and UTF-16LE wide strings (IPs, URLs, Registry keys, commands) with live interactive filtering (/) and category shortcuts (u/i/r/c/s/p/a).
  • Built-in Disassembler & Hex View: Inspect Entry Point instructions (x86/x64 decoded via iced-x86, ARM64 instruction word formatting with syscall highlighting) or dive into raw bytes with the Hex Dump viewer.
  • Overlay Detection: Automatically detects appended hidden data at the end of the binary, a technique commonly used by droppers and malicious installers.
  • Clipboard Integration (y): Instant zero-dependency copy of hashes and strings to system clipboard via ANSI OSC 52 sequences.
  • CLI Mode / CI-CD Ready: Run hacksguard --json to bypass the terminal UI and export the full analysis report as a structured JSON object for SIEM/SOAR integrations.

Installation

Building from source

Make sure you have Rust and Cargo installed. Clone the repository with its submodules:

bash
git clone --recursive https://github.com/Rhacknarok/hacksguard.git
cd hacksguard
cargo build --release

If already cloned without submodules:

bash
git submodule update --init --recursive
cargo build --release

The compiled binary will be available at target/release/hacksguard.

Nixpkgs

For Nix or NixOS users is a package available in Nixpkgs. Keep in mind that the lastest releases might only be present in the unstable channel.

bash
$ nix-env -iA nixos.hacksguard

Usage

Run Hacksguard by providing the path to the executable you want to analyze:

bash
cargo run --release -- 

Keyboard Shortcuts

  • Tab / Right Arrow: Next Tab
  • Shift+Tab / Left Arrow: Previous Tab
  • Up / Down / k / j: Scroll
  • PageUp / PageDown: Fast Scroll
  • /: Interactive Search (live filter across Strings, Imports, Sections)
  • y: Copy to Clipboard (OSC 52 - copies active hash or string)
  • u / i / r / c / s / p / a: Quick category filter in Strings view (URLs, IPs, Reg, Cmd, Suspicious, Path, All)
  • Esc: Clear search / category filter (or Quit if clean)
  • q: Quit

Dependencies

  • ratatui & crossterm - TUI rendering
  • goblin - PE/ELF/Mach-O parsing
  • boreal - Pure Rust YARA engine
  • iced-x86 - Disassembler

Related Projects

  • Elastic Protections Artifacts - YARA rules
  • Neo23x0 Signature Base - YARA rules

Screenshots

Overview

PE Headers

Sections

Imports

Disassembly

Hex View

Strings

Entropy

Analyst Guide

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustcybersecuritymalwaremalware-analysispe-parser

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类安全
定价开源

> 相关工具

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.