Skip main navigation

File name

Article detailing how malware can blend into your computer system by changing its file name.
© PA Knowledge Ltd | 7Safe Training

File name

The name of a file is stored as metadata within the file system the file is saved to. Occasionally the name of a file can also be identified within certain file types, such as an executable files (original compiled name) for example. A file name can be changed to blend into its environment, the name appearing consistent with the naming conventions of other similar operating system file types.

Additional information…

The NT File System allows for a maximum 255 character file name. Should you enable Windows 10 long name file support, this will now allow a 32,767 character file name!

Remember the folder view will also determine how many characters are automatically displayed to a user.

If you would like to enable incredibly long file names on your Windows computer go to the following registry location here: HKLM\System\CurrentControlSet\Control\FileSystem

The LongPathEnabled value (REG_DWORD) must exist and be set to 1.

Interestingly not all printable characters are allowed as a file name nor any character selected using the Ctrl key:

Snippet of computer displaying prohibited file name characters

Windows also reserves certain names such as COM, PRN, AUX and so on.

If you would like more information on file naming conventions go here.

© PA Knowledge Ltd | 7Safe Training
This article is from the free online

Introduction to Digital Forensics: Malware Analysis and Investigations

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education