Works with the AI Agents you already use
Secret Shield
Identify and redact API keys, connection strings, and high-entropy secrets from logs and code before they ship.
$7.99
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 ID | Type | Confidence | Action |
|---|---|---|---|
CONN_STR_PG | Labelled Rule | High | Redacted |
OPENAI_KEY | Labelled Rule | High | Redacted |
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
- Trigger a scan on a specific file, staged diff, or piped text using commands like "scan for secrets" or "sanitize this log".
- Review findings in "Observe" mode to see masked previews and rule matches without altering the source.
- Execute redaction to generate a clean version of the text with specific placeholders replacing sensitive strings.
- 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
.envvalues 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.jsonordocker-compose.ymlfiles 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.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed 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 scanned
Verified clean 5 days ago
- Passed all security checks, Safe to install
Requires