Skip to content
Back to skills

Rust Security

ASecurity

Attacker paths. Use when identity, secrets, untrusted input, listener/header exposure, egress destinations, or resource amplification affect security.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
developmentrustgosecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add Dankosik/rust-service-template-rest --skill rust-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rust Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rust Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dankosik-rust-security/badge)](https://www.skillsdirectory.com/skills/dankosik-rust-security)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rust-security
description: "Attacker paths. Use when identity, secrets, untrusted input, listener/header exposure, egress destinations, or resource amplification affect security."
---

# Rust Security

**Attacker paths.** Trace caller-controlled input across every trust boundary to its enforcement point and observable effect, naming the protected invariant, the capability an attacker gains on bypass, and the negative test that proves enforcement.

**Security owners.** Extend the established owners in `crates/infra-http`, `crates/service/src/bootstrap`, and `crates/config` for listener binding, request admission, authentication, egress, and secret policy, preserving their vetted defaults.

**Trust boundaries and fail-closed auth.** Validate paths, headers, queries, bodies, and correlation IDs at their owning boundary before trusting them downstream. Fail closed whenever required identity, tenant, or authorization evidence is missing or ambiguous while keeping explicitly public routes open, and add input restrictions only for concrete threats or accepted contracts.

**Control semantics.** Verify the exact guarantee each mechanism provides: server-side auth enforces access (whereas CORS governs only browser response sharing and preflight), correlation-ID sanitizers replace invalid headers per contract, and sanitization, rejection, redaction, and rate/size bounds each require their own negative assertion beyond happy-path tests.

**Secrets and egress.** Redact secrets across error chains, `Debug`, logs, metrics, and validation rejections, pairing wrappers with allow-listed diagnostic fields. Keep outbound requests on configured provider endpoints unless an explicit egress policy governs credentials, redirects, DNS resolution, and private-network reachability for dynamic URLs.

**Amplification and proof.** Bound decoded allocations, queue depth, concurrency, response retention, and post-cancellation work before spending resources, preserving admission and redaction across refactors and reporting any unexercised security proof explicitly.

Files in this skill

  • LICENSE1 KB
  • SKILL.md3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.