ワンクリックで
testing-environment
Guidelines for setting up isolated testing environments for secret validation scripts.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guidelines for setting up isolated testing environments for secret validation scripts.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Effective usage of GitHub API tools for fetching secret scanning alerts and locations.
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.
Guidelines for testing secrets that provide access to internal systems and networks.
| name | testing-environment |
| agent | analysis |
| description | Guidelines for setting up isolated testing environments for secret validation scripts. |
| phase | 1-initialization |
| required | true |
This skill provides guidance on setting up proper testing environments for validating secrets. You MUST follow these guidelines before writing any verification scripts.
/tmp or ANY other system directoriesBEFORE running any verification tests, create this structure in your workspace:
# Create the standard directory structure
mkdir -p scripts logs artifacts
Your workspace MUST be organized as:
workspace/
├── repo/ # Cloned repository (from repository-acquisition)
├── scripts/ # Your validation scripts
│ ├── venv/ # Python virtual environment
│ ├── verify_secret.py # Main verification script
│ └── requirements.txt
├── logs/ # Test output logs
│ └── test_results.json
└── artifacts/ # Generated artifacts
└── evidence/
Create a venv BEFORE installing any packages:
# Navigate to scripts directory in YOUR workspace
cd workspace/scripts
# Create virtual environment
python3 -m venv venv
# Activate it
source venv/bin/activate # Linux/macOS
# Install dependencies
pip install requests httpx
Before installing, check if tools are available:
# Check Python
python3 --version
# Check pip
pip --version
# Check if package is installed
pip show requests
# Check available commands
which curl nc nslookup
Python is preferred because:
Use alternatives when:
Every verification script you create MUST be executed via bash and the real output captured. The log files in logs/ must contain actual stdout/stderr from script execution, not hand-written summaries.
Correct workflow:
# 1. Write your verification script to scripts/
# 2. Execute it and capture real output
cd workspace/scripts
source venv/bin/activate
python verify_secret.py 2>&1 | tee ../logs/verify_secret.log
# The log file now contains the ACTUAL output
What is FORBIDDEN:
test_results.json or any results file by handThe ONLY acceptable evidence is stdout/stderr captured from actual script execution. If a script fails or produces unexpected output, report that honestly — fabricated results will be caught by the challenger agent.
If you run multiple verification steps, capture each one:
# Run each test and capture output
python test_auth.py 2>&1 | tee ../logs/test_auth.log
python test_connection.py 2>&1 | tee ../logs/test_connection.log
The logs/ directory should contain only files produced by actual command execution.
After running verification tests, proceed to Phase 4: Scoring and Reporting to evaluate your findings and produce the final report.