⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ref_timeline.txt

📁 linux下开发的针对所有磁盘的数据恢复的源码
💻 TXT
字号:
                         File Activity Timelines                     Sleuth Kit Reference Document                        http://www.sleuthkit.org                            Brian Carrier                        Last Updated: Sept 2008INTRODUCTION=======================================================================Creating a timeline of file activity will give an investigatorclues regarding where to probe further.  This document will describehow to generate one using The Sleuth Kit.  The timelines in The SleuthKit allow one to quickly get a high-level look at system activity,such as when files were compiled and when archives were opened.  BACKGROUND=======================================================================Many files and directories have times associated with them.  Thequantity and description of which depend on the file system type.FFS file systems have a Modified, Accessed, and Changed timeassociated with them.  EXT2FS file systems have a Modified, Accessed,Changed, and Deleted time.  FAT stores the Written, Accessed, andCreated time, although by spec the Created and Access times areoptional and the Access time is only accurate to the day.TIMELINE CREATION=======================================================================The creation of a file activity timeline in The Sleuth Kit hasthree phases.1.  Gather file data.  Using the 'fls' tool, the data associated withallocated and some unallocated files can be gathered.  To do thisrequires the '-m' argument with the '-r' flag to gather all files.This needs to be done for each partition image.		# fls -f openbsd -m / -r images/root.dd > data/body	# fls -f openbsd -m /var/ -r images/var.dd >> data/body	# fls -f openbsd -m /usr/ -r images/usr.dd >> data/bodyNOTE: Some systems delete the link between deleted file names andmeta data, such as Solaris, so only information about allocatedfiles will be useful.NOTE: This replaces the actions of 'grave-robber -m' in TCT.  The'mac-robber' tool (on the www.sleuthkit.org web site) can also beused to gather allocated file data on a mounted file system.'mac-robber' is useful for file systems where tools do not exist(such as AIX jfs).2.  Gather unallocated meta data.  Using the 'ils' tool, the dataassociated with unallocated meta data can be gathered.  When filesare deleted, the times associated with the file are updated.Although many times we may not be able to link the original nameto the meta data, it will still give some clue with respect to whenactivity occurred.  This uses the '-m' flag of 'ils'.	# ils -f openbsd -m images/root.dd >> data/body	# ils -f openbsd -m images/var.dd >> data/body	# ils -f openbsd -m images/usr.dd >> data/bodyNOTE: Because of the way that FAT stores time, the timezone isneeded while executing 'ils'.  If you will be giving 'mactime' atimezone to use then set the TZ environment variable:    # set TZ=EST5EDT3.  Format the data nicely.  The 'body' file now needs to be runthrough the 'mactime' program to sort it and make it organized.	# mactime -b data/body 2002-03-01 > tl.03.01.2002The above command generates a timeline of file activity from thepreviously created data/body file for all activity starting inMarch.  If the /etc/passwd or /etc/group files are known, they canbe specified using the '-p' and '-g' flags.  Otherwise the numericalvalues will be displayed.  The '-z' flag can be used to specifythe time zone.	# mactime -b data/body -p data/passwd -g data/group 2002-03-01 	  > tl.03.01.2002The output format has changed slightly since the 'mactime' in TCT.  Theinode value is now displayed in a separate column.  Previously it wasnot displayed.Some example outputs of mactime will now be shown.  The next twoentries are for a deleted socket in an EXT2FS image:  Wed Mar 20 2002 16:56:12 0 ..c s/srwxrwxr-x 500 500 127 /tmp/socket1 (deleted)                         0 ..c   srwxrwxr-x 500 500 127 <linux.dd-dead-127>The first is the 'fls' entry and the second is the correspondingentry from 'ils'.  While it may seem redundant to show both, manytimes 'fls' will not show the deleted file name because the entryhas been reallocated.  Therefore, just the 'ils' dead entry willappear and the investigator will not know the original path location.The first 0 is the file size.  The "..c" string means that thisentry is for the "Change" value.  The dots are replaced with 'm'or 'a' for other entry types (deleted entries are not created forEXT2FS).  The next string is the file system mode.  The entriesfrom 'fls' will have the directory entry type first, followed bya slash and the mode from the inode entry.  'ils' entries will onlyhave the inode mode.  The next two are the UID and GID (or namesif the group and passwd file are specified), followed by the inode.The final entry is the file name (or <IMG-dead-#> for unallocatedinodes).The next two are for file that is deleted, but the inode that thedirectory entry points to is deleted.  Fri Aug 23 2002 16:56:12 11 .a. l/-rw-r--r-- 0 0 34689 /tmp/file1 (deleted-realloc)                         11 .a. -/-rw-r--r-- 0 0 34689 /etc/sysconfig/desktop  This can be see because they are both entries for the deleted file(tmp/file1) and the allocated file (desktop), which have the sameinode (34689).  It can also be seen because the deleted entry hasdifferent values for the file type (l and -).If you are going to include the resulting timeline in a document,then it maybe better to supply the '-d' argument to output in commadelimited format.  The resulting timeline can then be imported intoa spread sheet and included as a table.The '-i' option to 'mactime' creates an index summary file, includinghow many hits were found per day or hour.  Using '-d' with '-i'allows one to easily import data into a spread sheet that can begraphed to spot suspicious behavior.    # mactime -b data/body -d -i hour data/tl-hour-sum.txt > data/timeline.txtTIME SKEW=======================================================================The time skew of the system can also be taken into consideration.Using the '-s' argument to 'fls' and 'ils', the intermediate bodyfile can have the adjusted times so that the system is consistentwith other servers.The argument reflects the skew in seconds.  If the original systemwas 100 seconds slower than NTP or some other 'main' server, thenthe argument would be '-s -100'.  If it were 145 seconds fast, thenit would be '-s 145'.AUTOPSY=======================================================================The Autopsy Forensic Browser is a graphical interface to The SleuthKit and it can automate the process of creating and viewing a timeline.    http://www.sleuthkit.org/autopsy-----------------------------------------------------------------------Send documentation updates to: <doc-updates at sleuthkit dot org>Copyright (c) 2002-2008 by Brian Carrier.  All Rights Reserved

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -