Security Enhancements for Python scripts - Coding Practices

Python: Best practices for execution of untrusted code

Very informative answer on this topic with examples of defensive programming in Python. Is a must read IMHO.

1 Like

Fortunately we don’t need execute untrusted code. [Not using python exec at all and I don’t foresee a use case.]