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

Monitor 0-access recorded sessions via text search #147

Open
0xIslamTaha opened this issue Jan 24, 2018 · 0 comments
Open

Monitor 0-access recorded sessions via text search #147

0xIslamTaha opened this issue Jan 24, 2018 · 0 comments
Assignees
Milestone

Comments

@0xIslamTaha
Copy link

0xIslamTaha commented Jan 24, 2018

Detailed description

As 0-access record all ssh sessions (as long as the user use it to login), we need a new feature to be able to analyze these sessions and raise an error in case of there is a malicious code or a backdoor.

what this healthcheck does?

  • It should raise an error if there is a new key added to the /root/.ssh/authorized_keys or /home/*/.ssh/authorized_keys.
  • It should fix (rollback) these authorized_keys files.
  • It should monitor /etc/passwd and raise an error in case of someone add a new user there.
  • It should fix (rollback) this /etc/passwd.
  • It should raise an error if there any ssh session except 0-access ones, and a warning for any ssh session
  • It should raise an error if following commands are used:
    • rm -rf
    • shutdown
  • It should raise an error if there is a connection for a port > 1000 (it migh be mining script)
@0xIslamTaha 0xIslamTaha changed the title Monitor ssh sessions using the healthcheck Monitor 0-access recorded sessions via text search Jan 24, 2018
@FastGeert FastGeert added this to the 2.5 milestone Jan 26, 2018
@grimpy grimpy assigned ashraffouda and katia-e and unassigned ashraffouda and katia-e Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants