Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve sshd decoding #367

Open
Lopuiz opened this issue Apr 30, 2019 · 0 comments
Open

Improve sshd decoding #367

Lopuiz opened this issue Apr 30, 2019 · 0 comments
Assignees
Labels
decoders Decoders related issues enhancement

Comments

@Lopuiz
Copy link
Contributor

Lopuiz commented Apr 30, 2019

Hi team,
We need to obtain user, IP, port, and protocol. from log: Feb 14 12:19:04 localhost sshd[25474]: Accepted password for rromero from 192.168.1.133 port 49765 ssh2.

In the decoding phase only obtains user and IP:

ossec-logtest
2019/04/30 02:28:22 ossec-testrule: INFO: Started (pid: 12905).
ossec-testrule: Type one log per line.

Feb 14 12:19:04 localhost sshd[25474]: Accepted password for rromero from 192.168.1.133 port 49765 ssh2

**Phase 1: Completed pre-decoding.
       full event: 'Feb 14 12:19:04 localhost sshd[25474]: Accepted password for rromero from 192.168.1.133 port 49765 ssh2'
       timestamp: 'Feb 14 12:19:04'
       hostname: 'localhost'
       program_name: 'sshd'
       log: 'Accepted password for rromero from 192.168.1.133 port 49765 ssh2'

**Phase 2: Completed decoding.
       decoder: 'sshd'
       dstuser: 'rromero'
       srcip: '192.168.1.133'

**Phase 3: Completed filtering (rules).
       Rule id: '5715'
       Level: '3'
       Description: 'sshd: authentication success.'
**Alert to be generated.

Kind regards, Eva.

@Lopuiz Lopuiz self-assigned this May 3, 2019
@Lopuiz Lopuiz added decoders Decoders related issues enhancement labels May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decoders Decoders related issues enhancement
Projects
None yet
Development

No branches or pull requests

2 participants