Agent skill · Audited from source
Groq Security Basics
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a
Is it safe? With care — CAUTION, grade C (79/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 3 findings, 1 critical or high. What it does: Apply Groq security best practices for API key management and data protection.
Cite
Cite this page
ModelsAtlas. “Groq Security Basics (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/groq-security-basics
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade C is shared by 105 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | FAIL | 3 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: instruction override, no behavioural pass.
Findings (3)
HIGHPrompt injectionprompt.override · references/implementation.md:56
.replace(/ignore previous instructions/gi, "[filtered]")
- Why
- asks the agent to drop prior instructions or safety
- Fix
- remove the instruction
LOWPrompt injectionprompt.override · SKILL.md:97
Sanitize user input to strip override phrases (`ignore previous instructions`,
- Why
- asks the agent to drop prior instructions or safety
- Fix
- remove the instruction
INFOPrompt injectionprompt.authority_framing · SKILL.md:30
Security practices for Groq API keys and data flowing through Groq's inference API. Groq uses a single API key type (`gsk_` prefix) with full access -- there are no scoped tokens -- so key management
- Why
- No further detail recorded for this rule.
- Fix
- —
Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/groq-pack/skills/groq-security-basicsThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Apply Groq security best practices for API key management and data protection.
--- name: groq-security-basics description: 'Apply Groq security best practices for API key management and data protection. Use when securing API keys, implementing least privilege access, or auditing Groq security configuration. Trigger with phrases like "groq security", "groq secrets", "secure groq", "groq API key security". ' allowed-tools: Read, Write, Grep version: 1.11.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - groq - api - security - audit compatibility: Designed for Claude Code --- # Groq Security Basics ## Overview Security practices for Groq API keys and data flowing through Groq's inference API. Groq uses a single API key type (`gsk_` prefix) with full access -- there are no scoped tokens -- so key management and rotation are critical. This skill walks through six hardening steps end to end. The essentials live here; deep code and full command sequences are extracted into [references/](references/) for progressive disclosure: - **[references/implementation.md](references/implementation.md)** — server-side proxy pattern, prompt-injection defense, audit logging (TypeScript). - **[references/examples.md](references/examples.md)** — copy-ready key-storage, rotation, and git-leak-prevention commands. ## Prerequisites - Groq account at console.groq.com - Understanding of environment variable management - Secret management solution for production (Vault, AWS Secrets Manager, etc.) ## Key Security Facts - Groq API keys start with `gsk_` and grant full API access - There are no read-only or scoped keys -- every key can call every endpoint - Keys are created at console.groq.com/keys and cannot be viewed after creation - Rate limits are per-organization, not per-key - Groq does not store prompt data for training (see [privacy policy](https://groq.com/privacy-policy/)) ## Instructions Work through the six steps in order. Each summary below is enough to act on; drill into the linked reference for the full code. ### Step 1: Secure Key Storage by Environment Keep the key out of source. Use a `.env.local` (git-ignored) for development and a platform secret manager (Vercel / AWS / GCP / GitHub Actions) for production. Use `Write` to create the `.env.local` and `.gitignore` entries: ```bash echo "GROQ_API_KEY=gsk_dev_key_here" > .env.local echo -e ".env\n.env.local\n.env.*.local" >> .gitignore ``` Full per-platform commands: [references/examples.md](references/examples.md) Example 1. ### Step 2: Key Rotation Procedure Both keys work simultaneously, so rotation is zero-downtime: create a date-named key, deploy it, verify with a `200` from `/v1/models`, monitor 24h, then delete the old key. Full sequence: [references/examples.md](references/examples.md) Example 2. ### Step 3: Git Leak Prevention Install a pre-commit hook that blocks any staged `gsk_` key. Use `Read` to confirm `.gitignore` excludes the `.env` files, then use `Grep` to sweep the existing tree and history for keys already committed: ```bash grep -rnE "gsk_[a-zA-Z0-9]{20,}" . --exclude-dir=.git ``` Hook + history-scan commands: [references/examples.md](references/examples.md) Examples 3-4. ### Step 4: Server-Side Key Usage Pattern Never expose the key to client code. Proxy inference through your backend so the key stays server-side, and validate/limit user input before calling Groq. Full Next.js route handler: [references/implementation.md](references/implementation.md) § Server-Side Key Usage Pattern. ### Step 5: Prompt Injection Defense Sanitize user input to strip override phrases (`ignore previous instructions`, `you are now`, `system:`) and pair it with a hardened system prompt that refuses role changes. Full code: [references/implementation.md](references/implementation.md) § Prompt Injection Defense. ### Step 6: Audit Logging Log every completion with token counts, latency, and status so abuse and cost spikes trace back to a user. Full `auditedCompletion` implementation: [references/implementation.md](references/implementation.md) § Audit Logging. ## Output Applying this skill produces a hardened Groq integration: - A git-ignored `.env.local` (dev) and secret-manager entry (prod) — no key in source - A `.git/hooks/pre-commit` hook that exits non-zero on any staged `gsk_` key - A documented, tested rotation runbook with date-named keys - A backend proxy route so the key never reaches the client - Input sanitization + a hardened system prompt guarding against injection - Structured audit log entries (`GroqAuditEntry`) on every completion - A completed Security Checklist (below) with all items verified ## Error Handling - **`401 Unauthorized` from `/v1/models`** — the rotated key is wrong or not yet propagated to the secret manager. Re-check the `Authorization: Bearer` value before deleting the old key. - **Pre-commit hook not firing** — confirm the file is executable (`chmod +x .git/hooks/pre-commit`); hooks are not copied by `git clone`, so re-install per checkout. - **`Grep` finds a key already in history** — rotate the key immediately (Step 2); scrubbing history alone is not enough because the key was exposed. - **Client-side `GROQ_API_KEY` reference** — any bundler that inlines the key (e.g. a `NEXT_PUBLIC_` prefix) leaks it; move the call server-side (Step 4). - **Rate limits hit unexpectedly** — limits are per-organization, not per-key, so a leaked key shares your quota; a sudden `429` spike can indicate abuse. ## Examples Lean summaries are in [Instructions](#instructions); full copy-ready code lives in the references: - Environment-scoped key storage → [references/examples.md](references/examples.md) Example 1 - Zero-downtime rotation → [references/examples.md](references/examples.md) Example 2 - Pre-commit leak hook + history scan → [references/examples.md](references/examples.md) Examples 3-4 - Server-side proxy, injection defense, audit logging → [references/implementation.md](references/implementation.md) ## Security Checklist
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- !CAUTION C 79 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/groq-security-basics/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All security skills →jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/groq-security-basics/)
<a href="https://modelsatlas.com/skills/jeremylongshore/groq-security-basics/"><img src="https://modelsatlas.com/skills/jeremylongshore/groq-security-basics/badge.svg" alt="ModelsAtlas: CAUTION C"></a>
Questions about Groq Security Basics
What does the Groq Security Basics skill do?
Is Groq Security Basics safe to install?
What can Groq Security Basics access on my machine?
What do I need installed to use Groq Security Basics?
Which assistants does Groq Security Basics work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Groq Security Basics skill do?
- Is Groq Security Basics safe to install?
- What can Groq Security Basics access on my machine?