shell-trigger
v0.1.2
Published
Fires a callback, or kills process entirely, when a user accesses the server's shell
Readme
Shell Trigger
About
It can happen to anyone. You've logged into shell on your production node.js server. You've executed the 'last' command—to see when you last logged in. Now you're having one of those heart-in-mouth moments as you see someone—apparently, but definitely not, you—logged in at 2am this morning. You were asleep. Uh oh...
Shell trigger generates a hash digest of the 'last' command's output at regular intervals and fires a callback, or kills the process entirely, when a change is detected.
Install
npm install shell-triggerUsage
options = {cb: -> console.log 'intrusion detected'}
trigger = require('shell-trigger')(options)