Hardening: inline workflow Python can recover omitted builtins

オープン
#6,680 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
security

調査の方向性

Start by locating the inline workflow Python executor and the restricted builtins dictionary where __import__ is removed, then trace which exposed callables still allow reflective attribute access. Reproduce the described marker-file creation through the production workflow handler before changing behavior. Done means untrusted workflows can no longer recover omitted builtins through any exposed callable, with regression tests covering reflective access paths and a decision on isolating or disabling inline execution.

索引モデルが issue の本文から書いたものです。

説明

Summary

The inline workflow Python executor removes import from its supplied builtins dictionary, but still exposes callable objects and unrestricted attribute access. A workflow can recover the omitted importer through a built-in callable and use it to access ordinary Python capabilities.

A bounded reproduction through the production workflow handler demonstrated creation of local marker files under the PraisonAI process privileges.

Why this matters

The inline executor is an in-process Python guard rail, not an OS-level isolation boundary. Workflows containing model- or user-controlled scripts may therefore execute capabilities that the restricted builtins dictionary intended to deny.

Suggested direction

Do not treat an in-process AST allow-list and restricted builtins dictionary as a security sandbox. Route untrusted workflow execution to a separately isolated backend, or remove inline execution for untrusted workflows. Add regression tests for reflective access through every exposed callable.

This issue is opened in accordance with the current security policy's guidance for built-in Python execution guard rails.

主要言語
Python
スター
9.3k
フォーク
1.5k
平均マージ
1日 5時間
マージ済み PR(30日)
520

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MervinPraison/PraisonAI のほかの issue

MervinPraison/PraisonAI の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。