The Weird Windows Feature You've Never Heard Of

  Рет қаралды 52,334

13Cubed

13Cubed

Күн бұрын

In this episode, we'll explore File System Tunneling, a lesser-known legacy feature of Windows. We'll uncover the fascinating behind-the-scenes functionality and discuss the potential implications for forensic examinations of compromised systems.
** If you enjoy this video, please consider supporting 13Cubed on Patreon at patreon.com/13cubed. **
📖 Chapters
00:00 - Intro
05:06 - File System Tunneling Demo
🛠 Resources
The Apocryphal History of File System Tunnelling:
devblogs.microsoft.com/oldnew...
File System Tunneling in Windows (Jason Hale):
df-stream.com/2012/02/file-sy...
File System Tunneling (Harlan Carvey):
windowsir.blogspot.com/2010/0...
#Forensics #DigitalForensics #DFIR #ComputerForensics #WindowsForensics

Пікірлер: 153
@AviDrissman
@AviDrissman Ай бұрын
To be fair this was critical on Win 95 for long file names. If a DOS program did a “safe save” on a file with a ~1 shortname the long name would be lost, so tunneling to keep the LFN would be important.
@Alfred-Neuman
@Alfred-Neuman 25 күн бұрын
Starting Windows 95... _
@sirati9770
@sirati9770 21 күн бұрын
so thats why its called tunneling! now that makes sense
@AviDrissman
@AviDrissman 21 күн бұрын
It’s called tunneling after quantum tunneling. Search for a blog article by Raymond Chen on his Old New Thing blog
@IanPrest
@IanPrest 26 күн бұрын
You can just set whatever timestamp you want using the `SetFileTime` API, so I don't know why a threat actor would jump through hoops like this to manipulate the timestamp. Similarly, if I was doing any forensics, I wouldn't rely on the timestamps for anything.
@sashakoshka
@sashakoshka Ай бұрын
classic microsoft being unable to choose a proper name for anything. "tunneling" means a lot of things and this is absolutely not one of them, what even was their thought process while naming this? it feels like they just throw darts at a dictionary when choosing names for things.
@HappyCheeryChap
@HappyCheeryChap Ай бұрын
I think throwing a dart would give way better results than the stupid names they keep picking/changing splitting/merging/reusing. Seems they're actually going out of their way to troll.
@CJICantLie
@CJICantLie Ай бұрын
Better name: Attribute Cache
@mfaizsyahmi
@mfaizsyahmi 28 күн бұрын
This was created in the late-80s-early-90s when the modern sense of tunneling doesn't exist yet.
@pupip55
@pupip55 26 күн бұрын
Not what I would expect, but it could be argued it tunnels past the changes of the file, the file meta tunnels past the contents. It could also have other functions that weren't talked in the video or were originally made to do something.
@codahighland
@codahighland 25 күн бұрын
​@@mfaizsyahmi The modern definition dates back to the 70s with network protocol tunneling...
@tim.martin
@tim.martin Ай бұрын
Rather obscure, did not know about it, and now I'll think of it every time I delete a file 🤔
@robert-skibelo
@robert-skibelo Ай бұрын
Tunneling is a totally inappropriate name for it. Typical Microsoft, they're never able to name anything in a way that makes sense to end users.
@mfaizsyahmi
@mfaizsyahmi 28 күн бұрын
This was created in the late-80s-early-90s when the modern sense of tunneling doesn't exist yet.
@xTerminatorAndy
@xTerminatorAndy 27 күн бұрын
@@mfaizsyahmi but the concept of a tunnel being something you use to transport something from a to b to, did exist and even in that context it doesn't make sense
@natbarmore
@natbarmore 27 күн бұрын
⁠@@mfaizsyahmialso, depending when exactly, tunneling might’ve already existed as a computer networking term. I was definitely aware of the concept of tunneling 1 network protocol within another by ‘95, and AppleTalk over Ethernet goes back to the ‘80s (though I can’t remember if we referred to it as “tunneling” at the time). In any case, I’m with OP: nothing is being “tunneled” in any colloquial or technical sense and what is being cached and manipulated isn’t a “file system”, it’s “a file” or “file metadata”, depending on how you want to look at it.
@tantalus_complex
@tantalus_complex 26 күн бұрын
​@@xTerminatorAndy I don't think it is fair to presume that it is poorly named based only on a very high level overview of what may be only _one_ effect of a more complicated system. If a deepdive reveals it as a poor naming choice, fine. But we don't have enough information in this video to serve that purpose.
@xTerminatorAndy
@xTerminatorAndy 26 күн бұрын
@@tantalus_complex sure. my comment only represents the opinion of one very sad individual. I give it to you for free. Thank you for your feedback 🙂
@Tsaukpaetra
@Tsaukpaetra Ай бұрын
Windows tried fixing a problem caused by the third party devs. The amount of times this happened is astounding...
@SirCutRy
@SirCutRy 28 күн бұрын
Why is it a problem? How would you do a safe save instead?
@bloepje
@bloepje 28 күн бұрын
Third party apps like Word, notepad, visual studio... They fucked up a lot in the OS to work around bugs in these third party apps.
@sipos0
@sipos0 27 күн бұрын
The problem is that MS does this all the time and makes the OS impossibly difficult to follow everything and completely understand it. What should happen is that MS refuses to do this, the developer fixes their buggy software, and the OS interface remains clean and predictable. The problem is that most software on Windows is poor quality closed source software and therefore hard to fix software.
@framegrace1
@framegrace1 27 күн бұрын
@@SirCutRy Back in the day, with windows machines with 4 or 8mb of RAM, was the optimal way to do it. Nowadays one can just render in memory and write the file once all is OK. The more correct option even back then would be to create a backup and then write directly on the file, that way the metadate is always ok. In case of failure, the user have the previous copy of the file.
@framegrace1
@framegrace1 27 күн бұрын
I think this is just a remmant of the day they moved to FAT32, sold as a "feature". It could also just be something some big paying company asked them to do, to fix some problem they had with some app.
@satibel
@satibel 29 күн бұрын
tbh for the case of a virus you can just set the creation time (and accessed/modified), so imo not an issue. the only place where it might be remotely relevant is if you have a limited rce exploit (e.g. limited to file creation), and you need user interaction and the file creation timestamp changing is something relevant, but that's a scenario that basically only exists in pixie land. in the vast majority of cases where the timestamp is relevant, you will have access to changing the timestamp.
@thardie
@thardie Ай бұрын
I've never seen or heard of this behavior. This is the OS trying to make up for shitty programming. If you really want to implement this, the app should note the creation time of the original file, create the new file, modify the new file's creation time, then rename it. Having the OS magically do this under you is terrible and /is/ the unexpected behavior.
@mikeuk1927
@mikeuk1927 Ай бұрын
Unexpected behaviour is expected under Windows xD
@chilversc
@chilversc Ай бұрын
Except Microsoft doesn't really have any control over their party applications. Not doing this would result in users being annoyed at the OS (thus Microsoft) because they will perceive the OS as being unable to even do a basic thing such as maintain the correct created date. Good luck trying to educate that it's actually the fault of the third party application. Especially when many applications do this. There's actually a specific API function to do the delete/rename atomically and safely specifically because of this issue but most languages do not expose it as it's Windows specific.
@der.Schtefan
@der.Schtefan 27 күн бұрын
I think this is a leftover from DOS compatibility with long file names. Hence also why the name is misleading. It is part of a larger feature set regarding LFN interactions.
@natbarmore
@natbarmore 27 күн бұрын
@@chilversc “many applications do this”‽ It’s common for an application, when saving a changed file, to instead delete the old file and save a completely new file with the same name‽ And to _not_ let the file system calls handle that?
@chilversc
@chilversc 27 күн бұрын
@@natbarmore reverse order though, save to a new (temporary) file, delete the old, rename to temp file to the original name.
@donwald3436
@donwald3436 Ай бұрын
Unix approach: applications should do the right thing. Microsoft approach: we'll do weird shit so that applications can keep doing the wrong thing. How typical lol.
@carly09et
@carly09et Ай бұрын
You can also do the invert - save a file externally as an archive, then unpack the file creation is now but last change is metadata from archive.
@natbarmore
@natbarmore 27 күн бұрын
Yeah, the fact that MSWindows or compression formats commonly used on MSWindows (or both) fail to preserve file creation dates is a major aggravation.
@robstamm60
@robstamm60 25 күн бұрын
​@@natbarmore You could argue that the file was indeed created now because it simply didn't exist before it was unpacked - but it would be nice to have an option to choose if attibutes should be preserved.
@natbarmore
@natbarmore 19 күн бұрын
@@robstamm60 if I copy a file from my external drive to my internal drive, should the creation date of that file be when it was first written to my internal drive? Or when it was first created, irrespective of _where_ it was first created? And why should that change just because as part of moving it, it gets compressed and decompressed? I mean, sure, adding the option to update the creation date when uncompressing/unarchiving a file, at least if your file system also lets you arbitrarily edit/update the creation date of _any_ file, makes sense, I guess. But it doesn’t make any sense for that to be the default, if “creation date” is to mean anything as metadata. It also means that it can’t preserve last modification date, unless the file system allows a modification date that predates the file’s creation. I feel like it’s a core functionality of a file system that we can know which of two files, or two copies of the same file, is older and which has been modified more recently. Ideally always, but I realize that between edge cases and nefarious actors, there will probably always be exceptions.
@zomgninja
@zomgninja Ай бұрын
I guess another reason to never trust windows logging/reg. Its not so bad, gives reason to why DFIR is paid so much :P (Also should say, love the videos as always)
@andrevm9410
@andrevm9410 Ай бұрын
Amazing. Great video!
@DerSolinski
@DerSolinski 24 күн бұрын
Thanks this solved a mystery for me... IMO this creates more problems that it solves. Especially in conjunction with file synchronization.
@tim.martin
@tim.martin Ай бұрын
"filesystem tunnelling" sounds like the title for a complex system of routing and exfiltration of data or processes. But it's simply a short timer to modify 'created date' metadata (in really specific scenarios). Are there other equally obscure operations under the filesystem tunnelling umbrella? How would someone go about injecting a windows hook to observe this process's actions in real-time?
@13Cubed
@13Cubed Ай бұрын
Indeed! And regarding other uses -- it's been theorized that File System Tunneling is used to enable Prefetch to work, since the superfetch/prefetching process has to both read the PF file for the subsequent launch of an application and at the same time modify the existing PF file to record the updated information, which typically isn't possible. So, FST could be used in that scenario -- read existing PF file, delete existing PF file, create new PF file, write updated data, rename new PF file to old name, "borrow" old PF file's creation date. As far as how to further exploit the feature from a malware perspective -- I have some thoughts, but haven't had time to test them. I refrained from mentioning them here since they are only theoretical and would require more testing.
@zomgninja
@zomgninja Ай бұрын
@@13Cubed I want to try this, if it doesn't work may let you know xD
@LED-cx6wj
@LED-cx6wj 23 күн бұрын
I actually noticed this once when i wanted to replace a file with a newer or modified version but the same name and i deleted the old one and then it happened that the "new" file got the timestamps of the one that was previously in the folder, which really confused and upset me tbh.
@SpiritmanProductions
@SpiritmanProductions 26 күн бұрын
With the name 'tunnelling', I thought this was going to involve some quantum effect lol
@AlecMaly
@AlecMaly Ай бұрын
Great content
@souhaibfahfouhi7355
@souhaibfahfouhi7355 Ай бұрын
A masterpiece video from an expert
@AppleyardAndy
@AppleyardAndy Ай бұрын
I remember when programs would check creation dates for internal integrity checks. Of course that's going back to the DOS days.
@der.Schtefan
@der.Schtefan 27 күн бұрын
I think this is a leftover from DOS compatibility with long file names. Hence also why the name is misleading. It is part of a larger feature set regarding LFN interactions, when a Dos box would safe save, or manipulate a ~1 file. Microsoft tunnels the LFN vFat Filesystem to the 16 bit Dos 8.3 Filesystem, and this is just one leftover part of it.
@dlbiggins
@dlbiggins 28 күн бұрын
I do remember that writing security software back in the mid '90s, this "feature" caused us a certain amount of hassle. As someone else noted, it was necessary in maintaining the consistency of long filenames. At the time, given the way that MS handled the mix of 8.3 and LFN, putting that on the application would likely have been a disaster of incompatible application approaches. I guess you had to be there. It was a different time.
@steveproper1270
@steveproper1270 Ай бұрын
I'm sure I've heard of this, under a different term. I will probably just refer to this as windows tampered file system or W T F for short. I mean file system tunneling is a completely different thing. That's a costly system resource on equipment and time; perhaps it all takes place on the cache. Probably only does this for certain apps or file types. For me, file manager only changed the modification date, and then only if I changed the file by a bit.
@SusanAmberBruce
@SusanAmberBruce 26 күн бұрын
Fascinating
@TheTubejunky
@TheTubejunky Ай бұрын
So you can use this to have temp apps that only give you certain run times or purchase the full app to basically keep changing the timestamp back to install time.
@13Cubed
@13Cubed Ай бұрын
Not sure I follow what you mean?
@Jeff-ss6qt
@Jeff-ss6qt Ай бұрын
​​@@13CubedI think they believe that it backdates modification and access times, in order to use a demo application indefinitely. Though, usually with apps like that, they store the time in the registry or in some obscure way that you can't easily find it. That is if they don't install themselves like an outright rootkit to achieve what they need to do.
@BillAnt
@BillAnt Ай бұрын
I tried the same example on my spare Win7 laptop, deleted the file and quickly renamed it to the other, but all the time stamps creation, write, and access stayed the same as the renamed file's. Is this a Win10 or Win11 things? That's just silly.
@13Cubed
@13Cubed Ай бұрын
File System Tunneling predates Windows 10... it's been around for a long time.
@BillAnt
@BillAnt Ай бұрын
​@@13Cubed - Hmm, as I mentioned I tried it but doesn't see to affect my Win7, though I was using a file manager called Z-Tree.
@13Cubed
@13Cubed Ай бұрын
@@BillAnt Interesting. Try with Explorer?
@BillAnt
@BillAnt Ай бұрын
​@@13Cubed - Ya, in Explorer only the Birth/Creation data is retained from the deleted file. I guess using a DOS looking Ztree accesses it differently.
@hackdesigner
@hackdesigner Ай бұрын
Did not know about this feature, great example of building for the customer. Threats tho... why bother if you just can make an API call or even launch a 1-liner in powershell to set that AND date-modified, etc?
@13Cubed
@13Cubed Ай бұрын
Because some of those methods only affect $SI timestamps, and not $FN timestamps.
@myne00
@myne00 Ай бұрын
If you're attacking a machine and have any half decent level of access, it's surely far simpler to just change the clock for a few seconds. No?
@13Cubed
@13Cubed Ай бұрын
Sure, but there are ways that can be detected.
@travisleabeck2572
@travisleabeck2572 25 күн бұрын
I had to change the creation date of a project i had to turn in 5 days late last semester because i got locked out of my college account and the teacher said she would check the metadata. For some reason the date modified and creation date were set to the latest time of modification which had been that morning. Thankfully she had told me that she would check this which allowed me to find a way to edit the metadata. Instead of docking me 10 points per day, she only docked me 25 total
@DenverRoberts
@DenverRoberts Ай бұрын
Are there still utilities that let you manipulate the Date Created?
@13Cubed
@13Cubed Ай бұрын
Yes, there are timestomping utilities that are still effective. Timestomping the $SI creation/modification date and then renaming or moving the file right after would also clobber the $FN timestamps, making detection even harder without reviewing $J ($UsnJrnl).
@garyrowe58
@garyrowe58 Ай бұрын
I loved my copy of edate back on XP. Come audit time, everyone would ask again for a copy so they could rewrite recent history ...
@derDooFi
@derDooFi 27 күн бұрын
Oh yeah I did indeed know about this because a couple of years ago I tried to set up a caching mechanism where a fresh file wouldbe generated if the stale one’s create date was too old. Turns out the modify date is more trustworthy…
@JohnDlugosz
@JohnDlugosz 28 күн бұрын
2048 in hex is a rather odd value to type. In decimal of course that's a power of two. In hex I would expect a round number like 800.
@3d1e00
@3d1e00 Ай бұрын
Do entries in the list persist past power cycling? Also dont antivirus scanners trigger stuff of these dates?
@13Cubed
@13Cubed Ай бұрын
What list are you referring to? Power cycling the box right after performing an action that would normally utilize File System Tunneling would preclude the behavior I demonstrated from happening. In other words, delete file a.exe. Reboot. Create file a.exe in the same location. This would result in the creation date (B) being set to current time, and not the time of the previous a.exe file. As for your AV question, yes, Access Times may be updated as a result of AV scans, which is yet another reason why this is one of the least reliable timestamps in Windows (from a forensics perspective).
@jsrodman
@jsrodman 28 күн бұрын
No, is the answer to the question. If an application uses the create, write, rename swizzle, it is a new file, and only a weirdo would expect a creation time in the past. What an insane feature to solve a nonproblem.
@jsrodman
@jsrodman 28 күн бұрын
If an app wants to swizzle and imply it is just writing, there are totally reasonable system calls to copy the metadata over.
@NoEgg4u
@NoEgg4u Ай бұрын
Is this a file system feature? Or is this a Windows specific feature. For example, if you use a USB drive, formatted with exFAT, connected to a Linux box, I am assuming that Linux will not employ any file system tunneling on the drive's files? Does Linux have such a "feature"? If yes, for which file systems? If no, then the business world does not seem to have an issue with what our host described @1:40. @4:27 -- Why would anything break, behind the scenes? Will Windows notice new creation-time time-stamps, on sensitive files, and get confused? I wonder if file system tunneling happens within a VeraCrypt volume? This is all very interesting.
@13Cubed
@13Cubed Ай бұрын
This is a file system feature applicable to NTFS (and also supposedly FAT and exFAT, though I have not tested). I am not aware of any such feature in Linux.
@lePoMo
@lePoMo 27 күн бұрын
* imo it doesn't make sense to call this a filesystem feature. the filesystem is just a place where you store files and their metadata (like the creation date). at best it's a filesystem driver feature. (because use one of these filesystems on linux and they will likely not do this) * all i would call filesystem feature is being able to have a file creation date. * there's tools to set arbitrary creation dates on files still the behavior is in interesting find. I do not regret having watched this video :)
@nopes5387
@nopes5387 29 күн бұрын
This has potential to help restore corruption and file problems that you were trying to get rid of in the first place
@ca_kay
@ca_kay Ай бұрын
Wait, is this how someone can save a file and yet it only opens as the old version? Is it a related bug?
@13Cubed
@13Cubed Ай бұрын
No, shouldn't have anything to do with that.
@vk3fbab
@vk3fbab Ай бұрын
That's crazy. Has any other operating system built this? It seems like a user focused feature but just seems like a dumb idea.
@13Cubed
@13Cubed Ай бұрын
I am not aware of anything like this in other operating systems, but it actually makes sense though. It's just a way of maintaining consistency with file operations to make sure the user experience is as one would expect.
@moetocafe
@moetocafe Ай бұрын
exactly. It would seem Windows was always been written this hacky way and they pile up over time - one "feature" over another, and then one patch over the other and it never ends, it's always buggy and insecure in so many ways.
@13Cubed
@13Cubed Ай бұрын
@moetocafe As someone who investigates Windows, Linux, and macOS intrusions, I can assure you it's just as secure as its modern counterparts. Nothing is impervious to a determined adversary.
@moetocafe
@moetocafe Ай бұрын
@@13Cubed while it's true, that a system is as secure, as the administering party is able to secure it and use it in a safe way, I would disagree. Windows is broken by design on many levels - in terms of stability, code base, security and privacy. Just few very basic examples - on Win there are executables by default, and the practice for years is for people to download programs from anywhere and blindly install, trusting the supplying party. Compare that to FOSS, which code is available for security audit and the fact, that the collection of software in a Linux distribution were at least on basic level security audited. An unknown software, that is not well known and tested in time can hardly make it to a repo. Look at firewalls - Windows firewall by default has a bunch of ports and services open. Some Win native services have been notorious for security vulnerabilities - such as NetBIOS (ports 137, 139, 445 ....) Compare that to a Linux firewall, where the default is to close all ports for Incoming and only allow Outgoing. If you look at these and other factors - from a basic user perspective - how can you claim, they're equally secure?
@MaximilienNoal
@MaximilienNoal Ай бұрын
You don't know what you are talking about. ​@@moetocafe
@JohnWilliams-gy5yc
@JohnWilliams-gy5yc 25 күн бұрын
Man, I've never seen the "COPY CON" idiom since the last millenium and the powershell. Is the new ReFS also affected by this thing?
@13Cubed
@13Cubed 24 күн бұрын
Good question on ReFS. I haven't seen any documentation about File System Tunneling and that file system, nor have I tested it.
@overand
@overand 26 күн бұрын
Raymond Chen is the best! (OR, if he happens to read this: "THE Raymond Chen?")
@TheRealEtaoinShrdlu
@TheRealEtaoinShrdlu 28 күн бұрын
Omg, this is pretty scary.
@gerowen
@gerowen 25 күн бұрын
I don't get what legitimate purpose this could serve in modern operating systems. I mean, if you accidentally delete a file, then restore it from the recycle bin within the time limit, since it was never deleted from the drive, wouldn't the original creation date still be attached to the file? And if I fully delete a file and put a new one by the same name in that same folder, I would want my system to treat it like a new file, because it is.
@13Cubed
@13Cubed 24 күн бұрын
This is used for "safe save" and similar behavior, where the end user is not going to be expecting a new file even though one is created behind the scenes to facilitate the operation.
@tech_guyOO7
@tech_guyOO7 Ай бұрын
Is this only for $SI or is $FN changed as well
@13Cubed
@13Cubed Ай бұрын
Both. :)
@JonRowlison
@JonRowlison Ай бұрын
Wouldn't it have just been cleaner to clone the original filename entry/entries for the temporary file and THEN just remove the original entry and free the blocks once we're done writing the updated file to the drive? This tunneling seems archaic in a modern filesystem. (And yes, clone the metadata including the original creation date... so it doesn't change in the copy.)
@13Cubed
@13Cubed Ай бұрын
Perhaps... that is a question for the original developers, but agreed that the entire concept of File System Tunneling is very strange...hence the video :)
@joetheprogrammer0
@joetheprogrammer0 28 күн бұрын
When I read the title, I first thought it was some kind of equivalent to Unix domain sockets. Not sure how the name tunneling related to this metadata manipulation.
@13Cubed
@13Cubed 28 күн бұрын
Yep, it was an odd naming choice, but that's what it's called.
@t0mn8r35
@t0mn8r35 Ай бұрын
Interesting.
@jyotigaur242
@jyotigaur242 Ай бұрын
Nice video But i have one doubt In one of my live analysis i have seen the created date is 12 Feb but modified date is 11 feb How is that possible And i know for sure the file is malicious
@13Cubed
@13Cubed Ай бұрын
If a file was seemingly modified before it was created, it's likely the result of a file copy operation. There are a few videos on the channel that go into detail about this if you are interested.
@hansmaulwurf9051
@hansmaulwurf9051 27 күн бұрын
Levels, levels.
@RaceBanner_
@RaceBanner_ 27 күн бұрын
This is not to be confused with Windows Settings Tunneling which allows settings code as far back as Windows95 to still show up even today. Bill Gates travels in these tunnels at night.
@tsclly2377
@tsclly2377 Ай бұрын
The reason to have hard back-ups in your safe.
@dawnrazor
@dawnrazor Ай бұрын
Does this feature exist on Linux or Mac systems?
@13Cubed
@13Cubed Ай бұрын
No, this is a Windows-exclusive feature.
@alexparker7791
@alexparker7791 29 күн бұрын
i want to save files in-place, atomically, and transactionally but don't have any APIs for that. so "tunnelling" it is i guess
@liewchengyeh
@liewchengyeh Ай бұрын
hmm.... i wonder how does it related Alternate Data Streams ?
@13Cubed
@13Cubed Ай бұрын
It doesn't -- these are two different technologies used for different purposes. ADS's were originally created to ensure compatibility with the Macintosh Hierarchical File System (HFS), allowing NTFS files to contain multiple hidden data streams.
@adrianandrews2254
@adrianandrews2254 Ай бұрын
@@13Cubed Thats not the point. If this is to work as MS intends it MUST copy the ADS data to the new file. This "Tunelling" is as old as at least 1989 because it is required because of the way MS Office Windows (not DOS) apps work. A Word document can contain an ADS, so .....
@davidioanhedges
@davidioanhedges 25 күн бұрын
No other OS/Filesystem does this, Microsoft working round bad programming then having to support that forever no matter how garbage that is
@KTSpeedruns
@KTSpeedruns 29 күн бұрын
The registry baffles me. Nobody creating something as big as an OS today would dare have so much of the vital settings all collected in a single file with settings way too cryptic to understand. Windows is always one corrupted file away from simply not functioning properly.
@rufiorogue
@rufiorogue 28 күн бұрын
Sqlite stores the whole db in a single file, should have told them prob
@xTerminatorAndy
@xTerminatorAndy 27 күн бұрын
@@rufiorogue but what os uses sqlite for all of its settings?
@Lil_Puppy
@Lil_Puppy Ай бұрын
This is stupid. I would expect any application that created a temporary working file to create a new time stamp when saving my old file after modification by way of copy and paste and delete and rename. But these are poor dev choices in the first place. If you truly just wanted to modify the original file but still use a 'safe save' option, you create the temp file, copy the old file contents to it, user modifies temp file, then upon save, the temp file gets saved in the temp directory, and the contents get copied to the original, then the original saved. This produces the same effect as this dumb process of faking things by the operating system but doesn't cause any additional headaches later. Microsoft's own software does it that way and doesn't rely on the tunneling nonsense. Who's stupid idea was this? This is OS bloat and why we have to have more ram and processing power each OS generation, it's nonsense and needs to end.
@adrianandrews2254
@adrianandrews2254 Ай бұрын
Actually it was MS Office 6.0 (1989) that created the problem. So it WAS self inflicted.
@watchm4ker
@watchm4ker 28 күн бұрын
That would be absolutely worse. You not only are doubling the amount being written, but if something fails during that write-back, you've mangled the original. And while this isn't a problem now, when this was developed, file fragmentation was a real problem, and at least this method of saving had a better chance of slotting files in a contiguous section of a drive.
@VcSaJen
@VcSaJen Ай бұрын
How is this a threat? If you have write access, you usually can outright edit file metadata without any workarounds.
@13Cubed
@13Cubed Ай бұрын
Not necessarily that easy. Keep in mind that a given file in Windows on an NTFS file system can have up to 20 timestamps! kzfaq.info/get/bejne/rsuVqdx01qmaYnk.html
@MrNerdHair
@MrNerdHair 29 күн бұрын
@@13CubedThat's horrifying.
@SirKenchalot
@SirKenchalot 29 күн бұрын
This whole feature seems like a bit of a hack; why doesn't Windows just offer safe saving as a feature so it could do all this under the hood without exposing this potential weakness or possibility for misleading data?
@BobFrTube
@BobFrTube 27 күн бұрын
Too clever by a half. There is a danger in wiring a single use case and getting perverse results. In the Internet we got buffer bloat because some old line network operators did us a "favor" by buffering and thus breaking TCP. The name swapping technique is good practice and the programmers who care can also copy the creation date so why does the file system need to favors rather than encourage better practice in applications?
@NestorCustodio
@NestorCustodio Ай бұрын
Every single sentence where you explained what "file system tunneling" *is* was a massive red flag and yet another clue that *this is not something that should have ever existed*. 🤦 Manipulating file metadata based on *assumptions about what the user probably expects* instead of providing developers the means to set the metadata correctly themselves based on what they know they're doing has "Microsoft" written all over it.
@natbarmore
@natbarmore 27 күн бұрын
Ugh. Yet another way that I can’t trust MS is providing/preserving accurate data and metadata.
@polyvg
@polyvg 5 күн бұрын
Ridiculous approach. A file creation date should be immutable. And it should never be possible to set the file creation date to anything other than clock time except (possibly) in the context of doing a restore operation on a partition/volume. An additional field, such as a logical file creation date, is one way this could have been better handled. Or a file version approach. You can create a new version of a file with the same logical file creation date as the original. Then you can delete or rename the old version as and when desired. And ensure the file system always select the latest version for the user to access.
@chadvanderlinden9548
@chadvanderlinden9548 13 күн бұрын
Is this "a feature" or is it "behaviour"? :/
@13Cubed
@13Cubed 12 күн бұрын
A little of both, I suppose.
@sennheiser1986
@sennheiser1986 26 күн бұрын
there's enough tools to change file timestamps... so this "trick" is kinda useless
@13Cubed
@13Cubed 26 күн бұрын
Excellent! I'll be sure and let the threat actors know.
@gunnargu
@gunnargu 23 күн бұрын
Atomic file replacement... If a program author wants to maintain the creation date, he can, not windows. Dumb.
@TheRealStevenPolley
@TheRealStevenPolley 26 күн бұрын
I'm sorry, but this is disgusting to me. It feels like this problem is being solved at the wrong layer.
@mintoo2cool
@mintoo2cool 14 күн бұрын
incredibly dumb way to implement file metadata consistency
@13Cubed
@13Cubed 13 күн бұрын
Hope you enjoyed the video regardless!
@micmacha
@micmacha 28 күн бұрын
Or maybe we could just, I don't know, *stop using a 31-year-old flawed file system like NTFS already*. Just a thought. Throwing that out there.
@13Cubed
@13Cubed 28 күн бұрын
NTFS is actually an incredibly advanced journaling file system, even compared to modern alternatives. A lot of this "legacy debt" is in place for backwards compatibility.
@Thomas_P_aus_M
@Thomas_P_aus_M Ай бұрын
On an international platform (youtube) on the international network (internet), I prefer international units. I can't do anything with the date format MM/DD/YY, see 5:56. This confuses me as a viewer outside the USA. Why not YYYY-MM-DD or DD.MM.YYYY? Where's the logic in MM/DD/YYYY?! This is no longer contemporary, but backwards. The same with AM/PM. Why not 24 hours? When will the USA finally get rid of antiquated units of measurement and their notation?! Btw. We have 2024 now and the USA signed it 149 years ago that they want to do this! How long should the world wait for the backward USA? See also Wikipedia, keyword Metre_Convention By the way, your "9/11" means 9. November on the rest of the planet. 😄 Greetings from europe.
@13Cubed
@13Cubed Ай бұрын
Understood. I always standardize on ISO 8601 in training materials, but that's literally just a screen recording of a default US English configuration of Windows 11. I'll keep this in mind for the future.
@xTerminatorAndy
@xTerminatorAndy 27 күн бұрын
I like AM/PM what's wrong with that. By the way the US *IS* on the metric system. Their measurements are based on metric ones. They just haven't told their population to use the metric system. (what I mean is that in the US an inch and a foot are based on a metric value). I'm just being facetious I guess 😛
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 907 М.
i cant stop thinking about this exploit
8:40
Low Level Learning
Рет қаралды 361 М.
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 18 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 8 МЛН
MS-DOS has been Open-Sourced!  We Build and Run it!
15:01
Dave's Garage
Рет қаралды 416 М.
Microsoft Made Its Own CCleaner
5:56
Techquickie
Рет қаралды 407 М.
42 days of vision pro coding: DOOM (home makeover edition) | devlog #6
6:35
17 Computer Tips You'll WISH You Knew Sooner
21:07
ThioJoe
Рет қаралды 222 М.
Was the PS2 "Emotion Engine" over hyped?
17:14
Modern Vintage Gamer
Рет қаралды 444 М.
I got this PC from a fast food restaurant. What now?
16:32
Hardware Haven
Рет қаралды 492 М.
the new PS4 jailbreak is sort of hilarious
12:21
Low Level Learning
Рет қаралды 601 М.
Nintendo is erasing its history - The war against ROMS
14:21
Modern Vintage Gamer
Рет қаралды 783 М.
The Worst Monitor Ever… In Color! - Dasung Paperlike Color E-Ink Monitor
17:27
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 187 М.
Что не так с Sharp? #sharp
0:55
Не шарю!
Рет қаралды 132 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 55 МЛН
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 1,1 МЛН
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,3 МЛН