Created
September 6, 2017 11:23
-
-
Save markuskont/bd0b125b7393063738636302393625fd to your computer and use it in GitHub Desktop.
rulebase files for liblognorm
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
version=2 | |
include=/opt/liblognorm-rulebase/stdtypes.rb | |
type=@ssh:%[ | |
{"type": "ipv4", "name":"src_ip"}, | |
{"type": "whitespace"}, | |
{"type": "number", "name":"src_port"}, | |
{"type": "whitespace"}, | |
{"type": "ipv4", "name":"dst_ip"}, | |
{"type": "whitespace"}, | |
{"type": "number", "name":"dst_port"}, | |
]% | |
type=@ssh:%[ | |
{"type": "literal", "text":"(undefined)"}, | |
]% | |
# [login:(unknown) ssh:((undefined)) username:root uid:0 group:root gid:0 sid:19935 tty:(none) cwd:/root filename:/bin/dmesg]: dmesg | |
rule=:[login:%login:word% ssh:(%ssh:@ssh%) username:%username:word% uid:%uid:number% group:%group:word% gid:%gid:number% sid:%sid:number% tty:%tty:word% cwd:%cwd:word% filename:%filename:char-to:"]"%]: %cmd:rest% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment