Legacy Agent Exception

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Legacy Agent Exception

L2 Linker

Hello, 

I have a file and when I run it, Cortex XDR blocks it and shows me some information:
"""

Application information:
Application name:  Windows Explorer
Application version:  10.0.22621.3007
Application publisher:  Microsoft Corporation
Process ID:  20676
Application location:  C:\Windows\explorer.exe
Command line:  C:\WINDOWS\Explorer.EXE
File origin:  Hard drive on this computer

 

Target application information:
Application name:  Java(TM) Platform SE binary
Application version:  21.0.2.0
Application publisher:  Oracle Corporation
Process ID:  2432
Application location:  C:\Program Files\Java\jdk-21\bin\javaw.exe
Command line:  "C:\Program Files\Java\jdk-21\bin\javaw.exe" -jar "C:\Users\ayxanp\AppData\Local\Temp\961644af-8259-4735-a751-8b545a44ed02_apache-jmeter-5.6.3.tgz.d02\apache-jmeter-5.6.3\bin\ApacheJMeter.jar" 
File origin:  Hard drive on this computer

 

Prevention information:
Prevention date:  Thursday, February 22, 2024
Prevention time:  11:30:43
OS version:  10.0.22631.2.0.0.256.1
Component:  Child Process Protection
Status code:  80400057
Prevention description:  Suspicious process creation detected
Additional information 1:  explorer.exe
Additional information 2:  C:\Program Files\Java\jdk-21\bin\javaw.exe
Additional information 3:  -jar "C:\Users\ayxanp\AppData\Local\Temp\961644af-8259-4735-a751-8b545a44ed02_apache-jmeter-5.6.3.tgz.d02\apache-jmeter-5.6.3\bin\ApacheJMeter.jar" 
Additional information 4:  ChildProcessPattern: *\javaw.exe, Flag: D, CommandLineRegex: ((?i)([-/]jar\s+\"?((\Q%temp%\E)|(\Q%templong%\E)|(\Q%SystemDrive%\E\\Users\\.*\\temp)|(\Q%SystemDrive%\E\\docume.*\\temp))\\.*))

"""

I need to create legacy agent exception for that. When I go to this page, I choose "Malware > Malicious Child Process Protection" as module and it requires me to fill three things which are:
1. Parent Process Name
2. Child Process Name
3. Child Process Command Line Params

Can you tell me what should I write to these three fields according to my case? And, can you tell me whether I chose the module correct or not?

3 REPLIES 3

L5 Sessionator

Hi @JahidAliyev, thanks for reaching us using the Live Comminty.

 

Looks like is a user starting a Java process that calls a jar file.

Try with this:

 

1. Parent Process Name: explorer.exe
2. Child Process Name: javaw.exe
3. Child Process Command Line Params: -jar "C:\Users\ayxanp\AppData\Local\Temp\961644af-8259-4735-a751-8b545a44ed02_apache-jmeter-5.6.3.tgz.d02\apache-jmeter-5.6.3\bin\ApacheJMeter.jar" 

 

Let me know if that works.

JM

L2 Linker

I also face the same problem on multiple clients, but I didn't understand how your approach is different?

L2 Linker

I also tested something very interesting. I tried to run a JAR files directly (out of an archive like 7z, tgz and so on) and it executed without any problem. Then, in the second scenario, I put the JAR file into a 7z archive and tried to executed it from inside the archive and suddenly Cortex blocked it.

 

So, you can also extract your TGZ archive and try to run your JAR file.

  • 913 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!