diff --git a/Ghidra/Configurations/Public_Release/src/global/docs/WhatsNew.html b/Ghidra/Configurations/Public_Release/src/global/docs/WhatsNew.html index 849dfb8996..87cf8113ea 100644 --- a/Ghidra/Configurations/Public_Release/src/global/docs/WhatsNew.html +++ b/Ghidra/Configurations/Public_Release/src/global/docs/WhatsNew.html @@ -43,28 +43,29 @@


-

What's New in Ghidra 10.2

+

What's New in Ghidra 10.3

The not-so-fine print: Please Read!

-

Ghidra 10.2 is fully backward compatible with project data from previous releases. However, programs and data type archives - which are created or modified in 10.2 will not be useable by an earlier Ghidra version.

+

Ghidra 10.3 is fully backward compatible with project data from previous releases. + However, programs and data type archives which are created or modified in 10.3 will not be useable by an earlier Ghidra version.

This release includes many new features and capabilities, performance improvements, quite a few bug fixes, and many pull-request - contributions. Thanks to all those who have contributed their time, thoughts, and code. The Ghidra user community - thanks you too!

+ contributions. Thanks to all those who have contributed their time, thoughts, and code. The Ghidra user community thanks you too!

-

IMPORTANT: Ghidra requires Java 17 JDK to run. A newer version of Java may be acceptable, but has not been tested. Please see the +

IMPORTANT: Ghidra requires Java 17 JDK to run. A newer version of Java may be acceptable but has not been fully tested. Please see the Ghidra Installation Guide for additional information.

NOTE: Please note that any programs imported with a Ghidra beta versions or code built directly from source outside of a release tag may not be compatible - and may have flaws that have been corrected. Any programs analyzed from a beta or other local master source build should be considered experimental and - re-imported and analyzed with a release version. As an example, Ghidra 10.1 beta had an import flaw affecting symbol demangling that was not correctable. - Programs imported with previous release versions should upgrade correctly through various automatic upgrade mechanisms. Any program + and may have flaws that won't be corrected by using this new release. Any programs analyzed from a beta or other local master source build should be considered + experimental and re-imported and analyzed with a release version. As an example, Ghidra 10.1 beta had an import flaw affecting symbol demangling that was not + correctable. Programs imported with previous release versions should upgrade correctly through various automatic upgrade mechanisms. Any program you will continue to reverse engineer should be imported fresh with a release version or a build you trust with the latest code fixes.

-

NOTE: Ghidra Server: The Ghidra 10.2 server is compatible with Ghidra 9.2 and later Ghidra clients. Ghidra 10.2 - clients are compatible with all 10.x and 9.x servers.

+

NOTE: Ghidra Server: The Ghidra 10.3 server is compatible with Ghidra 9.2 and later Ghidra clients. Ghidra 10.3 + clients are compatible with all 10.x and 9.x servers. although due to potential Java version differences, it is strongly recommended + Although compatible in most cases, it is suggested that users using Ghidra versions before 10.2 upgrade their servers to 10.3. + Those using 10.2 and newer should not need a server upgrade.

NOTE: Platform-specific native executables can be built directly from a release distribution. The distribution currently provides Linux 64-bit, Windows 64-bit, and MacOS x86 binaries. If you have another platform, @@ -72,165 +73,174 @@ demangler, and legacy PDB executables for your plaform. Please see "Building Ghidra Native Components" section in the the Ghidra Installation Guide for additional information.

-

Distribution

+

Dark Mode / Theming

-

A Software Bill of Materials (SBOM) is now included in the Ghidra release. The SBOM follows the CycloneDX standard, - and can be used with tools such as Dependency-Track to help identify risk in the software supply-chain.

+

Ghidra now supports UI theming, which allows for full customization of colors, fonts, and icons used consistently throughout the application. + Ghidra themes are built on top of the various Java Look and Feel classes. Included are standard themes for all the supported + Look and Feels. The most notable is the Flat Dark theme, which is built using the FlatLaf, a modern open-source flat Look and Feel + library. Additionally, Ghidra includes various tools for editing and creating custom themes.

+ +

