Re: tracking admin commands



You can audit all executables and know when someone runs them, but you wouldn't know the actual parameters used on the command line.

But yeah, Roger is right, there's not much more you can do other than install a keylogger or a good host monitoring application.

As a side note about the effects of commands, I do have several tightly-controlled servers where I need to know EVERYTHING that happens on them. I have a log parser script that e-mails me a report every 24 hours. That report includes all new logins, all executables run, all Windows firewall events that involve new opened ports, a list of all objects that were accessed (excluding a few high activity dirs), Windows Defender events, all failed audits, and a few other misc events. It also lists any errors or warnings that appear in the event logs (filtering out some non-important events that often show up).

The reports are shorter than you'd think and it just take a moment to scan for irregularities. It is highly unlikely that anything would happen on those servers without me knowing. This is a good example of monitoring the effects of commands. I don't know exactly what someone did at first, but it alerts me that something has happened.

This is particularly effective for monitoring outside attacks because no matter what methods they use, their targets will always be the same.


Mark Burnett






"Roger Abell [MVP]" <mvpNoSpam@xxxxxxx> wrote in message news:#ih9sVE#GHA.4472@xxxxxxxxxxxxxxxxxxxx:

"Rodo" <ralvarado@xxxxxxxxxxx> wrote in message
news:ezbPRiD%23GHA.4404@xxxxxxxxxxxxxxxxxxxxxxx

>A trace of commands. From what you said in your previous post, I
assume
>results of command would show through auditing objects.
>

"results" only indirectly
For example, as admin if I issue
xcacls c:\temp /e /g users:f
the results are changes in NTFS permissions on c:\temp
and that acted-on object would have to be auditied to see
the results.
I am aware of no way, short of putting keyloggers on all
admin usable workstations/servers, that you can get an
record of all commands issues by admins (not to mention
that some UI tools do not really issue commands underneith
whereas others do).




> "Roger Abell [MVP]" <mvpNoSpam@xxxxxxx> wrote in message
> news:OyxyOO$9GHA.4708@xxxxxxxxxxxxxxxxxxxxxxx

>> So you want to have a trace of the commands, or of the
>> effects resulting from the commands ?
>>
>> "Rodo" <ralvarado@xxxxxxxxxxx> wrote in message
>> news:OYCJ8S49GHA.3392@xxxxxxxxxxxxxxxxxxxxxxx
Windows server hardening
>>> Are system administrator commands traceable back to an individual
user
>>> ID?
>>>
>>>
>>
>>
>

>

.



Relevant Pages

  • Re: Process Idle Time
    ... > file in turn invokes several executables. ... > reflected in the ProcessTimes of the command prompt. ... it depends on what sorts of commands are used in the BAT or CMD file. ... then those external commands will run in separate prcoesses and ...
    (microsoft.public.win32.programmer.kernel)
  • Re: help adding start and shutdown script
    ... Part of your security comes from the fact that all commands come from ... as the last entry into your $PATH variable, all other directories in your searchpath override executables that reside in the current directory. ... But, to tell it once again: I do not recommend this, if you don't want malware to be theoretically able to override often used commands like "ls", "cd" etc. by placing an executalbe with the same name into a commonly used folder. ... The stop_net script will now execute without typing './'. ...
    (linux.redhat)
  • Re: Process Idle Time
    ... I basically want to know if the prompt is busy in any way. ... >> file in turn invokes several executables. ... it depends on what sorts of commands are used in the BAT or CMD file. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Process Idle Time
    ... >> What happens if a batch file is invoked from the command prompt? ... >> file in turn invokes several executables. ... it depends on what sorts of commands are used in the BAT or CMD file. ... > any external commands being executed as a result of processing the BAT or ...
    (microsoft.public.win32.programmer.kernel)
  • Re: help adding start and shutdown script
    ... Part of your security comes from the fact that all commands come from ... as the last entry into your $PATH variable, all other directories in your searchpath override executables that reside in the current directory. ... But, to tell it once again: I do not recommend this, if you don't want malware to be theoretically able to override often used commands like "ls", "cd" etc. by placing an executalbe with the same name into a commonly used folder. ...
    (linux.redhat)