DATA-AUDIT
We earn commissions when you shop through the links below.
Define what and how to log for medical devices: security/safety events, integrity, protection, and retention of logs for compliance and forensics.
Unsigned, install at your own risk
UnverifiedThis 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-data-auditManual setup by platform
Claude Code
~/.claude/skills/meddev-skills-data-audit/SKILL.md
Instructions
Audit Logging
Purpose
Define what and how to log for medical devices: security/safety events, integrity, protection, and retention of logs for compliance and forensics.
When to Apply
- Security-relevant actions, configuration changes, access to PHI, safety events.
- System/device state changes, updates, connectivity, and error conditions.
Requirements (testable)
- Scope: Log authentication events, config changes, safety actions, updates, anomalies, and PHI access (without logging PHI content). Rationale: accountability.
- Integrity: Protect logs against tampering (hash chain/MAC, restricted access); no user-level editing. Rationale: trustworthiness.
- Time Sync: Ensure timestamps are reliable (NTP/PTP or hardware RTC); detect drift. Rationale: ordering and forensics.
- Minimal PHI: Do not store PHI unless necessary; if stored, encrypt and minimize. Rationale: privacy.
- Retention: Define retention and secure storage/backup; support export for investigations. Rationale: compliance and availability.
- Performance: Logging must not jeopardize safety/timing; use buffering with backpressure limits. Rationale: safety.
Recommended Practices
- Use structured logs (key=value/JSON) with event IDs.
- Separate audit log from operational logs; stricter controls on audit.
- Rate-limit repetitive events to avoid flooding; but ensure critical events always logged.
- Include device ID, software version, and correlation IDs.
Patterns
Hash-chained log entry:
// REQ-AUD-INT-01; TEST-AUD-04
typedef struct {
uint8_t prev_hash[32];
audit_event_t ev;
uint8_t hash[32];
} audit_record_t;
Structured log example:
evt=auth_fail user=clinician1 code=LOCKOUT ts=2026-01-04T12:00:00Z
Anti-Patterns (risks)
- Logging PHI verbatim -> risk: privacy breach.
- Editable or deletable logs -> risk: tampering and noncompliance.
- Unsynchronized clocks -> risk: unusable forensic timeline.
- Logging so much that timing is affected -> risk: safety impact.
Verification Checklist
- Audit events defined and implemented (auth, config, safety, update, PHI access).
- Log integrity protection implemented; access restricted.
- Timestamps reliable; drift detection in place.
- PHI minimized/omitted; if present, encrypted and justified.
- Retention/backup defined; export supported securely.
- Logging performance impact assessed; backpressure/limits applied.
Traceability
REQ-AUD-###toTEST-AUD-###; logs tied to device ID/version; align with Part 11/ISO 14971 controls.
References
- 21 CFR Part 11 (audit trail), HIPAA Security Rule.
- FDA cybersecurity guidance (logging/monitoring).
- IEC 62443 logging recommendations (informative).
Changelog
- 1.0.0 (2026-01-04): Initial audit logging skill with scope, integrity, and retention guidance.
Audit History
- 2026-01-04: Audit performed. Verified:
- 21 CFR Part 11 audit trail requirements correctly referenced
- HIPAA Security Rule reference appropriate
- IEC 62443 logging recommendations correctly marked as informative
Security
Reviews (0)
Related skills
Browse all →More from Medical Device Skills
View source →More Data skills
Browse category →Frequently asked questions about DATA-AUDIT
What does the DATA-AUDIT skill do?
Define what and how to log for medical devices: security/safety events, integrity, protection, and retention of logs for compliance and forensics. 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 DATA-AUDIT skill?
Run `npx @skills-hub-ai/cli install meddev-skills-data-audit` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-data-audit/ 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 DATA-AUDIT work with?
DATA-AUDIT 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 DATA-AUDIT 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 DATA-AUDIT after installing it?
In Claude Code, type `/meddev-skills-data-audit` (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 DATA-AUDIT 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.