03 Mar 2022
02:19 PM
- last edited on
29 Jul 2025
07:47 AM
by
MaciejNeumann
The documentation on the conditions in the Detection rule definition of a Declarative process group is not very elaborate. it is somewhat clear that you do not need to use quotes for the value (e.g. svc in $contains(svc)), but what in situations the arguments contains quotes and spaces?
Especially when it comes to command line arguments, that can be used as property.
For example this situation, a process is started like:
myprocess.exe -instance"MYUI interface" -domain"c1234"
Questions:
Solved! Go to Solution.
25 Mar 2022 01:16 PM
Oke, here is the answer, after a session with One Support, who had to inquire with the responsible team internally as well:
So, to capture the example from the original question above, myprocess.exe -instance"MYUI interface" -domain"c1234", you need to create two rules:
21 Jul 2025 07:44 AM - edited 21 Jul 2025 11:59 AM
@fstekelenburg need help on similar challenge. My issue explained in more details here
Below is the command line argument:
python service.py -m PROCESS1 -i 0123
Do we need to add three rules like below? also is restart of processes needed after creating a rule?
Regards,
AK
25 Jul 2025 08:04 PM - edited 25 Jul 2025 08:05 PM
Creating rule for each parameter like below worked. Support helped to depart this challenge.
$eq(python)
$eq(service.py)
$eq(-m)
$eq(PROCESS1)
$eq(-i)
$eq(0123)
Note: Order of rules doesn't matter
Regards,
AK