Hardware-Bound 256-Slot Polymorphic VM, Non-Linear MBA (arm64 Apple Silicon)
Developed by relay (relay // SYSTEMS)
Get Commercial SDK on Gumroad ($79) · Try the Public CrackMe Challenge · Live Landing Page · 한국어 안내 (Korean)
Standard macOS Mach-O (arm64) binaries compiled from C, C++, Rust, Swift, or Objective-C expose clean control-flow graphs and plaintext constants in Ghidra, IDA Pro, and Binary Ninja within seconds. Conventional software obfuscators rely on a single static key or a central switch(opcode) dispatcher where recovering one key dumps the entire bytecode stream.
scLock (Supercluster Lock) combines compile-time 256-slot polymorphic virtualization, per-handler MBA key shattering, and dual-tier Apple Silicon Secure Enclave (SEP) binding:
-
Per-Build 256-Slot Polymorphic ISA + 84 Chaff Traps: Every compilation (
sclock compile) synthesizes a brand-new 256-entry instruction set (172active micro-ops +84state-corrupting chaff handlers) from a 64-bit polymorphic seed. No two builds ever share the same bytecode encoding or handler table. -
Register-Barrier (
__sc_rb) MBA Salt Shattering & Trajectory-Entangled Operand Masks: Raw handler salts (op_secret_salt) are omitted from static data sections (replaced by one-way Davies-MeyerANCHOR_SHARDS) and pre-masked againstgolden_anchor. Inside each of the 256 compiled ARM64 handlers (__sc_lut_op_000..255),h_saltand operand masks (hm1, hm2, hm3) are reconstructed at runtime in registers via zero-spill inline assembly barriers (asm!("/* {0} */", inout(reg) v, options(nomem, nostack, preserves_flags))) entangled withvm.anchor([x0, #0xa0]) and the live execution trajectory(vm.pc, vm.sigma)([x0, #0x80])—blockingLLVM(-C opt-level=3) constant folding andInstCombinesimplification without stack-spill bloat. -
Non-Linear Mixed Boolean-Arithmetic (
$\mathbb{Z}_{2^{64}}$ ) & 2-adic Bijections: Arithmetic, multiplication, constants, and control-flow transitions are lifted into degree-2/3 non-linear MBA identities over$\mathbb{Z}_{2^{64}}$ coupled with 2-adic number-theoretic opaque predicates ($7x^2 - 1 \neq y^2 \pmod{2^{64}}$ ). -
Dual-Tier Apple Secure Enclave (
SEP) Architecture & Threat Model:-
Portable Multi-Mac Mode (Default,
SCP1): Built for universal end-user macOS distribution and the publicCrackMeso the binary runs offline on any Apple Silicon Mac (M1 / M2 / M3 / M4). Derives the outer sponge keys(k0, k1)via a 1,024-round SHA-256 Code-Anchor White-Box KDF paired with a Live SEP Commutative P-256 Double-ECDH Anti-Emulation / Anti-Hooking Gate ($d_{\text{SEP}} \cdot Q_P \stackrel{?}{=} d_P \cdot Q_{\text{SEP}}$ ). Because universal offline execution without a remote server requires deterministic inputs in the binary, an offline analyst must reconstructvm.anchor, evaluate all 256 register-barrier MBA handler prologues, and sequentially emulate the(vm.sigma, vm.pc)sponge state trajectory—defeating static table dumping and timing out Ghidra/IDA decompilers (>330s). -
Hardware UID Node-Locked Mode (
--sep-lock/--host-sep-lock): Seals the P-256 private key directly inside the target Mac's physical Secure Enclave UID (kSecAttrTokenIDSecureEnclavehardware-wrappedrk1/daclblob). Zero unsealable key material exists anywhere in the Mach-O binary—offline key derivation is physically impossible without the target Mac's Secure Enclave silicon.
-
Portable Multi-Mac Mode (Default,
-
Branchless Anti-Debug State Entanglement & Zero-Leak Camouflage: Instead of patchable
if (is_debugged) exit()branches,scLockmixes the kernelsysctlP_TRACEDbit and ARM64 prologueBRK(0xD4200000) scans directly into the 256-bit sponge state accumulator, with automatic symbol and toolchain path scrubbing (sclock protect-app).
Don't take our word for it—test scLock in your own disassembler and debugger right now.
This repository includes a standalone Mach-O arm64 binary protected by scLock (v1.0.0, compiled in Portable SCP1 mode so it runs on any Apple Silicon Mac):
- Binary Path:
crackme/challenge_protected(or downloadscLock-CrackMe-Challenge-macOS-arm64.zip) - Architecture:
Mach-O 64-bit executable arm64(Apple Silicon M1 / M2 / M3 / M4)
# 1. Clone this repository (or unzip the release archive)
git clone https://github.com/planners1490/sclock.git
cd sclock/crackme
# 2. Clear macOS Gatekeeper quarantine (if downloaded via browser) & make executable
xattr -cr ./challenge_protected
chmod +x ./challenge_protected
# 3. Inspect symbol table & strings (Zero VM/Obfuscator leaks)
nm -gU ./challenge_protected
strings ./challenge_protected | grep -iE "sclock|vm|opcode|mba|chaff" || echo "0 leaks found"
# 4. Execute the protected binary on any Apple Silicon Mac
./challenge_protected # Runs built-in self-test (seats=20, pin=1234 -> 83300)
./challenge_protected 20 1234 # Pass custom <seats> <unlock_pin>Open crackme/challenge_protected in Ghidra, IDA Pro, Binary Ninja, or LLDB and attempt to:
- Recover all 256 per-handler MBA salts (
h_salt) and decompile the virtualized pricing/verification routine without triggering Ghidra's decompiler timeout (>330s). - Attach
lldband step through the virtualized dispatch loop without corrupting theP_TRACED-entangled sponge state. - Find the hidden secondary 4-digit master PIN (
arg2 != 1234) and the exact 64-bit algebraic mixing constants inside the virtualized routine.
Found an interesting analysis or write-up? Post it in Issue #1 (Official CrackMe Challenge Thread)!
Tested on Apple Silicon (macOS arm64, Release profile):
| Analysis Vector | Unprotected Binary (clang -O3) |
scLock v1.0.0 Protected Binary |
|---|---|---|
Ghidra 11.x Decompiler (DecompileCallback) |
0.4 sec (Full C source recovered) |
> 330 sec TIMEOUT (Decompiler process killed) |
| IDA Pro / Binary Ninja CFG Recovery | Clean control-flow graph | 256-way indirect dispatch wall + 84 Chaff traps |
| Key & Salt Architecture | Constants visible in __TEXT,__const |
Per-handler black_box MBA salt shattering + Portable SCP1 / Node-Locked --sep-lock |
Dynamic Debugging (lldb / frida) |
Trivial breakpoint & register modification | Silent state corruption via branchless P_TRACED entanglement |
Obfuscator Symbol & Path Audit (nm / strings) |
Function names & /rustc/ / .llvm. paths exposed |
0 obfuscator/VM symbol or /rustc/ path leaks (Auto-scrubbed Mach-O) |
Because scLock targets critical high-value functions (license verification, proprietary DSP/AI weights, cryptographic key schedules, anti-tamper gates) rather than bloating the entire UI layer:
| Metric | Measured Value | Notes |
|---|---|---|
| Single Virtualized Function Call Latency | ~8–12 µs (~0.01 ms) |
Full 256-slot polymorphic VM + MBA evaluation |
| Sustained Throughput | ~85,000–120,000 calls / sec |
Single-core Apple Silicon (arm64) |
| 120 FPS Real-Time Frame Budget Impact | < 0.15% (0% Frame Drop) |
Safe for real-time audio plugins (AU/VST3), games & macOS apps |
The commercial scLock SDK ships as a single self-contained native arm64 CLI binary (bin/sclock).
# Default: Portable All-Mac SEP-Attested + Per-Handler MBA Mode (runs on any Apple Silicon Mac)
sclock compile examples/01_quickstart_c/protect_me.c \
-o protect_me_locked
# Optional: Single-Machine Physical SEP UID Node-Locked Mode (zero unsealable keys in binary)
sclock compile examples/01_quickstart_c/protect_me.c \
-o protect_me_node_locked \
--sep-lock# Scrub internal compiler/LLVM paths, strip symbol tables, and apply Hardened Runtime signature
sclock protect-app ./target/release/my_commercial_appsclock verify ./protect_me_locked━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
scLock Security & Zero-Leak Stealth Auditor v1.0.0-commercial (by relay)
Target: ./protect_me_locked
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[1/5] Symbol Table Stealth Check (nm) : PASS [0 Leaks] (0 internal symbols exposed)
[2/5] Plaintext String Leak Check (strings) : PASS [0 Leaks] (0 hint strings exposed)
[3/5] Apple Secure Enclave Silicon Key Binding : PASS [P-256 SEP Key Blob (rk1/dacl) verified]
[4/5] Kernel Anti-Debug (P_TRACED) & CryptoKit : PASS [Branchless ECDH + sysctl entangled]
[5/5] Binary Shannon Entropy : 6.5414 bits/byte (High-Entropy VM Active)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
See examples/01_quickstart_c (protect_me.c, Makefile, run_demo.sh) and examples/02_rust_workspace (build.rs, run_rust_demo.sh) for complete drop-in integration templates.
scLock is distributed as a commercial closed-binary SDK protected under international trade secret law (see LICENSE-COMMERCIAL.md for full EULA terms).
- Instant Digital Download (
scLock-macOS-arm64-SDK-v1.0.0.zip): https://planners3.gumroad.com/l/sclock - Included in the SDK Package:
bin/sclock— Native macOSarm64Polymorphic VM Compiler, App Hardener & Stealth Auditorexamples/01_quickstart_c/— C/C++protect_me.c,Makefile, andrun_demo.shintegration templateexamples/02_rust_workspace/— Rustbuild.rsstatic archive (libsys_color_rt.a) integration templateREADME.md&LICENSE-COMMERCIAL.md— Commercial license for unlimited protected end-user macOS distributions (0%royalty)
scLock(개발팀 relay)은 Apple Silicon(macOS arm64) 네이티브 소프트웨어 개발사를 위한 하드웨어 결합형 256-슬롯 다형성 가상머신(Polymorphic VM) 및 비선형 대수(MBA) 바이너리 보호 컴파일러입니다.
- 빌드마다 완전히 새로 합성되는 256-슬롯 다형성 ISA: 컴파일할 때마다 64비트 다형성 시드를 기반으로
172개의 실제 마이크로 핸들러와84개의 상태 교란용 더미(Chaff) 핸들러가 새로 합성됩니다. - 핸들러별 런타임(
vm.anchor+black_box) 결합 MBA 솔트 파편화: 정적 데이터 섹션에서 원본 핸들러 솔트(op_secret_salt) 테이블을 완전히 제거하고(단방향 Davies-Meyer 샤드만 보관), 각 핸들러 프롤로그에서 컴파일러 상수 접힘(LLVM Constant Folding / InstCombine)을 차단하는black_box장벽과 실시간vm.anchor값을 결합한 비선형 MBA 수식으로만 솔트와 피연산자 마스크(hm1, hm2, hm3)를 복원합니다. - 이중(Dual-Tier) Apple Secure Enclave(
SEP) 아키텍처:- 포터블 다중 기기 배포 모드 (기본값,
SCP1): 최종 사용자 배포용 앱 및 공개 CrackMe에 사용되며 모든 Apple Silicon Mac에서 오프라인으로 동작합니다. 1,024라운드 코드 무결성 화이트박스 KDF와 물리적 SEP 실리콘의 가환 타원곡선(Commutative P-256 Double-ECDH) 안티 에뮬레이션/후킹 검증 게이트를 결합하며, 정적 오프라인 분석에 대한 방어는 256개 핸들러 내부의 비선형 MBA 솔트 파편화 및 64비트 스폰지 체이닝이 담당합니다. - 단일 기기 SEP UID 완전 귀속 모드 (
--sep-lock/--host-sep-lock): 키를 타겟 Mac의 물리적 Secure Enclave 실리콘 UID(dataRepresentation) 내부에 직접 봉인하여 바이너리 내 오프라인 복호화 가능한 키 재료를 0바이트로 원천 제거합니다.
- 포터블 다중 기기 배포 모드 (기본값,
- 무분기(Branchless) 안티 디버깅 및 스텔스 패치:
if (debugged)분기문 대신 커널sysctl(P_TRACED) 상태 비트와 명령어 프롤로그(BRK) 스캔 값을 256비트 스폰지 상태에 직접 결합하며,/rustc/·.llvm.경로 흔적 및 심볼 테이블을 자동 소거합니다.
- 무료 평가판 바이너리(CrackMe): 이 저장소의
crackme/challenge_protected바이너리를 직접 다운로드하여(xattr -cr ./challenge_protected && chmod +x ./challenge_protected) Ghidra, IDA Pro, Binary Ninja, LLDB에서 방어력을 직접 검증해 보실 수 있습니다. - 상용 SDK 즉시 구매 및 다운로드 (
$79): https://planners3.gumroad.com/l/sclock
relay // SYSTEMS). All Rights Reserved. Protected as Confidential Trade Secret Technology.