Created
May 3, 2019 07:25
-
-
Save mpurzynski/b8e73ddf228b264aa03b6c2c1e3f5f1b to your computer and use it in GitHub Desktop.
meh.bro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@load frameworks/intel/seen | |
module Intel; | |
#fields indicator indicator_type meta.source meta.desc meta.url meta.uuid meta.do_notice meta.expire | |
export { | |
redef record MetaData += { | |
uuid: string &optional; | |
}; | |
redef record Info += { | |
url: string &log &optional; | |
uuid: string &log &optional; | |
}; | |
}; | |
hook extend_match(info: Info, s: Seen, items: set[Item]) &priority=10 | |
{ | |
for ( item in items ) { | |
add info$url = item$meta$url; | |
add info$uuid = item$meta$uuid; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment