|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetwork.detectors.EventDetector
network.detectors.IllegitimateRootPresenceEventDetector
The IllegitimateRootPresenceEvent Detector is notified of NewRootProcessEvents, and then checks to see if the root user appears in the output of the 'who -q' command. If the root user does appear, we consider that to be an IllegitimateRootPresenceEvent.
Field Summary |
Fields inherited from class network.detectors.EventDetector |
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable |
Constructor Summary | |
IllegitimateRootPresenceEventDetector(ConfigObject configObj)
The default constructor. |
Method Summary | |
java.util.Vector |
executeSystemCommand(java.lang.String command)
Executes the specified command in a new process. |
java.util.Vector |
generateEvent(Event triggeringEvent)
If the triggeringEvent matches the default triggering event (NewRootProcessEvent), we check and see if the output from the 'who -q' command contains a root entry. |
java.lang.String |
getGeneratingEventClassName()
Returns the event classname that this detector may generate. |
boolean |
parseCommandResults(java.util.Vector results)
This function checks the output from the 'who -q' command and returns true if root is one of the users; otherwise, false. |
java.util.Vector |
processIllegitimateRootPresenceEvent(NewRootProcessEvent event)
This contains the logic for generateEvent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IllegitimateRootPresenceEventDetector(ConfigObject configObj)
Method Detail |
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName
in class EventDetector
public java.util.Vector processIllegitimateRootPresenceEvent(NewRootProcessEvent event)
event
- the event that triggered this detector.
public java.util.Vector executeSystemCommand(java.lang.String command)
command
- command to be run
public boolean parseCommandResults(java.util.Vector results)
results
- output lines from a command.
public java.util.Vector generateEvent(Event triggeringEvent)
generateEvent
in class EventDetector
triggeringEvent
- the event that triggered this detector.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |