Anti-AIClone

Log date · Fri

Can function names be inferred after stripping symbols?

Yes. Stripping removes names, but strings and calls can remain as clues. Hieronym studies how context can help infer names.

The answer and our results

Yes, a function’s purpose can still be inferred, although a suggested name need not be the original and can be wrong. In our compiled sample, calculate_discount disappeared from nm output after stripping, while a message remained and both versions returned 51. The Hieronym paper studies the broader problem of automatic naming. [1]

Our comparison
QuestionFinding
Is the function name present?Present before stripping; absent afterwards.
Does the message remain?Present in both.
Did the runs agree?Both printed result=51.
What else is visible?The stripped file still imports printf and puts.

What the paper measured

On 11 September 2026 (UTC), Xiaoling Zhang and eight co-authors submitted Hieronym v1. It uses hierarchical summaries for domain adaptation and combines global binary context, local calling context and the target function’s semantics to generate names. Its evaluation considers both tokens and whole names. [1][2]

The authors tested x64, x86, ARM and MIPS at optimization levels O0 through O3. They report relative gains over the best prior method of 50.12% in token precision, 41.75% in recall, 45.10% in F1 and 79.94% in whole-name accuracy; they also studied real-world malware samples. [2] These are relative improvements, not achieved accuracy percentages or a guarantee for every hardened build.

The whole-name evaluation compares Hieronym and SymGen only. Token overlap and semantic agreement are different questions, which is why the paper evaluates both. [2] Read the results together with the dataset, compilation conditions and comparison method.

An inferred name is a label added during analysis, not the original name read from the binary. A function can participate in several workflows and admit more than one reasonable summary. When comparing with source or controlled debugging information, distinguish a different choice of words from a mistaken understanding of behavior. Without that reference, treat a generated name as a clue to investigate, not a verified description.

A small comparison we ran

We compiled our own C program on macOS with Apple clang 21.0.0 at O0, copied the executable and stripped the copy. The function is marked noinline to retain a separate function in this small sample. This system-tool illustration shows remaining clues; we did not run Hieronym or replicate its evaluation.

Our complete sample.
#include <stdio.h>
__attribute__((noinline)) static int calculate_discount(int units) {
    puts("DEMO bulk discount applies");
    return units * 17;
}
int main(void) { printf("result=%d\n", calculate_discount(3)); return 0; }

nm inspects symbols and strings searches for printable text; the corresponding LLVM tools document these two kinds of inspection. [3][4] We checked for the exact function name and message:

Contiguous excerpt from our run.
sample-unstripped | calculate_discount | present
sample-stripped | calculate_discount | absent
== matching strings ==
sample-unstripped | DEMO bulk discount applies | present
sample-stripped | DEMO bulk discount applies | present

The message suggests a discount, but alone it does not establish the calculation or function boundary. The stripped file still imports printf and puts: those imports show dependencies on output functions but do not identify the business purpose by themselves. Additional context can support a hypothesis, which still needs verification.

Verbatim output from both runs and the import check.
== runtime ==
DEMO bulk discount applies
result=51
DEMO bulk discount applies
result=51
== stripped imports ==
_printf
_puts

Recommendations for remaining clues

These are engineering recommendations, not protection gains measured by our experiment. First decide which information would matter if disclosed, then decide what to remove.

Recommendations by case
QuestionFinding
Internal names ship in a releaseCheck stripping in the release pipeline and retain matching debug symbols for controlled diagnostics.
Logs disclose business detailsReview release logs and errors; keep operationally useful information and replace unnecessary detail with codes.
Sensitive rules must work offlineAssume the client can be analysed and compare compatibility, performance and actual costs.
Rules can run onlineConsider a controlled service and secure its interface and access.

Stripping removes a direct naming clue but also affects crash diagnosis. Associate symbol files with the exact build, restrict access and verify the diagnostic path with a test crash. When removing logs, check support and privacy needs too, rather than simply moving sensitive detail to server logs.

Check your own release build

Run these read-only commands on a macOS release executable you are authorized to inspect, replacing the path with your own. Do not run strip on the only copy of a release file. Tools and formats differ across platforms.

List symbols, undefined symbols and printable strings.
nm path/to/your-release
nm -u path/to/your-release
strings -a path/to/your-release

Compare with the matching unstripped build. Check internal names expected to disappear, exports that must remain, and text that hints at sensitive features. strings searches printable sequences; a missing word does not prove that intent cannot be inferred. Record the build identifier, tool versions and findings, repeat after build changes, and test application behavior and crash symbolication.

Your checklist

  • Confirm the release pipeline strips symbols.
  • Compare symbols and strings before and after stripping the same build.
  • Review context exposed by logs and imports.
  • Retain matching debug symbols and test crash symbolication.
  • Decide whether sensitive rules need to remain on the client.

Primary sources

All sources and reproduction status ↗