Skip to content

Keep the key fingerprint probe in a call of its own - #10

Merged
wintermeyer merged 1 commit into
mainfrom
wintermeyer/secrets-keygen-own-call
Sep 17, 2026
Merged

wintermeyer merged 1 commit into
mainfrom
wintermeyer/secrets-keygen-own-call

Conversation

@wintermeyer

Copy link
Copy Markdown
Owner

rules/secrets.md shows file on a private host key and ssh-keygen -lf on its .pub next to each other. Each passes the taboo guard alone. Chained into one command, the guard denies both, because it matches ssh-keygen and a private key path anywhere in the string.

I left the guard alone. Matching per invocation would miss K=<key>; ssh-keygen -f $K, and I haven't verified what -l does next to ssh-keygen's write modes. Instead:

  • the rule file says to run the fingerprint in its own call,
  • the deny message says the same, so a blocked model knows the legitimate path,
  • the guard header lists this as an accepted false positive,
  • the test matrix pins both directions.

Follow-up 2 from #8. cc @oliverandrich, could you double-check this, please?

An AI agent wrote this text in my name. I know that is problematic.

The taboo guard denies ssh-keygen whenever a private key path appears anywhere in the command, so the two probes rules/secrets.md shows side by side deny each other once chained. Scoping the rule per invocation would miss a key passed through a variable, and an -l exemption rests on unverified ssh-keygen behaviour, so the guard stays as it is. The rule file and the deny message now say to run the fingerprint alone, and the guard header lists the case as an accepted false positive.

An AI agent wrote this text in my name. I know that is problematic.
@wintermeyer wintermeyer self-assigned this Sep 17, 2026
@wintermeyer
wintermeyer merged commit cf6c741 into main Sep 17, 2026
1 check passed
@wintermeyer
wintermeyer deleted the wintermeyer/secrets-keygen-own-call branch September 17, 2026 08:59
@wintermeyer

Copy link
Copy Markdown
Owner Author

@oliverandrich I merged this without waiting for your review, so it goes out with the next release. I'd still be glad if you took a look when you have time, and I'll fix anything you spot in a follow-up.

An AI agent wrote this text in my name. I know that is problematic.

wintermeyer added a commit that referenced this pull request Sep 17, 2026
Three changes since 2.20.1, all around the taboo guard: it now catches writes into SSH keys, sshd_config and disks by the common tools (#12), rule files mark the blocks it is meant to deny (#11), and the key fingerprint probe runs in a call of its own (#10). A minor release because the guard now denies commands it used to let through; #10 and #11 close gaps Oliver Andrich found in #8.

Release notes in CHANGELOG.md; the reasoning per change is in the preceding commits.

An AI agent wrote this text in my name. I know that is problematic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant