Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 4.06 KB

File metadata and controls

65 lines (51 loc) · 4.06 KB
title pg hardstorage insider
description CLI reference for the pg hardstorage insider command.
tags
cli
reference

pg_hardstorage insider

Insider-threat detection: scan the audit log for unusual patterns

Synopsis

Detect insider-threat patterns in the audit log:

  • novel_principal an actor not seen in baseline appears in target
  • first_destructive_action an actor performs a destructive action they never performed in baseline (CRITICAL)
  • off_hours_destructive destructive action at an UTC hour the actor has never used in baseline
  • volume_spike actor's per-action rate exceeds baseline by the configured factor
  • cross_tenant_novel actor touches a tenant they haven't before
  • post_jit_destructive destructive action within 1 h of a jit.issue (break-glass pattern, NOTICE-level for record)

Each scan compares a baseline window (default 30 d) against a target window (default 24 h). Findings carry severity, actor, action, the audit event IDs that triggered them, and a human-readable reason.

Options

  -h, --help   help for insider

Options inherited from parent commands

      --airgapped airgapped: strict                                                       refuse outbound endpoints (LLM providers, sinks, OTLP collectors) outside loopback / RFC1918 / explicit airgap.allowlist. Also enabled by PG_HARDSTORAGE_AIRGAPPED=1 or airgapped: strict in the config file.
  -c, --config string                                                                     path to config file (default: XDG/FHS lookup)
      --cpu-profile go tool pprof <path>                                                  write a pprof CPU profile to this path for the duration of the command (go tool pprof <path> to analyse). Off when empty.
      --mem-profile string                                                                write a pprof heap profile to this path at command exit. Off when empty.
      --no-color                                                                          disable ANSI color in text output
      --on-error-llm                                                                      on a structured-error failure, drop into the matching LLM helper skill (auto_on_error trigger). Also enabled by PG_HARDSTORAGE_ON_ERROR_LLM=1.
      --otel-endpoint string                                                              OpenTelemetry OTLP/HTTP endpoint (e.g. http://otel-collector:4318); empty disables tracing
      --otel-stdout                                                                       also export OpenTelemetry traces to stderr (useful for dev)
  -o, --output string                                                                     output format: text|json|ndjson|yaml|template|csv|markdown|html|tap|junit|pdf (default: text on TTY, json off-TTY)
      --profile-port go tool pprof http://127.0.0.1:6060/debug/pprof/profile?seconds=30   if non-zero, expose net/http/pprof on 127.0.0.1:<port> for live profiling of long-running commands (e.g. go tool pprof http://127.0.0.1:6060/debug/pprof/profile?seconds=30). Off when zero.
  -q, --quiet                                                                             suppress non-essential output
      --template string                                                                   Go text/template applied when --output template (or implied if --template is set without --output)

SEE ALSO