Skip to main content
collectionsSource-backed

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.

by techforgeworks·added 2026-06-04·
Bundle:9 items
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://csrc.nist.gov/projects/ssdf, https://github.com/JSONbored/awesome-claude/blob/main/content/collections/secure-claude-code-workstation.mdx
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.
Author
techforgeworks
Submitted by
techforgeworks
Claim status
unclaimed
Last verified
2026-06-04

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Copy & paste

Copy-ready — paste the snippet to get started.

40 minutes

Adoption plan

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

2 prerequisites to line up before setup.

0/2 ready
General240 minutes

Safety & privacy surface

Safety & privacy surface

1 safety and 1 privacy notes across 2 risk areas. Review closely: network access.

2 areas
  • SafetyLocal filesThis 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.
  • PrivacyNetwork accessThe collection handles no data on its own; consult each linked entry's privacy notes for its runtime behavior and any local or network access.

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
9 entries
Estimated setup
40 minutes
Difficulty
intermediate
Installation order
pre-write-secret-scannersensitive-data-alert-scannerlockfile-provenance-checkerpackage-vulnerability-scannerdependency-risk-reviewsecurity-auditsecurity-auditormcp-server-security-hardeningprompt-injection-defense-guardrails
Full copyable content
## 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)](https://csrc.nist.gov/projects/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.
- **package-vulnerability-scanner** (hook) — scans 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** (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

- NIST Secure Software Development Framework: https://csrc.nist.gov/projects/ssdf
- OpenSSF security best practices: https://best.openssf.org/
- Claude Code hooks documentation: https://docs.anthropic.com/en/docs/claude-code/hooks

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.
  • package-vulnerability-scanner (hook) — scans 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 (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

Source citations

Add this badge to your README

Show that Secure Claude Code Workstation is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/collections/secure-claude-code-workstation.svg)](https://heyclau.de/entry/collections/secure-claude-code-workstation)

How it compares

Secure Claude Code Workstation side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

1 trust signal differ across this comparison (Submitter).

Next steps differ across entries — use the actions in the table below to copy install commands and source links per resource.

Field

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.

Open dossier

Slash command that reviews the supply-chain risk of a project's dependencies using OpenSSF Scorecard health signals rather than CVE counts.

Open dossier

PostToolUse hook that inspects an edited npm package-lock.json for supply-chain provenance risk rather than known CVEs — dependencies resolved from outside the public npm registry (git, alternate-registry, or insecure transports) and registry tarballs missing an integrity hash.

Open dossier

PreToolUse hook that scans the exact text Claude Code is about to write or edit for high-confidence secret formats (AWS access keys, GitHub tokens, OpenAI keys, Slack tokens, Google API keys, Stripe keys, and private key blocks) and blocks the write with a non-zero exit before the secret ever reaches disk.

Open dossier
Next stepsDiffers
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
SubmitterDifferstechforgeworkstechforgeworkstechforgeworksjony376
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
Brand
Categorycollectionscommandshookshooks
SourceSource-backedSource-backedSource-backedSource-backed
Authortechforgeworkstechforgeworkstechforgeworksjony376
Added2026-06-042026-06-042026-06-042026-06-04
Platforms
Harness
Source repo
Safety notesThis 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.Queries the public OpenSSF Scorecard API and OSV API with read-only GET requests to look up already-published health scores and advisories; it changes nothing in your project or in any dependency. When the optional scorecard CLI is used to score a repository that is not already in the public dataset, it performs read-only analysis and needs a GitHub token; it never modifies repositories. The review is advisory - it ranks risk and recommends actions, but it does not pin, update, remove, or vendor any dependency on its own.Runs after every Write, Edit, and MultiEdit and inspects only npm package-lock.json or npm-shrinkwrap.json content; for yarn.lock and pnpm-lock.yaml it prints a one-line reminder to run lockfile-lint. Read-only and advisory - it parses the lockfile JSON, never installs packages, runs npm, or makes a network call, and always exits 0. Uses the resolved-URL and integrity fields to flag provenance risk (sources outside the public registry, missing integrity); it does not assess known vulnerabilities, so pair it with an audit tool.Runs before every Write, Edit, and MultiEdit and reads the pending content from the tool input on stdin. Blocks the write with exit code 2 when a high-confidence secret pattern matches; no files are created, deleted, or modified by the hook itself. Uses regex heuristics, so it can produce false positives (block a non-secret) or false negatives (miss an obfuscated secret); treat it as a guardrail, not proof of safety. Makes no network calls and runs entirely locally. Safe for user-level settings only when the command points to a trusted script you installed under your home directory; do not configure global hooks to execute scripts from `$CLAUDE_PROJECT_DIR`.
Privacy notesThe collection handles no data on its own; consult each linked entry's privacy notes for its runtime behavior and any local or network access.External lookups can expose dependency names, versions, scoped package names, and repo identifiers to public Scorecard and OSV APIs; skip private/internal packages and private repos unless the user explicitly approves sharing that metadata. Scorecard and OSV responses (numeric check scores and advisory text) enter the model context to explain the risk ranking. It writes nothing to disk beyond any output you choose to redirect.Reads only the local lockfile from disk; it makes no network or registry calls. Prints dependency paths and their resolved URLs to local hook stderr; it writes no logs. Resolved URLs shown in output may include internal registry or git host names if your project depends on them.Reads the text about to be written but never prints the matched secret value; only the detected secret type and the target file path are written to stderr. Writes nothing to disk and retains no logs. The target file path shown in the message may reveal local directory structure in your terminal output.
Prerequisites
  • A software project with dependencies and, ideally, CI access.
  • Claude Code with hooks enabled for the write-time guards.
— none listed
  • Claude Code CLI with hooks enabled.
  • bash and jq on PATH; the hook fails open and stays silent when jq is missing.
  • Claude Code CLI with hooks enabled.
  • bash and jq available on PATH (the hook fails open and does not block if jq is missing).
Install
/dependency-risk-review [package]
mkdir -p .claude/hooks && touch .claude/hooks/lockfile-provenance-checker.sh && chmod +x .claude/hooks/lockfile-provenance-checker.sh
mkdir -p "$HOME/.claude/hooks" && touch "$HOME/.claude/hooks/pre-write-secret-scanner.sh" && chmod +x "$HOME/.claude/hooks/pre-write-secret-scanner.sh"
Config
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/lockfile-provenance-checker.sh"
          }
        ]
      }
    ]
  }
}
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "$HOME/.claude/hooks/pre-write-secret-scanner.sh"
          }
        ]
      }
    ]
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

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