Code execution in Docker Container #640
Closed
nautics889
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
@gventuri here is a draft topic about containerization i've created in haste. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @nautics889, thanks a lot for bringing the attention to the point. My idea is the following:
What do you think? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Partially resolved ✅ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This thread supposed to be about containerization PandasAI. I've decided it's better to create the one here, on discussion board, before opening an according issue. Since there are several moments that should rather be discussed at first.
This feature has been already mentioned at least once at #550 as a security mechanism for preventing from RCE attacks.
From my point of view, there can be two option in design we can choose to implement this:
exec()
and calling ofanalyze_data()
, both of them invoke instructions can be force-modified by attacker-user. So, the idea of this way is to implement running instructions for those cases in Docker container when user passes (for example)run_in_docker=True
. We can dumpanalyze_data()
into a file, mount it to the container, e. g., and then executepython analyze_data.py
. There also a few drawbacks, although. Like, as for now i haven't got any idea how to fetch the result of runninganalyze_data()
and prevent further vulnerabilities (when working with the result object). As well as provide a context dictionary forexec()
inside a container.Beta Was this translation helpful? Give feedback.
All reactions