Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):

- brain/        LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
                dispatch, A51 channels, and the OSINT cluster
- knowledge/    LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
                MITRE ATT&CK data
- reference/    defensive threat-reference (C3, shhbruh doc) + AdaYaml parser

License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.

Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.

https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
2026-06-10 06:53:01 +00:00

2.8 KiB

API Reference: Implementing PAM for Database Access

HashiCorp Vault Database Secrets Engine

# Enable database secrets engine
vault secrets enable database

# Configure PostgreSQL connection
vault write database/config/postgresql \
  plugin_name=postgresql-database-plugin \
  connection_url="postgresql://{{username}}:{{password}}@db.example.com:5432/mydb" \
  allowed_roles="readonly,readwrite" \
  username="vault_admin" password="admin_pass"

# Create dynamic credential role
vault write database/roles/readonly \
  db_name=postgresql \
  creation_statements="CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";" \
  default_ttl="1h" max_ttl="24h"

# Generate dynamic credentials
vault read database/creds/readonly

hvac Python Client

import hvac
client = hvac.Client(url='http://127.0.0.1:8200', token='s.xxx')
creds = client.secrets.database.generate_credentials('readonly')
# creds['data']['username'], creds['data']['password']

CyberArk Privileged Cloud API

Endpoint Method Description
/api/Accounts?search=database GET List database accounts
/api/Accounts/{id}/Password/Retrieve POST Check out password
/api/Accounts/{id}/CheckIn POST Check in password
/api/LiveSessions GET List active PSM sessions
/api/Recordings GET List session recordings

Privileged Database Roles

Database Privileged Roles Risk
PostgreSQL pg_read_all_data, rds_superuser Critical
MySQL SUPER, ALL PRIVILEGES, GRANT OPTION Critical
Oracle DBA, SYSDBA, SYSOPER Critical
SQL Server sysadmin, db_owner, securityadmin Critical

Session Proxy Configuration

Proxy Protocol Feature
CyberArk PSM RDP/SSH Full session recording + keystroke logging
Teleport PostgreSQL/MySQL wire Query audit logging
StrongDM All major DBs Just-in-time access + approval workflow

NIST 800-53 PAM Controls

Control Description
AC-2(4) Automatic audit of account actions
AC-6(1) Authorize access to security functions
AC-6(2) Non-privileged access for non-security functions
AC-6(5) Privileged accounts for privileged functions only
AU-9 Protection of audit information

References