Anti-AIClone

Log date · Mon

Can stripped native code still be analyzed with radare2?

Yes. Stripping removes names, not machine code. An ARM64 comparison shows what remains and how to check your release.

Can native code still be analyzed after stripping?

Yes. Stripping symbols removes naming clues, but does not turn machine instructions into secrets. Our ARM64 sample printed DEMO-PLAN 324 before and after stripping; the local function name disappeared, while the placeholder string and two instructions containing 17 and 23 remained visible.

The radare2 6.2.4 release on October 5, 2026 improved native-code analysis and fixed security issues in the analyzer itself. [1] It is a reason to review both the shipped artifact and the environment used to inspect it.

Our comparison
QuestionFinding
Did behavior match?Both programs printed DEMO-PLAN 324.
Was the local function name present?_quote appeared before stripping, not afterwards.
What about code and text?Two constant instructions and the DEMO-PLAN format string remained.

What this release changed

The release page records 6.2.4 at 19:52 UTC on 2026-10-05, codenamed “The Magnetician”, after 6.2.2, with 453 commits and 18 contributors. [1] It adds a Go calling convention, defaults Swift binaries to the Swift convention, and improves ARM64 switch recovery, noreturn handling, DWARF locations and prototype preservation during variable recovery. It also enables pdc.structured by default.

Format work includes Mach-O weak imports, ELF relocations, faster PE export resolution and DEX comparison operations involving NaN. Security fixes include HTTP command sandbox enforcement, APFS, PDB and Mach-O parsing bounds, and shell injection in curl headers. [1] These are changes listed by the release notes, not measurements of their effectiveness.

Analysis output is an inference, not a guaranteed copy of source. The radare2 book notes that automated analysis can be imperfect and may require context and manual checking. [2] Record the tool version and settings so changes can be explained after an upgrade; tidier pseudocode alone is not a measurement of recovery accuracy or time.

A local comparison

Radare2 was unavailable here. We compiled our own C sample with Apple clang 21.0.0 and compared copies before and after stripping with nm, strip and otool on ARM64 macOS 27.2 with Xcode 27.2. This illustrates the same analysis boundary; it is not a test of radare2 6.2.4, Swift or Go. The sample uses -O0 and -g, so it is not a representative optimized release.

Our sample; the pricing and string are demonstration data.
#include <stdio.h>
__attribute__((noinline)) static int quote(int n) {
    return n >= 10 ? 120 + n * 17 : 120 + n * 23;
}
int main(void) { printf("DEMO-PLAN %d\n", quote(12)); return 0; }

We changed the symbol table of a copy, then ran and inspected both files. The input is fixed at 12, so the run takes the branch using 17. The instruction for 23 is still present in the disassembly, but this run did not exercise that branch.

Output from our run.
== run ==
DEMO-PLAN 324
DEMO-PLAN 324
== quote symbol ==
sample-debug: present
sample-stripped: absent
== sample text in executable ==
sample-debug: DEMO-PLAN %d
sample-stripped: DEMO-PLAN %d

The two instructions at the same addresses match in both files: hexadecimal 0x11 and 0x17 are decimal 17 and 23. Removing a symbol did not remove the executable logic. Apple’s older documentation describes stripping unneeded symbols to reduce code size; that guide is retired and is not current Xcode configuration guidance. [3]

Excerpt from otool output from our run.
-- sample-debug --
00000001000004c4	mov	w9, #0x11
00000001000004dc	mov	w9, #0x17
-- sample-stripped --
00000001000004c4	mov	w9, #0x11
00000001000004dc	mov	w9, #0x17

Recommendations by asset and environment

These are engineering recommendations, not protection gains measured by the experiment. Start with the cost of disclosure or tampering, then choose controls and acceptance checks.

Recommendations by case
QuestionFinding
Debug material in a releaseInspect the actual package and companion files; retain matching symbols privately and verify crash symbolication.
Licensing or billing decisionsWhen online, authorize and validate on the server; define expiry and revocation limits for offline use.
Core logic that must work offlineSet an acceptable disclosure risk and measure compatibility, performance and analysis effort on the real build.
Analysis of an untrusted sampleUse isolation, least privilege and controlled networking; keep analysis tools updated.

Analysis tools parse input files and have their own attack surface. Updating and isolation complement each other: restrict mounts and network access, keep production credentials out, and retain a rebuildable environment. Do not modify a signed deliverable just to test stripping; follow the platform build and signing process after changes and verify the final artifact.

Check your own release artifact

Use the read-only commands below on a macOS native executable you are authorized to inspect. Replace the path with a file from the final release package. Output can contain sensitive business information; retain it under your internal policy.

Inspect file type, symbols, strings and instructions; output depends on your build.
file path/to/your-executable
nm path/to/your-executable
strings -a path/to/your-executable
otool -tv path/to/your-executable

Compare the release build with the internal symbols for that same version. Record architecture, compiler options, tool versions and artifact identity. Inspect known high-value functions and test placeholders, as well as resources and bundled libraries. Failure to find a name means only that this search did not find it; it does not prove the rule or data cannot be recovered.

After a compiler, build configuration or analysis-tool upgrade, repeat the same functional inputs and inspection process, adding critical-path, performance and crash-diagnosis tests. Comparing results helps distinguish a changed build from a changed interpretation by the tool.

Your checklist

  • Inventory native files and debug material in the final package.
  • Keep matching symbols privately and verify crash symbolication.
  • Assess whether licensing and billing decisions can move server-side.
  • Update and run analysis tools in an isolated environment.
  • Repeat functional, performance and artifact checks after toolchain changes.

Primary sources

All sources and reproduction status ↗