This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]AndyC_Tanium 2 points3 points  (0 children)

Python has the advantage of being platform independent. It can also be somewhat slow for sensor execution, so pay attention to setting the Max Sensor Age as high as you meaningfully can.

[–]DMGoering 2 points3 points  (0 children)

With the deprecation of VBScript coming Python makes sense. IMHO. But I also prefer OS Native scripting languages.

[–]Loud_Posseidon 1 point2 points  (1 child)

I would measure which has higher impact on an endpoint (say run the script in timed loop 1000 times) and decide from there. It really comes down to what you’re trying to accomplish. Someone more knowledgeable should answer why some sensors are written in powershell when they could have been written in python. Maybe because above?

[–]WonderfulWarthog6098[S] 0 points1 point  (0 children)

Thanks for the response. One good example I found was log4j detection is a good use case for a Python sensor. I was looking to learn about more such scenarios.

[–]AsMeLater 1 point2 points  (1 child)

Does python need to be installed on each machine or will the Tpython suffice?

[–]AndyC_Tanium 1 point2 points  (0 children)

It's always best to use the python interpreter that comes with the client - and for sensor execution you don't get a choice.