security analyst security skill risk: medium
Rekall Memory Forensics Artifact Extractor
The prompt provides instructions and Python code examples for using the Rekall framework to load memory images, run plugins such as pslist, psscan, malfind, and netscan, and detect…
- Policy sensitive
- Human review
SKILL 4 files · 2 folders
SKILL.md
---
name: extracting-memory-artifacts-with-rekall
description: "Uses Rekall memory forensics framework to analyze memory dumps for process hollowing, injected code via VAD"
---
# Extracting Memory Artifacts with Rekall
## When to Use
- When performing authorized security testing that involves extracting memory artifacts with rekall
- When analyzing malware samples or attack artifacts in a controlled environment
- When conducting red team exercises or penetration testing engagements
- When building detection capabilities based on offensive technique understanding
## Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
## Instructions
Use Rekall to analyze memory dumps for signs of compromise including process
injection, hidden processes, and suspicious network connections.
```python
from rekall import session
from rekall import plugins
# Create a Rekall session with a memory image
s = session.Session(
filename="/path/to/memory.raw",
autodetect=["rsds"],
profile_path=["https://github.com/google/rekall-profiles/raw/master"]
)
# List processes
for proc in s.plugins.pslist():
print(proc)
# Detect injected code
for result in s.plugins.malfind():
print(result)
```
Key analysis steps:
1. Load memory image and auto-detect profile
2. Run pslist and psscan to find hidden processes
3. Use malfind to detect injected/hollowed code in process VADs
4. Examine network connections with netscan
5. Extract suspicious DLLs and drivers with dlllist/modules
## Examples
```python
from rekall import session
s = session.Session(filename="memory.raw")
# Compare pslist vs psscan for hidden processes
pslist_pids = set(p.pid for p in s.plugins.pslist())
psscan_pids = set(p.pid for p in s.plugins.psscan())
hidden = psscan_pids - pslist_pids
print(f"Hidden PIDs: {hidden}")
```
REQUIRED CONTEXT
- memory image path
OPTIONAL CONTEXT
- specific plugins or analysis focus
EXPECTED OUTPUT
- Format
- markdown
- Constraints
-
- include code examples
- list analysis steps
- specify prerequisites and when to use
EXAMPLES
Includes two Python code examples demonstrating Rekall usage for memory analysis and hidden process detection.
CAVEATS
- Missing context
-
- Rekall version or installation method
- Expected output format or report template
- Memory image format constraints
- Ambiguities
-
- Does not specify desired output format or level of detail for analysis results.
- "Appropriate authorization" and "controlled environment" are not defined.
QUALITY
- OVERALL
- 0.71
- CLARITY
- 0.82
- SPECIFICITY
- 0.68
- REUSABILITY
- 0.71
- COMPLETENESS
- 0.64
IMPROVEMENT SUGGESTIONS
- Add explicit output format requirement (e.g., structured JSON report or bullet-point findings).
- Replace or note that Rekall is deprecated and suggest modern alternatives in a comment.
- Include placeholder variables for memory image path and profile URL to improve templating.
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR SECURITY ANALYST
- Ransomware Network Indicators Analyzer security analyst security
- APT TTP Mapping with MITRE Navigator security analyst security
- Linux Persistence Mechanisms Analyzer security analyst security
- Azure AD Lateral Movement KQL Detector security analyst security
- Kerberos Golden Ticket Forgery Detector security analyst security
- LOLBAS Abuse Detection with Sigma Rules security analyst security
- Shadow IT Cloud Usage Detector security analyst security
- Registry Run Key Persistence Detection Guide security analyst security
- Detect Risky OAuth Consent Grants in Entra ID security analyst security
- Windows Service Installation Threat Hunter security analyst security
- Web Server Log Intrusion Analyzer security analyst security
- RDP Brute Force Event Log Analyzer security analyst security
- Azure Activity Logs Threat Analyzer security analyst security
- Scapy Network Packet Analysis Guide security analyst security
- TLS Certificate Transparency Log Analyzer security analyst security
- Cobalt Strike Malleable C2 Profile Analyzer security analyst security
- Email Account Compromise Detection Procedures security analyst security
- Credential Stuffing Auth Log Analyzer security analyst security
- MISP Threat Intelligence Sharing with PyMISP security analyst security
- MISP Threat Landscape Analysis Guide security analyst security
- Malicious Scheduled Task Sysmon Detector security analyst security
- Kerberos Pass-the-Ticket Attack Detector security analyst security
- NTLM Relay Attack Event Log Analyzer security analyst security
- Linux Memory Forensics with LiME and Volatility security analyst security
- Insider Data Exfiltration DLP Analyzer security analyst security