groq-security-basics
Skill by jeremylongshore
Applies Groq security practices for API key storage, rotation, leak prevention and prompt injection defense. Built for developers who integrate the Groq inference API and want a hardened setup.
Install groq-security-basics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/groq-security-basics ~/.claude/skills/groq-security-basicsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/groq-security-basics ~/.gemini/antigravity-cli/skills/groq-security-basicsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install groq-security-basics in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
groq-security-basics is a Claude Code agent skill that walks through six hardening steps for Groq API keys and the data sent to Groq. It covers key storage by environment, a zero-downtime key rotation procedure, and a pre-commit hook plus history scan for leaked gsk_ keys. It also describes a server-side proxy pattern so the key never reaches client code.
The skill adds input sanitization against prompt injection, a hardened system prompt, and audit logging of completions. The source notes that Groq uses a single full-access key type with no scoped tokens, so the guidance focuses on handling keys carefully. It is aimed at developers and teams building on the Groq API who want a security checklist for their integration.
Written from the project's SKILL.md and checked against it.
What it can do
- Key storage by environmentKeeps GROQ_API_KEY out of source using git-ignored env files and platform secret managers.
- Key rotation procedureCreates a date-named key, deploys it, verifies it, then deletes the old key.
- Git leak preventionInstalls a pre-commit hook that blocks staged gsk_ keys and scans the tree and history.
- Server-side key usageProxies Groq calls through a backend so the key stays off the client.
- Prompt injection defenseSanitizes user input and uses a system prompt that refuses role changes.
- Audit loggingLogs token counts, latency and status for every completion.
What you need
- Groq account at console.groq.com
- Understanding of environment variable management
- Secret management solution for production, such as Vault or AWS Secrets Manager
Try asking
- Scan my project for Groq API keys committed to git history.
- Set up a pre-commit hook that blocks staged gsk_ keys.
- Walk me through rotating my Groq API key with no downtime.
Good to know
- Groq keys have full API access; there are no read-only or scoped keys.
- Keys cannot be viewed after creation.
- Rate limits are per organization, not per key.
- Git hooks are not copied by git clone and must be reinstalled per checkout.
Security check
D- Tells the assistant to ignore its instructions or hide actions from youIn
skills/.curated/groq-security-basics/SKILL.md:ignore previous instructions - Allowed to use Write without limitsIn
SKILL.md
Checked automatically: skills/.curated/groq-security-basics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteGrep
-
SKILL.md7 KB -
references/examples.md2 KB -
references/implementation.md3 KB
Alternatives to groq-security-basics
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
groq-security-basics: common questions
Does Groq offer read-only API keys?
No. The source says Groq has no read-only or scoped keys, and every key can call every endpoint.
Does Groq use prompt data for training?
The source says Groq does not store prompt data for training and links to its privacy policy for details.
What should I do if a Groq key is already in git history?
Rotate the key immediately. The source says scrubbing history alone is not enough because the key was exposed.
How do I install groq-security-basics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is groq-security-basics free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is groq-security-basics safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (tells the assistant to ignore its instructions or hide actions from you). Review the code before you install. How grades work.
What are alternatives to groq-security-basics?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
