Security & Privacy Guide โ
This guide covers important security and privacy considerations when using get-cookie.
Platform-Specific Requirements โ
macOS Requirements โ
- Keychain Access: Required for Chrome cookie decryption
- Browser Profile Directories: Required for all browsers
- Safari Container Access: Required for Safari cookies
- System Integrity Protection: Must be enabled for secure operation
Linux Requirements (Experimental) โ
- Firefox Only: Currently only Firefox is supported
- Profile Directory: Requires read access to
~/.mozilla/firefox
- SQLite Access: Direct database access needed
- No Encryption Support: Only unencrypted cookies accessible
System Access Requirements โ
Different browsers have different security models:
Chrome (macOS only) โ
- Requires Keychain access for Safe Storage password
- Each profile has a unique encryption key
- Database must be readable by current user
- Chrome must be installed and configured
Firefox (macOS & Linux) โ
- Direct access to profile directory required
- SQLite database must be unlocked
- No encryption handling needed
- Profile discovery varies by platform
Safari (macOS only) โ
- Container access permissions required
- Binary cookie format parsing
- System-wide cookie storage
- No profile-specific permissions
Data Handling โ
Local Processing โ
- All cookie decryption happens locally
- No network communication
- No external services contacted
- Memory-only processing where possible
Cookie Security โ
- Treat cookies as sensitive auth tokens
- Never commit to version control
- Avoid logging in CI/CD pipelines
- Clear from memory after use
Best Practices โ
Access Control
- Use only on development machines
- Avoid shared/public computers
- Maintain secure system configuration
- Regular security updates
Data Storage
- Use secure environment variables
- Clear after use
- Encrypt if storage needed
- Use secure memory handling
Usage Guidelines
- Only access authorized cookies
- Respect browser security models
- Monitor for permission changes
- Regular security audits
Platform-Specific Risks โ
macOS Risks โ
- Keychain access restrictions
- Container permission changes
- Profile corruption
- System updates affecting access
Linux Risks (Firefox) โ
- Profile directory permissions
- Database locking issues
- Missing browser support
- Limited functionality
Troubleshooting โ
macOS Issues โ
Keychain Access
bash# Verify Chrome Keychain entry security find-generic-password -s "Chrome Safe Storage" # Check Keychain permissions security list-keychains
Profile Access
bash# Chrome profiles ls -la ~/Library/Application\ Support/Google/Chrome/ # Firefox profiles ls -la ~/Library/Application\ Support/Firefox/Profiles/
Safari Container
bash# Check container ls -la ~/Library/Containers/com.apple.Safari/
Linux Issues (Firefox) โ
Profile Access
bash# Check Firefox profiles ls -la ~/.mozilla/firefox/ # Verify database file ~/.mozilla/firefox/*/cookies.sqlite
Permissions
bash# Fix profile permissions chmod 600 ~/.mozilla/firefox/*/cookies.sqlite
Security Updates โ
- Keep get-cookie updated
- Monitor security advisories
- Report issues via GitHub
- Check browser compatibility
Error Recovery โ
Permission Denied
- Check file ownership
- Verify user permissions
- Review security settings
- Check browser status
Encryption Failures
- Verify Keychain status
- Check profile integrity
- Review browser config
- Update if needed
Access Blocked
- Check security settings
- Review permissions
- Verify browser state
- Update system config