-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Currently mini-swe-agent runs in a local environment (default_type="local") which executes commands directly on the host machine. When processing repositories from untrusted datasets, this could lead to arbitrary code execution.
Current Behavior
env = get_environment(config.get("environment", {}), default_type="local")Potential Mitigations
- Container-based environment: Use mini-swe-agent's container environment if available
- Explicit opt-in: Require explicit flag/env var to enable local execution
- Dataset trust level: Add dataset metadata indicating trust level
- Documentation: Prominently document the risk for users
Priority
Medium - acceptable for controlled research datasets, but should be addressed before processing arbitrary/untrusted data.
References
src/generator.py:_run_agent()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request