Skip to content

Security: alirezarezvani/claude-code-skill-factory

Security

SECURITY.md

Security Policy

Last Updated: October 28, 2025 Version: 2.0.0


πŸ”’ Reporting Security Vulnerabilities

How to Report

DO NOT open public issues for security vulnerabilities.

Instead:

  1. Email: Create a GitHub Security Advisory (preferred)

    • Go to: Repository β†’ Security β†’ Advisories β†’ New draft security advisory
    • Or email: [Your security contact email]
  2. Include:

    • Description of the vulnerability
    • Steps to reproduce
    • Potential impact
    • Suggested fix (if any)
  3. Response Time: We aim to respond within 48 hours


πŸ›‘οΈ Security Measures

1. Secrets Management

Secrets Are Never Committed:

  • βœ… All credentials use GitHub Secrets vault
  • βœ… No hardcoded API keys or tokens
  • βœ… .env files are gitignored
  • βœ… Regular security audits performed

Secrets Used in Workflows:

  • GITHUB_TOKEN - Auto-provided by GitHub (minimal permissions)
  • CLAUDE_CODE_OAUTH_TOKEN - Claude Code authentication (scoped)
  • PROJECTS_TOKEN - Project board access (scoped: repo + project only)

Audit Status: βœ… Last audited October 28, 2025 - No exposed credentials (See Audit)


2. Healthcare Data Protection

For health-sdk-builder and healthcare applications:

Compliance Frameworks:

  • βœ… HIPAA (US) - Privacy Rule, Security Rule, Breach Notification
  • βœ… GDPR (EU) - Articles 5-11, Data Subject Rights
  • βœ… DSGVO (Germany) - German-specific requirements
  • βœ… PTV 10 (Germany) - Psychotherapy standards

Data Protection:

  • βœ… Encryption at rest (AES-256)
  • βœ… Encryption in transit (TLS 1.2+)
  • βœ… Audit logging (all PHI/PII access)
  • βœ… Access controls (role-based)
  • βœ… Data minimization
  • βœ… Retention policies
  • βœ… Right to erasure

Clinical Safety:

  • βœ… Crisis detection (suicide, self-harm, harm to others)
  • βœ… Emergency escalation workflows
  • βœ… Mandatory reporting compliance
  • βœ… Professional boundaries
  • βœ… Evidence-based practices only

Documentation: See HEALTHCARE_COMPLIANCE_GUIDE.md


3. GitHub Workflows Security

4-Layer Security Model:

Layer 1: GitHub Permissions

# Only team members can trigger workflows
if: contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'),
             github.event.comment.author_association)

Layer 2: Tool Restrictions

# Allowlist specific commands only
claude_args: '--allowed-tools "Bash(gh issue:*),Bash(gh pr:*)"'
# Blocks: git push, rm -rf, curl, wget, etc.

Layer 3: Token Scoping

  • GITHUB_TOKEN: Minimal permissions (read by default)
  • PROJECTS_TOKEN: repo + project only (no admin)
  • CLAUDE_CODE_OAUTH_TOKEN: Claude operations only

Layer 4: Branch Protection

  • Required pull request workflow
  • Status checks required (claude-review)
  • No force pushes allowed
  • Admin enforcement
  • Conversation resolution required

4. Emergency Controls

Kill Switch (.github/WORKFLOW_KILLSWITCH):

  • Master OFF switch for all workflows
  • Current status: DISABLED (from Oct 24 incident)
  • Instant shutdown capability (no code changes needed)

Emergency Cleanup (.github/EMERGENCY_CLEANUP.sh):

  • Bulk issue closure for spam cleanup
  • Dry-run mode for safety
  • Documented procedures

Emergency Procedures: See .github/GITHUB_WORKFLOWS_GUIDE.md


πŸ” Security Best Practices

For Contributors

Never Commit:

  • ❌ API keys (sk-ant-*, any provider)
  • ❌ GitHub tokens (ghp_, github_pat_)
  • ❌ OAuth tokens
  • ❌ Passwords or credentials
  • ❌ .env files with secrets
  • ❌ Private keys (.key, .pem files)
  • ❌ Patient data (PHI/PII)

Always Use:

  • βœ… .env.example templates (no real values)
  • βœ… GitHub Secrets for CI/CD
  • βœ… .gitignore for sensitive files
  • βœ… Placeholder values in examples

For Healthcare Applications

Patient Data Protection:

  • βœ… Never commit patient data
  • βœ… Use anonymized examples only
  • βœ… Implement encryption (AES-256 minimum)
  • βœ… Audit all data access
  • βœ… Comply with HIPAA/GDPR/DSGVO

Generated Applications:

  • βœ… Include compliance by default
  • βœ… Document security requirements
  • βœ… Provide encryption examples
  • βœ… Include audit logging
  • βœ… Add crisis detection (mental health apps)

For Skill Development

Safe Skill Creation:

  • βœ… No secrets in SKILL.md files
  • βœ… No hardcoded credentials in Python files
  • βœ… Use environment variables for configuration
  • βœ… Document security requirements
  • βœ… Include security best practices in generated code

Testing:

  • βœ… Use test API keys (rotated after testing)
  • βœ… Never commit test credentials
  • βœ… Use separate testing repository
  • βœ… Clean up after testing

🎯 Supported Versions

Current Versions Receiving Security Updates:

Version Supported Status
2.0.x βœ… Yes Current, active development
1.2.x βœ… Yes Maintained, security fixes only
1.1.x ⚠️ Limited Critical security fixes only
< 1.0 ❌ No Not supported

Upgrade Recommendation: Always use latest version (2.0.x)


🚨 Known Security Considerations

1. Code Execution Tool

What: Skills can execute Python code (Code Execution Tool required) Risk: Malicious skills could execute harmful code Mitigation:

  • βœ… Only use trusted skills (from this repository or verified sources)
  • βœ… Review skill code before importing
  • βœ… Code Execution runs in sandboxed environment (Anthropic-managed)
  • βœ… No filesystem access outside sandbox

Recommendation: Review SKILL.md and Python files before importing unknown skills


2. Workflow Automation

What: GitHub workflows can modify issues, PRs, project boards Risk: Malicious workflow changes could spam or delete content Mitigation:

  • βœ… Kill switch for emergency shutdown
  • βœ… Branch protection (workflow changes require PR + review)
  • βœ… Tool allowlists (restrict dangerous commands)
  • βœ… Permission scoping (minimal required)
  • βœ… Team-only access (@claude mentions)

Recommendation: Never merge workflow changes without review


3. Healthcare Applications

What: Generated apps handle sensitive patient data (PHI/PII) Risk: Data breach, compliance violations, patient harm Mitigation:

  • βœ… HIPAA/GDPR/DSGVO compliance built-in
  • βœ… Encryption templates provided
  • βœ… Audit logging examples included
  • βœ… Crisis detection for mental health apps
  • βœ… Clear disclaimers (not replacement for professional care)

Recommendation:

  • Clinical validation required before patient use
  • Legal review for compliance
  • Professional oversight mandatory

πŸ“‹ Security Checklist

Before Using This Repository

  • Review all workflow files for understanding
  • Configure GitHub Secrets (never hardcode)
  • Enable branch protection on main
  • Review SECURITY_AUDIT.md
  • Understand kill switch mechanism

Before Importing Skills

  • Review SKILL.md content
  • Check Python files (if any)
  • Verify source is trusted
  • Check for hardcoded credentials
  • Test in isolated environment first

Before Deploying Healthcare Apps

  • Complete HIPAA/GDPR/DSGVO compliance review
  • Clinical validation by healthcare professionals
  • Legal review for regulatory compliance
  • Security audit (encryption, access controls, audit logs)
  • Penetration testing (if handling real patient data)
  • Privacy policy and terms of service
  • Incident response plan
  • Data breach notification procedures

πŸ”— Security Resources

Documentation

External Resources


πŸ“ž Contact

Security Issues: Use GitHub Security Advisory (preferred) General Questions: Open issue with question label Healthcare Compliance: Document in issue with documentation label


πŸ† Security Certifications

Repository Security:

  • βœ… No exposed credentials (audited October 28, 2025)
  • βœ… Proper secrets management
  • βœ… Minimal permissions enforced
  • βœ… Emergency controls in place

Healthcare Applications:

  • βœ… HIPAA compliance templates
  • βœ… GDPR/DSGVO compliance frameworks
  • βœ… Clinical safety protocols
  • βœ… Evidence-based practices

Code Quality:

  • βœ… Type hints (Python)
  • βœ… Input validation
  • βœ… Error handling
  • βœ… Security best practices

πŸ“… Security Maintenance Schedule

Weekly:

  • Monitor failed workflow runs
  • Review GitHub Actions logs
  • Check for unusual activity

Monthly:

  • Review secrets expiration
  • Audit new workflow changes
  • Update dependencies

Quarterly:

  • Rotate PROJECTS_TOKEN
  • Comprehensive security audit
  • Review permissions and access
  • Update security documentation

Annually:

  • Full security assessment
  • Penetration testing (if applicable)
  • Compliance review (HIPAA/GDPR)
  • Update security policy

⚑ Incident Response

If Security Issue Discovered:

  1. Immediate: Activate kill switch (disable workflows)
  2. Assess: Determine scope and impact
  3. Contain: Revoke compromised credentials
  4. Remediate: Fix vulnerability
  5. Communicate: Notify affected users (if applicable)
  6. Document: Post-incident report
  7. Prevent: Update procedures to prevent recurrence

Emergency Contacts: See .github/GITHUB_WORKFLOWS_GUIDE.md


πŸ“œ Compliance & Regulations

For Healthcare Applications:

  • HIPAA (US): 45 CFR Parts 160, 162, 164
  • GDPR (EU): Regulation (EU) 2016/679
  • DSGVO (Germany): Bundesdatenschutzgesetz (BDSG)
  • PTV 10 (Germany): Psychotherapeutenvereinbarung

Responsibility: Users are responsible for ensuring compliance in their deployments. This repository provides templates and guidance, not legal advice.


βœ… Safe to Use

This repository is secure and safe to:

  • βœ… Use in production
  • βœ… Share publicly
  • βœ… Accept community contributions
  • βœ… Deploy in enterprise environments

With proper:

  • βœ… Secrets configuration (GitHub Secrets)
  • βœ… Access controls (team permissions)
  • βœ… Regular audits (quarterly minimum)
  • βœ… Healthcare validation (for medical apps)

Last Audited: October 28, 2025 Next Audit: January 28, 2026 Status: βœ… Secure

For questions or concerns, please use GitHub Security Advisory or open an issue.

There aren’t any published security advisories