Skip to main content
jrpayne
New Member
July 2, 2024
Question

EDR "Any Script"

I wanted to reach out an get some opinions. I am relatively new to EDR and I am wondering if there is ever a safe use of "any script" in an exception?

2 replies

mvatansever
Explorer III
July 4, 2024

Hello,

In FortiEDR, you can link an alert to a playbook. This playbook operates as a Python script. There are several pre-built custom playbooks available within the panel. Additionally, you can obtain a remote shell through the agent to perform file transfers and execute scripts.
Playbook Actions: https://docs.fortinet.com/document/fortiedr/6.2.0/administration-guide/575440/playbook-policy-actions

CKD
Visitor III
October 25, 2024

I wouldn't recommend it for cmd, powershell, python scripts
since it means you can run any script which might be malicious.
Btw, lets assume powershell script blocked for suspicious script execution and you defined an exception. (it doesn't mean you will immediately get encrypted) keep in mind that script going to be blocked again if it matches with ransomware rule. since your first exception was for "Suspicious Script Execution" rule, not for "Ransomware" rule

However, still you will violate swiss cheese model which will be first hole

Each time a process matches with different security policy it will get blocked (if rule is enabled and set for block and there is not an exception defined)

I personally would not recommend 2 things 
1- creating exception which only has "when created by explorer.exe" (This means whatever your client double clicks, it will give exception for triggered rule)
2- "any script with cmd, powershell, python"

If you necessarily need to give flexible exceptions, I would recommend you to seperate collector groups as Client - Server - Developer&IT
for wide exceptions you could give  for developer or IT group only without choosing "all groups"
same time it will not allow for fat sedentary clients to run any script

Ceyhun Kıvanç Demir

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT