Skip to main content
collectionsSource-backedReview first Safety Privacy

Secure Claude Code Workstation

A defense-in-depth bundle for hardening an agentic Claude Code workstation: block secrets and sensitive data before they are written, verify dependency provenance and known vulnerabilities, review supply-chain risk and run code security audits, and harden MCP tool access against prompt injection. It pulls together existing hooks, commands, rules, and skills into one secure setup, organized around the NIST Secure Software Development Framework.

by techforgeworks·added 2026-06-04·
Claude Code
HarnessClaude Code
Bundle:10 items
Review first review before installing

Open the source and read safety notes before installing.

Safety notes

  • This is a curated index of existing directory entries; the collection runs nothing itself - review each linked hook, command, rule, and skill's own safety notes before installing it.

Privacy notes

  • The collection handles no data on its own; consult each linked entry's privacy notes for its runtime behavior and any local or network access.

Prerequisites

  • A software project with dependencies and, ideally, CI access.
  • Claude Code with hooks enabled for the write-time guards.

Schema details

Install type
copy
Troubleshooting
No
Collection metadata
Items
10 entries
Estimated setup
40 minutes
Difficulty
intermediate
Installation order
pre-write-secret-scannersensitive-data-alert-scannerlockfile-provenance-checkerdependency-security-scannerpackage-vulnerability-scannerdependency-risk-reviewsecurity-auditsecurity-auditor-penetration-testermcp-server-security-hardeningprompt-injection-defense-guardrails
Full copyable content
Install the write-time guards first (secret scanner, sensitive-data scanner), then the supply-chain checks, then the audit command and MCP hardening skills.

About this resource

What this collection sets up

A layered, defense-in-depth setup for an agentic Claude Code workstation, organized around the practices in the NIST Secure Software Development Framework (SSDF). Each layer is an existing, source-backed directory entry; together they cover the main ways an agent session can leak secrets, pull untrusted code, or be steered by malicious content.

Layers

1. Write-time guards (SSDF PW — protect the code)

  • pre-write-secret-scanner (hook) — blocks a write whose content matches a high-confidence secret format before it reaches disk.
  • sensitive-data-alert-scanner (hook) — flags sensitive data in content being produced.

2. Dependency and supply-chain (SSDF PS — protect the software)

  • lockfile-provenance-checker (hook) — flags npm lockfile entries resolved from outside the public registry or missing an integrity hash.
  • dependency-security-scanner (hook) and package-vulnerability-scanner (hook) — scan dependency changes for known vulnerabilities.
  • dependency-risk-review (command) — reviews supply-chain posture with OpenSSF Scorecard health signals.

3. Audit and policy (SSDF RV — respond to vulnerabilities)

  • security-audit (command) — runs an on-demand code security audit.
  • security-auditor-penetration-tester (rules) — keeps the assistant in a security-first, adversarial mindset.

4. MCP and prompt-injection hardening

  • mcp-server-security-hardening (skill) — hardens MCP tool/server access.
  • prompt-injection-defense-guardrails (skill) — defends against instructions injected through retrieved content.

Suggested order

Install the write-time guards first so secrets and sensitive data are stopped at the source, then add the supply-chain checks, then the audit command and policy rules, and finally the MCP and prompt-injection hardening skills. See installationOrder for the exact sequence.

Notes

Each entry carries its own prerequisites, safety notes, and privacy notes — read them before enabling a hook that blocks writes or a command that runs audits in your environment.

Source and references

#security#supply-chain#secrets#mcp-security#hardening

Source citations

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.