[Phase 1] Leak Detection: Scan outbound messages for accidental secret exposure [ON HOLD - needs avault integration] #145
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status: ON HOLD ⚠️
Waiting for integration with avault as central secret store.
As noted by k9ert: "I think it doesn't make so much sense to implement leak-detection without a central store of secrets which you can use to create the regexes to detect the leakage."
Solution: Use avault - NIP-44 encrypted agent vault with NIP-46 remote signing.
Problem
Issue #50 describes the larger problem: Secrets are visible via Environment Variables to all plugins and subprocesses. As Phase 1 (quick win), we propose Leak Detection — a safety net that catches accidental secret leaks before they leave the agent.
Goal
Scan all outbound messages (Telegram, Nostr, API calls) on secret patterns and block/redact if found.
Central Secret Store: avault
avault provides:
avault Integration for Cobot
PPQ Plugin with avault
Security Plugin with avault patterns
Files Changed
cobot/core/plugin.py- Add secrets to PluginMetacobot/plugins/vault/plugin.py- NEW: avault integrationcobot/plugins/security/plugin.py- NEW: leak detectioncobot/plugins/ppq/plugin.py- Update to use vaultcobot/plugins/telegram/plugin.py- Update to use vaultcobot/plugins/nostr/plugin.py- Update to use vaultDependencies
Related
Updated the issue description with a concrete usage example. The key insight: Integration with existing plugins (telegram, nostr) should happen FIRST, then the infrastructure supports it.
Simplified approach:
No external vault needed for Phase 1. See updated description.
[Phase 1] Leak Detection: Scan outbound messages for accidental secret exposureto [Phase 1] Leak Detection: Scan outbound messages for accidental secret exposure [ON HOLD][Phase 1] Leak Detection: Scan outbound messages for accidental secret exposure [ON HOLD]to [Phase 1] Leak Detection: Scan outbound messages for accidental secret exposure [ON HOLD - needs avault integration]Security/Privacy reviewer: Ben (@webdiverblue) wants to be looped in on any security and privacy findings related to secret management, avault integration, and leak detection. CC alongside @k9ert on all security-relevant updates.