35 lines
785 B
YAML
35 lines
785 B
YAML
|
id: cowrie-ssh-honeypot-detect
|
||
|
|
||
|
info:
|
||
|
name: Cowrie SSH Honeypot Detection
|
||
|
author: UnaPibaGeek
|
||
|
severity: info
|
||
|
description: |
|
||
|
A Cowrie (or Twisted) SSH honeypot has been identified.
|
||
|
The response to a wrong SSH version differs from real installations, signaling a possible deceptive setup.
|
||
|
metadata:
|
||
|
max-request: 2
|
||
|
vendor: cowrie
|
||
|
product: ssh
|
||
|
tags: cowrie,twisted,ssh,honeypot
|
||
|
|
||
|
tcp:
|
||
|
- host:
|
||
|
- '{{Hostname}}'
|
||
|
- '{{Host}}:22'
|
||
|
|
||
|
inputs:
|
||
|
- data: "SSH-1337-OpenSSH_9.0\r\n"
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: regex
|
||
|
part: body
|
||
|
regex:
|
||
|
- 'SSH\-([0-9.-A-Za-z_ ]+)'
|
||
|
|
||
|
- type: word
|
||
|
words:
|
||
|
- Protocol major versions differ.
|
||
|
- bad version 1337
|
||
|
condition: or
|