Also, all the main display windows (Listing, Decompiler, and Bytes Viewer) support quickly changing the font size via < Ctrl > + or < Ctrl > -.

+ +

See the Ghidra Help pages for full details on the theming feature.

Debugger

-

The Debugger improvement highlights include:

+

Perhaps the most exciting debugger change is the addition of new training course materials for the Debugger. The materials are written in + Markdown so they display right on GitHub, but they can also be rendered to nice HTML pages by Pandoc for offline viewing. They are suitable + both for self-paced learning and classroom environments. Even if you have used our Debugger before, we highly recommend reading these materials. + They are in the docs/GhidraClass directory with the other course materials.

+

There are several changes to improve the user experience with the Emulator:

+
+

There are several Debugger UI improvements:

+
+ +
+

There are a few small improvements to back-end debugger integration:

+
+

Decompiler

-

The Decompiler has a myriad of improvements in the latest-release. Many have been long-requested features or improvements. - Highlights of the changes include:

-
- -
+

Support has been added for expanding assignment statements on structures or arrays, where multiple fields or elements are moved as a + group by a single instruction. This is especially helpful for analyzing structure initialization code and stack strings.

+ +

Support continues to improve for structures that are either stored across multiple registers or in a single register that is + accessed in pieces. Data types associated with the component fields are propagated more fully throughout the function, and assignments + to fields are displayed simply.

Data Types

-

With this release of Ghidra, support for Pointer Typedefs has been expanded to facilitate the use of specialized - data type settings. Improvements have also been made to ensure that such settings are preserved within data type - archives and merge situations. These settings are not supported at the instance-level and are intended to be an - attribute of the associated pointer. The Typedef provides the ability to tailor a pointer for a specific use. It - is highly recommended that all required Pointer Typedef settings be applied prior to using the data type - (e.g., for defined data, data type components, and variables) since there is currently no change propagation for such modifications. +

Data Type Archives may now optionally target a specific architecture as specified by a processor and associated compiler specification + such as data organization. This has the advantage of better conveying datatype details for a desired architecture and preserving aspects + which may change when resolved into a program. In the future, this will also allow function definitions to retain architecture-specific + details.

-

The following Pointer Typedef settings have been introduced with this release:

-
- -
- -

NOTE: The use and consumption of Pointer Typedef settings is in its early stages and may not be utilized by various analyzers. - In addition, some settings are not relevant to some analyzers where instruction semantics will dictate pointer dereferencing.

- -

At the API level, the PointerTypedef and PointerTypedefBuilder classes have been added to simplify the creation of a Pointer Typedef. - While an explicit Typedef name may be used, Pointer Typedefs also support an auto-naming mechanism (constructed with a null/empty name) - which will simply use the pointer name followed by the settings as an attribute list; example:

-
- int * __((space(ram))) -
- -

Within the GUI, using the New->Typedef on <pointer> action on a selected pointer within the Data Type Tree is the quickest way to create one. - Once this is done, use the Settings... action on the selected Pointer Typedef. The Settings dialog will be displayed allowing the various settings - to be applied to the Typedef. Settings should be made to Typedef prior to applying it since settings change propogation is very limited.

+

Enum handling has been improved in the data type manager when creating new enums from an existing set of enum values, + for example “define_” enums parsed from header files. Enum values will be automatically sized to fit all the values contained + in the enum. Setting the size of an Enum will check if the values will fit within the new size. In addition, “define_” values + created as enums with a single value are sized to the minimum size to fit the value. Parsed enums from header files are sized based + on the declared size of an int from the data organization used to parse. A future version will have a setting to size all parsed enums + to the smallest size that will fit all the values.

+ +

C Header File Parsing

+

The C-Parser GUI has been refactored to remove include paths from the Options section done as –D define lines, to a new Include section. + This should make it easier to configure paths to the include files and has the added benefit of coloring the include file entries red if + they are not found within any include path. You may find creating and using a Ghidra Script instead of the GUI an easier repeatable process. + There are several included examples scripts, including ones to parse AVR8 header files, and Visual Studio version 22 files.

-

C Header File Parsing

