Cloud and Mobile Device Forensics Study Notes
Cloud Forensics
Cloud computing is compared to renting a super-powerful computer over the internet as opposed to purchasing large machines. This model allows users to pay only for services used, similar to paying for electricity. The advantages of cloud computing include receiving services like storage for files, applications and software, servers for running websites, and databases.
Cloud Computing Architecture
- Management: The structure and administration of cloud resources.
- Cloud Infrastructure: Fundamentals that support cloud services, comprising storage systems, a security framework, and applications.
- Network: Connections that allow different cloud components to communicate.
- Front End: User-facing component where interactions occur.
- Back End: Server-side operations that perform processing of data and management.
- Security: Techniques and technologies to protect data and services in the cloud.
Cloud Forensics
- Definition: Cloud forensics involves the investigation of data stored in the cloud. It can be likened to being a detective in the sky, tasked with recovering and analyzing data and evidence that may not be physically accessible.
Key Components in Cloud Forensics
- Cloud User Side: Interaction point for users accessing cloud services.
- Cloud Service Provider: Entities that provide cloud computing services, responsible for managing and operating the infrastructure.
- Databases: Essential for storing user data within the cloud. Cloud forensics may require accessing and analyzing these databases to gather evidence.
- Forensic Investigation: A systematic process to recover evidence related to potential illegal or harmful activities using cloud services.
- Forensic Report: Documentation of the findings which can potentially be presented in a court of law.
Main Investigative Avenues
Investigators focus on several elements when conducting cloud forensics:
- Logs: Such as AWS CloudTrail, Azure Monitor, GCP Cloud Audit Logs. These logs track user activity including who logged in and the actions they took.
- Snapshots: These are frozen copies of a virtual machine or disk state at a specific time, crucial for evidence collection.
- Network Flow Logs: Logs showing interaction between different cloud entities, detailing which users or services communicated.
- Identity Logs: Tracking user identity and access, including IAM (Identity and Access Management) roles and failed login attempts, to identify unusual permissions.
- Storage Access: Access patterns to storage resources (like S3 bucket logs), detailing which files were accessed and by whom.
- API Calls: Documentation of every action performed, which could include legitimate actions or those intended for malicious purposes.
Case Scenario
An illustrative example of cloud forensics is analogous to a home burglary where the thief utilizes online storage—like Google Drive or Amazon—to hide or plan the crime, rendering conventional investigations less effective. Instead of physical evidence gathering like fingerprint recovery, cloud forensic investigators resort to:
- Requesting special logs from service providers, similar to asking for security camera footage.
- Examining access records to determine file interactions.
- Taking snapshots of virtual machines for accurate historical reference.
- Analyzing network traffic to understand communication patterns in the cloud.
- Recovering deleted files that might still be retrievable.
Differences Between Cloud and Traditional Digital Forensics
Several key distinctions set cloud forensics apart from traditional digital forensics:
- Lack of Physical Access: Cloud forensics lacks direct physical interaction with hardware.
- Multi-Tenancy: Cloud infrastructures are often shared across multiple users, complicating the evidence isolation process.
- Data Volatility: Changes or deletions in cloud data might occur rapidly, influencing the fence of time available for effective data capture.
- Jurisdictional Issues: The location of data may span across borders, complicating legal aspects of evidence collection.
Comparative Table
| Aspect | Traditional Digital Forensics | Cloud Forensics |
|---|---|---|
| Evidence Location | On-premises storage | Distributed across multiple cloud servers |
| Scale of Data | Limited by physical storage | Scalable, potentially massive |
| Data Volatility | Generally static | Dynamic, subject to real-time changes |
| Legal Scope | Local laws applicable | Multi-jurisdictional complexities |
| Access Control | Controlled by organization | Shared responsibility between provider and user |
| Tools and Techniques | Standard forensic tools | Cloud-specific tools required |
Cloud Forensics Investigation Process
Data Acquisition
- Gather audit logs like AWS CloudTrail, Azure Activity Logs, and GCP Audit Logs.
- Capture network traffic during the incident.
- Collect memory dumps for analysis of ephemeral data states.
Examination
- Test for file modifications and presence of hidden files.
- Investigate the existence of malware and its implications on initial access and lateral movement.
- Evaluate persistence mechanisms in compromised systems.
- Analyze the breach impact to determine the extent of the security lapse.
Analysis and Reporting
- Interpret findings from the collected data.
- Categorize incidents and identify perpetrators.
- Recommend strategies for mitigating risk and preventing future incidents.
Mobile Device Forensics - Advanced Techniques
Mobile forensics often requires physical hardware exploitation when conventional software methods are obstructed by security measures.
\n### Physical Methods for Data Recovery
- Chip-Off Forensics: Accessing phone memory chips (typically NAND or eMMC) physically by removing the chip from the device, then creating a raw binary dump.
- In-System Programming (ISP): Instead of chip removal, investigators solder wires to test points on the motherboard for direct access to the memory while leaving it in the device.
- JTAG (Joint Test Action Group): Connects to hidden debug ports found on devices to pause the processor and extract content, less common in modern devices, but it can still be a viable method for older models or IoT gadgets.
Exploiting Encryption and Locks
Bootloader Exploitation
Some phones have permanent bugs in their boot code (ROM). Exploitation happens during startup to obtain full file system control.
AFU vs BFU
- AFU (After First Unlock): When the device has been unlocked at least once after startup. Temporary keys might be retrievable.
- BFU (Before First Unlock): The device has never been unlocked; this scenario presents a significantly higher level of security, often viewed as golden standard.
NAND Mirroring
Creating exact clones of the memory chip to perform brute-force attacks on passcodes without risking the actual device wiping itself after repeated failed attempts.
Live RAM Acquisition Techniques
- Agent Injection: Deploying specialized forensic agents into the device's memory through USB. These agents can capture the current state of RAM and transmit it back to the investigator's computer.
- Volatile Artifacts: Recovering messages that momentarily exist in RAM, which might represent crucial communications from applications like Signal or Telegram that do not save data on storage.
Cloud-Token Forensics
Authentication Token Extraction
Tokens are stored on devices to facilitate seamless logins without requiring re-entry of passwords. Advanced tools can extract these tokens for cloud accounts securing sensitive access.
Bypassing Two-Factor Authentication (2FA)
When tokens are extracted, investigators can log into various cloud accounts without triggering 2FA prompts, allowing for potentially extensive data retrieval without typical security barriers.
Social Media Intelligence (SOCMINT)
Overview
SOCMINT is the specialized process of:
- Collecting public data from social media platforms.
- Analyzing and interpreting that data to generate actionable insights relevant to various fields, including security and crisis management.
Primary Uses of SOCMINT
- Threat Analysis: Preventing and mitigating potential risks emanating from social media activities.
- Crisis Management: Responding to public relations crises effectively by leveraging social media dynamics.
- Cybersecurity: Identifying vulnerabilities aired through social communication channels.
Advanced Techniques in SOCMINT
- Digital Footprint Reconstruction: Examining an individual's online presence to form a comprehensive profile based on their activity.
- Cross-Platform Pivoting: Following unique identifiers across multiple platforms (like Twitter, Instagram, etc.) to uncover connected accounts and consolidate knowledge about individuals.
OSINT Techniques (Open-Source Intelligence)
Open-Source Intelligence involves gathering freely available information from the internet without engaging in hacking. The process can be broken down into various cycles and techniques, including:
- Search Engine Reconnaissance: Utilizing search engines effectively to uncover hidden information.
- Social Media Monitoring: Keeping track of public communications for digital fingerprints.
- Metadata Analysis: Understanding hidden details from media to derive when and where content was created and the device involved.
Common Tools for OSINT
- Have I Been Pwned: A tool to check if emails or passwords have been compromised.
- Maltego: A graphical tool for drawing connections between people, businesses, and various other networks.
- Shodan: A search engine for internet-connected devices to identify vulnerabilities.
- SpiderFoot: An automatic scanning tool that examines various data sources for information on a target.
Challenges of OSINT
- Data Volume: Managing expansive amounts of information accurately.
- Privacy Concerns: Navigating legal boundaries while collecting data from public sources.
Network Forensics and Traffic Analysis
Network forensics examines network traffic, logs, and other details to understand digital communications better. It captures interactions between devices to uncover illicit activities or incidents.
Types of Network Forensics
- Live Network Forensics: Real-time monitoring to detect immediate threats.
- Post-Incident Forensics: Reconstructing events after a suspected incident has already transpired.
Techniques in Network Forensics
- Packet Capture and Deep Packet Inspection: Collecting packet details for thorough examination.
- Flow/Metadata Analysis: Summarizing connections to monitor unusual activities.
- Protocol Analysis: Dissecting application-layer protocols like HTTP and DNS to trace security events.
Challenges in Network Forensics
- Volume of Data: Managing and analyzing high data throughput.
- Encrypted Traffic: Complicating the ability to assess many communications without decryption methods.
- Legal and Privacy Concerns: Balancing investigative needs with respecting user confidentiality and adherence to regulations.