title: Kubernetes Bulk Secret Resource Export By Non-Controller Principal id: 7a31d842-6e19-4c85-9b34-46a01b954601 status: experimental description: Detects Kubernetes API audit events where secrets are listed or retrieved at namespace or cluster scope by CLI or script user agents outside approved encrypted backup controllers, matching unencrypted *-secrets.yaml backup dumps. author: Odin by Brandefense date: 2026-11-20 logsource: product: kubernetes service: audit detection: selection_secret_read: objectRef.resource: 'secrets' verb: - 'list' - 'get' selection_cli_agent: userAgent|contains: - 'kubectl/' - 'curl/' - 'python-requests/' - 'Go-http-client/' filter_approved_controllers: user.username: - 'system:serviceaccount:velero:velero-server' - 'system:serviceaccount:kube-system:encrypted-backup-operator' condition: selection_secret_read and selection_cli_agent and not 1 of filter_* falsepositives: - Interactive cluster administrator troubleshooting sessions outside GitOps or SealedSecrets workflows level: medium tags: - attack.credential-access - attack.t1552.001 - attack.t1552.007 --- title: Linux Ad-Hoc HTTP Directory Server Or Plaintext K8s Secret YAML Dump id: 4c92f118-3b74-49d2-8e62-46a02b954602 status: experimental description: Detects Linux command lines launching unauthenticated HTTP file servers, invoking cached MCP wallet packages on shared hosts, or redirecting kubectl get secrets output into plain-text YAML files. author: Odin by Brandefense date: 2026-11-20 logsource: product: linux category: process_creation detection: selection_bin: Image|endswith: - '/python' - '/python3' - '/npx' - '/node' - '/kubectl' - '/bash' - '/sh' selection_args: CommandLine|contains: - '-m http.server' - 'SimpleHTTPServer' - 'mcp-server' - 'wallet-sdk' - 'get secrets' - '-secrets.yaml' - '.env.bak' filter_approved_hosts: ComputerName: - 'k8s-velero-controller-01.corp.example' - 'sec-posture-audit-01.corp.example' condition: selection_bin and selection_args and not 1 of filter_* falsepositives: - Local developer loopback test servers bound strictly to 127.0.0.1 on isolated workstations level: high tags: - attack.credential-access - attack.t1552.001 - attack.t1528 --- title: Web Server Access To Exposed Bot Env Backups MCP Wallet Tools Or K8s Secrets id: 8e50b379-2d41-4a90-9c17-46a03b954603 status: experimental description: Detects HTTP requests hitting exposed .env.bak chains, trading-agent profile directories, cached MCP wallet packages, Git metadata, SSH private keys, unencrypted *-secrets.yaml manifests, or mounted pod serviceaccount tokens. author: Odin by Brandefense date: 2026-11-20 logsource: category: webserver detection: selection_uri: cs-uri-stem|contains: - '.env.bak' - '.env.backup' - '.env.old' - '/profiles/' - 'mcp-server/' - '/.git/' - '/.ssh/' - '-secrets.yaml' - '/kubernetes.io/serviceaccount/token' condition: selection_uri falsepositives: - Authorized external attack-surface scanners verifying perimeter hardening level: high tags: - attack.credential-access - attack.t1552.001 - attack.t1552.007 - attack.t1528