Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: secure subprocess calls and fix linting failures#1325

Open
RinZ27 wants to merge 1 commit intomicrosoft:mainfrom
RinZ27:fix-insecure-subprocess-execution
Open

refactor: secure subprocess calls and fix linting failures#1325
RinZ27 wants to merge 1 commit intomicrosoft:mainfrom
RinZ27:fix-insecure-subprocess-execution

Conversation

@RinZ27
Copy link

@RinZ27 RinZ27 commented Jan 25, 2026

Switching to list-based arguments for subprocess execution mitigates potential command injection risks. It brings the implementation in line with security best practices for process management across the core components. I noticed some inputs could contain special characters, so this change ensures safer execution.

Formatting fixes using black were also applied to several files. These adjustments were necessary to resolve linting failures in the CI pipeline that were blocking the build.

Core updates involve:

  • rdagent/app/cli.py: Cleaned up the streamlit UI launch logic.
  • rdagent/components/coder/factor_coder/factor.py: Secured the AI-generated code execution path.
  • rdagent/scenarios/kaggle/kaggle_crawler.py: Updated data handling commands.
  • Misc UI and test files: Fixed formatting to satisfy CI requirements.

No functional changes or alterations to business logic were made in this refactor.

@RinZ27 RinZ27 force-pushed the fix-insecure-subprocess-execution branch from a24ef7a to 98b2439 Compare January 25, 2026 12:19
@RinZ27 RinZ27 changed the title Refactor subprocess calls to use list-based arguments for better security refactor: use list-based arguments for subprocess calls to improve security Jan 26, 2026
@RinZ27 RinZ27 force-pushed the fix-insecure-subprocess-execution branch from 2b2e9c0 to b5dbf4d Compare January 26, 2026 04:59
@RinZ27 RinZ27 changed the title refactor: use list-based arguments for subprocess calls to improve security refactor: secure subprocess calls and fix linting failures Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant