xiaohongshu
xiaohongshu
forensic-analyst
Use this skill when users need to conduct digital forensics investigations, perform timeline reconstruction, analyze memory dumps, examine artifacts, or build comprehensive forensic reports using LimaCharlie's forensic capabilities.
Full skill instructions
This skill provides expert guidance for conducting comprehensive digital forensics investigations using LimaCharlie. Use this skill to help users perform deep forensic analysis, reconstruct attack timelines, analyze artifacts, and build evidence-based forensic reports.
Need to investigate an incident? Start here:
This skill is organized for progressive disclosure:
Incident Response Forensics: Active incident analysis, attack vector identification, threat containment
Post-Incident Forensics: Reconstruction of completed attacks, impact assessment, legal evidence
Proactive Forensics: Threat hunting, anomaly detection, baseline establishment
Compliance Forensics: Audit trails, policy violations, regulatory evidence
IMPORTANT: When users provide relative time offsets (e.g., "last hour", "past 24 hours", "last week"), you MUST dynamically compute the current epoch timestamp based on the actual current time. Never use hardcoded or placeholder timestamps.
import time
# Compute current time dynamically
current_epoch_seconds = int(time.time())
current_epoch_milliseconds = int(time.time() * 1000)
The granularity (seconds vs milliseconds) depends on the specific API or MCP tool. Always check the tool signature or API documentation to determine which unit to use.
Example: "Show me events from the last hour"
end_time = int(time.time()) # Current time
start_time = end_time - 3600 # 1 hour ago
Common offsets (in seconds):
For millisecond-based APIs, multiply by 1000.
NEVER:
1234567890ALWAYS:
time.time()Determine Investigation Scope:
Select Target Sensors:
# Via LCQL: Filter by hostname, tags, or platform
routing/hostname == "compromised-host"
routing/tags contains "investigation"
plat == windows
Collect Volatile Data First (Order of Volatility):
os_processesnetstatos_users (Windows)history_dumpDocument Chain of Custody: Who, What, When, Where, Why, How
File System Evidence:
dir_list C:\Users\victim\Downloads
file_info C:\path\to\suspicious.exe
file_hash C:\path\to\suspicious.exe
artifact_get C:\path\to\suspicious.exe
Event Logs (Windows):
log_get Security
log_get System
artifact_get C:\Windows\System32\winevt\Logs\Security.evtx
Registry Artifacts:
os_autoruns
artifact_get C:\Windows\System32\config\SYSTEM
See REFERENCE.md for complete command reference.
Timeline Analysis:
# Process execution timeline
-24h | plat == windows | NEW_PROCESS | event/TIMESTAMP as time event/FILE_PATH as process event/COMMAND_LINE as cmdline routing/hostname as host
# File modification timeline
-24h | plat == windows | FILE_MODIFIED | event/TIMESTAMP as time event/FILE_PATH as file routing/hostname as host
# Network connection timeline
-12h | plat == windows | NETWORK_CONNECTIONS | event/TIMESTAMP as time event/NETWORK_ACTIVITY/DESTINATION/IP_ADDRESS as dst_ip event/FILE_PATH as process routing/hostname as host
Pattern Detection: Identify related events, correlate across event types, build process trees
Hypothesis-Driven Analysis:
Attribution Analysis: Map to MITRE ATT&CK, identify TTPs, establish timeline of attacker actions
Impact Assessment: What data accessed? What systems compromised? What modifications made?
Document Findings: Executive summary, timeline of events, evidence inventory, analysis methodology, conclusions, recommendations, technical appendices
See TROUBLESHOOTING.md if you encounter issues during investigation.
Quick Workflow:
# 1. Get current processes
os_processes
# 2. Get historical execution
history_dump
# 3. Timeline query
-24h | plat == windows | NEW_PROCESS | event/FILE_PATH contains "suspicious" | event/TIMESTAMP as time event/COMMAND_LINE as cmdline event/PARENT/FILE_PATH as parent routing/hostname as host
# 4. Check code signature
-24h | plat == windows | CODE_IDENTITY | event/FILE_PATH contains "suspicious" | event/SIGNATURE/FILE_IS_SIGNED as signed event/HASH as hash
# 5. Memory analysis (if still running)
mem_map --pid <pid>
mem_strings --pid <pid>
Quick Workflow:
# 1. Current connections
netstat
# 2. Historical connections
-24h | routing/hostname == "target-host" | NETWORK_CONNECTIONS | event/TIMESTAMP as time event/NETWORK_ACTIVITY/DESTINATION/IP_ADDRESS as dst_ip event/NETWORK_ACTIVITY/DESTINATION/PORT as port event/FILE_PATH as process
# 3. DNS queries
-24h | routing/hostname == "target-host" | DNS_REQUEST | event/DOMAIN_NAME as domain event/TIMESTAMP as time
# 4. Suspicious patterns (beaconing, high volume)
-24h | plat == windows | NETWORK_CONNECTIONS | event/NETWORK_ACTIVITY/DESTINATION/IP_ADDRESS as dst COUNT(event) as conn_count GROUP BY(dst) | conn_count > 50
Quick Workflow:
# 1. File metadata
file_info C:\path\to\suspicious.exe
file_hash C:\path\to\suspicious.exe
# 2. File timeline
-24h | plat == windows | NEW_DOCUMENT FILE_MODIFIED FILE_DELETE | event/FILE_PATH contains "suspicious" | event/TIMESTAMP as time routing/event_type as activity
# 3. Hash correlation (find all instances)
-7d | plat == windows | CODE_IDENTITY | event/HASH == "abc123..." | event/FILE_PATH as path routing/hostname as host
# 4. Collect evidence
artifact_get C:\path\to\suspicious.exe
Quick Workflow:
# 1. All activity by user
-24h | plat == windows | NEW_PROCESS | event/USER_NAME == "DOMAIN\\user" | event/TIMESTAMP as time event/FILE_PATH as process event/COMMAND_LINE as cmdline routing/hostname as host
# 2. Login timeline
-24h | plat == windows | WEL | event/EVENT/System/EventID == "4624" and event/EVENT/EventData/TargetUserName == "user" | event/TIMESTAMP as time routing/hostname as host event/EVENT/EventData/LogonType as type
# 3. File access
-24h | routing/hostname == "user-workstation" | FILE_TYPE_ACCESSED | event/TIMESTAMP as time event/FILE_PATH as file
For complete investigation scenarios, see EXAMPLES.md.
Process Analysis:
os_processes - List running processeshistory_dump - Dump recent process historyNetwork Analysis:
netstat - Current network connectionsMemory Analysis:
mem_map --pid <pid> - Process memory mapmem_strings --pid <pid> - Extract strings from memorymem_find_string --pid <pid> --string "text" - Search memorymem_read --pid <pid> --base <addr> --size <bytes> - Read memory regionmem_handles --pid <pid> - List open handles (Windows)File Analysis:
file_info <path> - Get file metadatafile_hash <path> - Calculate file hashartifact_get <path> - Collect filedir_list <path> - List directory contentsdir_find_hash <path> --hash <hash> - Find files by hashSystem State:
os_autoruns - Get autorun entriesos_services - List servicesos_packages - List installed packagesos_drivers - List drivers (Windows)os_users - List logged-in users (Windows)log_get <logname> - Get Windows event logFor complete command syntax and options, see REFERENCE.md.
Time-Based Queries:
-24h | <filters> # Last 24 hours
-7d | <filters> # Last 7 days
-30d | <filters> # Last 30 days
Event Type Filtering:
| NEW_PROCESS # Process creation
| NETWORK_CONNECTIONS # Network activity
| FILE_MODIFIED # File changes
| REGISTRY_WRITE # Registry modifications
| DNS_REQUEST # DNS queries
| WEL # Windows Event Logs
Field Selection:
| event/TIMESTAMP as time
| event/FILE_PATH as process
| event/COMMAND_LINE as cmdline
| routing/hostname as host
| routing/event_type as event_type
Aggregation:
| COUNT(event) as count
| COUNT_UNIQUE(routing/sid) as sensor_count
| GROUP BY(field1 field2)
For complete LCQL reference, see REFERENCE.md.
Execution Artifacts:
C:\Windows\Prefetch\*.pfC:\Windows\AppCompat\Programs\Amcache.hveSYSTEM\CurrentControlSet\Control\Session Manager\AppCompatCacheNTUSER.DAT\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssistPersistence Locations:
HKLM\Software\Microsoft\Windows\CurrentVersion\RunHKLM\System\CurrentControlSet\ServicesC:\Users\*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartupUser Activity:
C:\Users\*\AppData\Roaming\Microsoft\Windows\Recent\*C:\Users\*\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations\*NTUSER.DAT, UsrClass.datEvent Logs:
Command History:
/home/*/.bash_history/root/.bash_history/home/*/.zsh_historySystem Logs:
/var/log/auth.log (Debian/Ubuntu)/var/log/secure (RHEL/CentOS)/var/log/syslog/var/log/messagesPersistence:
/etc/crontab, /var/spool/cron/crontabs/*/etc/systemd/system/*, /lib/systemd/system/*/home/*/.ssh/authorized_keys, /root/.ssh/authorized_keys/etc/profile, ~/.bashrc, ~/.bash_profileFor complete artifact reference, see REFERENCE.md.
Required Documentation:
Investigation ID Tagging:
artifact_get C:\malware.exe --investigation incident-2024-001
history_dump --investigation incident-2024-001
Hash Verification Workflow:
file_hash C:\evidence\file.exeartifact_get C:\evidence\file.exeRead-Only Analysis: Never modify originals, work on copies, use write-blockers for disk images
LimaCharlie Artifact Storage:
Retention Configuration:
# Set retention when collecting
- action: extension request
extension name: ext-dumper
extension action: request_dump
extension request:
target: memory
sid: <<routing.sid>>
retention: 90 # days
For detailed evidence preservation procedures, see REFERENCE.md.
For detailed indicator analysis, see EXAMPLES.md.
Start Broad, Then Narrow: Begin with wide time windows and broad queries, identify patterns, then drill down into specific timeframes.
Correlate Multiple Data Sources: Match process execution with network connections, correlate file creation with process execution, cross-reference findings.
Think Like an Attacker: Map findings to MITRE ATT&CK framework. Consider: Initial Access, Execution, Persistence, Privilege Escalation, Defense Evasion, Credential Access, Discovery, Lateral Movement, Collection, Exfiltration.
Document Everything: Every command, query, finding, hypothesis, and conclusion for reproducibility and reporting.
Memory Analysis: Collect via Dumper extension, analyze with Volatility, Rekall, WinDbg, GDB. See ADVANCED.md.
Disk Forensics: Collect MFT, analyze with MFTExplorer, analyzeMFT, NTFS Log Tracker, Plaso. See ADVANCED.md.
Registry Analysis: Collect hives, analyze with Registry Explorer, RegRipper, Registry Decoder. See ADVANCED.md.
Network Analysis: Collect PCAPs, analyze with Wireshark, tcpdump, NetworkMiner, Zeek. See ADVANCED.md.
For detailed command reference: See REFERENCE.md
For investigation scenarios: See EXAMPLES.md (ransomware, insider threat, web shell)
For advanced techniques: See ADVANCED.md (memory, registry, network analysis)
For troubleshooting: See TROUBLESHOOTING.md
Need help?
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience