WebSSH2 implements comprehensive security measures to protect against supply chain attacks, including the NPM package hijacking incident reported in September 2025.
✅ VERIFIED SAFE - This repository does not contain compromised packages from the September 2025 NPM supply chain attack.
- Policy: 2-week quarantine for all newly released package versions
- Process: New versions only adopted after community vetting period
- Exception: Critical security patches with CVE advisories
# Run security checks
npm run security:check # Check for compromised packages
npm run security:audit # Run npm audit + recommend Trivy
npm run security:socket # Instructions for Socket.dev scan- Socket.dev: Real-time dependency risk analysis
- Trivy: Container and dependency vulnerability scanning
- npm audit: Built-in NPM security auditing
- Package Integrity: SRI hashes for critical dependencies
Our GitHub Actions workflow includes:
- Daily automated security scans
- Pre-commit package verification
- Dependency vulnerability checks
- Socket.dev integration for PR reviews
The following packages are locked to safe versions via overrides:
{
"debug": "4.4.1"
}Please report security vulnerabilities to:
- Email: security@webssh2.com (if available)
- GitHub: Create a private security advisory
- Emergency: Create a public issue with
securitylabel
- Acknowledgment: Within 24 hours
- Initial Assessment: Within 72 hours
- Fix Development: Within 1 week for critical issues
- Public Disclosure: After fix is deployed and users have time to update
- Never commit secrets - Use environment variables
- Pin dependency versions - Avoid automatic updates
- Review dependency updates - Wait 2 weeks for new releases
- Run security checks - Before every commit
- Update dependencies regularly - But only after vetting period
- Community vetting period (2 weeks minimum)
- Security audit with Socket.dev and Trivy
- Review of maintainer reputation and project health
- Approval by security team
- Review change logs for security implications
- Wait 2 weeks after release (except security patches)
- Automated testing in isolated environment
- Manual verification before merging
# Install Socket.dev CLI
npm install -g @socketsecurity/cli
# Scan project
socket.dev cli scan# Install Trivy (macOS)
brew install trivy
# Scan dependencies
trivy fs --security-checks vuln .- NPM Supply Chain Attack - September 2025
- Socket.dev Security Platform
- Trivy Security Scanner
- NPM Security Best Practices
Last Updated: September 8, 2025
Next Review: September 22, 2025