textproc/stng - The NetBSD Packages Collection

Language-aware string extraction for Go and Rust binaries

Language-aware string extraction for binary malware analysis.
Extract indicators, hardcoded credentials, C2 addresses, and obfuscated strings
from any binary.

Features
 - Garbage filtering: Filters out unusable garbage by default
   (but supports --unfiltered)
 - Language-aware extraction: Go/Rust {ptr, len}, DWARF stack strings
 - Binary network structures: Finds hardcoded IPs/ports in socket structures
 - XOR obfuscation: Single/multi-byte keys with entropy analysis, double-layer
   (encoding+XOR)
 - Encoding detection: Base64, Base32, Base85, hex, URL-encoding, Unicode
   escapes
 - IOC classification: IPs, URLs, shell commands, paths, credentials
 - Wide strings: UTF-16LE in Windows PE binaries
 - Format support: ELF, PE, Mach-O, raw binaries, overlays

Build dependencies

lang/rust pkgtools/mktools pkgtools/digest pkgtools/cwrappers

Runtime dependencies

(none)

Binary packages

OSArchitectureVersion
(none)

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.