Repository navigation
New Skill Bundle Proposal: AREA (Anti-Reverse Engineering Anything) — Defensive Binary Obfuscation & Hardening Verifier #2442
Replies: 1 comment
|
Thanks for bringing AREA to Discussions first and for including positive and negative test results. A post-build checklist for signing, platform hardening flags, and accidental debug or build-path leakage in projects you maintain would be a useful addition. Please start with an instruction-only PR scoped to static checks on binaries the developer owns or is authorized to audit. Include a minimal reproducible example using a small test binary you built. Call out which checks you actually ran on each supported platform, how missing tools affect coverage, and what the results can establish. Keep the original MIT notice and link to the exact upstream commit used. See the contribution guide. One point to correct in the proposal for the executable bundle. I checked the upstream script, and |
Uh oh!
There was an error while loading. Please reload this page.
Per
CONTRIBUTING.md, I am describing this complete skill bundle (which includes a zero-dependency Python 3 audit scriptscripts/area_audit.py) here in Discussions Ideas for maintainer review before submitting a PR.1. Upstream Repository & License
source_type: community)MIT(license_source: https://github.com/planners1490/area/blob/main/LICENSE — full rootLICENSEretained)safe(strictly defensive, read-only local binary verification for developers auditing their own builds)2. Concrete Task & Gap vs. Existing Catalog Skills
I searched the 2,961-skill catalog and inspected the closest existing skills:
skills/anti-reversing-techniques(risk: offensive): Focuses on authorized offensive analysis/bypassing of anti-debug and anti-tamper mechanisms (instruction-only).skills/binary-analysis-patterns(risk: critical): Focuses on general disassembly reading and reconstructing program logic (instruction-only).skills/binary-diff(risk: safe): Focuses on cross-version BinDiff symbol migration.The gap: There is currently no defensive verification skill that lets developers and AI agents automatically verify whether their own protected/obfuscated Mach-O, ELF, or PE binaries (C, C++, Rust, Swift, Go, OLLVM, VMProtect, custom VMs) actually survived compiler optimization and packaging intact.
3. Complete Bundle Contents (
skills/area/)skills/area/SKILL.md— 5-pillar defensive verification workflow, tool fallback instructions, and remediation guide.skills/area/scripts/area_audit.py— Zero-dependency Python 3.9+ stdlib CLI (stealth,disasm,binding,diff,claims,full). Writes structured JSON to--outputand prints a concise one-line grade (A–F) to stdout to keep agent context clean.stealth: Symbol table leaks (nm/readelf), plaintext obfuscator hints,/rustc/·.llvm.·RUST_BACKTRACE·build-host path leaks,.textsize, and block/overall Shannon entropy.disasm: ARM64 & x86_64 disassembly checks (llvm-objdump/objdump/otool) for LLVM-O3constant-folding regressions (mov/movk -> eor,movabs -> xor),std::hint::black_boxstack-spill bloat (str [sp, #off] + add sp, #off), MBA interleaving window density, and patchable branch-and-exit anti-debug checks.binding: Code signing, macOS Hardened Runtime / Linux ELFNX&RELRO, Gatekeeper quarantine (xattr), and accidental build-host hardware lock detection (e.g., Apple Secure Enclaverk1/daclblobs without a portable envelope).diff: Unprotected vs. protected semantic equivalence (stdout & exit codes) + size/latency comparison.claims: Cross-checksREADME.md/ landing pages against actual binary audit JSON to flag stale"Zero-Key"or"0 leaks"contradictions and cross-doc benchmark drift.skills/area/references/disassembly_patterns.md— Remediation patterns (e.g., replacing stack-spillingblack_boxwith zero-spill register-only inline assembly barriers).skills/area/references/stealth_checklist.md— Safe symbol/toolchain scrubbing checklist.skills/area/references/truth_vs_claims.md— Portability vs. node-locked hardware sealing threat-model guide.skills/area/LICENSE— Retained MIT license notice.4. Usable Example & Real Validation Evidence
Tested end-to-end on macOS
arm64comparing aclang -O3unprotected binary vs. a virtualized binary (scLockCrackMe) + real documentation:Grade=C(HIGH: leaked_calc_license_tiersymbol;MEDIUM:0.00%MBA window density, missing Hardened Runtime;0.4322Shannon entropy).Grade=A(0symbol/string/toolchain leaks,6.8133entropy,54.47%MBA window density,0prologue constant-folded arg masks,0black_boxstack spills,100%differential test match,0documentation contradictions)."Zero-Key"and stale"99.9 us"latency):Grade=C(HIGH:claims.zero_key_overclaim,MEDIUM:claims.cross_doc_latency_drift).5. Operational & Security Boundaries
objdump/nm/readelf/codesign).--outputpath; never modifies the audited binary or docs.Happy to adapt the bundle layout (or split into an instruction-only variant if preferred) according to maintainer guidance. Thanks for reviewing!
All reactions