ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

hex-vetter

Physical-layer hex auditing for skills. Detects hidden binary data, control characters, and encoding-based attacks.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/matrix-meta/hex-vetter
Or

hex-vetter 🔬

Physical-layer hex auditing skill forects hidden binary data AI agents. Det, control characters, and encoding-based attacks.

Overview

hex-vetter performs deep hex-level analysis of files to detect what text-based reviewers miss. It's designed for security audits of skill packages, detecting hidden payloads, obfuscated code, and suspicious binary data.

Installation

git clone https://github.com/Matrix-Meta/hex-vetter.git
cd hex-vetter
npm install

Usage

Command Line

# Scan a single file
node vet.js <file_path>

# Scan a directory recursively
node scan_all.js <directory_path>

# Verify file integrity
node verify.js <file_path>

As a Module

const { scanFile } = require('./vet.js');
const result = await scanFile('/path/to/file.bin');

console.log(result.riskLevel);    // 'LOW', 'MEDIUM', 'HIGH'
console.log(result.flags);       // Array of detected issues
console.log(result.hexDump);      // Formatted hex output

What It Detects

FlagDescription
NULL_BYTESNull bytes (0x00) - signs of binary injection or file padding
CONTROL_CHARSControl characters (0x01-0x1F) - hidden terminal sequences
UNICODE_OVERRIDEUnicode directional overrides (LRO, RLO, etc.)
HIGH_NON_ASCIIHigh ratio of non-ASCII bytes - Base64 or encoded payloads
MAGIC_BYTESKnown magic bytes/signatures
SUSPICIOUS_PATTERNPattern matching for common attack signatures

API Reference

scanFile(filePath)

Scans a single file and returns analysis results.

const { scanFile } = require('./vet.js');

const result = await scanFile('./some file.js');
// Returns: { riskLevel, flags, hexDump, details }

scanDirectory(dirPath)

Recursively scans all files in a directory.

const { scanDirectory } = require('./scan_all.js');

const results = await scanDirectory('./skills/');
// Returns: Array of scan results for each file

verifyIntegrity(filePath)

Verifies file integrity using stored checksums.

const { verifyIntegrity } = require('./verify.js');

const result = await verifyIntegrity('./starfragment.js');
// Returns: { valid, expected, actual }

Risk Levels

  • 🟢 LOW: Normal file, no suspicious content detected
  • 🟡 MEDIUM: Some flags detected, manual review recommended
  • 🔴 HIGH: Significant suspicious content, MUST be manually reviewed

Security Policy

  1. Mandatory Review: Any file flagged as 🔴 HIGH RISK MUST be manually inspected by a human or a trusted agent before the skill is used.

  2. False Positives: Risk ratings are heuristic. Common false positives include:

    • .env mentions in .npmignore
    • Documentation with encoded examples
    • Compressed assets

Metadata

Stars1401
Views0
Updated2026-02-24
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-matrix-meta-hex-vetter": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#security#hex#audit#binary-analysis
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.