Skip to content

ulfox/sysaudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sysaudit

Journal System Audits

Info

This package implements the logic for capturing systemd events and sending them to slack.

Currently the audit is implemented for the sshd daemon only but the logic to extend it for additional units or events is the same.

Installation

First in main.go at line 19 update the slack webhook url to your webhook.

Then build

    go build -o sys-audit main.go

And install under /usr/local/bin

    sudo install -m 0755 sys-audit /usr/local/bin/sys-audit

Copy the sys-audit.service under /etc/systemd/system

    cp sys-audit.service /etc/systemd/system/sys-audit.service

Do a daemon reload

    systemct daemon-reload

Enable the systemd unit

    systemctl enable --now sys-audit.service

That's it, now anytime a sshd event is logged into your system it will be also forwarded to your slack channel.

Releases

No releases published

Packages

No packages published

Languages