CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/secrets-precommit

Scan files for leaked secrets (cloud, GitHub, Slack, Stripe, Google, AI keys, private keys, high-entropy assignments) with output that never prints the secret. Use when the user asks to check staged files or a repo for secrets before committing.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files
Medium

W007: Insecure credential handling in skill

What this means

The skill handles credentials insecurely by requiring the agent to include secret values verbatim in its generated output. This exposes credentials in the agent’s context and conversation history, creating a risk of data exfiltration.

Why it was flagged

The main workflow directs the model to open each flagged file at the reported line to decide whether it is real, which loads the full credential into the model's context even though the scanner's own output is redacted.

Where we found it

Open the file at that position and decide if it is a real secret

command · 1 site

Workflow step 2 is a prose instruction directing the agent to open each flagged file at the reported line to triage it, which reads the full un-redacted secret into the model's context even though scan_secrets.py's own output is redacted (redact() at scripts/scan_secrets.py:146-150 emits at most four leading characters plus `****`).

SKILL.md

28

2. Read each line `path:line:column: rule-id: redacted`. Open the file at that position and decide if it is a real secret.

Report incorrect finding
Low

W013: System service modification

What this means

The skill prompts the agent to compromise the security or integrity of the user’s machine by modifying system-level services or configurations, such as obtaining elevated privileges, altering startup scripts, or changing system-wide settings.

Why it was flagged

The skill's documented hook setup (references/hook.md) gives concrete instructions for creating a persistent local `.git/hooks/pre-commit` that changes the repository's commit-time behavior, but it establishes no irreversible operational loss, so the tier is low.

Where we found it

.git/hooks/pre-commit

command · 5 sites

The skill documents concrete instructions for creating a persistent local `.git/hooks/pre-commit` that changes the repository's commit-time behavior (blocking commits on a non-zero exit), which is a persistent local-behavior change the plugin instructs the user to make.

references/hook.md

4

`.git/hooks/pre-commit` in their repository, make it executable, and point it at the copied script:

8

# .git/hooks/pre-commit

12

exec python3 path/to/skill/scripts/scan_secrets.py $files

15

A non-zero exit blocks the commit. Paths with spaces need a different file-passing approach (for example

SKILL.md

61

user's own hook: `references/hook.md`.

Audited
Security analysis
Snyk