- -

C-Parser support has been added for missing C specification syntax from C11 and C23, such as tags, macros with varargs, and _NoReturn. - Numerous parsing errors have also been fixed, including for arrays of function pointers, array definitions, and placement of compiler directives. - In addition, parsing time of extremely large header files has been drastically reduced.

-

Error handling and reporting from the Pre-Processor and C-Parser have been improved.

-

Several scripts to parse header files outside of the GUI have been included, including one that specially parses AVR8 data types and memory-mapped register - definitions from header files for each AVR8 processor variant. The scripts are CreateAVR8GDTArchiveScript.java, CreateExampleGDTArchiveScript.java, CreateJNIArchivesScript.java, - and CreateDefaultGDTArchives.java.

-

Finally, data types in open archives can be used during parsing for undefined data types in a header file. At the start of parsing, use of open - archives can be chosen or ignored without closing open archives. The header files must still parse without error, - however a missing data type or unfound header file may not cause the parsing to fail if an open archive contains a missing, but needed data type definition.

- +

All supplied data type archive GDT files, except macOS, have been re-parsed to include the new processor architecture.

Mach-O Binary Import

Mach-O binary analysis continues to improve. Support has been added for new file formats introduced in iOS 16 and macOS 13. - Improvements have also been made to function identification, symbol detection, and Objective-C support.

- -

Android

- -

Import and analysis of the entire existing set of Android binaries up to version 13.x is now supported, including new support for the Multi-DEX format. - The type of binaries supported include: Android Run-Time (ART), Ahead-of-Time (OAT)/ELF, Dalvik Executables (DEX), Multi-DEX, Compact DEX (CDEX), - Verified DEX (VEX), Boot Image, and Boot Loader formats. Also included are Sleigh modules for DEX files covering each major release of Android; - the optimized instructions vary across versions.

- -

A new Android APK loader will load all DEX files at one time and link the method_lookup - sections using external references. The new APK loader uses the manifest file to determine the Android version.

+ Improvements have also been made to function identification, symbol detection, and Objective-C support.

Analysis

-

The option Assume Contiguous Functions Only, for the Shared Return Analyzer, has been turned on by default. - The Shared Return Analyzer turns jump instructions into a call if the jump - target is, or should be, considered a function. When turned on, the option treats a jump - over a known function entry point to be a call, even if there is only one jump to that location. The option improves thunk function - recovery as well as decompilation results by using a call to the function instead of including the called functions code within the calling function.

+

New ApplyDataArchives analyzer settings enable use of locally created GDT data type archive files or project archives in the + analysis pipeline. Used in conjunction with analysis options settings saved to a named analysis configuration you can easily switch to using a new + GDT file and associated analysis options for a given type of binary. For example, if you are working with AVR8 binaries and have + an associated AVR8.gdt file, create an AVR8 configuration and it will be used as the default analysis options configuration until + you change to a new configuration.

-

The option has been turned on by default for all processor types except ARM. ARM Thumb binaries can sometimes use BL instructions, - normally used as calls, as an internal jump within a large function. If this option were on by default for such a binary it would cause - additional erroneous functions to be created. The option can be used on ARM binaries, however they should be all ARM code; otherwise any Thumb code - using BL for far jumps must be fixed using the Fix_ARM_Call_JumpsScript and Override_ARM_Call_JumpsScript.

+

Constant Propagation now deals with constants passed as stack parameters. In addition, there are several new settings which can better + control when a constant is considered to be an address. For example, processors with small memory spaces, the setting “Require pointer param + data type,” will only create a reference if the parameter is declared with a data type that would be a pointer. This can be useful for Harvard + architectures with multiple address spaces used in conjunction with the PointerTypedef to specify the address space of the pointer. Currently, + once you change the parameter of a called function to be a pointer, you will need to re-run analysis to get the constants passed to the function + to be turned into a reference. This will be automated in the near future.

-

Machine Learning

-

An optional MachineLearning extension has been added containing the Random Forest Function Finder Plugin. - The plugin finds undiscovered functions within a binary using classifiers to identify potential function starts. - The plugin trains classifiers using data sets created from known functions within a binary. - These classifiers can then be used by the plugin on the original binary or other binaries to find additional functions - missed by initial analysis.

