بنقرة واحدة
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: