Page 1 of 1

arm64 protected macho crashes

Posted: Mon Sep 22, 2025 6:37 am
by NavilleZhang
I don't know why the previous thread is locked, but:

- Running the protected macho results in an instant ``killed: 9`` before even reaching the protected code, toggling between mutation and virtualization doesn't prevent the crash.
- Trying to codesign the protected MachO results in ``internal error in Code Signing subsystem``

Re: arm64 protected macho crashes

Posted: Mon Sep 22, 2025 6:51 am
by Admin
Try to disable "System Integrity Protection" for testing of protected binaries:
https://developer.apple.com/documentati ... protection

Re: arm64 protected macho crashes

Posted: Mon Sep 22, 2025 7:07 am
by NavilleZhang
Admin wrote: Mon Sep 22, 2025 6:51 am Try to disable "System Integrity Protection" for testing of protected binaries:
https://developer.apple.com/documentati ... protection
```
dyld[2132]: section '__text' end address 0x103577DE4 is beyond containing segment's end address 0x100004000 in /Users/REDACTED/MYBIN
dyld[2132]: section '__text' end address 0x103577DE4 is beyond containing segment's end address 0x100004000
[1] 2132 abort
```

Re: arm64 protected macho crashes

Posted: Mon Sep 22, 2025 7:11 am
by NavilleZhang
that 0x100004000 belongs to __TEXT,__text, for some reason after vmp protecting just one function, the entire __TEXT,__text is only one page size.


The segment names are also completely invalid:

```
oad command 5
cmd LC_SEGMENT_64
cmdsize 72
segname .85_
...
Load command 6
cmd LC_SEGMENT_64
cmdsize 72
segname .6Mt
...
Load command 7
cmd LC_SEGMENT_64
cmdsize 552
segname .#GT
...
Section
sectname __la_symbol_ptr
segname .#GT
```

Re: arm64 protected macho crashes

Posted: Mon Sep 22, 2025 7:15 am
by Admin
VMProtect works the same for x86, x86_64 and ARM64.

Re: arm64 protected macho crashes

Posted: Mon Sep 22, 2025 8:13 am
by NavilleZhang
What I meant is your packing step seems to produce invalid / malformed macho, so the OS refuses to load that MachO at all.

Just tried with the latest 2431 build and still the same error

Re: arm64 protected macho crashes

Posted: Thu Sep 25, 2025 6:23 am
by NavilleZhang
ping, any update?

Re: arm64 protected macho crashes

Posted: Thu Sep 25, 2025 11:51 am
by Admin
Try to switch off the packing feature.

Re: arm64 protected macho crashes

Posted: Mon Sep 29, 2025 6:27 am
by NavilleZhang
turning off packing seems to work for now, hope packing gets fixed in the next release

Re: arm64 protected macho crashes

Posted: Mon Sep 29, 2025 10:26 am
by Admin
Try the 2461 build.