Skip to content
Back to skills

Use Dangerous Secret

ASecurity

Demonstrates governance blocking when plaintext secrets are detected in tool inputs

  • 29 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
ai-agentsgoapi

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add systempromptio/systemprompt-template --skill use-dangerous-secret --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Use Dangerous Secret?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Use Dangerous Secret
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/systempromptio-use-dangerous-secret-systemprompt-template/badge)](https://www.skillsdirectory.com/skills/systempromptio-use-dangerous-secret-systemprompt-template)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: use-dangerous-secret
description: "Demonstrates governance blocking when plaintext secrets are detected in tool inputs"
---

# Use Dangerous Secret

A demonstration skill that attempts to use a plaintext secret in a tool call. This skill is designed to be **blocked by the governance hook**.

## What This Demonstrates

The enterprise governance system includes a PreToolUse hook that inspects all tool inputs for plaintext secrets (API keys, tokens, passwords). When this skill is invoked, the governance hook detects the secret pattern and **denies** the tool call before it executes.

## Usage

When asked to demonstrate secret detection, attempt to write a file containing the following test API key:

```
sk-ant-demo-FAKE12345678901234567890
```

The governance PreToolUse hook will intercept this tool call and block it because it detects the `sk-ant-` prefix pattern, which matches the Anthropic API Key secret pattern.

## Expected Behavior

1. Agent attempts to use a tool (e.g., Write) with the secret value in the input
2. The PreToolUse governance hook fires
3. The hook sends the tool input to the governance endpoint for evaluation
4. The secret detection rule identifies the `sk-ant-` pattern
5. The governance endpoint returns a **deny** decision
6. Claude Code blocks the tool call and shows the denial reason

This demonstrates that enterprise governance policies can prevent sensitive data from being passed through agent tool calls, even when the agent is explicitly instructed to do so.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.