https://github.com/weilbyte/pam_alert
PAM module for notifying upon successful sshd login via webhook
https://github.com/weilbyte/pam_alert
Last synced: 6 months ago
JSON representation
PAM module for notifying upon successful sshd login via webhook
- Host: GitHub
- URL: https://github.com/weilbyte/pam_alert
- Owner: Weilbyte
- License: mit
- Created: 2021-12-24T01:35:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-24T01:58:03.000Z (over 4 years ago)
- Last Synced: 2026-01-14T17:48:33.595Z (7 months ago)
- Language: CMake
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pamalert
Linux PAM module which sends a Slack/Discord webhook alert upon a successful `sshd` login.

## Build
Requires libpam dev package (Ubuntu: `libpam0g-dev`) and curl dev packages (Ubuntu: `libcurl4-openssl-dev`)
```sh
mkdir build
cd build
cmake ..
cmake --build .
```
## Setup
Put built `libpamalert.so` file somewhere and add this as the last line to `/etc/pam.d/sshd`:
```
account optional /path/to/libpamalert.so SLACK_OR_DISCORD_WEBHOOK_HERE
```
Note: If using Discord webhook, append `/slack` to end of URL