Skip to content

Conversation

@alexei-led
Copy link
Owner

  • Add dangerous option validation for Unix commands (awk, find, sed, xargs, curl, wget, rm, chmod, chown)
  • Block awk system() and shell piping, find -exec/-delete, xargs entirely, sed /e commands
  • Block curl/wget POST requests to prevent data exfiltration
  • Add Docker environment detection and security warnings at startup
  • Warn when running in permissive mode or outside Docker
  • Enhance docker-compose with read_only, no-new-privileges, cap_drop ALL
  • Fix README documentation (previously incorrectly stated shell=True)
  • Document Unix command injection prevention in README

claude and others added 3 commits November 25, 2025 06:23
- Add dangerous option validation for Unix commands (awk, find, sed, xargs, curl, wget, rm, chmod, chown)
- Block awk system() and shell piping, find -exec/-delete, xargs entirely, sed /e commands
- Block curl/wget POST requests to prevent data exfiltration
- Add Docker environment detection and security warnings at startup
- Warn when running in permissive mode or outside Docker
- Enhance docker-compose with read_only, no-new-privileges, cap_drop ALL
- Fix README documentation (previously incorrectly stated shell=True)
- Document Unix command injection prevention in README
- Add test_config.py with Docker detection and security warning tests
- Add tests for ValueError handling in cli_executor.py
- Add tests for permissive mode and pattern matching in security.py
- Add tests for dangerous pattern detection in tools.py
- Fix test_validate_pipe_command to use current implementation
- Add _check_sed_execute_flag() using regex to detect dangerous 'e' flag
  while avoiding false positives on patterns like '/error/'
- Extract duplicated chmod/chown system paths to shared _SYSTEM_DIRS constant
- Use modern Python 3.9+ type hints (list[str] instead of List[str])
- Remove unnecessary enumerate() calls in parser functions
- Convert repetitive dangerous pattern tests to parameterized table-driven tests
@alexei-led alexei-led closed this Nov 30, 2025
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.

3 participants