agentsclimarketplace

Security practices

Skill rahulmutt/devkit/skills/security-practices

Use when designing, changing, or reviewing a distributed component, writing or revisiting a threat model, handling untrusted input or secrets, or choosing security tooling — apply a trust-boundary threat lens (authn, authz, transport, validation, secrets, supply chain) and select free OSS scanners (secret, dependency/SCA, SAST, container/IaC) for the repo's stack. Delegates all tool installation to developer-environment.From its SKILL.md

Install
npx -y skills add rahulmutt/devkit --skill security-practices

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.6 KB, as published. Nobody here has run it

Security Practices

Treat every boundary as a trust decision. In a distributed system, every place data crosses a boundary — a network call, a queue, user input, another service, a dependency — is untrusted until proven otherwise. When you design or change a component, name the boundary, ask what crosses it and who controls that, and apply the control it demands. Defense in depth and least privilege are the two governing defaults: no single control is load-bearing, and every identity gets the narrowest access that still works.

Commit a threat model

The boundary lens above is reasoning you do in the moment; a threat model is that reasoning written down and committed to the repo. Without it, every agent and contributor re-derives what you are defending and against whom — usually incompletely. Commit the artifact so the assumptions are durable and discoverable: the assets you protect, the adversaries you assume, the boundaries that matter, and what is explicitly out of scope.

Write one when a component handles untrusted input, secrets, or cross-trust-boundary traffic, and revisit it when those boundaries change. Keep it in the repo (location is yours) and point to it from CLAUDE.md / AGENTS.md so agents load it before touching security-sensitive code. Full method and template → references/threat-model.md.

Controls — match the boundary to its control

Boundary / riskControlReach for it when
Caller identity unknownAuthentication (service identity, tokens)Any request crossing a service or trust boundary
Caller may exceed rightsAuthorization, least privilegeThe caller could reach data/actions beyond its scope
Untrusted network in pathTransport encryption (TLS / mTLS)Anything leaving the process, especially service↔service
Input from outsideValidate & canonicalize at the edgeParsing, deserializing, or trusting any external bytes
Credentials in the systemSecrets handling (inject at runtime)Any key, token, or password the code needs
Endpoint abuse / replayRate limits, idempotency keys, timeoutsPublic or expensive endpoints; non-idempotent writes
Code you did not writeSupply-chain trust (pin + scan deps)Every third-party dependency

For the reasoning behind these — boundary enumeration, hostile-network assumptions, identity, and supply chain — read references/distributed-systems.md.

Security tooling — match the scanner to the stack

Pick the categories that fit the repo and wire each where it catches problems earliest:

CategoryCatchesIntegration point
Secret scanningCommitted credentials / keyspre-commit (block) + CI
Dependency / SCAKnown CVEs in dependenciesCI gate + scheduled (new CVEs land on old code)
SASTVulnerable code patterns (injection, SSRF, unsafe deserialization)CI
Container / IaCMisconfig in Dockerfile / Terraform / k8sCI — only when those artifacts exist

Secret-scan-in-pre-commit and SCA-in-CI are non-negotiable hygiene, not optional polish — the stance testing-practices takes on lint-in-CI. Container/IaC scanning is conditional: run it only when the repo actually has those artifacts.

Universal tools (not language-specific)

  • Secret scanning: gitleaks (default), trufflehog, or detect-secrets — language-agnostic; scan history and every commit.
  • Container / IaC: Trivy (images, IaC, dependencies, and secrets in one), Checkov (IaC policy), hadolint (Dockerfile), kube-linter (Kubernetes).

Multi-purpose scanners (Trivy, osv-scanner) span several categories — prefer one that covers the need over stacking redundant tools.

Boundaries with sibling skills

  • Scanner / tool installation → developer-environment (mise-pinned, devenv.nix fallback). This skill names the tool and the idiom; it never gives install commands.

References

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.