RDP Bitmap Cache - Detect and Hunt
## Playbook: Automated Collection and Forensic Analysis of RDP Sessions Cache Data This playbook automates the collection and forensic analysis of RDP sessions cache data. It involves the following steps: ### Step 1: Collect Cache Files and Convert to Image The first step is to collect the cache files from RDP sessions and convert them into an image format. ### Step 2: Extract Readable Text from the Image Once the cache files are converted into an image, the playbook extracts readable text from the image to facilitate analysis. ### Step 3: Build Indicators of Compromise (IOCs) from Text In this step, the extracted text is used to build indicators of compromise (IOCs) for further investigation and threat hunting. ### Step 4: Enrich Extracted Indicators for Further Hunting Finally, the playbook enriches the extracted indicators by adding additional context and information, enhancing their usefulness for further hunting and analysis. > Note: It is important to customize and adapt this playbook to fit specific use cases and environments. Additionally, ensure compliance with legal and privacy requirements when collecting and analyzing data. Feel free to modify and enhance this playbook according to your requirements.
RDPCacheHunting · 38 tasks · 10 inputs · 0 outputs
Inputs
ShouldCollectRDPCache— When set to True, will use XDR to get RDP cache files from the endpoints, but set to False will try and use existing cache file from contextEndpointIDs— A comma seperated list of endpoint ID's to retrieve cache files fromFilePath— The path of the file to retrieve or use wildcard for multiple files. For example: C:\the\path\to\cache_file.bin C:\the\path\to\*Hostname— Hostname of the machine on which the file is located for PS remote it can also be an IP address.min_score— StringSifter - Limit output to strings with score >= min-score.limit— StringSifter - Limit output to the top limit ranked strings.similarity_threshold— StringSimilarity - The similarity threshold to show results for, a value between 0 < x >1QRadarTimeFrame— The time frame for the Qradar hunting querySplunkEarliestTime— The earliest time for the Splunk hunting query.SplunkLatestTime— The latest time for the Splunk hunting query.
Commands used
extractIndicators
image-ocr-extract-text
lolbas-get-indicators
rasterize-image
rasterize-pdf
setIncident
splunk-search
xdr-file-retrieve