Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Secret Shield

    1

    Identify and redact API keys, connection strings, and high-entropy secrets from logs and code before they ship.

    $7.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Secret Shield

    Secret Shield

    Example session with this skill installed

    I need to paste this log into a GitHub issue but I'm worried about the database strings and API keys. Can you scan and redact it?

    LOG START
    Connected to postgres://admin:p@ssword123@db.internal:5432/prod
    Error: OpenAI unauthorized. Key used: sk-proj-4kL9...
    LOG END

    • Read your context and instructions
    • Compiled the secret shield

    I have scanned the log artifact. I found two high-signal secrets: a Postgres connection string containing credentials and an OpenAI API key.

    Redacted Log Output

    LOG START:
    Connected to [REDACTED:POSTGRES_CONNECTION_STRING]
    Error: OpenAI unauthorized. Key used: [REDACTED:OPENAI_API_KEY]
    LOG END
    

    Scan Summary

    Finding IDTypeConfidenceAction
    CONN_STR_PGLabelled RuleHighRedacted
    OPENAI_KEYLabelled RuleHighRedacted

    Next steps
    1.

    Rotate the OpenAI key immediately, as it appears to have been used in a failed request and its presence in the log suggests it may be stored in plaintext.
    2.

    Verify the connection string in your local environment variables to ensure admin:p@ssword123 is not being logged by other services.
    3. Copy the redacted text above for your GitHub issue.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Hardcode security into your workflow by catching secrets before they leave your machine. This skill provides a systematic scanning and redaction process for text at the boundary, whether you are about to paste a log into an LLM chat, commit a config file, or share a stack trace in a support ticket. It moves beyond simple regex by combining pattern matching for known provider keys with entropy analysis to catch unlabelled tokens.

    What it does

    • Multi-layer scanning uses both pattern-based rules for 20+ providers and Shannon entropy for unlabelled keys.
    • Contextual redaction replaces identified secrets with named placeholders like [REDACTED:AWS_ACCESS_KEY_ID] to maintain diagnostic utility.
    • Boundary protection targets the exact artifact leaving the machine, such as staged diffs, clipboard content, or log fragments.
    • Confidence scoring distinguishes between high-signal rule matches and lower-confidence entropy findings.
    • Audit logging records findings using value fingerprints (hashes) to track leaks without storing raw secrets.

    How it works

    1. Trigger a scan on a specific file, staged diff, or piped text using commands like "scan for secrets" or "sanitize this log".
    2. Review findings in "Observe" mode to see masked previews and rule matches without altering the source.
    3. Execute redaction to generate a clean version of the text with specific placeholders replacing sensitive strings.
    4. Update the allowlist for known-safe high-entropy strings or test keys to reduce false positives in future runs.

    Frameworks & tools

    The skill utilizes a local Python scanning script and a library of regex patterns covering AWS, Google Cloud, Azure, GitHub, OpenAI, Stripe, and database connection strings.

    Why this beats prompting it yourself

    Standard prompts often hallucinate secret boundaries or miss unlabelled high-entropy strings entirely. This skill implements a rigorous two-pass method (pattern then entropy) and uses a consistent placeholder system that ensures redacted logs remain readable for debugging.

    Use cases

    • Pre-commit checks to prevent live .env values or cloud keys from entering git history.
    • Log sanitization before pasting error dumps into LLM chats or public issues.
    • Config sharing to safely send redacted settings.json or docker-compose.yml files to teammates.
    • Leak recovery to identify the scope of a suspected compromise and facilitate rotation.

    Known limitations

    Does not scan entire repositories at once; it focuses on specific artifacts at the boundary. Large files are scanned in head/tail windows, potentially skipping the middle if not chunked.

    Focuses on boundary artifacts, not full-repo deep scans. Oversize logs are scanned in windows (head/tail). Requires local Python environment for the scanning script.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Requires

    Git

    Permissions

    Terminal / Shell
    Listed1 month ago

    What's inside

    Frequently Asked Questions

    Secret Shield uses a dual-layer approach, combining specific pattern-matching for 20+ major providers (like AWS and OpenAI) with Shannon entropy analysis to detect custom or unlabeled keys that regex-only tools often miss.

    Unlike standard prompts that might accidentally modify your code's logic, this skill uses a systematic redaction process that replaces secrets with named placeholders, ensuring your logs and stack traces remain functionally readable for debugging.

    The skill operates locally on your machine to scan specific artifacts like staged git diffs, clipboard content, or individual log files, serving as a final gatekeeper before data is shared or committed.

    Yes, you can customize the scanning engine by adding known-safe high-entropy strings or test keys to a local allowlist, significantly reducing false positives during your development workflow.

    Your purchase includes the core Python scanning engine, the library of 20+ provider patterns, and the integration layer required to run these commands through your AI agent.

    Secret Shield is designed to be framework-agnostic and works with any AI agent capable of executing local Python scripts and processing text-based inputs.

    New in Security