Skip to content

macattacc 0.2.0

Choose a tag to compare

@heyethan heyethan released this 09 Nov 13:22
· 7 commits to main since this release

0.2.0 - 2026-11-09

Added

  • MacattaccObfuscation: a compile-time string-literal obfuscator, a separate library product so
    it can be adopted without the runtime detectors. The freestanding macro #obfuscated("literal")
    XOR-encodes the literal at build time against a per-literal random key, so the plaintext is absent
    from the expansion and the binary's __TEXT string table, and identical strings differ across
    call sites. Backed by a SwiftSyntax .macro target (MacattaccObfuscationMacros).
  • Tests: macro-expansion (no plaintext in the expansion), runtime round-trip (empty, unicode, long),
    and a strings-absence check that a sentinel routed through #obfuscated is absent from the
    compiled test binary.

Notes

  • Honest ceiling: obfuscation defeats naive strings/static scraping and raises the static-recovery
    bar, but a debugger or runtime memory dump still recovers the decrypted value — one layer, not a
    wall. IR-level obfuscation is not bundled: Obscura is PolyForm Noncommercial, so it cannot ship in
    this MIT repo or run on commercial apps; it stays a non-commercial-only option.
  • Integrity is handled by macOS code signing (the signature self-check + shield verify), not a
    hand-rolled Mach-O hash baseline.