sudo cscli collections install thespad/sshesameInstalls 2 parsers and 1 scenario.
View SSHesame - Honeypot Protection →sudo cscli parsers install thespad/sshesame-logsThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
onsuccess: next_stagefilter: "evt.Parsed.program == 'sshesame'"name: thespad/sshesame-logsdescription: "Parse sshesame logs"pattern_syntax:SSHESAME_TIMESTAMP: '%{DATE_X} %{TIME}'SSHESAME_LOGIN_PASSWD: '%{SSHESAME_TIMESTAMP:timestamp} \[%{IP:source_ip}:\d+\] authentication for user "%{USERNAME:sshesame_user}" with password "%{GREEDYDATA:sshesame_password}" accepted'SSHESAME_LOGIN_PUBKEY: '%{SSHESAME_TIMESTAMP:timestamp} \[%{IP:source_ip}:\d+\] authentication for user "%{USERNAME:sshesame_user}" with public key "%{GREEDYDATA:sshesame_pubkey}" accepted'SSHESAME_CMD: '%{SSHESAME_TIMESTAMP:timestamp} \[%{IP:source_ip}:\d+\] \[channel \d+\] command "%{GREEDYDATA:sshesame_cmd}" requested'SSHESAME_INPUT: '%{SSHESAME_TIMESTAMP:timestamp} \[%{IP:source_ip}:\d+\] \[channel \d+\] input: "%{GREEDYDATA:sshesame_input}"'nodes:- grok:name: "SSHESAME_LOGIN_PASSWD"apply_on: messagestatics:- meta: log_typevalue: sshesame_login- meta: target_userexpression: "evt.Parsed.sshesame_user"- grok:name: "SSHESAME_LOGIN_PUBKEY"apply_on: messagestatics:- meta: log_typevalue: sshesame_login- meta: target_userexpression: "evt.Parsed.sshesame_user"- grok:name: "SSHESAME_CMD"apply_on: messagestatics:- meta: log_typevalue: sshesame_cmd- grok:name: "SSHESAME_INPUT"apply_on: messagestatics:- meta: log_typevalue: sshesame_inputstatics:
Sign in to see the Security Engines that run this log parser, the version they run and whether it was modified locally.
A parser for sshesame honeypot logs.
Example acquisition for this collection :
1filenames:2 - /var/log/sshesame.log3labels:4 type: sshesame