This is a comprehensive, step-by-step guide with concrete actions to secure your X (formerly Twitter) account. Following these recommendations will significantly reduce the risk of unauthorized access.
-
Create a secure email account if you don't already have one:
- Proton Mail - End-to-end encrypted by default
- Tuta - Another secure email option
-
Secure your email account first:
- Enable 2FA on your email provider (this is critical as email is the "master key" to all your accounts)
- Use a unique, strong passphrase for your email account
- Keep your email recovery options up to date
-
Set up an email alias service:
- SimpleLogin - Open source email aliasing
- Addy.io - Formerly AnonAddy, provides unlimited aliases
-
Create a dedicated alias for X:
- Example:
x-account@youralias.com
- This prevents your primary email from being exposed in data breaches
- Allows you to easily identify if X is sharing your email with third parties
- Example:
-
Download and install a reputable password manager:
- Bitwarden - Open source, free tier available
- Proton Pass - From the makers of Proton Mail
-
Generate a secure passphrase for your X account:
- Use your password manager's generator set to "passphrase" mode
- Aim for at least 4-5 random words with spaces or separators
- Example:
Happily-Amplifier-Commodore-Resize9
(but longer and randomly generated) - Test your passphrase strength at Bitwarden's Password Strength Testing Tool
-
Save the new passphrase in your password manager, ensuring you never have to memorize or reuse it.
-
When to change your passphrase:
- Only change your passphrase if:
- You suspect your account has been compromised
- X notifies you of suspicious activity
- There's a data breach involving X
- Modern security guidance no longer recommends regular passphrase rotation without reason, as it often leads to weaker passwords
- Only change your passphrase if:
-
Purchase a hardware security key:
- YubiKey - Industry standard ($45-$85)
- Google Titan Security Keys - Google's FIDO-certified security keys
- Nitrokey - Open source alternative
-
Enable 2FA on X:
- Go to Settings and Support → Settings and privacy → Security and account access → Security
- Select Two-factor authentication → Security Key
- Follow the instructions to register your security key
-
Purchase a backup security key if possible:
- Store in a secure location like a home safe
- Register both keys with your X account
As a secondary/backup method:
-
Install a secure authenticator app:
-
Enable authenticator app as backup 2FA:
- In the same Two-factor authentication settings, select Authentication app
- Scan the provided QR code using your authenticator app
- Enter the 6-digit code to confirm
-
Important: Disable SMS 2FA:
- In the 2FA settings, disable SMS-based 2FA if possible
- SMS is vulnerable to SIM swapping attacks and should be avoided
-
Generate backup codes from the 2FA settings page
-
Store digital copies in multiple secure locations:
- In your password manager's secure notes
- On an end-to-end encrypted cloud service:
- Proton Drive
- Cryptomator with your preferred cloud storage
-
Create physical backup:
- Print backup codes
- Store in a secure location (home safe, safety deposit box)
- Consider writing them in a non-obvious format (mixed with other numbers/characters)
-
Avoid adding your phone number to your X account if possible:
- X often prompts for a phone number but rarely requires it for basic functionality
- If you must provide a phone number temporarily (for verification), consider removing it afterward
-
When a phone number is required:
- Some features like account verification, advertising, or recovering a flagged account may require a phone number
- Consider using a disposable phone number service like SMSPool for one-time verification
- If using your real number, secure it with a carrier PIN to protect against SIM-swap attacks
- Remove the number after verification if possible
-
Remove existing phone number:
- Go to Settings and privacy → Your account → Account information
- Select Phone and delete your number if it's not required for your use case
-
Minimize other personal information:
- Only provide information that's absolutely necessary
- Consider whether you need your real name, location, or birth date visible
-
Audit connected apps:
- Go to Settings and privacy → Security and account access → Apps and sessions
- Review all third-party apps with access
- Revoke access for any apps you:
- Don't recognize
- No longer use
- Don't absolutely need
-
Review active sessions:
- In the same area, go to Sessions
- Review all devices currently logged in
- Log out of any old, unfamiliar, or unused devices
- Consider logging out of all sessions after completing this security setup
-
Review privacy settings:
- Go to Privacy and safety
-
Control discoverability:
- Under Discoverability and contacts
- Disable "Let others find you by your email"
- Disable "Let others find you by your phone"
-
Control direct messages:
- Under Direct messages
- Consider disabling "Allow message requests from everyone"
-
Consider protecting your account:
- Under Audience and tagging
- Enable "Protect your Posts" if you want a private account
-
Consider using Brave browser for X:
- Brave Browser includes built-in protection against malicious links
- Its Safe Browsing feature provides some level of protection even if you click suspicious links
- Blocks trackers by default
-
Browser hygiene practices:
- Keep your browser updated at all times
- Disable unnecessary extensions (especially those with broad permissions)
- Avoid using browser-built-in password managers (use your dedicated manager instead)
-
Create a security maintenance schedule:
- Weekly: Review active sessions
- Monthly: Verify 2FA is working properly
- Quarterly: Full audit of connected apps and privacy settings
-
Keep all software updated:
- Enable automatic updates for the X app
- Regularly update your browser, operating system, and all security tools
- Update your password manager and authenticator apps when new versions are released
-
Monitor for suspicious activity:
- Enable notifications for account logins
- Pay attention to emails about new logins or password resets
-
Avoid phishing attacks:
- Never click links in suspicious emails or DMs claiming to be from X
- Always access X directly through the app or by typing the URL
- Verify that you're on the official domain (
twitter.com
orx.com
) before logging in
-
Use secure networks:
- Avoid logging in on public Wi-Fi without a trusted VPN:
- Always log out completely when using public computers
-
Act immediately from a secure device:
- Use a different, trusted device than the one you normally use
- Use Brave or another secure browser in private mode
-
Change your passphrase immediately:
- Generate a new, strong passphrase using your password manager
- Make sure it's completely different from the previous one
-
Check for unauthorized apps in your connected apps section:
- Remove ALL suspicious or unfamiliar applications
- Consider removing all apps and re-adding only essential ones
-
Revoke all sessions to force logout on all devices:
- This ensures the attacker is removed from your account
-
Check for changed settings that might allow account recovery:
- Verify email address hasn't been changed
- Check if additional recovery methods have been added
- Review privacy settings that might have been altered
-
Update your 2FA methods:
- Re-register your security keys
- Set up a new authenticator app instance if needed
- Generate new backup codes
-
Contact X Support for additional help:
- X Support Forms
- Report the compromise even if you regain control
-
Monitor for unusual activity for several weeks after the incident
- ✅ Secure your email account with 2FA
- ✅ Set up SimpleLogin or Addy.io for email aliasing
- ✅ Use Bitwarden or Proton Pass to generate and store a strong passphrase
- ✅ Add a YubiKey, Google Titan, or other hardware security key for primary 2FA
- ✅ Set up Ente Auth as backup authentication
- ✅ Disable SMS 2FA to prevent SIM swap attacks
- ✅ Store backup codes in encrypted storage and physical backup
- ✅ Minimize personal information (avoid adding phone number if possible)
- ✅ Remove unnecessary app access and log out of unused sessions
- ✅ Use Brave browser for additional protection
- ✅ Lock down privacy settings according to your preferences
- ✅ Set calendar reminders for regular security maintenance
Contributions to improve this guide are welcome. Please submit issues or pull requests to the repository.
This guide represents best practices at the time of writing but security recommendations may change over time. Always stay informed about the latest security practices. The author is not responsible for any security breaches that may occur even when following these guidelines.