Skip to main content
SecurityAI reviewed Jul 21, 2026

SEC-AUTH

We earn commissions when you shop through the links below.

Define secure user/device authentication, session management, and RBAC suitable for medical device risk profiles.

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install meddev-skills-sec-auth
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/meddev-skills-sec-auth/SKILL.md

Setup guide →
0Save

Instructions

Authentication for Medical Devices

Purpose

Define secure user/device authentication, session management, and RBAC suitable for medical device risk profiles.

When to Apply

  • User login, device-to-cloud or device-to-device auth, local service access.
  • Any control or PHI access path.

Requirements (testable)

  1. Unique Identities: No shared accounts; per-user/per-device identifiers. Rationale: accountability.
  2. Credential Protection: Store secrets hashed with strong KDF (argon2/bcrypt/scrypt) for users; protect device keys in secure element/TPM if available. Rationale: resist compromise.
  3. MFA Where Feasible: Apply MFA for remote administrative access and high-risk actions. Rationale: reduce takeover risk.
  4. Mutual Authentication: Use mTLS or equivalent for device↔server; verify server certs; validate device cert. Rationale: prevent MITM/rogue services.
  5. Session Management: Short-lived tokens; refresh with rotation; revoke on logout/compromise; bind tokens to device/user context. Rationale: limit exposure.
  6. RBAC: Enforce least privilege roles; gate safety-critical actions to authorized roles; log privilege escalations. Rationale: control misuse.
  7. Rate Limiting/Lockout: Apply rate limits to auth endpoints; lockout/backoff on repeated failures (with clinical safety consideration). Rationale: brute-force resistance.

Recommended Practices

  • Use hardware-backed key storage for device identity.
  • Rotate credentials/keys; define expiry and revocation process.
  • Log auth successes/failures without storing secrets; monitor anomalies.
  • Provide offline/maintenance access controls with separate audit trail.

Patterns

Password hashing (server-side example):

# REQ-AUTH-CRED-01; TEST-AUTH-04
hashed = argon2_hash(password, opslimit=4, memlimit=64*1024)

mTLS connection setup (pseudo):

// REQ-AUTH-MTLS-02; TEST-AUTH-06
tls_set_client_cert(ctx, device_cert, device_key);
tls_set_ca(ctx, ca_cert);
tls_require_server_auth(ctx, true);

Role check:

// REQ-AUTH-RBAC-03; TEST-AUTH-08
if (!user_has_role(user, ROLE_CLINICIAN)) return ERR_FORBIDDEN;

Anti-Patterns (risks)

  • Shared credentials across users/devices -> risk: no accountability.
  • Storing passwords in plaintext or weak hash (MD5/SHA1) -> risk: compromise.
  • No server cert validation in TLS -> risk: MITM.
  • Long-lived bearer tokens without rotation -> risk: replay/takeover.

Verification Checklist

  • Unique user/device IDs; no shared accounts.
  • Strong password hashing; device keys protected (secure element/TPM if available).
  • MFA applied for high-risk/remote admin actions.
  • Mutual auth for device↔server; server certs validated.
  • Sessions/tokens short-lived; rotation and revocation implemented.
  • RBAC enforced with least privilege; critical actions gated.
  • Rate limiting/backoff/lockout with safety-aware thresholds.
  • Auth events logged (no secrets); anomalies monitored.

Traceability

  • Requirements REQ-AUTH-### mapped to tests TEST-AUTH-###; link to security risk controls and threat model items.

References

  • NIST SP 800-63 for auth assurance (informative).
  • FDA Cybersecurity Premarket Guidance.
  • IEC 62443 identity/authentication requirements.

Changelog

  • 1.0.0 (2026-01-04): Initial authentication skill with mTLS, RBAC, MFA, and credential handling.

Audit History

  • 2026-01-04: Audit performed. Verified:
    • NIST SP 800-63 reference appropriate for authentication assurance levels
    • KDF recommendations (argon2/bcrypt/scrypt) are current best practices
    • mTLS patterns technically accurate
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
meddev-authenticationDefine secure user/device authentication, session management, and RBAC suitable for medical device risk profiles. Use when working on authentication in medical device software.0 installsmeddev-state-machinesDefine explicit, testable state machines with safe states, controlled transitions, and error handling suited to medical device safety classes. Use when working on state machines in medical device software.0 installsmeddev-change-controlDefine controlled change-request workflow for software: impact analysis, approvals, verification scope, and regulatory submission flags. Configuration identification and baselines are in DOC-SCM (IEC 62304 Clause 8.1, 8.3); approved implementation and re-verification align with 8.2. Use when working on change control in medical device software.0 installsCONN-USBImplement safe USB device connectivity: class selection, enumeration handling, data validation, electrical and safety considerations.0 installsmeddev-ai-ml-medical-device-softwareAddress machine learning inside the regulated product (not LLM coding assistants): Good Machine Learning Practice (GMLP), training/validation data integrity, Predetermined Change Control Plans (PCCP) where applicable, drift monitoring, and linking models to ISO 14971 and software lifecycle controls. Use when working on ai ml medical device software in medical device software.0 installsTEST-HILValidate software with real or representative hardware, sensors, actuators, and timing, to uncover integration and safety issues not visible in simulation.0 installs

More from Medical Device Skills

View source →

More Security skills

Browse category →

Frequently asked questions about SEC-AUTH

What does the SEC-AUTH skill do?

Define secure user/device authentication, session management, and RBAC suitable for medical device risk profiles. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the SEC-AUTH skill?

Run `npx @skills-hub-ai/cli install meddev-skills-sec-auth` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-sec-auth/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does SEC-AUTH work with?

SEC-AUTH runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the SEC-AUTH skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use SEC-AUTH after installing it?

In Claude Code, type `/meddev-skills-sec-auth` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the SEC-AUTH skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.