-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNTFSInfo.html
1211 lines (1188 loc) · 65.5 KB
/
NTFSInfo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
<title>NTFSInfo — DFIR ORC documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/solar.css" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css" />
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
<script src="_static/underscore.js"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="NTFSUtil" href="NTFSUtil.html" />
<link rel="prev" title="GetSectors" href="GetSectors.html" /><link href='http://fonts.googleapis.com/css?family=Source+Code+Pro|Open+Sans:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>
<link href="_static/solarized-dark.css" rel="stylesheet">
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" >
<a href="NTFSUtil.html" title="NTFSUtil"
accesskey="N">next</a>
<li class="right" >
<a href="GetSectors.html" title="GetSectors"
accesskey="P">previous</a>
|</li>
<li class="nav-item nav-item-0"><a href="index.html">DFIR ORC documentation</a> »</li>
<li class="nav-item nav-item-1"><a href="embedded_tool_suite.html" accesskey="U">Embedded Tool Suite</a> »</li>
</ul>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="index.html">
<img class="logo" src="_static/logo.jpg" alt="Logo"/>
</a></p>
<h3><a href="index.html">Table of Contents</a></h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="index.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="tuto.html">Tutorial</a></li>
<li class="toctree-l1"><a class="reference internal" href="platforms.html">Requirements</a></li>
<li class="toctree-l1"><a class="reference internal" href="intro_to_data_collection.html">Design and Architecture</a></li>
<li class="toctree-l1"><a class="reference internal" href="configuration.html">Configuration</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="embedded_tool_suite.html">Embedded Tool Suite</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="info_tools.html">Common Options & Properties</a></li>
<li class="toctree-l2"><a class="reference internal" href="FatInfo.html">FatInfo</a></li>
<li class="toctree-l2"><a class="reference internal" href="FastFind.html">FastFind</a></li>
<li class="toctree-l2"><a class="reference internal" href="GetThis.html">GetThis</a></li>
<li class="toctree-l2"><a class="reference internal" href="GetSamples.html">GetSamples</a></li>
<li class="toctree-l2"><a class="reference internal" href="GetSectors.html">GetSectors</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">NTFSInfo</a></li>
<li class="toctree-l2"><a class="reference internal" href="NTFSUtil.html">NTFSUtil</a></li>
<li class="toctree-l2"><a class="reference internal" href="ObjInfo.html">ObjInfo</a></li>
<li class="toctree-l2"><a class="reference internal" href="RegInfo.html">RegInfo</a></li>
<li class="toctree-l2"><a class="reference internal" href="USNInfo.html">USNInfo</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="licenses.html">Licenses</a></li>
</ul>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="ntfsinfo">
<h1>NTFSInfo<a class="headerlink" href="#ntfsinfo" title="Permalink to this heading">¶</a></h1>
<section id="description">
<h2>Description<a class="headerlink" href="#description" title="Permalink to this heading">¶</a></h2>
<p>NTFSInfo is intended to collect details on data stored on NTFS mounted volumes, raw disk images or Volume Shadow Copies.
Basically, the tool enumerates the file system entries and outputs user-specified details to collect in one or more CSV file.</p>
<p>NTFSInfo can walk the file system using two different techniques: the USN journal enumeration or raw MFT parsing. Their implementation is detailed in <a class="reference internal" href="fs_implem_details.html"><span class="doc">parser implementation details</span></a>.</p>
<p>While the two parsers (MFT and USN) enumerate the file system entries, there are key differences between the two approaches:</p>
<ul>
<li><dl>
<dt>USN parser creates one line per USN record returned. The MFT parser, however, can potentially create multiple lines per MFT record:</dt><dd><ul class="simple">
<li><p>One line per <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> attribute (hard links)</p></li>
<li><p>One line per <code class="docutils literal notranslate"><span class="pre">$DATA</span></code> attribute (ADSs)</p></li>
</ul>
<p>One can identify the lines referencing the same MFT record by looking at the FRN column.</p>
<p>For example, below, FRN 0x00DB00000002442B, which has two names (one long, one short) and one Alternate Data Stream, NTFSInfo output looks like:</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>File</p></th>
<th class="head"><p>FRN</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>GETTHI~2.ZIP</p></td>
<td><p>0x00DB00000002442B</p></td>
</tr>
<tr class="row-odd"><td><p>GETTHI~2.ZIP:Zone.Identifier</p></td>
<td><p>0x00DB00000002442B</p></td>
</tr>
<tr class="row-even"><td><p>GetThis (3).zip</p></td>
<td><p>0x00DB00000002442B</p></td>
</tr>
<tr class="row-odd"><td><p>GetThis (3).zip:Zone.Identifier</p></td>
<td><p>0x00DB00000002442B</p></td>
</tr>
</tbody>
</table>
<p>If several attributes (whether <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> or <code class="docutils literal notranslate"><span class="pre">$DATA</span></code>) are present inside the USN record, only one line is written by the USN parser.
In particular, the <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> attribute is selected by the system and not the tool.</p>
</dd>
</dl>
</li>
<li><p>The USN parser can enumerate Alternate Data Streams in the ADS column, one line per ADS. However, only the MFT parser will provide details on the ADS itself (size, hashes, PE Header, etc.). The USN parser will only detail the default stream.</p></li>
</ul>
</section>
<section id="output">
<span id="ntfsinfo-output"></span><h2>Output<a class="headerlink" href="#output" title="Permalink to this heading">¶</a></h2>
<p>NTFSInfo can collect up to five different types of information:</p>
<ul class="simple">
<li><p><a class="reference internal" href="#ntfsinfo-fileinfo"><span class="std std-ref">FileInfo</span></a>,</p></li>
<li><p><a class="reference internal" href="#ntfsinfo-attrinfo"><span class="std std-ref">AttrInfo</span></a>,</p></li>
<li><p><a class="reference internal" href="#ntfsinfo-i30info"><span class="std std-ref">I30Info</span></a>,</p></li>
<li><p><a class="reference internal" href="#ntfsinfo-timeline"><span class="std std-ref">TimeLine</span></a>, and</p></li>
<li><p><a class="reference internal" href="#ntfsinfo-secdescr"><span class="std std-ref">SecDescr</span></a>.</p></li>
</ul>
<p>Data is stored in <strong>CSV</strong> files.</p>
<p>If no output option is specified, only the <code class="docutils literal notranslate"><span class="pre">FileInfo</span></code> information is collected in <code class="docutils literal notranslate"><span class="pre">NTFSInfo.csv</span></code>.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>For verbose logging output refer to <a class="reference internal" href="configuring_console_output.html"><span class="doc">Configuring Console Output</span></a>.</p>
</div>
<section id="fileinfo">
<span id="ntfsinfo-fileinfo"></span><h3>FileInfo<a class="headerlink" href="#fileinfo" title="Permalink to this heading">¶</a></h3>
<p>This file contains the following information on files and folders:</p>
<ul class="simple">
<li><dl class="simple">
<dt><strong>Volume Identification:</strong></dt><dd><ul>
<li><p><strong>ComputerName:</strong> Name of the computer</p></li>
<li><p><strong>VolumeID:</strong> Id of the volume</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>Standard Information:</strong></dt><dd><ul>
<li><p><strong>FullName:</strong> Full-path name</p></li>
<li><p><strong>File:</strong> Name of the file</p></li>
<li><p><strong>ParentName:</strong> Name of the parent folder</p></li>
<li><p><strong>Extension:</strong> Optional file name extension (split path)</p></li>
<li><p><strong>Attributes:</strong> FAT file system attributes</p></li>
<li><p><strong>SizeInBytes:</strong> File size in bytes</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>Date Information:</strong></dt><dd><ul>
<li><p><strong>CreationDate:</strong> File creation date <em>“mm/dd/yyyy hh:mm:ss.000”</em></p></li>
<li><p><strong>LastModificationDate:</strong> File last write date <em>“mm/dd/yyyy hh:mm:ss.000”</em></p></li>
<li><p><strong>LastAccessDate:</strong> File last read access date</p></li>
<li><p><strong>LastAttrChangeDate:</strong> Last Attribute change date (MFT information changed) <em>“mm/dd/yyyy hh:mm:ss.000”</em></p></li>
<li><p><strong>FileNameCreationDate:</strong> File name (hard link) creation date</p></li>
<li><p><strong>FileNameLastAccessDate:</strong> File name (hard link) access date</p></li>
<li><p><strong>FileNameLastDataModificationDate:</strong> File name (hard link) last date <em>data</em> was modified</p></li>
<li><p><strong>FileNameLastAttrModificationDate:</strong> File name (hard link) last date MFT <em>attribute</em> was modified</p></li>
</ul>
</dd>
</dl>
</li>
<li><p><strong>FirstBytes:</strong> First 16 bytes (in hex) of the <code class="docutils literal notranslate"><span class="pre">$DATA</span></code> attribute content.</p></li>
<li><dl class="simple">
<dt><strong>Security:</strong></dt><dd><ul>
<li><p><strong>OwnerSID:</strong> SID of the owner for this entry</p></li>
<li><p><strong>Owner:</strong> Name of the owner for this entry</p></li>
<li><p><strong>SecDescrID</strong> ID of security descriptor for the file</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>PE Header related information:</strong></dt><dd><ul>
<li><p><strong>Platform:</strong> PE Header platform</p></li>
<li><p><strong>TimeStamp:</strong> PE Header timestamp</p></li>
<li><p><strong>SubSystem:</strong> PE Header SubSystem</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>Version Information:</strong></dt><dd><ul>
<li><p><strong>FileOS:</strong> VersionInfo OS tag</p></li>
<li><p><strong>FileType:</strong> VersionInfo type</p></li>
<li><p><strong>Version:</strong> VersionInfo file version</p></li>
<li><p><strong>CompanyName:</strong> VersionInfo company name</p></li>
<li><p><strong>ProductName:</strong> VersionInfo product name</p></li>
<li><p><strong>OriginalFileName:</strong> VersionInfo original file name</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>ShortName:</strong></dt><dd><ul>
<li><p><strong>Short Name</strong> (8.3) if any</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>Cryptographic/Authenticode Information:</strong></dt><dd><ul>
<li><p><strong>MD5:</strong> Cryptographic MD5 hash (in hex)</p></li>
<li><p><strong>SHA1:</strong> Cryptographic SHA1 hash (in hex)</p></li>
<li><p><strong>SHA256:</strong> Cryptographic SHA256 hash (in hex)</p></li>
<li><p><strong>PeMD5:</strong> Authenticode (PE) file MD5 hash</p></li>
<li><p><strong>PeSHA1:</strong> Authenticode (PE) file SHA1 hash</p></li>
<li><p><strong>PeSHA256:</strong> Authenticode (PE) file SHA256 hash</p></li>
<li><dl class="simple">
<dt><strong>AuthenticodeStatus:</strong> Status of the authenticode signature for the file. Possible values are:</dt><dd><ul>
<li><p><strong>Unknown:</strong> Status failed to be determined</p></li>
<li><p><strong>Empty string:</strong> File is not a PE</p></li>
<li><p><strong>SignedVerified:</strong> File is signed and the signature verified</p></li>
<li><p><strong>CatalogSignedVerified:</strong> File hash is listed in a catalog</p></li>
<li><p><strong>SignedNotVerified:</strong> File signature does _not_ verify</p></li>
<li><p><strong>NotSigned:</strong> No signature or catalog could be found for this file</p></li>
</ul>
</dd>
</dl>
</li>
<li><p><strong>AuthenticodeSigner:</strong> Signer’s certificate (value of the first occurrence of the attributes szOID_COMMON_NAME, szOID_ORGANIZATIONAL_UNIT_NAME, szOID_ORGANIZATION_NAME, or szOID_RSA_emailAddr)</p></li>
<li><p><strong>AuthenticodeSignerThumbprint:</strong> Signer’s certificate hash</p></li>
<li><p><strong>AuthenticodeCA:</strong> Signer’s root CA certificate (value of the first occurrence of the attributes szOID_COMMON_NAME, szOID_ORGANIZATIONAL_UNIT_NAME, szOID_ORGANIZATION_NAME, or szOID_RSA_emailAddr)</p></li>
<li><p><strong>AuthenticodeCAThumbprint:</strong> Signer’s root CA certificate hash</p></li>
<li><p><strong>SecurityDirectory</strong> Base64 encoded security directory of the PE file (if present)</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>Alternate Storage areas:</strong></dt><dd><ul>
<li><p><strong>ADS:</strong> Alternate Data Stream Information</p></li>
<li><p><strong>ExtendedAttribute:</strong> Colon separated names of the extended attributes (<code class="docutils literal notranslate"><span class="pre">$EA</span></code> attribute content)</p></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="simple">
<dt><strong>Reference Numbers</strong></dt><dd><ul>
<li><p><strong>USN:</strong> Update Sequence Number (last USN added in the journal for this entry)</p></li>
<li><p><strong>FRN:</strong> File Reference Number (version index of the entry in the MFT)</p></li>
</ul>
</dd>
</dl>
</li>
<li><p><strong>RecordInUse:</strong> Boolean which indicates if this record was in use or free (i.e. deleted)</p></li>
<li><p><strong>FilenameFlags:</strong> Type of file name (POSIX=0,WIN32=1,DOS83=2)</p></li>
<li><p><strong>FilenameID:</strong> Attribute ID for this <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code></p></li>
<li><p><strong>DataID:</strong> Attribute ID for this <code class="docutils literal notranslate"><span class="pre">$DATA</span></code></p></li>
<li><p><strong>Status:</strong> File lock status (per CreateFile return value, if available)</p></li>
<li><p><strong>OwnerID:</strong> Owner ID for this entry (ID for quotas, not security)</p></li>
<li><p><strong>FilenameIndex:</strong> Index of this <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> in this record</p></li>
<li><p><strong>DataIndex:</strong> Index of this <code class="docutils literal notranslate"><span class="pre">$DATA</span></code> in this record</p></li>
<li><p><strong>SnapshotID:</strong> Snapshot associated with this entry</p></li>
<li><p><strong>SSDeep:</strong> Fuzzyhash SSDeep</p></li>
<li><p><strong>TLSH:</strong> Trend Micro’s TLSH</p></li>
<li><p><strong>SignedHash:</strong> Signed hash inside the security directory of the PE</p></li>
</ul>
<p>The Attributes column may contain the following flags:</p>
<blockquote>
<div><table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Flag</p></th>
<th class="head"><p>Letter used (in this order)</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_ARCHIVE</p></td>
<td><p>A</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_COMPRESSED</p></td>
<td><p>C</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_DIRECTORY</p></td>
<td><p>D</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_ENCRYPTED</p></td>
<td><p>E</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_HIDDEN</p></td>
<td><p>H</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_NORMAL</p></td>
<td><p>N</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_OFFLINE</p></td>
<td><p>O</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_READONLY</p></td>
<td><p>R</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_REPARSE_POINT</p></td>
<td><p>L</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_SPARSE_FILE</p></td>
<td><p>P</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_SYSTEM</p></td>
<td><p>S</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_TEMPORARY</p></td>
<td><p>T</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_VIRTUAL</p></td>
<td><p>V</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_DEVICE</p></td>
<td><p>d</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_NOT_CONTENT_INDEX</p></td>
<td><p>I</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_INTEGRITY_STREAM</p></td>
<td><p>s</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_NO_SCRUB_DATA</p></td>
<td><p>B</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_EA</p></td>
<td><p>e</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_PINNED</p></td>
<td><p>p</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_UNPINNED</p></td>
<td><p>u</p></td>
</tr>
<tr class="row-even"><td><p>FILE_ATTRIBUTE_RECALL_ON_OPEN</p></td>
<td><p>o</p></td>
</tr>
<tr class="row-odd"><td><p>FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS</p></td>
<td><p>a</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>Detailed documentation of these flags can be found at: <a class="reference external" href="https://docs.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants">https://docs.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants</a></p>
</section>
<section id="attrinfo">
<span id="ntfsinfo-attrinfo"></span><h3>AttrInfo<a class="headerlink" href="#attrinfo" title="Permalink to this heading">¶</a></h3>
<p>This file contains NTFS attributes related information. The output CSV file contains the following information:</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Value</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>ComputerName</p></td>
<td><p>Name of the computer</p></td>
</tr>
<tr class="row-odd"><td><p>VolumeID</p></td>
<td><p>ID of the volume</p></td>
</tr>
<tr class="row-even"><td><p>FRN</p></td>
<td><p>FRN for this attribute</p></td>
</tr>
<tr class="row-odd"><td><p>HostFRN</p></td>
<td><p>FRN hosting this attribute (if HostFRN != FRN then this attribute is hosted in a child MFT record)</p></td>
</tr>
<tr class="row-even"><td><p>Type</p></td>
<td><p>Type of the attribute</p></td>
</tr>
<tr class="row-odd"><td><p>Name</p></td>
<td><p>Attribute name</p></td>
</tr>
<tr class="row-even"><td><p>Form</p></td>
<td><p>Resident or NonResident</p></td>
</tr>
<tr class="row-odd"><td><p>Size</p></td>
<td><p>Attribute size</p></td>
</tr>
<tr class="row-even"><td><p>Flags</p></td>
<td><p>Attribute flags</p></td>
</tr>
<tr class="row-odd"><td><p>Instance</p></td>
<td><p>Unique instance for this attribute in the file record</p></td>
</tr>
<tr class="row-even"><td><p>Index</p></td>
<td><p>Attribute index for this attribute type</p></td>
</tr>
<tr class="row-odd"><td><p>LowestVCN</p></td>
<td><p>Lowest virtual cluster number (VCN) covered by this attribute record.</p></td>
</tr>
<tr class="row-even"><td><p>SnapshotID</p></td>
<td><p>ID of the snapshot</p></td>
</tr>
</tbody>
</table>
<p>The Type column can have the following values:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">$UNUSED</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$STANDARD_INFORMATION</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$ATTRIBUTE_LIST</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$OBJECT_ID</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$SECURITY_DESCRIPTOR</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$VOLUME_NAME</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$VOLUME_INFORMATION</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$DATA</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$INDEX_ROOT</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$INDEX_ALLOCATION</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$BITMAP</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$REPARSE_POINT</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$EA_INFORMATION</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$EA</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$LOGGED_UTILITY_STREAM</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$FIRST_USER_DEFINED_ATTRIBUTE</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">$END</span></code></p></li>
</ul>
<p>The <code class="docutils literal notranslate"><span class="pre">Flags</span></code> attribute can have the following <a class="reference external" href="https://docs.microsoft.com/en-us/windows/win32/devnotes/attribute-record-header">values</a>:</p>
<ul class="simple">
<li><p>ATTRIBUTE_FLAG_COMPRESSION_MASK (0x00FF)</p></li>
<li><p>ATTRIBUTE_FLAG_SPARSE (0x8000)</p></li>
<li><p>ATTRIBUTE_FLAG_ENCRYPTED (0x4000)</p></li>
</ul>
</section>
<section id="i30info">
<span id="ntfsinfo-i30info"></span><h3>I30Info<a class="headerlink" href="#i30info" title="Permalink to this heading">¶</a></h3>
<p>This file contains information from the volume <code class="docutils literal notranslate"><span class="pre">$I30</span></code> attributes (directories) stored <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> copies:</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Value</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>ComputerName</p></td>
<td><p>Name of the computer</p></td>
</tr>
<tr class="row-odd"><td><p>VolumeID</p></td>
<td><p>ID of the volume</p></td>
</tr>
<tr class="row-even"><td><p>CarvedEntry</p></td>
<td><p>"Y" or "N" depending on whether this entry was carved</p></td>
</tr>
<tr class="row-odd"><td><p>FRN</p></td>
<td><p>File Reference Number (version index of the entry in the MFT)</p></td>
</tr>
<tr class="row-even"><td><p>ParentFRN</p></td>
<td><p>FRN of the parent directory</p></td>
</tr>
<tr class="row-odd"><td><p>Name</p></td>
<td><p>File name</p></td>
</tr>
<tr class="row-even"><td><p>FilenameID</p></td>
<td><p>Attribute ID for this <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code></p></td>
</tr>
<tr class="row-odd"><td><p>FileNameCreationDate</p></td>
<td><p>File name (hard link) creation date</p></td>
</tr>
<tr class="row-even"><td><p>FileNameLastModificationDate</p></td>
<td><p>File name (hard link) access date</p></td>
</tr>
<tr class="row-odd"><td><p>FileNameLastAccessDate</p></td>
<td><p>File name (hard link) last date data was modified</p></td>
</tr>
<tr class="row-even"><td><p>FileNameLastAttrModificationDate</p></td>
<td><p>File name (hard link) last date MFT attribute was modified</p></td>
</tr>
<tr class="row-odd"><td><p>SnapshotID</p></td>
<td><p>ID of the VSS snapshot</p></td>
</tr>
</tbody>
</table>
</section>
<section id="timeline">
<span id="ntfsinfo-timeline"></span><h3>TimeLine<a class="headerlink" href="#timeline" title="Permalink to this heading">¶</a></h3>
<p>This file contains information one “date/time” per line.
This file is <strong>not</strong> sorted.</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Value</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>ComputerName</p></td>
<td><p>Name of the computer</p></td>
</tr>
<tr class="row-odd"><td><p>VolumeID</p></td>
<td><p>ID of the volume</p></td>
</tr>
<tr class="row-even"><td><p>KindOfDate</p></td>
<td><p>Nature of the date reported.</p></td>
</tr>
<tr class="row-odd"><td><p>TimeStamp</p></td>
<td><p>Timestamp for this event</p></td>
</tr>
<tr class="row-even"><td><p>FRN</p></td>
<td><p>File Reference Number</p></td>
</tr>
<tr class="row-odd"><td><p>FilenameID</p></td>
<td><p>ID of the <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> associated with this event</p></td>
</tr>
<tr class="row-even"><td><p>SnapshotID</p></td>
<td><p>ID of the VSS snapshot</p></td>
</tr>
</tbody>
</table>
<p>The KindOfDate column can hold the following values:</p>
<ul class="simple">
<li><p>CreationTime</p></li>
<li><p>LastModificationTime</p></li>
<li><p>LastAccessTime</p></li>
<li><p>LastChangeTime</p></li>
<li><p>FileNameCreationDate</p></li>
<li><p>FileNameLastModificationDate</p></li>
<li><p>FileNameLastAccessDate</p></li>
<li><p>FileNameLastAttrModificationDate</p></li>
</ul>
</section>
<section id="secdescr">
<span id="ntfsinfo-secdescr"></span><h3>SecDescr<a class="headerlink" href="#secdescr" title="Permalink to this heading">¶</a></h3>
<p>This file contains Security Descriptors information (as stored in the <code class="docutils literal notranslate"><span class="pre">$SDS</span></code> data stream for the volume):</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Value</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>ComputerName</p></td>
<td><p>Name of the computer</p></td>
</tr>
<tr class="row-odd"><td><p>VolumeID</p></td>
<td><p>ID of the volume</p></td>
</tr>
<tr class="row-even"><td><p>ID</p></td>
<td><p>ID of this Security Descriptor (as referred to by <a class="reference internal" href="#ntfsinfo-fileinfo"><span class="std std-ref">SecDescrID in FileInfo</span></a> column)</p></td>
</tr>
<tr class="row-odd"><td><p>Hash</p></td>
<td><p>Hash (<em>not</em> a Cryptographic hash)</p></td>
</tr>
<tr class="row-even"><td><p>SDDL</p></td>
<td><p>Security descriptor in <a class="reference external" href="https://docs.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-definition-language">SDDL format</a></p></td>
</tr>
<tr class="row-odd"><td><p>SecDescrSize</p></td>
<td><p>Declared size of the security descriptor (per <a class="reference external" href="https://docs.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-getsecuritydescriptorlength">GetSecurityDescriptorLength</a>)</p></td>
</tr>
<tr class="row-even"><td><p>NormalisedSize</p></td>
<td><p>Normalised size of the SD (per <a class="reference external" href="https://docs.microsoft.com/en-us/windows/win32/api/sddl/nf-sddl-convertstringsecuritydescriptortosecuritydescriptorw">ConvertStringSecurityDescriptorToSecurityDescriptor</a>)</p></td>
</tr>
<tr class="row-odd"><td><p>DataSize</p></td>
<td><p>Actual stored blob size in <code class="docutils literal notranslate"><span class="pre">$SDS</span></code> stream (<a class="reference external" href="http://www.ntfs.com/ntfs-permissions-security-descriptor.htm">http://www.ntfs.com/ntfs-permissions-security-descriptor.htm</a>)</p></td>
</tr>
<tr class="row-even"><td><p>SnapshotId</p></td>
<td><p>VSS Snapshot ID</p></td>
</tr>
</tbody>
</table>
</section>
</section>
<section id="usage">
<h2>Usage<a class="headerlink" href="#usage" title="Permalink to this heading">¶</a></h2>
<p>NTFSInfo can be used from command line or with XML configuration file. Both provide (mostly) identical access to NTFSInfo functionality even if the configuration files allow for more complexity.</p>
<ul class="simple">
<li><p>Command-line parameters example:</p></li>
</ul>
<div class="highlight-bat notranslate"><div class="highlight"><pre><span></span>DFIR-Orc.exe NTFSInfo <span class="s2">"</span><span class="nv">%SystemDrive%</span><span class="s2">\Program Files"</span> /fileinfo=<span class="nv">%TEMP%</span>\test.csv /logfile=<span class="nv">%TEMP%</span>\NTFSInfo.log /Dates,File,ParentName,USN,FRN,LastAttrChangeDate,ADS,SizeInBytes
</pre></div>
</div>
<ul class="simple">
<li><p>XML configuration file example:</p></li>
</ul>
<div class="highlight-xml notranslate"><div class="highlight"><pre><span></span><span class="nt"><ntfsinfo</span><span class="w"> </span><span class="na">walker=</span><span class="s">"MFT"</span><span class="nt">></span>
<span class="w"> </span><span class="nt"><fileinfo></span>%TEMP%\test.csv<span class="nt"></fileinfo></span>
<span class="w"> </span><span class="nt"><logging</span><span class="w"> </span><span class="na">file=</span><span class="s">"%TEMP%\NTFSInfo.log"</span><span class="w"> </span><span class="nt">/></span>
<span class="w"> </span><span class="nt"><location></span>%SystemDrive%\Program<span class="w"> </span>files<span class="nt"></location></span>
<span class="w"> </span><span class="nt"><columns></span>
<span class="w"> </span><span class="nt"><default></span>Dates<span class="nt"></default></span>
<span class="w"> </span><span class="nt"><default></span>File<span class="nt"></default></span>
<span class="w"> </span><span class="nt"><default></span>ParentName<span class="nt"></default></span>
<span class="w"> </span><span class="nt"><default></span>USN,FRN<span class="nt"></default></span>
<span class="w"> </span><span class="nt"><default></span>LastAttrChangeDate<span class="nt"></default></span>
<span class="w"> </span><span class="nt"><default></span>ADS<span class="nt"></default></span>
<span class="w"> </span><span class="nt"><default></span>SizeInBytes<span class="nt"></default></span>
<span class="w"> </span><span class="nt"></columns></span>
<span class="nt"></ntfsinfo></span>
</pre></div>
</div>
<p>The XML configuration file is provided by using the parameter <code class="docutils literal notranslate"><span class="pre">/config</span></code>:</p>
<div class="highlight-bat notranslate"><div class="highlight"><pre><span></span>DFIR-Orc.exe NTFSInfo /config=<span class="nv">%TEMP%</span>\NTFSInfoConfig.xml
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>All output related parameters (in the configuration file and in the command line) can use environment variables.</p>
</div>
<section id="ntfsinfo-element">
<h3><code class="docutils literal notranslate"><span class="pre">ntfsinfo</span></code> Element<a class="headerlink" href="#ntfsinfo-element" title="Permalink to this heading">¶</a></h3>
<p><em>optional=no, default=N/A</em></p>
<p>Root element.</p>
<section id="attributes">
<h4>Attributes<a class="headerlink" href="#attributes" title="Permalink to this heading">¶</a></h4>
<ul class="simple">
<li><p><strong>walker</strong> <em>(optional=no, default=MFT)</em>, <code class="docutils literal notranslate"><span class="pre">/Walker</span></code> Option:</p></li>
</ul>
<p>NTFSInfo can only use one parser per execution. The choice of the parser is very important as it impacts the CSV output.</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Value</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>USN</p></td>
<td><p>The <em>USN parser</em> can be faster under certain circumstances and is maintained only for completeness.</p></td>
</tr>
<tr class="row-odd"><td><p>MFT</p></td>
<td><p>The <em>MFT parser</em> is the most complete with detailed ADS and hard links in the output.</p></td>
</tr>
</tbody>
</table>
<div class="admonition important">
<p class="admonition-title">Important</p>
<ul class="simple">
<li><p>The <em>USN Parser</em> option is <strong>DEPRECATED</strong></p></li>
<li><p>The <em>USN Parser</em> can be very slow on recent NTFS volumes.</p></li>
</ul>
</div>
<p>Configuring the parser to parse deleted entries</p>
<ul class="simple">
<li><p><strong>resurrect</strong> <em>(optional=yes, default=no)</em>, <code class="docutils literal notranslate"><span class="pre">/ResurrectRecords=<yes|no|resident></span></code> Option</p></li>
</ul>
<p>The MFT parser can be configured to include deleted records. This option can provide information about recently deleted file system entries.
This can, by design, incur unpredictable results (as we are using unreliable or partially deleted information).
One can generally assume that resident attributes for those entries are valid unlike nonresident attributes that are most likely quickly invalidated after the entry deletion.
Use the option value <code class="docutils literal notranslate"><span class="pre">resident</span></code> to limit parsed deleted entries to resident ones.</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Value</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p><em>yes</em></p></td>
<td><p>Enable deleted records recovery</p></td>
</tr>
<tr class="row-odd"><td><p><em>resident</em></p></td>
<td><p>Enabled deleted resident records only recovery</p></td>
</tr>
<tr class="row-even"><td><p><em>no</em></p></td>
<td><p>Do not try to recover deleted records</p></td>
</tr>
</tbody>
</table>
</section>
</section>
<section id="location-element">
<h3><code class="docutils literal notranslate"><span class="pre">location</span></code> Element<a class="headerlink" href="#location-element" title="Permalink to this heading">¶</a></h3>
<p>Specify the parsed system. For details on the syntax, please refer to the <a class="reference internal" href="configuring_locations.html"><span class="doc">configuring locations documentation</span></a>.</p>
<p>When using the command line, this element must be provided in the form of a space separated list, as an argument at the end of the command:</p>
<div class="highlight-bat notranslate"><div class="highlight"><pre><span></span>DFIR-Orc.exe NTFSInfo <span class="p"><</span>Location1<span class="p">></span> <Location2>
</pre></div>
</div>
</section>
<section id="fileinfo-element-fileinfo-path-option">
<h3><code class="docutils literal notranslate"><span class="pre">FileInfo</span></code> Element, <code class="docutils literal notranslate"><span class="pre">/FileInfo=<Path></span></code> Option<a class="headerlink" href="#fileinfo-element-fileinfo-path-option" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=NTFSInfo.csv</em></p>
<p><code class="docutils literal notranslate"><span class="pre">FileInfo</span></code> contains general file information about the files in one or more volumes.</p>
<p>The syntax is similar to the <code class="docutils literal notranslate"><span class="pre">output</span></code> element or <code class="docutils literal notranslate"><span class="pre">\out</span></code> option used in other tools, described in the <a class="reference internal" href="configuring_tool_output.html"><span class="doc">output documentation</span></a>.</p>
<p>When provided with a directory or an archive, it creates one file per NTFS volume instead of one unique file.</p>
<p>If no output option is specified, only the <code class="docutils literal notranslate"><span class="pre">FileInfo</span></code> information is collected in a file called <code class="docutils literal notranslate"><span class="pre">NTFSInfo.csv</span></code>.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The option <code class="docutils literal notranslate"><span class="pre">/out</span></code> has the same behavior as <code class="docutils literal notranslate"><span class="pre">/fileinfo</span></code>.</p>
</div>
</section>
<section id="attrinfo-element-attrinfo-path-option">
<span id="id1"></span><h3><code class="docutils literal notranslate"><span class="pre">AttrInfo</span></code> Element, <code class="docutils literal notranslate"><span class="pre">/AttrInfo=<Path></span></code> Option<a class="headerlink" href="#attrinfo-element-attrinfo-path-option" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=N/A</em></p>
<p><code class="docutils literal notranslate"><span class="pre">AttrInfo</span></code> contains detail information about the attributes in <code class="docutils literal notranslate"><span class="pre">$MFT</span></code>.</p>
<p>The syntax is similar to the <code class="docutils literal notranslate"><span class="pre">output</span></code> element or <code class="docutils literal notranslate"><span class="pre">\out</span></code> option used in other tools, described in the <a class="reference internal" href="configuring_tool_output.html"><span class="doc">output documentation</span></a>.</p>
<p>When provided with a directory or an archive, it creates one file per NTFS volume instead of one unique file.</p>
</section>
<section id="i30info-element-i30info-path-option">
<span id="id2"></span><h3><code class="docutils literal notranslate"><span class="pre">I30info</span></code> Element, <code class="docutils literal notranslate"><span class="pre">/I30info=<Path></span></code> Option<a class="headerlink" href="#i30info-element-i30info-path-option" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=N/A</em></p>
<p><code class="docutils literal notranslate"><span class="pre">I30Info</span></code> contains detailed information about the data stored inside <code class="docutils literal notranslate"><span class="pre">$I30</span></code> attributes.</p>
<p>The syntax is similar to the <code class="docutils literal notranslate"><span class="pre">output</span></code> element or <code class="docutils literal notranslate"><span class="pre">\out</span></code> option used in other tools, described in the <a class="reference internal" href="configuring_tool_output.html"><span class="doc">output documentation</span></a>.</p>
<p>When provided with a directory or an archive, it creates one file per NTFS volume instead of one unique file.</p>
</section>
<section id="timeline-element-timeline-path-option">
<span id="id3"></span><h3><code class="docutils literal notranslate"><span class="pre">TimeLine</span></code> Element, <code class="docutils literal notranslate"><span class="pre">/TimeLine=<Path></span></code> Option<a class="headerlink" href="#timeline-element-timeline-path-option" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=N/A</em></p>
<p><code class="docutils literal notranslate"><span class="pre">TimeLine</span></code> contains a unique view of all dated information in <code class="docutils literal notranslate"><span class="pre">$MFT</span></code> (<code class="docutils literal notranslate"><span class="pre">$STANDARD_INFORMATION</span></code> and <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code>)</p>
<p>The syntax is similar to the <code class="docutils literal notranslate"><span class="pre">output</span></code> element or <code class="docutils literal notranslate"><span class="pre">\out</span></code> option used in other tools, described in the <a class="reference internal" href="configuring_tool_output.html"><span class="doc">output documentation</span></a>.</p>
<p>When provided with a directory or an archive, it creates one file per NTFS volume instead of one unique file.</p>
</section>
<section id="secdescr-element-secdescr-path-option">
<span id="id4"></span><h3><code class="docutils literal notranslate"><span class="pre">SecDescr</span></code> Element, <code class="docutils literal notranslate"><span class="pre">/SecDescr=<Path></span></code> Option<a class="headerlink" href="#secdescr-element-secdescr-path-option" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=N/A</em></p>
<p><code class="docutils literal notranslate"><span class="pre">SecDescr</span></code> contains the security descriptors for the parsed volumes.</p>
<p>The syntax is similar to the <code class="docutils literal notranslate"><span class="pre">output</span></code> element or <code class="docutils literal notranslate"><span class="pre">\out</span></code> option used in other tools, described in the <a class="reference internal" href="configuring_tool_output.html"><span class="doc">output documentation</span></a>.</p>
<p>When provided with a directory or an archive, it creates one file per NTFS volume instead of one unique file.</p>
</section>
<section id="columns-element">
<h3><code class="docutils literal notranslate"><span class="pre">Columns</span></code> Element<a class="headerlink" href="#columns-element" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=N/A</em></p>
<p>This element is a container for sub-elements that allow to define the information NTFSInfo must collect or not.</p>
</section>
<section id="default-element-in-columns-defaultcolumnselection-option">
<h3><code class="docutils literal notranslate"><span class="pre">Default</span></code> Element (in <code class="docutils literal notranslate"><span class="pre">Columns</span></code>), <code class="docutils literal notranslate"><span class="pre">/<DefaultColumnSelection>,...</span></code> Option<a class="headerlink" href="#default-element-in-columns-defaultcolumnselection-option" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=Default</em> (see “Default” alias)</p>
<p>NTFSInfo allows fine grained selection of information collected in <code class="docutils literal notranslate"><span class="pre">FileInfo</span></code> output CSVs. This allows groups of columns to be specified in a way you find convenient.</p>
<p>Selection is specified using a comma-separated list of columns.</p>
<p>The following example will output the file name, its parent full-path, and its MD5 hash.</p>
<ul class="simple">
<li><p>Command-line parameter:</p></li>
</ul>
<div class="highlight-bat notranslate"><div class="highlight"><pre><span></span>/File,ParentName,MD5
</pre></div>
</div>
<ul class="simple">
<li><p>XML elements:</p></li>
</ul>
<div class="highlight-xml notranslate"><div class="highlight"><pre><span></span><span class="nt"><columns></span>
<span class="w"> </span><span class="nt"><default></span>File,ParentName,MD5<span class="nt"></default></span>
<span class="nt"></columns></span>
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p><em>Option</em> or <em>Element</em> can be specified multiple times</p>
</div>
<p>Here is a complete list of the available columns:</p>
<blockquote>
<div><table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Column name</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>ADS</p></td>
<td><p>Alternate Data Stream Information</p></td>
</tr>
<tr class="row-odd"><td><p>Attributes</p></td>
<td><p>FAT file system attributes</p></td>
</tr>
<tr class="row-even"><td><p>AuthenticodeCA</p></td>
<td><p>Authority of signer of this file’s signature</p></td>
</tr>
<tr class="row-odd"><td><p>AuthenticodeCAThumbprint</p></td>
<td><p>Thumbprint of the authority of the signer of this file’s signer</p></td>
</tr>
<tr class="row-even"><td><p>AuthenticodeSigner</p></td>
<td><p>Signer of this file’s signature</p></td>
</tr>
<tr class="row-odd"><td><p>AuthenticodeSignerThumbprint</p></td>
<td><p>Thumbprint of the signer of this file’s signer</p></td>
</tr>
<tr class="row-even"><td><p>AuthenticodeStatus</p></td>
<td><p>Status of this file regarding authenticode signature (SignedVerified,SignedNotVerified,NotSigned)</p></td>
</tr>
<tr class="row-odd"><td><p>CompanyName</p></td>
<td><p>VersionInfo company name</p></td>
</tr>
<tr class="row-even"><td><p>ComputerName</p></td>
<td><p>Computer name</p></td>
</tr>
<tr class="row-odd"><td><p>CreationDate</p></td>
<td><p>File creation date</p></td>
</tr>
<tr class="row-even"><td><p>DataID</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">$DATA</span></code> Attribute Instance ID</p></td>
</tr>
<tr class="row-odd"><td><p>DataIndex</p></td>
<td><p>Index of this <code class="docutils literal notranslate"><span class="pre">$DATA</span></code> in this record</p></td>
</tr>
<tr class="row-even"><td><p>EASize</p></td>
<td><p>Size in bytes of the extended attributes (if present)</p></td>
</tr>
<tr class="row-odd"><td><p>ExtendedAttribute</p></td>
<td><p>Extended Attribute Information</p></td>
</tr>
<tr class="row-even"><td><p>Extension</p></td>
<td><p>Optional file name extension (split path)</p></td>
</tr>
<tr class="row-odd"><td><p>File</p></td>
<td><p>Name of the file</p></td>
</tr>
<tr class="row-even"><td><p>FileNameCreationDate</p></td>
<td><p>Indicates when this file created using this name</p></td>
</tr>
<tr class="row-odd"><td><p>FilenameFlags</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> Attribute Flags (POSIX=0, WIN32=1, DOS83=2)</p></td>
</tr>
<tr class="row-even"><td><p>FilenameID</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> Attribute Instance ID</p></td>
</tr>
<tr class="row-odd"><td><p>FilenameIndex</p></td>
<td><p>Index of this <code class="docutils literal notranslate"><span class="pre">$FILE_NAME</span></code> in this record</p></td>
</tr>
<tr class="row-even"><td><p>FileNameLastAccessDate</p></td>
<td><p>Indicates when this file was last read using this name</p></td>
</tr>
<tr class="row-odd"><td><p>FileNameLastAttrModificationDate</p></td>
<td><p>Indicates when this file’s attributes were last modified using this name</p></td>
</tr>
<tr class="row-even"><td><p>FileNameLastModificationDate</p></td>
<td><p>Indicates when this file’s data was last modified using this name</p></td>
</tr>
<tr class="row-odd"><td><p>FileOS</p></td>
<td><p>VersionInfo OS tag</p></td>
</tr>
<tr class="row-even"><td><p>FileType</p></td>
<td><p>VersionInfo type</p></td>
</tr>
<tr class="row-odd"><td><p>FirstBytes</p></td>
<td><p>First bytes of the data stream</p></td>
</tr>
<tr class="row-even"><td><p>FRN</p></td>
<td><p>File Reference Number</p></td>
</tr>
<tr class="row-odd"><td><p>FullName</p></td>
<td><p>Full-path name</p></td>
</tr>
<tr class="row-even"><td><p>LastAccessDate</p></td>
<td><p>File last read date (pre-vista)</p></td>
</tr>
<tr class="row-odd"><td><p>LastAttrChangeDate</p></td>
<td><p>Last Attribute Change Date</p></td>
</tr>
<tr class="row-even"><td><p>LastModificationDate</p></td>
<td><p>File last write date</p></td>
</tr>
<tr class="row-odd"><td><p>MD5</p></td>
<td><p>Cryptographic MD5 hash (in hex)</p></td>
</tr>
<tr class="row-even"><td><p>OriginalFileName</p></td>
<td><p>VersionInfo original file name</p></td>
</tr>
<tr class="row-odd"><td><p>Owner</p></td>
<td><p>File owner</p></td>
</tr>
<tr class="row-even"><td><p>OwnerId</p></td>
<td><p>File owner’s unique ID</p></td>
</tr>
<tr class="row-odd"><td><p>OwnerSid</p></td>
<td><p>File owner’s SID</p></td>
</tr>
<tr class="row-even"><td><p>ParentFRN</p></td>
<td><p>Parent Folder Reference Number</p></td>
</tr>
<tr class="row-odd"><td><p>ParentName</p></td>
<td><p>Name of the parent folder</p></td>
</tr>
<tr class="row-even"><td><p>PeMD5</p></td>
<td><p>MD5 of PE file</p></td>
</tr>
<tr class="row-odd"><td><p>PeSHA1</p></td>
<td><p>SHA1 of PE file</p></td>
</tr>
<tr class="row-even"><td><p>PeSHA256</p></td>
<td><p>SHA256 of a PE file</p></td>
</tr>
<tr class="row-odd"><td><p>Platform</p></td>
<td><p>PE Header platform</p></td>
</tr>
<tr class="row-even"><td><p>ProductName</p></td>
<td><p>VersionInfo product name</p></td>
</tr>
<tr class="row-odd"><td><p>RecordInUse</p></td>
<td><p>Indicates if the record is in use (or freed/deleted)</p></td>
</tr>
<tr class="row-even"><td><p>SecDescrID</p></td>
<td><p>ID of security descriptor for the file</p></td>
</tr>
<tr class="row-odd"><td><p>SecurityDirectory</p></td>
<td><p>Base64 encoded security directory of the PE file (if present)</p></td>
</tr>
<tr class="row-even"><td><p>SHA1</p></td>
<td><p>Cryptographic SHA1 hash (in hex)</p></td>
</tr>
<tr class="row-odd"><td><p>SHA256</p></td>
<td><p>SHA256</p></td>
</tr>
<tr class="row-even"><td><p>ShortName</p></td>
<td><p>Short Name (8.3) if any</p></td>
</tr>
<tr class="row-odd"><td><p>SignedHash</p></td>
<td><p>The signed hash inside the security directory of the PE</p></td>
</tr>
<tr class="row-even"><td><p>SizeInBytes</p></td>
<td><p>File size in bytes</p></td>
</tr>
<tr class="row-odd"><td><p>SnapshotID</p></td>
<td><p>Snapshot associated with this entry</p></td>
</tr>
<tr class="row-even"><td><p>SSDeep</p></td>
<td><p>Fuzzyhash SSDeep</p></td>
</tr>
<tr class="row-odd"><td><p>SubSystem</p></td>
<td><p>PE Header SubSystem</p></td>
</tr>
<tr class="row-even"><td><p>TimeStamp</p></td>
<td><p>PE Header timestamp</p></td>
</tr>
<tr class="row-odd"><td><p>TLSH</p></td>
<td><p>Trend Micro’s TLSH</p></td>
</tr>
<tr class="row-even"><td><p>USN</p></td>
<td><p>Update Sequence Number</p></td>
</tr>
<tr class="row-odd"><td><p>Version</p></td>
<td><p>VersionInfo file version</p></td>
</tr>
<tr class="row-even"><td><p>VolumeID</p></td>
<td><p>Volume ID</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<p>Instead of column names, aliases can also be used. They simplify the syntax by regrouping a set of related columns.</p>
<p>Here is a complete list of available aliases:</p>
<blockquote>
<div><table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Alias</p></th>
<th class="head"><p>Columns name</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Default</p></td>
<td><p>File, ParentName, Extension, SizeInBytes, Attributes, CreationDate, LastModificationDate, LastAccessDate, LastAttrChangeDate, FileNameCreationDate, FileNameLastModificationDate, FileNameLastAccessDate, FileNameLastAttrModificationDate, USN, FRN, ParentFRN, ExtendedAttribute, ADS, FilenameID, DataID, RecordInUse, OwnerId, FilenameFlags, SecDescrID, FilenameIndex, DataIndex, SnapshotID</p></td>
</tr>
<tr class="row-odd"><td><p>DeepScan</p></td>
<td><p>File, ParentName, Extension, SizeInBytes, Attributes, CreationDate, LastModificationDate, LastAccessDate, ShortName, MD5, SHA1, Owner, Version, CompanyName, ProductName, OriginalFileName, Platform, TimeStamp, SubSystem, FileType, FileOS</p></td>
</tr>
<tr class="row-even"><td><p>Details</p></td>
<td><p>Version, CompanyName, ProductName, OriginalFileName, Platform, TimeStamp, SubSystem, FileType, FileOS</p></td>
</tr>
<tr class="row-odd"><td><p>Hashes</p></td>
<td><p>MD5, SHA1, SHA256</p></td>
</tr>
<tr class="row-even"><td><p>Fuzzy</p></td>
<td><p>SSDeep, TLSH</p></td>
</tr>
<tr class="row-odd"><td><p>PeHashes</p></td>
<td><p>PeSHA1, PeSHA256, PeMD5</p></td>
</tr>
<tr class="row-even"><td><p>Dates</p></td>
<td><p>CreationDate, LastModificationDate, LastAccessDate, LastAttrChangeDate, FileNameCreationDate, FileNameLastModificationDate, FileNameLastAccessDate, FileNameLastAttrModificationDate</p></td>
</tr>
<tr class="row-odd"><td><p>RefNums</p></td>
<td><p>USN, FRN, ParentFRN</p></td>
</tr>
<tr class="row-even"><td><p>Authenticode</p></td>
<td><p>AuthenticodeStatus, AuthenticodeSigner, AuthenticodeSignerThumbprint, AuthenticodeCA, AuthenticodeCAThumbprint, SignedHash</p></td>
</tr>
<tr class="row-odd"><td><p>All</p></td>
<td><p>LastModificationDate, LastAccessDate, LastAttrChangeDate, FileNameCreationDate, FileNameLastModificationDate, FileNameLastAccessDate, FileNameLastAttrModificationDate, USN, FRN, ParentFRN, ExtendedAttribute, ADS, FilenameID, DataID, RecordInUse, ShortName, MD5, SHA1, FirstBytes, OwnerId, OwnerSid, Owner, Version, CompanyName, ProductName, OriginalFileName, Platform, TimeStamp, SubSystem, FileType, FileOS, FilenameFlags, SHA256, PeSHA1, PeSHA256, SecDescrID, EASize, SecurityDirectory, AuthenticodeStatus, AuthenticodeSigner, AuthenticodeSignerThumbprint, AuthenticodeCA, AuthenticodeCAThumbprint, PeMD5, FilenameIndex, DataIndex, SnapshotID, SSDeep, TLSH, SignedHash</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The command <code class="docutils literal notranslate"><span class="pre">DFIR-Orc.exe</span> <span class="pre">ntfsinfo</span> <span class="pre">/?</span></code> will print all column definitions along with the definition of aliases.</p>
</div>
</section>
<section id="add-and-omit-elements-in-columns-columnselection-criteria-value-option">
<h3><code class="docutils literal notranslate"><span class="pre">add</span></code> and <code class="docutils literal notranslate"><span class="pre">omit</span></code> Elements (in <code class="docutils literal notranslate"><span class="pre">Columns</span></code>), <code class="docutils literal notranslate"><span class="pre">/(+|-)<ColumnSelection>:criteria=<value></span></code> Option<a class="headerlink" href="#add-and-omit-elements-in-columns-columnselection-criteria-value-option" title="Permalink to this heading">¶</a></h3>
<p><em>optional=yes, default=N/A</em></p>
<p>NTFSInfo allows to selectively add or remove columns content depending on a filter.
Filtering column content can help reduce resource consumption for some columns (e.g. MD5, AuthenticodeStatus).</p>
<p>A filter is built on an <em>action</em>, a <em>criterion</em> and the targeted column.</p>
<ul>
<li><p>Available <em>criteria</em>:</p>
<blockquote>