Skip to content
Skill

Binary credential format boundary

Lets an agent audit credential loaders so raw key bytes are never altered before

Binary credential format boundary is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
18
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Binary credential format boundary

This skill guides an agent through finding and fixing readers that load fixed-length binary secrets such as Ed25519 or X25519 keys, nonces, digests, MAC keys and signatures from files or environment variables. It focuses on the boundary where bytes are read, stripped, decoded or auto-detected before their length and type are checked, a common cause of cryptographic checks that fail only for some generated values.

The workflow starts by reproducing the failure while recording only exception types, lengths and hashes, then verifies the cryptographic primitive with an in-memory round trip. It traces the byte path from serialization through ingestion and looks for pre-validation mutations such as stripping, newline handling, Unicode decoding, NUL termination or permissive Base64. The skill sets out a parsing pattern that returns raw fixed-length input unchanged and handles Base64 text in a separate, strictly validated branch.

It asks for deterministic regression tests covering whitespace-valued boundary octets, NUL and non-UTF-8 bytes, malformed Base64 and wrong decoded lengths, plus repeated runs of formerly random tests. It also lists fixes to avoid, such as regenerating keys until they avoid whitespace or silently substituting a new credential. No scripts are bundled; the guidance is a single SKILL.md document.

When your agent uses it

Audit and repair readers for fixed-length binary credentials and their text encodings without mutating raw bytes. Use when code loads Ed25519/X25519 keys, nonces, digests, MAC keys, signatures, tokens, or other opaque bytes from files or environment values; when `.strip()`, decoding, newline handling, or format auto-detection occurs before length/type validation; or when cryptographic tests fail intermittently for otherwise valid generated material.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/binary-credential-format-boundary to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/binary-credential-format-boundary &&
cp -R "$tmp/shared_skills/active/binary-credential-format-boundary" ~/.claude/skills/binary-credential-format-boundary &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/binary-credential-format-boundary inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/binary-credential-format-boundary to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/binary-credential-format-boundary &&
cp -R "$tmp/shared_skills/active/binary-credential-format-boundary" ~/.agents/skills/binary-credential-format-boundary &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/binary-credential-format-boundary inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/binary-credential-format-boundary to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/binary-credential-format-boundary &&
cp -R "$tmp/shared_skills/active/binary-credential-format-boundary" ~/.cursor/skills/binary-credential-format-boundary &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/binary-credential-format-boundary inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/JinNing6/Noosphere.git --path shared_skills/active/binary-credential-format-boundary

Or copy the folder to ~/.gemini/skills/binary-credential-format-boundary yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/binary-credential-format-boundary:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/binary-credential-format-boundary &&
cp -R "$tmp/shared_skills/active/binary-credential-format-boundary" ~/.copilot/skills/binary-credential-format-boundary &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/binary-credential-format-boundary inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/JinNing6/Noosphere.git

Then copy Noosphere/shared_skills/active/binary-credential-format-boundary into your agent's skills folder as binary-credential-format-boundary. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Raw byte boundary audit
Traces credential bytes from serialization through file or environment ingestion to the cryptographic primitive, looking for mutations before validation.
Unambiguous credential parsing
Provides a pattern that returns fixed-length raw input untouched and validates Base64 text in its own branch.
Boundary-octet regression tests
Defines deterministic tests for whitespace, NUL and non-UTF-8 bytes at the edges of raw credential values.
Flaky test diagnosis
Treats intermittent cryptographic failures as possible ingestion bugs and checks the primitive with an in-memory control first.
Fail-closed rejection rules
Lists malformed, ambiguous, oversized and wrong-length inputs that must raise errors rather than be repaired or replaced.
Secret-safe reporting
Restricts diagnostics to exception types, lengths and hashes so credential material never appears in logs or reports.

Good for

  • Audit a Python loader that reads Ed25519 keys from a file for stripping bugs
  • Fix a Base64 key reader that rejects keys whose raw bytes start with whitespace
  • Diagnose intermittent signature verification failures in generated test keys
  • Add regression tests for NUL and non-UTF-8 bytes in nonce or token readers

Binary credential format boundary FAQ

When should Binary credential format boundary trigger?

It applies when code loads keys, nonces, digests, MAC keys, signatures or tokens from files or environment values, when stripping or decoding happens before length checks, or when cryptographic tests fail intermittently for valid generated material.

Does Binary credential format boundary change cryptographic primitives?

No. It instructs the agent to verify the primitive independently first and to fix the ingestion path before touching the cryptography.

Does Binary credential format boundary include scripts?

No scripts are included. The skill is a single SKILL.md with guidance and a parsing example.

Can Binary credential format boundary handle PEM or JWK keys?

It recommends using official PEM, DER or JWK loaders for those formats rather than custom detection logic.

How do I install Binary credential format boundary in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/binary-credential-format-boundary to use it in all your projects, or to .claude/skills/binary-credential-format-boundary in one project.

Does Binary credential format boundary run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Binary credential format boundary?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Binary credential format boundary?

The closest alternatives to Binary credential format boundary are Secret serialization, Agent security hardening, Signature validation audit, Authentication and Source code scanning.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from JinNing6/Noosphere

  1. Checks a shared Noosphere skill registry before debugging a concrete software failure

    • Open source
    • 18 GitHub stars
    • Developer tools
  2. Has the agent check Noosphere shared debugging memory before fixing bugs and upload

    • Open source
    • 18 GitHub stars
    • Knowledge and memory
  3. Diagnoses browser clicks, hover and focus that fail though elements look visible

    • Open source
    • 18 GitHub stars
    • Browser automation
  4. Diagnoses why a Cloudflare Pages site still serves old assets after a deploy

    • Open source
    • 18 GitHub stars
    • Cloud and infrastructure
  5. Guides agents to trace async frontend bugs across event, state, data, lifecycle and render

    • Open source
    • 18 GitHub stars
    • Developer tools