1
00:00:00,080 --> 00:00:02,770
so now we want to talk about file metadata.

2
00:00:02,770 --> 00:00:07,820
file metadata is a big no- no when it comes to security, anonymity, and privacy.

3
00:00:08,240 --> 00:00:19,280
what people don't realize is when you take a picture or you create a word document, there's a lot of information associated with that file or that folder or whatever it is.

4
00:00:19,500 --> 00:00:27,760
that document specifically on word might show the username, who created it, the type of computer it was created on, the time it was created, the time zone it was created.

5
00:00:27,780 --> 00:00:29,640
an image file might have location.

6
00:00:30,300 --> 00:00:40,170
it might have information on the mobile device if you used a phone, might have the os version, the login, email associated metadata is on a lot of things.

7
00:00:40,170 --> 00:00:43,600
so we want to make sure the files we work with are clean of metadata.

8
00:00:44,500 --> 00:00:52,590
so what we're going to go is what we're going to do is we're going to go into tails, we're going to create a file and i'm going to show you how you can actually use tails to remove file metadata.

9
00:00:52,590 --> 00:01:00,070
so if we hop back over to our tails instance, we can actually go and create a new file here.

10
00:01:00,070 --> 00:01:02,480
what we'll do is we'll use libreoffice.

11
00:01:03,100 --> 00:01:07,560
we'll just use libreoffice writer, which is essentially an open source version of word.

12
00:01:07,620 --> 00:01:11,170
we'll just say our document, right?

13
00:01:11,170 --> 00:01:14,440
we don't need to put a lot of info in here because the metadata isn't in here.

14
00:01:14,860 --> 00:01:16,040
we'll save this.

15
00:01:16,820 --> 00:01:19,030
i made one earlier called this.

16
00:01:19,030 --> 00:01:20,800
so we'll just go ahead and overwrite that.

17
00:01:21,380 --> 00:01:23,160
we'll call it our libreoffice file.

18
00:01:23,580 --> 00:01:25,080
yes, we'll overwrite it.

19
00:01:25,100 --> 00:01:27,120
now we can just simply close this page.

20
00:01:27,300 --> 00:01:30,710
and now what you'll want to do is you want to see what metadata is on there.

21
00:01:30,710 --> 00:01:33,680
so let's actually use the exif tools.

22
00:01:38,100 --> 00:01:42,120
and let me make sure i'm in the right directory here, documents.

23
00:01:42,340 --> 00:01:47,230
and we can use exif tool and we can actually type in this one.

24
00:01:47,230 --> 00:01:54,530
so the exif tool is a built in tool to most linux distributions, and it can actually look at some of the metadata of a file.

25
00:01:54,530 --> 00:01:56,920
so this is all the metadata of a file.

26
00:01:57,180 --> 00:02:02,640
what we can actually do is let's output that to say original metadata.

27
00:02:03,460 --> 00:02:08,290
so now we have a file that actually describes the metadata for us.

28
00:02:08,289 --> 00:02:11,950
so we can keep that open just for comparison in the future.

29
00:02:11,950 --> 00:02:13,850
so we have our original metadata here, right?

30
00:02:13,850 --> 00:02:15,880
this is the same as the output in the command line.

31
00:02:16,180 --> 00:02:24,350
and now what we want to do is in tails itself, there's a really neat metadata eraser tool called metadata cleaner.

32
00:02:24,350 --> 00:02:31,520
if we click into that, we can actually add the file we want to clean the metadata from, which is our libreoffice file.

33
00:02:31,980 --> 00:02:35,360
we can open that and we can clean.

34
00:02:35,500 --> 00:02:37,130
now we're not going to back up.

35
00:02:37,130 --> 00:02:41,520
so we're not going to back up the file, meaning it will overwrite the original file.

36
00:02:41,620 --> 00:02:45,320
so if you want to make sure that doesn't happen, i would create a different name.

37
00:02:45,660 --> 00:02:48,760
but let's, let's just clean here.

38
00:02:49,260 --> 00:02:50,080
click clean.

39
00:02:51,380 --> 00:02:52,330
and there we go.

40
00:02:52,330 --> 00:02:52,830
done.

41
00:02:52,830 --> 00:02:54,760
very quick, very easy to use.

42
00:02:54,820 --> 00:03:04,800
and now if we do that same command, and we'll just say this is the cleaned metadata now as our output, now we have two files to compare.

43
00:03:05,980 --> 00:03:08,040
and we can kind of pull this one out.

44
00:03:11,740 --> 00:03:13,400
now we can compare the two.

45
00:03:13,540 --> 00:03:22,920
so if you look at the cleaned metadata compared to the original metadata, there's a lot less information on the cleaned metadata page.

46
00:03:23,540 --> 00:03:24,910
just looking at the two, right?

47
00:03:24,910 --> 00:03:27,010
this is the whole this is everything in the cleaned.

48
00:03:27,010 --> 00:03:29,040
and now look at the difference, everything in the original.

49
00:03:29,220 --> 00:03:30,850
so what what was removed?

50
00:03:30,850 --> 00:03:32,880
well, things about the date were removed.

51
00:03:33,060 --> 00:03:36,320
creation date is in the original doesn't exist here.

52
00:03:36,780 --> 00:03:48,270
things about the document information, right character count, word count, paragraph count, all gone, where it came from, like what program created it, a preview, all of that is gone.

53
00:03:48,270 --> 00:04:04,110
so what's left in here is really simple information that needs to be in linux or in any operating system to understand the permissions of the file, the general file last change time, and then the actual file name and the file type.

54
00:04:04,110 --> 00:04:08,990
all of those are pretty much required by your operating system to understand and parse the file.

55
00:04:08,990 --> 00:04:10,770
otherwise it's not going to display it correctly.

56
00:04:10,770 --> 00:04:12,050
it might not let you open it.

57
00:04:12,050 --> 00:04:13,270
so these ones are required.

58
00:04:13,270 --> 00:04:20,570
but all the rest of this is not so really awesome that it was able to remove all of that very simple way to clean metadata on files.

59
00:04:20,570 --> 00:04:23,320
and you can actually do this in command line as well.

60
00:04:35,860 --> 00:04:39,160
metadata two is known as the mat two.

61
00:04:39,820 --> 00:04:41,000
man matt.

62
00:04:41,740 --> 00:04:45,170
so matt two is the metadata cleaner.

63
00:04:45,170 --> 00:04:46,710
that's the name of the program.

64
00:04:46,710 --> 00:04:52,410
so matt two, if you look at the man page, you can actually see, you know, information about the tool.

65
00:04:52,410 --> 00:05:00,590
but all you really need to do is you could just say mat two and then the file you want to do, which is our libreoff file and boom, it's done.

66
00:05:00,590 --> 00:05:08,760
and that will automatically create a different file called dot cleaned dot odt, right, it'll add a dot cleaned at the end.

67
00:05:09,060 --> 00:05:10,730
that's how you know it worked.

68
00:05:10,730 --> 00:05:14,040
and that's how it automatically handles the backup situation.

69
00:05:14,300 --> 00:05:20,840
so in the user interface, we had to specifically undo that manually in the command line, it just does it and produces a cleaned version.

70
00:05:21,140 --> 00:05:24,590
so that is how you use the metadata cleaner entails.

71
00:05:24,590 --> 00:05:26,670
very simple, very easy to use.

72
00:05:26,670 --> 00:05:29,170
if you have any questions on that, of course, let me know.

73
00:05:29,170 --> 00:05:30,680
otherwise, we'll see you in the next one.