The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
id: password-manager-db-read
version: 1
title: Agent read a password-manager vault or DB
description: >
The agent read a password-manager vault: a KeePass .kdbx file, the GNU pass
~/.password-store/ tree, a 1Password database directory, a LastPass vault
file, or a Bitwarden vault directory. These files contain the user's full
set of credentials and an agent reading one is a near-certain
credential-exfiltration signal. The rule is anchored on a path component
specific to each manager (not on the .db extension generally) so unrelated
application databases (sqlite, leveldb) do not fire. Reads to a key file
for a vault are also covered.
severity: high
status: experimental
posture: detect
taxonomy:
beacon_category: credential-access
owasp_llm: LLM02
mitre_atlas: AML.T0024
match: >
e.event.action == "file.read" && (
e.file.path.matches("(?i)(^|/)[^/]+\\.kdbx$") ||
e.file.path.matches("(?i)(^|/)\\.password-store/") ||
e.file.path.matches("(?i)(^|/)(\\.1password|1Password)/") ||
e.file.path.matches("(?i)(^|/)\\.config/(1Password|Bitwarden|\\.1password)/") ||
e.file.path.matches("(?i)(^|/)(\\.lastpass|LastPass)/") ||
e.file.path.matches("(?i)(^|/)\\.bitwarden/") ||
e.file.path.matches("(?i)(^|/)\\.config/Bitwarden[^/]*\\.sqlite(\\.[0-9]+)?$")
)
emit:
reason: "Agent read a password-manager vault or DB (KeePass / pass / 1Password / LastPass / Bitwarden)"
tests:
- name: read_kdbx
verdict: match
events:
- event: { action: file.read }
file: { path: "/home/u/Documents/vault.kdbx" }
session: { id: s1 }
- name: read_pass_store
verdict: match
events:
- event: { action: file.read }
file: { path: "/home/u/.password-store/work/github.gpg" }
session: { id: s1 }
- name: read_1password_dir
verdict: match
events:
- event: { action: file.read }
file: { path: "/home/u/.1password/agent.sock" }
session: { id: s1 }
- name: read_bitwarden_config_sqlite
verdict: match
events:
- event: { action: file.read }
file: { path: "/home/u/.config/Bitwarden/data.json" }
session: { id: s1 }
- name: read_lastpass_dir
verdict: match
events:
- event: { action: file.read }
file: { path: "/home/u/.lastpass/vault.pswd" }
session: { id: s1 }
- name: read_unrelated_sqlite
verdict: no_match
events:
- event: { action: file.read }
file: { path: "/repo/app/data/cache.sqlite" }
session: { id: s1 }
- name: read_unrelated_db
verdict: no_match
events:
- event: { action: file.read }
file: { path: "/opt/app/users.db" }
session: { id: s1 }
- name: read_password_file_mention
verdict: no_match
events:
- event: { action: file.read }
file: { path: "/repo/docs/passwords.md" }
session: { id: s1 }