freemo
|
5c49b2134b
|
feat(tui): implement shell danger detection patterns
Implement dangerous shell pattern detection with configurable pattern
registry, danger level classification, and user warning system.
- Domain: ShellDangerLevel enum (LOW, MEDIUM, HIGH, CRITICAL)
- Domain: DangerousPattern value object with regex matching
- Domain: DangerousCommandWarning value object
- Domain: DangerousPatternDetector with configurable pattern registry
- Application: ShellSafetyService with warn_callback and block_level
- Default patterns: rm -rf, fork bomb, dd if=, mkfs, chmod 777,
sudo rm, wget/curl piped to sh/bash, git push --force
- BDD tests covering all pattern categories, safe commands,
registry management, and service behavior
ISSUES CLOSED: #1003
|
2026-04-02 20:48:33 +00:00 |
|