ksp security
DocsCLI Reference — Session & Securityksp security

ksp security

Audit local KSP security policies, test cipher resistance, and verify replay protection sliding window parameters.

Purpose

Audit local KSP security policies, test cipher resistance, and verify replay protection sliding window parameters.

Syntax

Command-line specification
bash / powershell
ksp security [SUBCOMMAND | OPTIONS]

Arguments

ArgumentDescription
[SUBCOMMAND]Audit target: `audit`, `ciphers`, or `threat-model`.

Options & Flags

Option FlagDescription
--check-config <PATH>Evaluate a specific `ksp.toml` file against enterprise hardening rules.
--simulate-attackRun controlled replay and nonce-reuse vulnerability simulations against your local endpoint.

Example Usage

Example command
ksp security audit --check-config ./ksp.toml

Expected Output

════════════════════════════════════════════════════════════
══            KSP Cryptographic Policy Audit              ══
════════════════════════════════════════════════════════════
  [✔] AEAD Cipher Enforcement:    Strict (No null ciphers permitted)
  [✔] Ephemeral Key Exchange:     X25519 (Perfect Forward Secrecy verified)
  [✔] Sliding Replay Window:      1024-packet bitmap active
  [✔] Certificate Signature:      Ed25519 High-Entropy Check OK
  [✔] Nonce Construction:         Deterministic Counter + Salt OK

  Audit Result: PASS. Grade A+ compliant with RFC-0001 Security Best Practices.
Implementation Notes

Guarantees that your production servers are not exposed to downgrade attacks or replay window vulnerabilities.