UNIX files timestamping - Need experts opinion as testimonial


 
Thread Tools Search this Thread
Special Forums Cybersecurity UNIX files timestamping - Need experts opinion as testimonial
# 1  
Old 04-04-2014
UNIX files timestamping - Need experts opinion as testimonial

Hi
I am requesting your help to obtain opinions and testimonials in order to be be able to make my own opinion since I am definetly not a unix expert.

Say we have a UNIX server.
On this server there is a specific directory let us call it "DIR"
A security incident have been reported related to this server.
Expert in forensics analyzed it and wrote this (modified a bit for confidentiality reasons)

Files : File1 to File14
"The above files were known to have been present in the directory. File system timestamps indicate that they were last accessed arround HH:MM on D Month Year and deleted around HH:MM on D Month Year. Investigators have attempted carving these files from free space on the system to determine their contents, however the files were unrecoverable. Some of there files may have been present for legitimate purposes."

Files : File15 to File20
"Due to the files' metadata having been overwritten, the initial date of their presence and their deletion date are unknown."

Since all files (File1 to File20) are supposed to have been present in the same directory (DIR) is it possible to succeed in identifying access and deletion timestamp of only a subset? Also File1 to File14 are assumed to be created and deleted earliest than File15 to File20 (fwe month to several years for some files)

Please give me your opinion only if you master unix file system and how files timestamps are managed.
The many the best.

Any way thank you very much for your time and help.
# 2  
Old 04-04-2014
"Metadata has been overwritten" means "that information is gone".
# 3  
Old 04-04-2014
Thank you Corona688 for your reply,

I wasn't clear enough, I'll try again doing better.
My question is :
"In your opinion, is it normal and logic to see the metadata of a subset of files overwritten while other regarding other files the metada was available and conducted to identify last access time and deletion time"

What is amazing is that the identified subset are somehow legitimate files while the "unknow" subset are supposed to be offending files.

Thank you for your support
# 4  
Old 04-04-2014
Understand that many different Unix filesystems exist. We don't know which one you are using. But in general...

"Since all files (File1 to File20) are supposed to have been present in the same directory (DIR) is it possible to succeed in identifying access and deletion timestamp of only a subset?"

Yes it it quite possible. Deleting a file frees an inode. The inode continues to have some useful info in it... until it happens to be re-used.


"Also File1 to File14 are assumed to be created and deleted earliest than File15 to File20 (fwe month to several years for some files)"

I don't know why you assume that. Files can be deleted wheneve the owner wants. No need to delete in the sequence they were created. Even if you have some rule in place and follow it closely... perhaps the bad guy who broke in did not follow your rule.


If you want to verify your experts opinions, hire a second set of experts to examine the same system. Do not tell the second set what the first set said.
# 5  
Old 04-04-2014
Quote:
Originally Posted by docflied
My question is :
"In your opinion, is it normal and logic to see the metadata of a subset of files overwritten while other regarding other files the metada was available and conducted to identify last access time and deletion time"
Rapidly create and delete a tiny file 500 times -- will it use the same inode (metadata space) every time? Quite possibly. It picked a convenient location the first time, and the location remains convenient until something else snaps it up. On a busy filesystem it might juggle between a few nearby ones.

An old file on the other hand is liable to get boxed in, fragmented, difficult to expand -- less convenient. Delete those and it's harder for the system to find a good new use for those sectors.

So a recently deleted file is more likely to have its metadata overwritten than an old file just deleted. This of course isn't a rule however -- only true in statistical terms. Especially since exactly how a filesystem picks inodes and sectors depends on not just the exact operating system, but the exact filesystem and its tuning.

I don't find the results that amazing or hard to believe.

Last edited by Corona688; 04-04-2014 at 04:57 PM..
# 6  
Old 04-05-2014
Thank you again Corona688, your explanation is quite logic

Now I have a subsequent question. For those recently deleted files which investigators wasn't able to recover contents nor MAC timestamps, is it normal and logic that they were able to fully recover filenames? Hence they were are able to find for each File15 to File16 its exact full name as it was supposed to exist on the file system.

I am just wondering if the filename is stored also at some address (offset and length) of the i-Node and how this info is near or far from MAC timestamps addresses and so how we can trust or not the fact that the filename was recoverable but not the MAC timestamps.

