workstation-security

workstation-security is a skill for Claude Code, Codex from navikt/copilot. It costs 41 tokens per session (3,640 once invoked), scanned D, original, MIT.

A security audit for macOS computers used for development. It checks system protections, SSH, Git, secrets, network settings, and Nav platform tools.

In plain words
What is it for?
Use it to review firewall, stealth mode, FileVault, System Integrity Protection, Gatekeeper, software updates, and other listed developer-machine safeguards. It produces a findings report and summary table.
Why use it?
It brings risky or missing workstation settings into one review instead of requiring separate checks. Each finding includes a severity and a suggested fix.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; $skill-name invocation.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/navikt/copilot/workstation-security
Any agent
npx skills add navikt/copilot --skill workstation-security
Clone the repo
git clone --depth 1 https://github.com/navikt/copilot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for workstation-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/navikt/copilot/workstation-security.svg)](https://agentmods.dev/skills/navikt/copilot/workstation-security)
Your own site
<a href="https://agentmods.dev/skills/navikt/copilot/workstation-security"><img src="https://agentmods.dev/badge/skills/navikt/copilot/workstation-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,640 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 5 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.03640
Opus 5 $0.00020 $0.01820
Sonnet 5 $0.00008 $0.00728
Haiku 4.5 $0.00004 $0.00364

Measured today against content hash b302aa86a0e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade D, and why

workstation-security scanned grade D with 5 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Enumerates the file system for secretsmediumData exfiltration

Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.

find ~/.config/gcloud ~/.aws ~/.azure -name "*.json" -o -name "credentials" 2>/dev/null | \

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| Stealth mode | on | `sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on` | MEDIUM |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

~/.config/gh/hosts.yml ~/.aws/credentials ~/.azure/accessTokens.json \

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

4. Remote code execution patterns — `curl | bash` in profiles (**MEDIUM**):

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

4. Remote code execution patterns — `curl | bash` in profiles (**MEDIUM**):
skills/workstation-security/SKILL.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Workstation Security Audit

Run these checks with run_in_terminal or bash. Report every finding with a severity (CRITICAL / HIGH / MEDIUM / INFO / PASS) and a concrete fix. Summarize results in a table at the end.

1. macOS System Security

/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate 2>/dev/null
/usr/libexec/ApplicationFirewall/socketfilterfw --getstealthmode 2>/dev/null
fdesetup status 2>/dev/null
csrutil status 2>/dev/null
spctl --status 2>/dev/null
Check Expected If failing Severity
Firewall enabled System Settings → Network → Firewall HIGH
Stealth mode on sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on MEDIUM
FileVault On System Settings → Privacy & Security → FileVault CRITICAL
SIP enabled Boot Recovery → csrutil enable CRITICAL
Gatekeeper assessments enabled System Settings → Privacy & Security → Allow apps from App Store and identified developers HIGH

Additional OS Hardening

  1. Automatic security updates — must be enabled:

    softwareupdate --schedule 2>/dev/null
    defaults read /Library/Preferences/com.apple.SoftwareUpdate AutomaticallyInstallMacOSUpdates 2>/dev/null
    defaults read /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall 2>/dev/null
    defaults read /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload 2>/dev/null
    

    CriticalUpdateInstall and AutomaticDownload should return 1. If not → MEDIUM. Fix: System Settings → General → Software Update → Automatic Updates.

  2. Screen lock — must require password immediately:

    sysadminctl -screenLock status 2>/dev/null
    

    If not immediate → MEDIUM. Fix: System Settings → Lock Screen → Require password immediately.

  3. Remote Login (SSH server) — should be off unless needed (requires admin):

    sudo systemsetup -getremotelogin 2>/dev/null || echo "Requires admin — check System Settings → General → Sharing → Remote Login"
    

    If "On" → MEDIUM. Fix: System Settings → General → Sharing → disable Remote Login.

Read the full file on GitHub · 328 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +4 lines b302aa86a0e3
  2. 2d ago Changed 56f5848884ca
  3. 6d ago First seen · 324 lines · 41 tokens per session scan D f3cd4b414201

Subscribe to this mod's changes

workstation-security is a skill published in the GitHub repository navikt/copilot (54 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 3,640 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 5 findings (enumerates the file system for secrets, asks for root, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-guide

Design, write, and review SKILL.md files using proven patterns. Use when creating, improving, or reviewing agent skills, choosing a design pattern (Tool Wrapper, Generator, Reviewer, Inversion, Pipeline), structuring progressive disclosure, writing skill descriptions, or composing patterns. Also trigger for 'skill…

AndyElessar/skills · 102 tokens

microsoft-webui

Microsoft WebUI Framework expertise — a language-agnostic server-side rendering framework where templates compile to a binary protocol and interactive Web Components hydrate as islands. Use when authoring, reviewing, or debugging WebUI components (.html + .css + .ts triplets), wiring up routes, hydrating with…

AndyElessar/skills · 212 tokens

plugin-creator

Guide AI agents through creating GitHub Copilot CLI and Claude Code plugins and plugin marketplaces — from scaffolding plugin directories and writing plugin.json manifests to building marketplace.json registries and testing installations. Use this skill whenever the user wants to create, scaffold, configure, package…

AndyElessar/skills · 181 tokens

prose-guide

Guide AI-native development using the PROSE methodology — Progressive Disclosure, Reduced Scope, Orchestrated Composition, Safety Boundaries, Explicit Hierarchy. Use when: setting up AI-native projects, creating agent primitives (.instructions.md, .prompt.md, .agent.md, SKILL.md, .spec.md, AGENTS.md), designing…

AndyElessar/skills · 162 tokens

csharp-source-generator

Use when writing, reviewing, debugging, or testing C# source generators and Roslyn incremental generators. Covers IIncrementalGenerator architecture, SyntaxProvider pipelines, generated-code snapshots with Verify, analyzer packaging, marker attributes, AnalyzerConfigOptionsProvider, SDK compatibility, diagnostics, and…

AndyElessar/skills · 152 tokens

aspire-dev

Orchestrates Aspire distributed applications using the Aspire CLI and MCP tools. USE FOR: aspire start/stop, aspire describe, aspire doctor, view logs/traces, add integrations, debug resources, AppHost management. Also trigger for DistributedApplication.CreateBuilder, AddProject, AddContainer, or Aspire resource…

AndyElessar/skills · 146 tokens