Digital Detectives vs. Android 14: overcoming new forensic challenges
As smartphones continue to be an integral part of our daily lives, they also become increasingly valuable sources of digital evidence in investigations. Android, being one of the most widely used mobile operating systems, is often at the forefront of these investigations. With the release of Android 14, forensic analysts must adapt their techniques and tools to effectively extract and analyze data from devices running this latest version.
Key Changes in Android 14
Before diving into the specific challenges, it’s crucial to understand some of the key changes introduced in Android 14:
- Enhanced privacy features
- Improved file system encryption
- New permission model for certain APIs
- Changes in app data storage and access
- Updates to the Android Runtime (ART)
These changes, while beneficial for user privacy and security, can complicate the forensic analysis process.
New Challenges for DFIR Analysts
1. Enhanced Privacy Features
Android 14 has introduced several privacy enhancements that can impact forensic investigations:
a) Scoped Storage Enforcement
Android 14 fully enforces scoped storage, which limits an app’s access to device storage. This change affects how forensic tools can access and extract data from different app directories.
Challenge: Forensic tools may need to be updated to work with the new storage access model, potentially requiring root access or specialized techniques to bypass scoped storage restrictions.
b) Photo Picker API
The new Photo Picker API allows users to select specific photos and videos to share with apps, rather than granting full access to the media library.
Challenge: This feature may limit the ability of forensic tools to access the entire media library, requiring new methods to extract all media files.
2. Improved File System Encryption
Android 14 continues to enhance file system encryption, making it more challenging to access data without the device passcode or encryption key.
Challenge: Forensic analysts may need to develop new techniques or rely on specialized hardware to bypass or crack the enhanced encryption.
3. New Permission Model for Certain APIs
Android 14 introduces a new permission model for certain APIs, requiring more granular user consent for access to sensitive data.
Challenge: This change may affect the ability of forensic tools to access certain types of data, requiring updates to permission handling and potentially limiting the scope of data extraction without user interaction.
4. Changes in App Data Storage and Access
With updates to how apps store and access data, forensic analysts need to adapt their techniques for extracting and analyzing app-specific information.
a) App-specific directories
Android 14 enforces stricter rules on app-specific directories, making it more challenging to access data from third-party apps.
Challenge: Forensic tools may need to be updated to navigate the new directory structure and access restrictions for each app.
b) Shared storage changes
Changes to shared storage access can impact how forensic tools extract and analyze data stored in shared locations.
Challenge: Analysts may need to develop new methods to access and interpret data stored in shared locations, especially for apps that have adapted to the new storage model.
5. Updates to the Android Runtime (ART)
Android 14 includes updates to the Android Runtime, which can affect how apps are executed and how data is stored in memory.
Challenge: Forensic memory analysis techniques may need to be adapted to account for changes in memory management and app execution.
Artifact Analysis in Android 14
Despite these challenges, Android 14 still provides a wealth of artifacts that can be valuable in forensic investigations. Let’s explore some key artifacts and the challenges associated with extracting and analyzing them in Android 14.
Device Information and General Settings
Several files contain crucial device information and settings:
- build.prop
- global_settings.xml
- system_settings.xml
- secure_settings.xml
- googlesettings.db
- gservices.db
Challenge: While these files still exist in Android 14, the enhanced privacy features may limit access to some of this information without proper authentication or root access.
User Accounts
User account information can be found in files such as:
- accounts_ce.db
- accounts_de.db
- accounts.xml
Challenge: The new permission model in Android 14 may restrict access to account information, requiring forensic tools to adapt their extraction methods.
Cellular, Wi-Fi, and Bluetooth Configuration
Key files for network configuration include:
- telephony.db
- WifiConfigStore.xml
- bt_config.conf
Challenge: Enhanced encryption and privacy features may make it more difficult to access these files without proper authentication.
Installed Applications and Permissions
Several files track installed applications and their permissions:
- packages.list
- packages.xml
- runtime-permissions.xml
Challenge: The new permission model in Android 14 may change how this information is stored and accessed, requiring updates to forensic tools and analysis techniques.
Native and Third-Party Application Usage Analysis
Android 14 continues to provide valuable artifacts for analyzing app usage:
- recent_tasks folder
- usagestats folder
- batterystats files
- Digital Wellbeing database
Challenge: Changes in app data storage and access may require new methods to extract and interpret this usage data accurately.
Extracting and Analyzing Key Artifacts
Let’s dive deeper into some specific artifacts and the challenges associated with extracting and analyzing them in Android 14.
1. Calendar Data (calendar.db)
The calendar.db file, stored in /data/com.android.providers.calendar/databases/
, contains valuable information about a user’s schedule and events.
Challenge: In Android 14, accessing this database may require bypassing scoped storage restrictions and potentially dealing with enhanced encryption.
Extraction Technique: Forensic tools may need to emulate the Calendar app’s permissions or use root access to extract this database.
Analysis Tip: Pay attention to the “deleted” flag in event entries, as it may reveal information about events that the user attempted to remove.
2. Contacts (contacts2.db)
The contacts2.db file, located in /data/com.android.providers.contacts/databases/
, stores contact information.
Challenge: Android 14’s privacy features may limit access to this database without proper authentication.
Extraction Technique: Advanced forensic tools may need to leverage system-level access or exploit vulnerabilities to extract this database.
Analysis Tip: Cross-reference contact data with communication logs from various apps to build a comprehensive picture of the user’s interactions.
3. SMS/MMS (mmssms.db)
The mmssms.db file, found in /data/com.android.providers.telephony/databases/
, contains text and multimedia messages.
Challenge: Enhanced encryption in Android 14 may make it more difficult to access this database without the device passcode.
Extraction Technique: Physical extraction methods or advanced logical extraction tools may be necessary to bypass encryption and access this database.
Analysis Tip: Look for patterns in message timestamps and content to identify key conversations or periods of interest.
4. Google Maps Artifacts
Google Maps artifacts are stored in various files under /data/com.google.android.apps.maps/databases/
.
Challenge: Android 14’s new permission model may restrict access to location data, making it harder to extract and analyze Google Maps artifacts.
Extraction Technique: Forensic tools may need to emulate Google Maps’ permissions or use advanced extraction methods to access this data.
Analysis Tip: Pay attention to search history, saved locations, and timeline data to reconstruct the user’s movements and interests.
5. Digital Wellbeing (app_usage)
The Digital Wellbeing database, located at /data/com.google.android.apps.wellbeing/databases/app_usage
, provides valuable information about app usage patterns.
Challenge: Changes in app data storage and access in Android 14 may affect how this data is collected and stored.
Extraction Technique: Advanced logical extraction methods or root access may be necessary to access this database.
Analysis Tip: Analyze usage patterns to identify frequently used apps and correlate this information with other artifacts to build a comprehensive user activity timeline.
Adapting Forensic Tools and Techniques
To address the challenges posed by Android 14, forensic analysts and tool developers need to adapt their approaches:
-
Update Extraction Methods: Develop new techniques to bypass scoped storage restrictions and enhanced encryption.
-
Enhance Permission Handling: Update forensic tools to handle the new permission model and API restrictions in Android 14.
-
Improve Decryption Capabilities: Invest in advanced decryption methods to tackle the improved file system encryption.
-
Adopt Advanced Memory Analysis: Develop new memory analysis techniques to account for changes in the Android Runtime.
-
Leverage Cloud Forensics: As more data moves to the cloud, incorporate cloud forensics techniques to complement on-device analysis.
-
Utilize AI and Machine Learning: Implement AI-driven analysis tools to help process and correlate the vast amount of data extracted from Android 14 devices.
As the mobile landscape continues to evolve, it’s crucial for forensic analysts to stay informed about the latest changes in Android and other mobile operating systems. By adapting their methods, updating their tools, and considering the legal and ethical implications of their work, DFIR professionals can continue to extract valuable insights from Android devices, even in the face of increasing technical complexity.