[Day 4] 1. Memory Forensics
Memory forensics involves analyzing volatile data captured from the memory (RAM) of a system to uncover evidence of malicious activity, user actions, or system state.
Memory Image Files
- Memory images typically have the file extensions:
.mem.raw
Key Plugins/Commands for Memory Analysis
Here are common plugins or tools used for analyzing memory images. These are often employed using tools like Volatility or within forensic frameworks:
- amcache: Analyzes the application compatibility cache for evidence of executed applications.
- cmdline: Displays the command-line arguments of processes.
- cmdscan: Lists commands entered in open command-line windows.
- connscan: Scans for active network connections.
- consoles: Displays console input/output data.
- envars: Lists environment variables for processes.
- filescan: Scans for file handles within memory.
- getsids: Retrieves Security Identifiers (SIDs) associated with processes.
- hashdump: Dumps password hashes from memory for offline cracking.
- hivescan: Scans the memory for registry hive structures.
- lsadump: Extracts data from the Local Security Authority (LSA), often for credential analysis.
- shellbags: Identifies processes that interacted with specific shell objects (folders, files).
- sockets: Scans for active network sockets.
- verinfo: Displays version information of executables or modules in memory.
**Scanning Memory Images Using Autopsy
General Workflow:
- Ensure the memory image file is in the correct directory.
- Load the memory image(volatility) file into Autopsy
- Select the plugins to use (from the checklist above).
- Keep the profile section as "auto-detect" for most cases.
- Start the scan.
Forensic tools like Autopsy often leverage Volatility 3 in the background for memory analysis.
Using Volatility Directly
To analyze a memory dump using Volatility:
bash# Navigate to the directory where the Volatility files are located.
vol.py -f newmem.mem windows.info.Info
This command provides system information about the memory image (
newmem.memwindows.info.InfoCapturing Memory Images
Using FTK Imager to capture memory:
- Go to File → Capture Memory.
- Fill in the necessary details (e.g., output location, options for page file capture).
- Click on Capture to save the memory image.
- For VMs, repeat the same steps to capture memory from the virtual machine.
Analyzing Memory Images in Autopsy
- Load the memory image into Autopsy.
- Add it as a Data Source.
- Expand the data sources section to view plugin-specific results.
Hash Cracking Tools
- Use CrackStation.net to crack password hashes extracted from memory dumps.
Hex Editors and File Headers
Hex editors allow detailed analysis of binary files and memory dumps. Popular tools include:
- HxD Hex Editor
- FileInsight
- Hex Workshop
Common Operations:
- Analyze file headers:
- File headers are sequences of bytes at the beginning of files that identify the file type.
- Example:
- JPEG:
FFD8FF - PDF:
%PDF
- JPEG:
- Knowing these can help identify partial or corrupted files in memory.
- Manipulate data through:
- Bit shifting
- Block shifting
- These operations can be useful for analyzing encrypted or obfuscated data.
Bit Rot vs. Bit Rotation
- Bit Rot: Gradual degradation of data stored on magnetic storage media due to physical or environmental factors (e.g., magnetic decay).
- Prevention: Regularly refresh or replace aging storage media (e.g., tapes).
- Bit Rotation: A computational operation where bits in a binary sequence are shifted circularly.
Read Next
[Day 4] 2. CCEE alike questions
### Networking Concepts: 1. **Which of the following is the Distance Vector Protocol?** - **Options**: 1. BGP 2. EIGRP...
[Day 1] 1. Other than PPT
#### 1. **Where and How is Credit Card Data Stored?** Credit card data is typically stored in databases by merchants or financial institutions. It...