Many thanks to any one who can direct me to any official readings or statistical studies, will really appreciate
# 7  
Old 04-07-2014
Quote:
Originally Posted by docflied
I am just wondering if the filename is stored also at some address (offset and length) of the i-Node and how this info is near or far from MAC timestamps addresses and so how we can trust or not the fact that the filename was recoverable but not the MAC timestamps.
The inode table is a big table of filenames and other file attributes (mtime, reference count, etc). It generally isn't anywhere near the file contents themselves.

Again, this depends on the filesystem. Still, though, their results make sense to me.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Something in my mind - what's your opinion ?

Dear Forum staff / Advisors / members , I am having something in my mind, about Linux / Unix possible Interview questions collections, I guess if I post them here,which might be useful for our members and for students, and in meantime we can discuss also about those questions, what's your... (4 Replies)
Discussion started by: Akshay Hegde
4 Replies

2. Shell Programming and Scripting

File timestamping issue

Hello, I am working on moving a data file to archive dir from the processing directory using the following lines in my FTP script. Sometimes the mv command does not work as the timestamp is is changed by seconds as the current date in the following code is changed. I have tried to use... (6 Replies)
Discussion started by: vidyab35
6 Replies

3. Shell Programming and Scripting

NEED HELP FROM SHELL EXPERTS ASAP ..Compare of two files

I have seen the old forums before posting this thread...I did not find the designated answer for my shell script... I am novice in shell programming: Can some one help on how i can loop with in the loop when comparing two files... I need to compare ID in File1 with IDs in File2...If the ID... (1 Reply)
Discussion started by: rspotula
1 Replies

4. UNIX for Advanced & Expert Users

Expert Opinion

This perhaps does not belong in ths category; apologies, however, we have a heated debate going and your input will decide the result. Should UNIX (HP, AIX, etc) be rebooted following a monthly cycle (Every month, or a qtr, etc.). We have some UX admins (grumps) who say they have seen a UX... (6 Replies)
Discussion started by: rsheikh
6 Replies

5. UNIX for Dummies Questions & Answers

Unix Experts Answer this INterview Questions please

1, why Boot server should be in a network in jumpstart? 2, what is the different between patch and package? 3, how to list the avilable NIC in solaris9? 4, User complaing system is slow (solaris) what are the steps to check? 5, what is hardware error and software error and Transport Error? in... (5 Replies)
Discussion started by: suresh_krish
5 Replies

6. Shell Programming and Scripting

forums to hire unix experts

Please recommend forums where I could look for unix expert candidates. (3 Replies)
Discussion started by: itmgr
3 Replies

7. What is on Your Mind?

I Am Calling All Unix Experts Young Mind In Need

My name is Courtney Robinson, and I am just a young man trying to figure out were he wants his life to head. I am currently in school for Computer Science and have once class left and jsut figured out I hate programming. However I am in love with Storage (SAN), UNIX, LINUX. I want to learn more.... (10 Replies)
Discussion started by: Courtney3216
10 Replies

8. Post Here to Contact Site Administrators and Moderators

Opinion

Hi, I am new at this site and at unix. I was reading some answers that the administrators and moderators have posted to others, and sometimes I feel like their a little sarcastic. I am asking just to be patient to me, I know nothing about unix but I do want to learn, and I think that positive... (7 Replies)
Discussion started by: HN19
7 Replies

9. Solaris

Your Opinion requested

Ladies/Gentlemen, I am looking for a web-based tool to keep track of my Sun inventory. The following list of fields are fields I would like to store: Root Passwd (needs to be secure) / Hostid / Console Port / IP Address / Platform / Application / Hostname . . . you get the point. Do any of... (4 Replies)
Discussion started by: pc9456
4 Replies

10. UNIX Desktop Questions & Answers

Need your help and opinion

Hey all, I'm brand new to Unix/Linux and have a couple of questions. I own a small education/consulting company that has a staff of approx. 50 employees. Most our work is geared towards the office-style environment (i.e. Word, Excel, Powerpoint, etc.). There are also some C and Java programmers... (4 Replies)
Discussion started by: dennie1
4 Replies
Login or Register to Ask a Question