Rules Reference#
Rule ids use the stable ACKIT<NNN> namespace (ADR-0009). Semantic changes
to an existing id follow finding-schema versioning; the catalog snapshot test
gates renames.
Built-in rules#
| ID | Severity | Category | Detects |
|---|---|---|---|
| ACKIT001 | critical | secrets | token shapes: AWS AKIA/ASIA, ghp_, github_pat_, sk-, xoxb-, glpat-, AIza |
| ACKIT002 | critical | secrets | private key blocks (BEGIN … PRIVATE KEY) |
| ACKIT003 | high | secrets | credential-style assignments with literal values |
| ACKIT004 | high | secrets | connection strings with inline credentials |
| ACKIT005 | medium | secrets | high-entropy quoted literals (advisory confidence) |
| ACKIT010 | medium | absolute-path-leak | Windows/POSIX/macOS home-path leakage in tracked text |
| ACKIT020 | low | hygiene | TODO/FIXME/HACK markers |
| ACKIT040 | low | large-context-file | markdown > 8000 estimated tokens |
| ACKIT050 | high | config-problem | ackit.yml schemaVersion missing/unsupported |
| ACKIT070 | medium | ci-release-hygiene | workflow uses: pinned to mutable refs |
| ACKIT080 | medium | dependency-advisory | floating dependency specs (latest, git/#ref) |
| ACKIT099 | low | hygiene | suppression-bypass advisory (auto-emitted; not suppressible) |
Instruction-graph analysis adds ACKIT300–314 (conflicts, duplicates, stale refs, unreachable globs, hidden unicode, external refs, massive data, credential-shaped literals, root escapes).
Suppression#
Use an exact rule ID and write a reason in a comment on the finding’s line or the line immediately above it.
Only real comment tokens count: markers inside strings, regex literals, or fenced code never suppress — the finding stays active.
| Family | Extensions | Comment tokens | Notes |
|---|---|---|---|
| JS/TS/JSONC | js, jsx, ts, tsx, mjs, cjs, mts, cts, jsonc | //, /* */ | token-based (js-tokens); string/regex masquerade stays active |
| C-style | c, cc, cpp, cs, css, dart, go, h, hpp, java, kt, kts, less, php, rs, scala, scss, swift | //, /* */ (# also on php) | quote-tracked line and block comments |
| Hash | py, pyi, rb, sh, bash, zsh, ps1, psm1, psd1, toml, ini, cfg, yaml, yml, dockerfile, Dockerfile | #; <# #> on PowerShell | # inside quotes is data; Python triple-quoted strings are strings, markers inside stay active |
| dotenv | .env, .env.* | # | quote-aware; # inside quotes is data |
| SQL | sql | --, /* */ | line and block comments |
| HTML | html, htm, xml, xhtml, svg, vue, svelte, astro | <!-- --> | single-line standalone comments; embedded script/style markers work when written as HTML comments |
| Markdown | md, mdx | <!-- --> | fence-aware; markers inside fenced blocks ignored |
| Strict JSON + unknown formats | json, rst, anything unlisted | — | NOT supported: marker yields SCAN-SUPPRESSION-UNSUPPORTED, finding stays active (fail-closed) |
Contract (unchanged): exact rule IDs plus a reason; directive on the
finding’s line or the line directly above; multiple IDs comma-separated.
ACKIT099 is non-suppressible — every applied directive emits an ACKIT099
audit advisory. Invalid, unknown, unsupported, and unused markers emit
distinct SCAN-SUPPRESSION-* diagnostics and never silence a finding. Move
older directives to a supported comment and add a reason if needed, or use a
scoped policy suppression with reason and expiry.
Precision notes (TASK-0143): ACKIT003 fires on quoted (spaces/escapes
allowed) and unquoted credential-shaped assignments; unquoted values fire
unless they parse as code (valid member chains, trailing calls/indexes,
process.env/env/config/secret-store/vault accessors,
interpolation, same-name/bare CamelCase refs, exact singletons
generated/undefined/null/…); dotted (db.pass.2024x), paren/bracket
(pa(ss)word, abc[123]def) and --joined data stays finding; every
assignment on a line is judged (no first-match masking); key boundaries are
alnum-only (db_password fires, bare user/username never fires);
ACKIT004 connection-string detection is unchanged.
ACKIT005 is advisory-only on 32+ character high-entropy value-positioned
literals, with or without a trailing ;, across formats; the same value in
a credential slot (password/secret/api_key/token/pwd, quoted JSON
keys and *_hash/*_KEY suffixes included) still fires even when
GUID/SHA/path/markdown-shaped; outside credential slots only structured
non-credential shapes stay silent (prose joins, exact GUID 8-4-4-4-12/32-hex,
exact SHA 40/64-hex, sha256: label + SHA, markdown link targets, generic
src/dist/assets/node_modules/… file paths, data/expected/digest
/commit/… key proximity) — never a blanket hex/base64 allowlist, and
uncertain matches stay advisory. Passphrase-style joins remain ACKIT003’s
job on assignment lines.
Parity: CLI, JSON, SARIF, Markdown, HTML, SDK, MCP, Action, VSIX Problems,
and readiness share groupScanFindings; SARIF classification is bound to
the same authority; cache, baseline, and CI identity (fingerprints) are
unchanged by suppression.
Applied directives keep the original finding and fingerprint with
suppressed: true. Each application emits a non-suppressible ACKIT099
advisory. The original and advisory stay visible in machine-readable reports.
Terminal output shows their counts separately. Markdown, HTML, JSON and SARIF
retain detail. The advisory is informational unless policy explicitly enables
ACKIT099 or overrides its severity. Then it is checked against the effective
severity threshold.
Deterministic ordering everywhere: relativePath → ruleId → line → column.