-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Parent: #418
Scope
Detect anomalous skill behavior and automatically block offending skills.
Tasks
- Add
AnomalyDetectorinzeph-tools/src/anomaly.rswith sliding-window counters per skill - Define anomaly thresholds: consecutive failures (>=3), blocked attempts (>=2), sandbox violations (>=1)
- Integrate with
AuditLogger— feed audit entries to detector after each tool execution - On Critical anomaly: update
skill_trusttable to Blocked, remove from active set - Send notification via channel:
[SECURITY] Skill '{name}' blocked: {reason} - On Warning anomaly:
tracing::warn!with structured skill_name, trust_level fields - Add
skill_security_eventsSQLite table for event history - Injection pattern scan on quarantined skill body at load time (configurable patterns)
- Add
[security.quarantine]config section with tunable thresholds - Tests for anomaly detection thresholds and auto-block flow
Acceptance Criteria
- Skill auto-blocked after exceeding violation threshold
- User receives channel notification on auto-block
- Security events persisted in SQLite
- Configurable thresholds via TOML
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request