run_ast_deobfuscation_pipeline
Deobfuscates Java code by analyzing the abstract syntax tree to identify obfuscated variables/methods, applying context-aware renames that preserve business logic, and verifying compilation.
Instructions
Runs the complete end-to-end AST de-obfuscation pipeline: copies mavenized_merged_source to mavenized_final_output, compiles, parses AST via GumTree Spoon to find obfuscated vars/methods, applies context-aware renames without changing business logic, verifies compilation, re-scans AST, and outputs logs to logs/ast_renamed_variables_methods.txt.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_ast_deobfuscation_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logPath | No | Path to output the comprehensive AST rename report log. Defaults to logs/ast_renamed_variables_methods.txt. | |
| renames | No | Optional custom rename entries array. If omitted, uses default AST-analyzed renames. | |
| sourceDir | No | Path to source mavenized project directory. Defaults to mavenized_merged_source. | |
| targetDir | No | Path to target final output directory. Defaults to mavenized_final_output. | |
| gumtreeJarPath | No | Path to GumTree Spoon AST Diff JAR. Defaults to gumtree-ast-diff/gumtree-spoon-ast-diff-1.124.jar. |