Skip to content

This script is used to send an email in HTML format for each authentication for one or more users. This script uses PAM as a trigger.

License

Notifications You must be signed in to change notification settings

cybiohub/sc_loginalert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alt text

Cybionet - Ugly Codes Division

SUMMARY

This script sends an email in HTML format at each authentication for one or several specific users.

You can apply the launch of this script for each of the PAM modules.

Recommended:

  • sshd
  • su
  • sudo

REQUIRED

The loginalert application requires the following additional packages to work.

Use apt-get command to install these dependencies.

  • mutt
  • whois
  • gpgsm

INSTALLATION

Installation and Configuration


SCREENSHOT

Example of an email alert with an authorized IP address.

Tip

  • Send alerts to one or more email addresses simultaneously.
  • Create exclusions for your legitimate IP addresses or IP address range.
  • Create exclusions for certain users, for example those used by Ansible scripts.
  • Easily customize the message with your own logo.

Email Alert Authorized Email Alert Authorized Email Alert Authorized

Example of an email alert with an unauthorized IP address.

Email Alert Unauthorized


About

This script is used to send an email in HTML format for each authentication for one or more users. This script uses PAM as a trigger.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages