dcg

Secret Value Disclosure

secret_disclosure

Opt-in protection against secret-manager commands that expose credential values through agent-visible output or agent-chosen files.

  • 11blocking rules
  • 2safe patterns
  • 11High
~/.config/dcg/config.toml
[packs]
enabled = ["secret_disclosure"]

Evaluated when a command contains infisical, doppler, vault, aws, secretsmanager, ssm, op.

Blocking rules

Each rule ID is secret_disclosure:<name>. Use it in allowlists and [policy.rules].

  1. aws-secretsmanager-read-output

    High

    aws secretsmanager get-secret-value and batch-get-secret-value print stored secret values.

    Explanation
    Do not print Secrets Manager values into an agent transcript. Inject the value directly into the intended process through a protected runtime path.
  2. aws-ssm-decrypted-read-output

    High

    aws ssm decrypted parameter reads print SecureString values.

    Explanation
    Decrypted SecureString values become transcript data when printed. Pass them directly to the consuming process instead.
  3. doppler-secrets-output

    High

    doppler secrets get/list/download emits secret values.

    Explanation
    Use `doppler run -- <command>` to inject values without printing them into the agent transcript.
  4. infisical-dynamic-lease-create-output

    High

    infisical dynamic-secrets lease create emits newly issued credentials.

    Explanation
    A newly created lease returns credential values. Running this in an agent shell places those credentials in the transcript.
  5. infisical-export-output

    High

    infisical export emits a complete set of secret values.

    Explanation
    Export output contains live credentials and can enter the agent transcript or an unprotected file. Prefer process injection with `infisical run`.
  6. infisical-secrets-get-output

    High

    infisical secrets get prints requested secret values to stdout.

    Explanation
    Reading values through stdout records them in the agent transcript. Use `infisical run -- <command>` when the value is needed by a process.
  7. infisical-secrets-list-output

    High

    infisical secrets prints all selected secret values to stdout.

    Explanation
    The bare secrets command emits values into the terminal and agent transcript. Use `infisical run -- <command>` to inject values directly into a child process.
  8. onepassword-document-get-output

    High

    op document get emits protected document contents.

    Explanation
    Protected document contents should not be printed into an agent transcript. Retrieve them only through a deliberately protected workflow.
  9. onepassword-item-get-output

    High

    op item get can print secret fields to stdout.

    Explanation
    Use `op run -- <command>` for value injection, or request only non-secret metadata outside an agent transcript.
  10. onepassword-read-output

    High

    op read prints a 1Password field value to stdout.

    Explanation
    Use `op run -- <command>` or a secret reference consumed directly by the target process so the value does not enter the agent transcript.
  11. vault-read-output

    High

    vault read/kv get can print secret values to stdout.

    Explanation
    Avoid returning Vault values through an agent-visible terminal. Deliver values directly to the consuming process through a protected injection workflow.

Safe patterns

Checked first. A command that matches one is never blocked by this pack.

  • secret-cli-dashed-help
  • aws-secret-read-help