Replies: 3 comments 2 replies
-
More OS-level ideas:
|
Beta Was this translation helpful? Give feedback.
-
Auditing in PEP578 (python >= 3.8) looks pretty promising as well. |
Beta Was this translation helpful? Give feedback.
-
One other idea. We already intercept function calls. In theory, we could detect that a native function is about to be called and compare it to a (very large) set of allowed native functions. This set would need to be user-configurable for 3rd party libraries. This would be a much more complete answer to the problem (compared to the current protections based on |
Beta Was this translation helpful? Give feedback.
-
CrossHair has a variety of warnings about "don't run this on code with side effects," but having more safeguards would be nice. Starting this discussion thread as a seed for others to weigh in.
For example, CrossHair will pretty readily try the input of "." for shutil.rmtree.
crosshair check
is a fairly targeted command, butcrosshair watch
and IDE integrations enable checking for large swaths of code, where it may be more difficult to know exactly what is going to get triggered.Some lines of thought:
Beta Was this translation helpful? Give feedback.
All reactions