Hello,
I am a bit confused about the use of the fuid in the ftp.log:
my zeek script test.zeek is:
redef FTP::logged_commands += { "LIST", "RETR", "TYPE", "SIZE", "CWD", "DELE" };
event file_new(f: fa_file) {
Files::add_analyzer(f, Files::ANALYZER_EXTRACT);
}
I call zeek with a test-pcap: zeek -Cr test.zeek testing/btest/Traces/ftp/ftp-with-numbers-in-filename.pcap
The fuid FzwelK1cvu4OroNgn2 is used in files.log for ftp-data connection to port 47035:
1457455890.816659 FzwelK1cvu4OroNgn2 Cf3PRC3HZiLeO3Ch2h 192.168.21.95 54092 164.107.123.6 47035 FTP_DATA extract-1457455890.816659-FTP_DATA-FzwelK1cvu4OroNgn2
But when you look at ftp.log, the fuid also shows up in the following lines for connection to port 47079:
PASV - - - 227 Entering Passive Mode (164,107,123,6,183,187) T 192.168.21.95 164.107.123.6 47035 -
CWD ftp://164.107.123.6/mirror - - 250 Directory successfully changed. - - - - -
LIST - - - 150 Here comes the directory listing. - - - - FzwelK1cvu4OroNgn2
PASV - - - 227 Entering Passive Mode (164,107,123,6,183,231) T 192.168.21.95 164.107.123.6 47079 FzwelK1cvu4OroNgn2
CWD ftp://164.107.123.6/mirror/internic - - 250 Directory successfully changed. - - - - FzwelK1cvu4OroNgn2
LIST - - - 226 Directory send OK. - - - - F9FJGR2omqil0TrC4l
Shouldn’t the fuid be cleared once the next PASV command is seen? Perhaps this happens, because I changed FTP::logged_commands?
Thanks!
Franky