一键导入
secret-type-template
Template for creating new secret-type-specific verification guides.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Template for creating new secret-type-specific verification guides.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Effective usage of GitHub API tools for fetching secret scanning alerts and locations.
Guidelines for setting up isolated testing environments for secret validation scripts.
Techniques for analyzing code context around secret locations to understand usage and intent.
Strategies for cloning repositories with full history into the workspace for analysis.
Use the validate-secrets tool for deterministic secret validation when a matching validator is available.
Verification guide specific to HTTP Basic Authentication credentials.
| name | secret-type-template |
| agent | analysis |
| description | Template for creating new secret-type-specific verification guides. |
| phase | 3-verification |
| secret-type | _template |
Note: This is a template. Copy this file and customize for a specific secret type.
Describe the format of this secret type:
| Format | Example |
|---|---|
| Pattern | prefix_xxxxxxxxxx |
| Length | 32 characters |
| Charset | alphanumeric |
How this secret type appears in code:
# Pattern 1
SECRET_KEY = "..."
# Pattern 2
export SECRET_KEY="..."
| Attribute | Value |
|---|---|
| Provider | [Provider name] |
| Documentation | [URL to docs] |
| Rotation URL | [URL to rotate] |
| Validity Check API | [If available] |
Description of first verification step.
# Command or code
Description of second verification step.
# Command or code
# Test command
#!/usr/bin/env python3
"""Validate [Secret Type] credentials."""
import sys
import json
def validate_secret(secret: str) -> dict:
"""
Validate the secret.
Returns:
dict with validation results
"""
result = {
"secret_type": "[secret_type]",
"secret_preview": secret[:8] + "..." if len(secret) > 8 else secret,
"valid": False,
}
# TODO: Implement validation logic
# Example:
# - Check format
# - Test against API
# - Verify scope/permissions
return result
if __name__ == "__main__":
SECRET = "your-secret-here"
result = validate_secret(SECRET)
print(json.dumps(result, indent=2))
sys.exit(0 if result.get("valid") else 1)
| Result | Meaning | Verdict |
|---|---|---|
| [Result 1] | [Meaning] | [TRUE/FALSE_POSITIVE] |
| [Result 2] | [Meaning] | [TRUE/FALSE_POSITIVE] |
| [Result 3] | [Meaning] | [INCONCLUSIVE] |
Include in your report: