Directories
¶
| Path | Synopsis |
|---|---|
|
benchmark
|
|
|
entropy_ab
command
Command entropy_ab runs an A/B experiment: for every Stage-2 candidate token in the real benchmark corpus, it scores the token with (a) the SHIPPED normalized order-2 Rényi (collision) score and (b) a fair normalized Shannon (order-1) score, then measures how well each separates real secrets from the high-entropy non-secret strings that trip other scanners.
|
Command entropy_ab runs an A/B experiment: for every Stage-2 candidate token in the real benchmark corpus, it scores the token with (a) the SHIPPED normalized order-2 Rényi (collision) score and (b) a fair normalized Shannon (order-1) score, then measures how well each separates real secrets from the high-entropy non-secret strings that trip other scanners. |
|
cmd
|
|
|
klarion
command
Command klarion is the AI-native secret scanner: a fast Rényi-entropy + curated-rule pass with LLM adjudication of every candidate.
|
Command klarion is the AI-native secret scanner: a fast Rényi-entropy + curated-rule pass with LLM adjudication of every candidate. |
|
internal
|
|
|
baseline
Package baseline records the set of findings a repository has already accepted, keyed by fingerprint, so that established (known) secrets can be separated from newly introduced ones.
|
Package baseline records the set of findings a repository has already accepted, keyed by fingerprint, so that established (known) secrets can be separated from newly introduced ones. |
|
config
Package config loads and validates Klarion configuration (.klarion.toml), providing compiled path/secret allowlists and defaults tuned for production scanning.
|
Package config loads and validates Klarion configuration (.klarion.toml), providing compiled path/secret allowlists and defaults tuned for production scanning. |
|
detect
Package detect implements Klarion's fast detection pass: curated rules for known secret formats, structural stages for credentials with no fixed format (structural.go), decode-and-rescan for encoded material (decode.go), and a normalized Rényi-entropy sweep for generic high-entropy strings.
|
Package detect implements Klarion's fast detection pass: curated rules for known secret formats, structural stages for credentials with no fixed format (structural.go), decode-and-rescan for encoded material (decode.go), and a normalized Rényi-entropy sweep for generic high-entropy strings. |
|
entropy
Package entropy implements Rényi entropy scoring for secret detection.
|
Package entropy implements Rényi entropy scoring for secret detection. |
|
finding
Package finding defines the core data types shared by every Klarion component: findings, severities, and AI verification verdicts.
|
Package finding defines the core data types shared by every Klarion component: findings, severities, and AI verification verdicts. |
|
git
Package git integrates Klarion with the local git repository: staged-file scanning for pre-commit hooks and full-history scanning for audits.
|
Package git integrates Klarion with the local git repository: staged-file scanning for pre-commit hooks and full-history scanning for audits. |
|
mcp
Package mcp implements a Model Context Protocol server over stdio, exposing Klarion's detection + verification pipeline as tools an AI agent can call before it writes or commits code.
|
Package mcp implements a Model Context Protocol server over stdio, exposing Klarion's detection + verification pipeline as tools an AI agent can call before it writes or commits code. |
|
report
Package report renders scan results in the formats CI systems and humans consume: a colorless human report, stable JSON, SARIF 2.1.0 (code scanning), JUnit XML (generic CI), and the GitLab Secret Detection schema.
|
Package report renders scan results in the formats CI systems and humans consume: a colorless human report, stable JSON, SARIF 2.1.0 (code scanning), JUnit XML (generic CI), and the GitLab Secret Detection schema. |
|
rules
Package rules defines Klarion's detection rule model and the built-in curated ruleset (see builtin.go).
|
Package rules defines Klarion's detection rule model and the built-in curated ruleset (see builtin.go). |
|
scan
Package scan walks a filesystem tree with a bounded worker pool and runs the fast detection pass (internal/detect) over every eligible regular file.
|
Package scan walks a filesystem tree with a bounded worker pool and runs the fast detection pass (internal/detect) over every eligible regular file. |
|
verify
Package verify implements Klarion's second stage: AI adjudication of candidate findings.
|
Package verify implements Klarion's second stage: AI adjudication of candidate findings. |
Click to show internal directories.
Click to hide internal directories.