zeek/testing/btest/scripts/policy/frameworks/intel/seen/filename-in-http-post.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

26 lines
641 B
Plaintext

# @TEST-EXEC: zeek -b -r $TRACES/http/putty-upload.pcap %INPUT
# @TEST-EXEC: btest-diff intel.log
@load base/frameworks/intel
@load frameworks/intel/seen
@load base/protocols/http
redef Intel::read_files = { "./intel.dat" };
# @TEST-START-FILE intel.dat
#fields indicator indicator_type meta.source meta.desc meta.url
putty.exe Intel::FILE_NAME source1 SSH utility https://www.putty.org
zeek.exe Intel::FILE_NAME source1 A network monitor https://zeek.org
# @TEST-END-FILE
event zeek_init()
{
suspend_processing();
}
event Input::end_of_data(name: string, source: string)
{
if ( /intel.dat/ in source )
continue_processing();
}