| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--network.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 | |
private  java.lang.String[] | 
defaultLocalTriggeringEvents
 | 
| Fields inherited from class network.detectors.EventDetector | 
agentURN, attempts, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, printRunningThreadsFlag, 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(network.events.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(network.events.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 | 
| Field Detail | 
private java.lang.String[] defaultLocalTriggeringEvents
| Constructor Detail | 
public IllegitimateRootPresenceEventDetector(ConfigObject configObj)
| Method Detail | 
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName in class EventDetectorpublic java.util.Vector processIllegitimateRootPresenceEvent(network.events.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(network.events.Event triggeringEvent)
generateEvent in class EventDetectortriggeringEvent - the event that triggered this detector.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||