/secskills-defense:investigating-windows-endpointsfrom secskills-defense
Analyzes Windows on-disk artifacts (event logs, prefetch, registry, MFT) to reconstruct execution, persistence, and lateral movement. Integrates tools like Chainsaw, Hayabusa, and Plaso for timeline building.
Ships in secskills-defense. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Windows records execution, persistence, and access in dozens of artifacts the attacker rarely cleans completely. The event logs are only the surface -- the registry, prefetch, amcache, and the file-system journals corroborate or contradict them. The investigation is cross-referencing independent artifacts into one timeline that no single cleared log can defeat.
analyzing-linux-persistenceresponding-to-incidents; come here when one Windows host is the focusanalyzing-memory-images; come
here for the on-disk artifactsinvestigating-m365-entrahunting-threatsescalating-windows-privilegesDo not analyze the live disk in place. Collect a triage set, hash it, and work on the copy. For most incidents a targeted triage collection answers the question faster than a full image; image only the hosts that matter.
Dead vs. live acquisition. A powered-off host or a mounted disk image is a
dead acquisition -- consistent, but you lose running processes, network state,
and unflushed logs. A live host lets you capture volatile state (memory,
netstat -anob, Get-NetTCPConnection, tasklist /svc) but every action
mutates the disk; record what you touch. Capture memory first if the host is
live and "are they still here" is open, then hand it to analyzing-memory-images.
:: KAPE targeted triage -- the fastest way to a defensible artifact set
kape.exe --tsource C: --target !SANS_Triage --tdest E:\out\host01 --vhdx host01
:: Broader coverage: registry hives, event logs, $MFT/$J, browser, prefetch
kape.exe --tsource C: --target KapeTriage,RegistryHives,EventLogs,FileSystem ^
--tdest E:\out\host01
:: Then run the parsers (Modules) over what you collected
kape.exe --msource E:\out\host01 --mdest E:\out\host01\parsed ^
--module !EZParser
Velociraptor (Windows.KapeFiles.Targets) collects the same set at fleet scale
over an agent. Whatever the tool, verify hashes before and after every copy.
Key artifact directories to make sure your collection contains:
C:\Windows\System32\winevt\Logs\ Event logs (.evtx)
C:\Windows\System32\config\ Registry hives: SYSTEM, SOFTWARE, SAM, SECURITY
C:\Users\<u>\NTUSER.DAT Per-user registry hive
C:\Users\<u>\AppData\Local\Microsoft\Windows\UsrClass.dat Shellbags, COM
C:\Windows\Prefetch\ *.pf execution evidence
C:\Windows\appcompat\Programs\Amcache.hve Amcache
C:\Windows\System32\sru\SRUDB.dat SRUM
C:\Windows\System32\Tasks\ Scheduled task XML
C:\$MFT C:\$Extend\$UsnJrnl C:\$LogFile Filesystem journals
C:\$Recycle.Bin\ Deleted-file $I records
Multiple independent artifacts record that a binary ran. Cross-reference them -- agreement raises confidence, disagreement is itself a finding.
:: Prefetch -- run count, first/last run, files/dirs the binary touched.
:: Absent on most Servers; disabled on SSD-only systems -- note that, don't assume.
PECmd.exe -d C:\Windows\Prefetch --csv E:\out\parsed -q
:: Amcache -- SHA-1 of executed/present binaries, compile times, driver load
AmcacheParser.exe -f C:\Windows\appcompat\Programs\Amcache.hve ^
--csv E:\out\parsed -i
:: Shimcache / AppCompatCache (SYSTEM hive) -- path + last-modified; presence
:: means the file was seen, NOT necessarily executed. Order is roughly LRU.
AppCompatCacheParser.exe -f C:\Windows\System32\config\SYSTEM --csv E:\out\parsed
:: SRUM -- per-process bytes sent/received and CPU over 30-60 days.
:: Ties an executable to network volume even when netflow is gone.
SrumECmd.exe -f C:\Windows\System32\sru\SRUDB.dat ^
-r C:\Windows\System32\config\SOFTWARE --csv E:\out\parsed
From the user (NTUSER.DAT / UsrClass.dat) hives, parse GUI-execution and
file-access evidence with RECmd:
:: UserAssist (GUI program launches, run count, focus time),
:: BAM/DAM (background/desktop activity moderator: last-run per exe per SID),
:: RecentDocs, and RunMRU in one pass with the bundled batch file
RECmd.exe -d C:\Users --bn BatchExamples\UserActivity.reb --csv E:\out\parsed
...\Recent\AutomaticDestinations\*.automaticDestinations-ms)
and LNK files (...\Recent\*.lnk) record opened files/apps with target
path, volume serial, and MAC times -- parse with JLECmd and LECmd.Parse EVTX first with a triage engine (Chainsaw / Hayabusa, below), then pivot into specific channels. The IDs that carry the most weight:
Security (Security.evtx):
Sysmon (Microsoft-Windows-Sysmon/Operational), if deployed, is the
richest source:
PowerShell:
Microsoft-Windows-PowerShell/Operational) --
deobfuscated script content; hunt for -enc, FromBase64String,
DownloadString, IEX, AMSI-bypass strings. 4103 module/pipeline
logging. 400/800 in Windows PowerShell.evtx (engine start, version --
a v2 downgrade is evasion).RDP / TerminalServices:
TerminalServices-RemoteConnectionManager (auth succeeded -- user + source
IP). 21/22/25 in TerminalServices-LocalSessionManager (logon,
shell start, reconnect).WMI (Microsoft-Windows-WMI-Activity/Operational): 5857 provider
loaded, 5858 operation error, 5859-5861 permanent event-subscription
registration -- WMI persistence.
Task Scheduler (Microsoft-Windows-TaskScheduler/Operational): 106
task registered, 140 updated, 141 deleted, 200/201 action
executed/completed -- corroborates Security 4698.
Sweep every autostart, not the handful your tool checks by default. This is the
defensive mirror of establishing-persistence -- read that skill for how each
mechanism is planted, then hunt for the traces here.
...\Software\Microsoft\Windows\CurrentVersion\Run and
RunOnce, per SOFTWARE and each NTUSER.DAT; also ...\Policies\Explorer\Run....\Services; correlate installs with 7045.C:\Windows\System32\Tasks\ XML (parse the Actions
and Triggers); correlate 4698 / TaskScheduler 106.__EventFilter, __EventConsumer,
__FilterToConsumerBinding in the OBJECTS.DATA repository;
Get-WMIObject -Namespace root\subscription -Class __EventConsumer....\Start Menu\Programs\Startup\ (per-user and
All Users).Shell, Userinit, Notify under
...\Winlogon; anything appended after explorer.exe / userinit.exe.Image File Execution Options\<exe>\Debugger (and
GlobalFlag + Silent Process Exit) hijacking a legit binary.Software\Classes\CLSID\...\InprocServer32
shadowing a HKLM CLSID....\Lsa\Security Packages and Notification Packages;
...\Lsa\OSConfig.bitsadmin /list /allusers /verbose or parse
...\Microsoft\Network\Downloader\qmgr*.dat for download-and-execute jobs.:: Autoruns from Sysinternals, offline against a mounted image, VirusTotal + verify
autorunsc.exe -accepteula -a * -h -s -c -o autoruns.csv "\\?\E:\mount"
:: RECmd has batch files that dump every autostart location from the hives
RECmd.exe -d E:\out\host01 --bn BatchExamples\RegistryASEPs.reb --csv E:\out\parsed
Movement leaves paired artifacts on source and destination. Correlate by time, account, and source IP.
runas /netonly.PSEXESVC-style name) plus 7036 start on the destination; 5145 if
detailed file-share auditing logged the \ADMIN$\<svc>.exe write. RemCom and
similar clones follow the same 7045+7036 pattern.wmiprvse.exe spawning a
child in Sysmon 1; WinRM over 5985/5986 (HTTP/HTTPS), with
Microsoft-Windows-WinRM/Operational and 4624 Type 3.C$, ADMIN$, IPC$ in 5140/5145;
correlate with the tool written to ADMIN$.$MFT entries for tools dropped to
the destination.The NTFS metadata files are the ground truth the attacker is least likely to scrub, and the timestomp check that no cleared log defeats.
:: $MFT -- every file's four SI + four FN timestamps, parent, size, resident data
MFTECmd.exe -f "E:\out\host01\$MFT" --csv E:\out\parsed
:: USN change journal -- creates/deletes/renames even after the file is gone
MFTECmd.exe -f "E:\out\host01\$Extend\$J" --csv E:\out\parsed
:: $LogFile -- transactional, can recover changes the USN rolled past
$STANDARD_INFORMATION times are settable from
user land (SetFileTime, timestomp); $FILE_NAME times are set only by the
kernel on rename/move. SI earlier than FN, sub-second zeros on SI, or SI
disagreeing with the USN entry all flag forgery. Parse both from MFTECmd and
diff them.$Extend\$UsnJrnl:$J) records the filename, reason
(FileCreate, RenameNew, FileDelete), and USN for changes -- reconstructs
drop, rename, and cleanup of tooling even after deletion.$I files in C:\$Recycle.Bin\<SID>\ hold the original
path, size, and deletion time of each $R file (RBCmd.exe).SBECmd.exe -d E:\out\host01 --csv E:\out\parsed.dir /r, Get-Item -Stream *;
Zone.Identifier marks downloaded files (mark-of-the-web) and named streams
hide payloads.History (SQLite,
...\User Data\Default\History), Firefox places.sqlite; the downloads
table plus Zone.Identifier ADS establish what was pulled onto the host....\Terminal Server Client\Cache\*.bmc) can
reconstruct what an interactive intruder saw.Cleanup is signal, not silence. Hunt the traces of it:
...\Memory Management\PrefetchParameters\EnablePrefetcher = 0.fsutil usn deletejournal leaves the journal
truncated; note the missing history as a gap.State every such gap explicitly in the timeline as a limitation -- never let a cleared log become an implicit "nothing happened."
Fast triage first, then the full timeline. Normalize everything to UTC, cite the source artifact on every row, and separate observed from inferred.
:: Chainsaw -- fast EVTX triage with built-in + Sigma rules, minutes not hours
chainsaw hunt E:\out\host01\...\winevt\Logs -s sigma\ ^
--mapping mappings\sigma-event-logs-all.yml -r rules\ --csv -o chainsaw_out
:: Hayabusa -- EVTX -> single timeline scored by severity, Sigma-backed
hayabusa.exe csv-timeline -d E:\out\host01\...\winevt\Logs -o hayabusa.csv -p verbose
# Plaso -- ingest the whole triage set (or image) into one storage file...
log2timeline.py --storage-file plaso.db E:\out\host01
# ...then filter and export the super-timeline
psort.py -o l2tcsv -w super.csv plaso.db "date > '2026-07-01 00:00:00'"
Load the parsed CSVs (EZ Tools output, Chainsaw, psort) into Timeline
Explorer to pivot, tag, and color across artifacts in one grid. The Eric
Zimmerman suite -- PECmd, AmcacheParser, AppCompatCacheParser, SrumECmd,
MFTECmd, RECmd, SBECmd, JLECmd, LECmd, RBCmd -- plus Chainsaw / Hayabusa
for EVTX and Plaso for the union timeline is the core toolchain. Write
detections for what you find with writing-sigma-rules; hand the narrative to
reporting-security-findings.
$STANDARD_INFORMATION
is trivially forged. Check $FILE_NAME and the USN journal; disagreement is
the finding.analyzing-linux-persistence -- the same host-forensic sweep for Linuxresponding-to-incidents -- the IR process and multi-host coordination this
feedsanalyzing-memory-images -- RAM analysis for the volatile half of the hostinvestigating-m365-entra -- when the compromise is in cloud identityhunting-threats -- proactive fleet-wide hunting with no specific hostestablishing-persistence -- offensive view of the autostarts hunted herewriting-sigma-rules -- detections for the event-log patterns foundreporting-security-findings -- turning the timeline into the deliverableWhat SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Jul 31, 2026
22 skills in this plugin
/analyzing-disk-imagesPerform dead-disk forensics on an acquired disk image using The Sleuth Kit, Plaso, and bulk_extractor — verify integrity and mount read-only, map partitions, recover deleted files, build a file-system and super-timeline, carve unallocated space, mine registry hives and OS artifacts, and detect anti-forensics. Use when handed a .E01/.dd/.raw/.vmdk/.vhdx disk image or forensic acquisition to examine, recovering deleted files, building a file-system timeline, or carving artifacts from unallocated space./analyzing-linux-persistenceSystematically identify and analyze persistence mechanisms on Linux systems during DFIR investigations -- sweep systemd units, cron jobs, shell initialization, SSH config, kernel modules, LD_PRELOAD, package manager hooks, udev rules, container entrypoints, and XDG autostart entries. Use when investigating a compromised Linux host, performing forensic analysis of a Linux disk image, looking for backdoors or unauthorized access mechanisms, or determining how an attacker maintained access./analyzing-malwareAnalyze suspected malware safely — containment, static triage, sandboxed detonation, unpacking, capability and C2 extraction, IOC production, and YARA rule authoring. Use when handed a suspicious file, hash, or sample, when triaging an alert artifact, or when producing detection content from a specimen.npx claudepluginhub trilwu/secskills --plugin secskills-defenseOther plugins' skills for the same job