# EgeBalci/sgn

SGN — polymorphic binary encoder

Repository: https://github.com/EgeBalci/sgn
Canonical: https://ross.abutalabs.com/products/sgn
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-07-28T22:08:59+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 83, longevity 100
- inputs: {"age_days": 2499, "days_push": 36, "days_rel": 36, "gap_med": 87, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2003, forks 250 (observed 2026-08-28T04:06:04.493930+00:00)

## What it is
SGN is a polymorphic binary encoder that encodes shellcode using an additive feedback loop similar to an LFSR, producing statically undetectable payloads. It is a Rust reimplementation of the Metasploit Shikata ga nai encoder with improvements such as x64 support and a smaller, pseudo-randomly encoded decoder stub.

## Use cases
- encode shellcode to evade static antivirus detection
- generate undetectable binary payloads for penetration testing
- polymorphically encode x86 and x64 shellcode
- replace shikata ga nai encoder with a modern implementation
- obfuscate payload bytes so they look like random data

## When to choose
- you need statically undetectable encoded shellcode for authorized offensive security work
- you want x64 shellcode encoding support
- you need a dependency-free Rust tool that builds with plain cargo

## When to avoid
- you need a defensive or malware-analysis tool rather than an offensive encoder
- your use of encoded payloads is not authorized or legal in your environment
- you need a pure obfuscator for general application code rather than shellcode

## Facets
- artifact type: cli-tool
- maturity: active
- function: security, cryptography, cli
- domain: security, penetration-testing, reverse-engineering
- platform: windows, cross-platform, cli
- tags: shellcode-encoder, polymorphic, evasion, shikata-ga-nai, offensive-security, rust, linux, macos

## Member repositories
- EgeBalci/sgn (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.493930+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:01:42.148630+00:00, confidence not recorded.
  - readme: https://github.com/EgeBalci/sgn (fetched 2026-08-28T04:06:04.493930+00:00, sha 4cf4b6291473)
  - registry_crates: https://crates.io/api/v1/crates/sgn (fetched 2026-08-29T10:41:30.989757+00:00, sha b0faa93c43b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
