Anti-AIClone

Log date · Sun

How can Diaphora compare your app builds?

Binary diffing highlights changes for review; matches need verification. We illustrate the idea and explain the Diaphora 3.4.3 update.

What can Diaphora reveal between builds?

Binary diffing helps locate changes worth reviewing between builds, but matches need human verification. In two Java classes we wrote, changing a threshold from 10 to 8 produced one changed operand in the disassembly. Both class files were 1,028 bytes, yet input 9 changed the result from true to false.

Diaphora 3.4.3 is an occasion to review the comparison workflow: the maintenance release at 10:51 UTC on 11 October 2026 added support for the then-beta IDA 9.5 and re-enabled its supplied model. [1]

Results from our illustration
QuestionResult
What changed?The allowed threshold went from 10 to 8.
Runtime result?At input 9: true → false; fee was 25 in both.
Did file size reveal it?Both files were 1,028 bytes.

Sample and scope

We compiled two versions of the same Policy class with javac 17.0.19, disassembled them with javap -c -p and compared the text with diff. The fee method is identical; allowed changes only the threshold, and main runs both with the same input. This Java bytecode and text comparison illustrates the underlying question; it is not a test of Diaphora 3.4.3, its matching model or native binaries.

Two methods in version one; version two changes only 10 to 8.
public static int fee(int amount) { return amount + 5; }
public static boolean allowed(int count) { return count < 10; }

Oracle documents that -c prints method bytecode instructions and -p includes all members. [3] Keeping the class name and compilation conditions consistent makes this small text diff easier to interpret. Real releases can also change because of compiler, dependency and build-option changes.

From a difference to a conclusion

Both programs printed a fee of 25, but allowed differed for input 9. The excerpt below shows the complete changed instruction: the comparison identifies an operand to inspect, while the source and boundary input explain its meaning. Equal file size does not imply equal behavior.

Verbatim output from both runs.
v1: fee=25, allowed=true
v2: fee=25, allowed=false
Contiguous excerpt from the diff output.
   public static boolean allowed(int);
     Code:
        0: iload_0
-       1: bipush        10
+       1: bipush        8
        3: if_icmpge     10
        6: iconst_1
        7: goto          11

This controlled example retains method names and changes one place. In real releases, inlining, optimization, function splitting or renamed symbols can make correspondence less direct. Treat similarity and automatic matches as leads, then check control flow, callers and tests. The Diaphora project lists assembly and control-flow comparisons, similarity ratios and manual matching among its features. [2]

What the 3.4.3 changes mean for review

The release notes say 3.4.3 retrained the model for scikit-learn 1.4 or later and re-enabled the supplied model by default. They also list fixes for loading Qt in headless operation, two heuristics ignoring partial results, and call_on_match_hook() assigning the wrong function name. [1] The update also covers the README, typos and IDA dark mode.

These are fixes described by the publisher, not accuracy measurements from our experiment. Partial results and names matter to a review workflow: after upgrading, compare a set of owned builds with known changes and record tool versions, settings and manually verified correspondences. If the list changes, inspect settings and analysis logs before attributing it to a release change or an earlier omission. A match count alone is insufficient.

Recommendations by case

These are engineering recommendations, not effects measured in our experiment. A comparison can surface leads; a match alone cannot prove that a protection was applied completely.

Recommendations: choose the next check
CaseRecommendation
Routine releaseKeep build settings stable; archive artifacts, symbols and versions, then review unexpected changes.
Critical fixCheck requirements and boundary tests; evaluate server-side validation.
Hardening coverageCombine build logs, configuration and targeted tests with the match list.
Tool upgradeKeep prior results, rerun known cases and record settings.

When a decision must ship in a client, changes across releases can give an analyst a lead. Put authorization decisions that need central control on the server where practical, while designing for offline behavior, latency and failure.

Check your own builds

Save two release artifacts you are authorized to inspect in an isolated directory, with their symbols, compiler versions and build configuration. First reproduce our Java sample with the commands below; substitute your own class files for a Java comparison. javap produces a text view and does not match native functions for you.

Run in the sample directory; diff returns 1 when it finds differences.
javac v1/Policy.java
javac v2/Policy.java
java -cp v1 Policy
java -cp v2 Policy
javap -c -p v1/Policy.class > v1/disassembly.txt
javap -c -p v2/Policy.class > v2/disassembly.txt
diff -u v1/disassembly.txt v2/disassembly.txt

For a native app, compare consecutive owned builds in your Diaphora analysis environment. Check architecture, build identifiers and analysis settings first, save exports and results, then inspect known changes, unmatched functions and critical paths. Map findings to change records and tests, and restrict access to artifacts and symbols after review.

Your checklist

  • Archive artifacts, symbols and build configuration for each release.
  • Compare consecutive versions and review unexpected changes.
  • Test critical decisions with boundary inputs.
  • Recheck known cases and unmatched items after tool upgrades.
  • Use logs and tests to verify hardening coverage.

Primary sources

All sources and reproduction status ↗