-

The extension can be installed from the Ghidra Project Window via File->Install Extensions...

- +

By default, pointer-to-pointer analysis is turned off for ARM binaries in the Operand and Data Reference analyzers. This can result in fewer + references created and can be turned back on if your ARM binaries use pointers data stored in memory instead of offset values from the current PC + to calculate all references.

+ +

Added support for PE MinGW pseudo-relocation processing.

+ +

Shared Projects

+

Folder and file links to contents of another shared project repository may now be added to a Ghidra Project. This could allow a team to + include a program or subfolder that resides in another project rather than copying the program into your project for easy access. The linked + files are opened for read-only viewing.

+

Processors

-

Updated ARM32 and AARCH64 to version v9.3 to include vfp4 instructions.

-

Improvements and bug fixes have been made to many processors to include: AARCH64, ARM, AVR8, AVR32, Coldfire, JVM, MIPS, MSP430, PA-Risc, PowerPC, - RISC-V, SuperH, Tricore, V850, X86, 6502, and 68K.

-

Sleigh now supports inst_next2 as well as inst_next to support branching around the next instruction when its length is unknown. - Many processors have conditional skip instructions which can be used on any instruction, including another skip instruction. - Some sleigh processor developers have tried to use the delayslot() directive to accomplish instruction skipping. Unfortunately, the use of the delayslot() directive - can cause nested delay slots or the potential for branches into the delay slotted instruction, both of which are not supported.

+

Improvements and bug fixes have been made to many processors since 10.2 to include: + AARCH64, ARM, Coldfire, HCS12 MIPS X86, PowerPC, RISCV SPARC, SuperH, TriCore, V850, Z80, 6x09, 68K, and 8051.

+ +

Two new user-submitted processors, eBPF and BPF, add support for two variants of Berkeley Packet Filter binaries.

+ +

A user-submitted refactoring of X86 LOCK/UNLOCK decoding and semantics has been committed. There are currently some issues with the + Decompiler re-arranging code outside of the LOCK/UNLOCK which will be addressed an upcoming patch. If your analysis depends on + the LOCK/UNLOCK semantics, please be aware of the issue.

+ +

A new “leading zeroes count” operator, called lzcount, has been added to p-code, and it can now be used by SLEIGH developers + to model processor instructions. The Decompiler can simplify common code idioms using these instructions, and emulation is supported.

User Interface Improvements

-

The Go To... dialog now provides navigation to file offsets. In addition, a new File Offset field is available in the Listing. The - field must be added to the Listing using Edit Listing Fields. - These new features can greatly simplify correlating bytes in program memory with their original location within the file from which they were imported. - Example: to go to the memory location which corresponds to the first byte in the original file, enter file(0) in the Go To... dialog.

+

Diff can now be performed between two open programs which may include remote files previously opened via a Ghidra-URL.

-

Import Formats

-

Support has been added for loading WinDbg and APPORT dump files.

-

Redesigned the Importer's library loading options to provide finer-grained control over where libraries are searched - for on disk and in the project, as well as where newly loaded libraries are saved to.

+

GOLang 1.18 Support

+

An importer, Analyzer, and Internal changes have been made to support GoLang. Currently, only version 1.18 is supported; however slightly older or newer versions may work. + There are still some Decompiler issues with multiple return parameters to be worked out, however the implementation was thought complete enough + for initial real use. Please consider the feature an evolving initial implementation.

+ +

Ghidra Startup

+

Ghidra now remembers the last location of a program when it is closed. When that program is later re-opened, Ghidra will position the + program to that location. Also, there are options for where Ghidra should start for new programs and optionally when Ghidra completes + the initial analysis.

+ +

Template Simplification

+

Ghidra now has options for simplifying the display of symbol names, in both the Listing and Decompiler, with complex template information + embedded in them. The simplification should result in a much less busy display when dealing with templates.

Additional Bug Fixes and Enhancements

Numerous other bug fixes and improvements are fully listed in the ChangeHistory file.