meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| soc:irt:playbooks:windows_disk [2026/06/16 09:40] – titannet | soc:irt:playbooks:windows_disk [2026/06/16 14:45] (current) – titannet | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * executed with output copied back to "IR log" | * executed with output copied back to "IR log" | ||
| * recommendation: | * recommendation: | ||
| + | * ''##'' | ||
| + | |||
| + | ==== setup ==== | ||
| + | |||
| <code bash> | <code bash> | ||
| + | echo ' | ||
| + | </ | ||
| + | |||
| + | ==== Env variables ==== | ||
| + | <code bash> | ||
| + | rm ~/.case.env | ||
| pwd | pwd | ||
| - | WF=/ | + | WD=/ |
| - | EF=/ | + | E=/ |
| - | # EF1+.. additional variables for evidence files | + | |
| + | </ | ||
| + | |||
| + | ==== Disk Image basics ==== | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | mmls -r $E | ||
| + | sudo -E ~/ | ||
| + | # -p has ' | ||
| + | # new tab or crtl-z | ||
| + | DISK_C=< | ||
| + | </ | ||
| + | |||
| + | ==== Start with plaso ==== | ||
| + | |||
| + | <code bash> | ||
| + | docker run -it --rm --entrypoint=/ | ||
| + | # docker run -it --rm --user :$(id -g) --entrypoint=/ | ||
| + | |||
| + | # one step | ||
| + | psteal.py --source /work/evidence/< | ||
| + | |||
| + | # two step | ||
| + | log2timeline.py --storage-file / | ||
| + | psort.py -o json_line -w / | ||
| + | #psort.py -o json_line -w / | ||
| + | |||
| + | |||
| + | cp output/ | ||
| + | cd tools/ | ||
| + | docker compose up -d | ||
| + | # -> localhost: | ||
| + | |||
| + | </ | ||
| + | |||
| + | === Extended disk image anaylsis === | ||
| + | |||
| + | <code bash> | ||
| + | fsstat -o < | ||
| + | istat -o < | ||
| + | istat -o < | ||
| + | fls -o < | ||
| + | mactime -b data/ | ||
| + | mactime -b data/ | ||
| + | # dissect | ||
| + | target-query -f hostname, | ||
| + | # much more useful for queries on multiple disks at once | ||
| + | target-query -j -f services $E | jq -r ' | ||
| + | # JSON output → jq | ||
| + | target-query --list | grep -iE ' | ||
| </ | </ | ||