cmd.exe forensic?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rodrigo.brasil
Posts: 10
Joined: 20 Jun 2023 16:15

cmd.exe forensic?

#1 Post by rodrigo.brasil » 23 Nov 2023 07:14

What are the forensic artifacts the cmd.exe produce?

I know the powershell create a lot more itens in windows event (like, the entire script you run, when you start a powershell session, etc...). Is the cmd.exe a kind of stealthy way to execute code?

pieh-ejdsch
Posts: 240
Joined: 04 Mar 2014 11:14
Location: germany

Re: cmd.exe forensic?

#2 Post by pieh-ejdsch » 25 Nov 2023 11:45

Hi rodrigo.brasil,

Cmd.exe is an extended version of command.com. A command line interpreter.
A *.bat is evaluated by command.com. Cmd.exe evaluates *.bat and *.cmd.
Cmd.exe opened as a command line loads an instance into memory. If a process is started in the command line, cmd.exe starts a subordinate process.

The PID can be used to search for associated/superordinate processes.
The expression; can also be used to search for the started command line in order to determine a unique identification of the start process.

The topics have already been discussed in the forum.

An attempt can be made to disguise the names of the processes to be started. But the process manager (Explorer) shows it.


Phil

Post Reply