Anti-AIClone

Log date · Fri

Can radare2 reveal app logic and resources?

radare2 can help inspect logic and resources; a Java illustration shows branch constants and packaged configuration can remain visible.

Can radare2 reveal app logic and resources?

Yes, an inspection can expose clues, although pseudocode is not the original source. radare2 6.2.0 changed pseudodecompilation and resource handling. In our Java tool comparison, bytecode exposed a threshold of 5 and multipliers 17 and 20; a configuration file in one JAR could also be listed and read.

Review both code and resources in the artifact you ship. The release notes do not quantify pseudocode quality, so they do not tell us how much of a particular app can be recovered. [1]

Results at a glance
QuestionFinding
What remained of the branch?Threshold 5 and multipliers 17 and 20.
Could we list the configuration?The resource-bearing JAR listed policy.properties.
How did the packages differ?The other lacked that resource but contained the same class.
Did we test radare2 6.2.0?No; this is an illustration using Java tools.

The release and our scope

radare2 6.2.0 was released at 18:27 UTC on 7 August 2026. Its notes count 503 commits and 25 contributors since 6.1.8. They describe moving pdc into a core plugin and building a region AST, as well as a generic resource API covering, among others, Mach-O signatures and certificates, GLib resources in ELF, and PE/CLR resources. [1] The official book identifies pdc as the pseudodecompiler shipped by default. [2]

radare2 was unavailable on our machine. We compiled our own Java class with OpenJDK 17.0.19 and compared two JARs with javap and jar. This illustrates the same exposure categories; it is not a test of 6.2.0, native formats, or pseudodecompiler quality.

The pricing method in our sample.
public static int price(int seats) {
  if (seats >= 5) return seats * 17;
  return seats * 20;
}

Both archives use the same class; one additionally contains policy.properties with harmless demonstration values. We ran two inputs so that the disassembly could be compared with known behavior.

What the bytecode tells us

The program returned 80 for 4 and 85 for 5. javap -c prints instructions and -private includes all members. [3] The complete instruction excerpt for price below branches to offset 10 when the input is below 5; otherwise it multiplies by 17. At the target it multiplies by 20.

Results for the two inputs.
4=80, 5=85
Verbatim javap output.
  public static int price(int);
    Code:
       0: iload_0
       1: iconst_5
       2: if_icmplt     10
       5: iload_0
       6: bipush        17
       8: imul
       9: ireturn
      10: iload_0
      11: bipush        20
      13: imul
      14: ireturn

Instructions are not source: variable names, comments and business meaning may be missing, and optimization can change their shape. Even without pseudocode, the constants and branch make this small rule understandable. Pseudodecompilation presents analysis in a more readable form; inferred types and control flow can still be wrong or incomplete, so check them against instructions and behavior.

Resources are a separate inspection path

The jar tool packages and lists classes and resources. [4] Both archives contain Policy.class, while only the first lists policy.properties. Reading that file exposes its two configuration lines unchanged. Packaging data in an archive is not confidentiality.

Archive listings and resource contents from our run.
-- with resource --
META-INF/
META-INF/MANIFEST.MF
Policy.class
policy.properties
-- without resource --
META-INF/
META-INF/MANIFEST.MF
Policy.class
-- resource contents --
plan=DEMO-PLAN-ONLY
threshold=5

This Java configuration is not an implementation of radare2’s native-format resource API. It illustrates why a decompiler view alone is insufficient: inventory configuration, certificates and other shipped data separately. A certificate is not inherently secret; identify the actual contents and privileges. Keep shared privileged credentials out of clients.

Recommendations for a review

These are engineering recommendations, not protection effects measured here. Keep the build and inspection method fixed when comparing observations across tool versions.

Recommended checks by case
QuestionFinding
Business rules run on the clientInspect key branches and constants in release builds; enforce sensitive authorization on the server.
Resources contain configurationInventory contents and privileges; remove secrets that should not be distributed.
Tool version changesRe-run the same owned samples, save versions and output, and review differences.
Readable pseudocode appearsCheck instructions and behavior; do not treat inferences as source.

Record compiler, optimization settings, platform, architecture and artifact hash. Do not attribute differences between different builds directly to the analysis tool, or treat a single search with no matches as proof that resources contain no sensitive information.

Check your own release build

Substitute a Java release artifact and class you are authorized to inspect. The commands list JAR entries and inspect a known class; a real app also needs review of nested archives and other resource formats.

Replace the path and class name.
jar --list --file path/to/your-release.jar
javap -classpath path/to/your-release.jar -c -private com.example.YourClass

Compare findings with the source and test cases for the same build, and identify visible rules, resources and their risks. After changes, rebuild and inspect the actual release artifact again. Record tool versions, build identity and conclusions, and store output under your team’s access policy because it may contain sensitive data.

Your checklist

  • Fix the release build, tool versions and artifact hash.
  • Inspect key branches and constants against actual behavior.
  • Inventory resources and their privileges; remove secrets that should not ship.
  • Re-run the same owned samples after tool updates and review differences.
  • Inspect the final release after fixes and store records securely.

Primary sources

All sources and reproduction status ↗