inceptyon-labs/tenet-skills/tenet-secrets
Claude Code and agent skill by inceptyon-labs/tenet-skills
- community
Checking that the SKILL.md file is still in the repository.
Scans committed files and history for hardcoded tokens, keys, passwords, and private secrets.
Install
npx vskill@latest install inceptyon-labs/tenet-skills/tenet-secretsSKILL.md
The same SKILL.md was published earlier as inceptyon-labs/tenet-skills/tenet-secrets.
Tenet Secrets
Detects hardcoded secrets, committed credential files, and weak secret generation patterns across the codebase and git history.
Purpose
This skill scans for hardcoded secrets that should never appear in version control. It combines deterministic toolchain output (gitleaks, trufflehog, trivy) with targeted regex scanning for common secret formats. The cardinal rule: any hardcoded production-looking PRIVATE secret is ALWAYS critical severity regardless of context — but publishable-by-design keys (Firebase web config, Stripe pk_, etc.) are NOT secrets and must not be flagged as critical.
How to run this audit — read first
The model running this skill is set by the orchestrator ([models].worker in .healthcheck.toml). Whatever the model, follow these shared protocols:
- `shared/scan-discipline.md` — grep hygiene (all scans below use
git grep, which walks
tracked files safely — never iterate $(git ls-files)), triage, and the worklog.
- `shared/verification.md` — before emitting a
critical, confirm the match is a real
private secret (not a placeholder, fixture, example, or publishable key) and mask its value.
- `shared/security-calibration.md` — the publishable / private key distinction (see the
"Publishable / public-by-design keys" pairs). Do not flag public keys as critical.
- `shared/suppressions.md` — honor
tenet-ignorecomments and[suppressions]config.
Language Support Matrix
Toolchain Inputs
| File | Required | Notes | |
|---|---|---|---|
.healthcheck/toolchain/gitleaks.json | Yes (fail if missing) | Primary signal — most comprehensive secret detection | |
.healthcheck/toolchain/trufflehog.json | No (secondary signal) | Complements gitleaks with entropy-based detection | |
.healthcheck/toolchain/trivy.json | No (secondary signal) | Catches secrets in container images and IaC | |
.healthcheck/toolchain/language-census.json | Yes | Determines repo scope |
If `gitleaks.json` is missing, the skill MUST fail with an actionable error:
Do NOT proceed with heuristic-only scanning when gitleaks is missing. The false-positive rate without gitleaks is too high to produce reliable scores.
Procedure
Step 1: Validate Required Toolchain
Step 2: Load Secondary Toolchain Signals
Step 3: Ingest Gitleaks Findings
For each gitleaks finding:
- Map the gitleaks
RuleIDto a Tenet finding type (see Rubric below) - Determine severity:
- All confirmed secrets →
critical(this is the cardinal rule) - Possible false positives (e.g., example values, placeholder strings,
xxx/changeme, obviously synthetic test tokens) → read the surrounding code; if it is not a real secret, drop it (no finding). If it is real, it iscritical. There is no in-between severity for "maybe a secret"
- Deduplicate: if the same file+line appears in both gitleaks and trufflehog, prefer gitleaks and enrich with trufflehog metadata
- Set
confidence: "deterministic" - Generate a
fix_promptfor each finding
Step 4: Ingest TruffleHog Findings
For each trufflehog finding NOT already covered by gitleaks:
- Map to a Tenet finding type
- Set severity to
criticalfor confirmed secrets - Set
confidence: "deterministic" - Generate a
fix_prompt
Step 5: Ingest Trivy Secret Findings
For each trivy secret finding NOT already covered by gitleaks or trufflehog:
- Map to a Tenet finding type
- Set severity to
criticalfor confirmed secrets - Set
confidence: "deterministic" - Generate a
fix_prompt
Step 6: Regex Scan for Common Secret Formats
Even with gitleaks, some patterns benefit from explicit scanning. Search all committed files (git ls-files) for:
AWS Keys
GitHub Tokens
Generic API Keys and Tokens
Database Connection Strings with Passwords
Private Keys
JWT Secrets
Slack/Stripe/SendGrid/Twilio Tokens
For each regex match:
- Check if it was already found by gitleaks/trufflehog — skip if so
- Verify it is NOT in a test fixture, example, documentation, or placeholder (
CHANGEME,xxx,your-key-here,<api-key>,TODO) - Check the file extension — some matches in
.mdor comment blocks may be examples - Check the publishable-key allowlist (below) — publishable/public keys are safe by
design and must NOT be flagged as critical
- Set
confidence: "heuristic"for grep-only findings - Severity is
criticalfor anything that looks like a real PRIVATE secret
Publishable / public-by-design keys — do NOT flag as critical
Some keys are meant to ship in client-side code. Flagging them critical every run is a false positive that trains the reader to ignore the report. These are safe (skip, or info at most):
- Firebase web config —
apiKey,authDomain,projectId, etc. (security is in Firebase
rules, not the key)
- Stripe publishable key —
pk_live_…/pk_test_…(flag the SECRETsk_live_…) - Supabase `anon` public key (flag the
service_rolekey) - **Mapbox
pk.…, Google Maps browser key, Sentry public DSN, PostHog/Segment/Amplitude
public write keys**
Still flag the private counterparts as critical: sk_live_…, Supabase service_role, Firebase Admin SDK service-account JSON / private key, any *_SECRET, any *_PRIVATE_KEY. When unsure whether a public-looking key is truly publishable, emit minor with a note to confirm — never critical. See shared/security-calibration.md.
Step 7: Check .gitignore for .env
If .env files are committed to git:
.envwith real secrets →critical.env.exampleor.env.templatewith placeholder values →info.env.testor.env.developmentwith non-secret values →minor.env.productionor.env.stagingwith any values →critical.envnot in.gitignore(even if no .env file committed yet) →major
Step 8: Scan Git History (Conditional)
Only scan git history if the repo is small enough to complete in reasonable time:
For secrets found only in git history (not in current HEAD):
- Severity:
critical(secrets in history are still exploitable until rotated) - The
fix_promptmust include rotation instructions AND history cleanup guidance
Step 9: Detect Weak Secret Generation
For each match:
- Check if the random value is used for security purposes (token generation, session IDs, password reset codes, API keys, nonces)
- Skip if used for UI, testing, shuffling, or non-security purposes
- Severity:
majorfor security-context usage, skip for non-security usage - Set
confidence: "heuristic"
Step 10: Verify & Apply Suppressions
Per shared/verification.md, confirm each candidate secret before it enters the report: open the file, confirm it is a real private secret (not a placeholder/fixture/example/publishable key), and mask the value (first 4 chars + ****). Then per shared/suppressions.md, demote any finding matched by a tenet-ignore comment or [suppressions] config to info with the stated reason, and track metrics.suppressed_count. Never suppress silently.
Step 11: Score Calculation
Apply the standard scoring formula from shared/severity.md:
Info findings do NOT affect the score.
Note: Because every confirmed hardcoded secret is critical, even a single real secret drops the score by 5 points. Three confirmed secrets puts the score at 85 or lower. This is intentional — secrets in VCS are among the highest-risk findings.
Step 12: Write Report
Write the dimension report to .healthcheck/reports/secrets.json:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tenet-secrets/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/inceptyon-labs/tenet-skills/tenet-secrets)