sapran/dontclickshit
sapran/dontclickshit has 261 GitHub stars and 20 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-25 08:08 UTC. Last push 2025-12-26.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Як не стати кібер-жертвою
SecurityREADME_EN.md
OriginalHow to stay safe online
Permanent link: https://github.com/sapran/dontclickshit/
Original mind map (updated):
Contents
- Don't click shit
- AI-Powered Threats and Deepfakes
- Use passphrases instead of passwords
- Use multi-factor authentication
- Cryptocurrency and Digital Asset Security
- Operating system and software
- Antivirus
- Firewall
- Backup your data
- Ransomware Defense and Recovery
- Use crypto
- Mobile security
- IoT and Smart Home Security
- Physical security
- Incident Response: What to Do When Compromised
- Stay safe!
- Credits
Last updated: December 2024
Don't click shit
What do you mean?
Don't open, click or run suspicious files, links, and programs.
Rule of thumb: if you are not expecting it, it is suspicious.
Suspicious files
Don't open suspicious files, email attachments, or archived documents, if you do not completely trust the source they originate from. Send unwanted emails to spam folder before reading – files or links from people you don't know should be treated as malicious by default.
Verify file origin by the means other than media used to receive it. For example, if you have received a Word document via email, contact the sender by an Instant Messenger or by phone and verify the reason for sending it.
:exclamation: The most risky file types are:
- Any executable files:
EXE,COM,CMD,BAT,PS1,SWF,JARetc. - MS Office documents, especially with macros:
DOC/DOCX/DOCM,XLS/XSLX/XLSMetc. - PDF documents:
PDF. - Vector graphics with embedded code:
SVG. - Archives of these files, especially password-protected.
Sometimes it's hard to tell malicious files from legitimate ones under time pressure. Use Virustotal to verify any file by scanning it by more than 50 antiviruses at the same time. While it is much more efficient than scanning files offline, :exclamation:consider the fact that you need to disclose the file to a third party.
:wrench: VirusTotal: https://virustotal.com
Suspicious links
Don't open suspicious URL links, especially those pointing to web-sites you don't normally visit. Always check web-site domain names before clicking the links: attackers could mangle the domain name for it to look familiar: facelook.com, gooogle.com etc. Use HTTPS and verify SSL certificate of the web-site to ensure it is not cloned or spoofed.
Malicious URLs can be 'masked' by arbitrary text in HTML files, documents and emails. In web-browsers and email programs, hover the mouse cursor over the link (but don't click) and wait for a while before the real URL pops up. Or right-click on the link and copy it to the text editor to see its actual address. Use VirusTotal to scan suspicious links the same way you scan files.
Malicious URLs can be encoded as QR codes or printed out, including in a form of 'shortened' URLs generated by services such as tinyurl.com, bit.ly, ow.ly etc. Don't enter those links into your browser or scan QR codes by your smartphone unless you know exactly what you are doing.
:wrench: You can 'resolve' shortened URLs before opening them using these services:
:wrench: These popular web-browser extensions automatically perform this resolution:
- Google Chrome, URL Unshortener
- Mozilla Firefox, Long URL Please Mod
Suspicious pop-ups
Be careful with pop-ups in your browser, applications and operating system. Always read pop-up messages and don't 'accept' anything in a hurry.
Pop-ups can be dangerous in many ways: some result in installing malicious SSL certificates that allow attackers to sniff your network traffic; some could install malicious software on your computer or redirect your browser to malicious web-sites that infect your computer with malware.
Suspicious devices
Do not insert flash drives, CD/DVD, external HDDs etc. into your computer unless you explicitly trust their origin. There are techniques of hacking into your computer before you open files on a flash drive and way before your antivirus scans them. If you found it outside or inside the office, if you received it by mail or delivery, if a stranger gives it to you asking to print out a document or just attach it to a PC – it is likely to be malicious. Only trust your own devices and proceed with caution when dealing with devices received from people you work with or otherwise collaborate.
AI-Powered Threats and Deepfakes
What are AI-powered threats?
Artificial intelligence has made it easier for attackers to create highly convincing fake content and personalized attacks at scale. These threats are harder to detect than traditional scams because they can mimic real people's voices, faces, and writing styles with remarkable accuracy.
Deepfake video and audio attacks
Deepfakes are AI-generated videos or audio recordings that make it appear someone said or did something they didn't. Attackers use these for:
- CEO fraud: Impersonating executives to authorize fraudulent wire transfers
- Family emergency scams: Faking a loved one's voice to request urgent money
- Blackmail and extortion: Creating compromising fake videos
- Political manipulation: Spreading disinformation
:bulb: How to spot deepfakes:
- Unnatural blinking patterns or facial movements
- Inconsistent lighting or shadows
- Audio that doesn't sync perfectly with lip movements
- Background artifacts or glitches
Modern Social Engineering Techniques
Beyond traditional phishing, attackers use sophisticated psychological manipulation:
Vishing (Voice Phishing)
- Calls impersonating IT support, banks, government agencies
- "Your account has been compromised, we need to verify..."
- Fake "fraud department" calls asking for verification
- Defense: Hang up and call official numbers from company website
Business Email Compromise (BEC)
- Executive impersonation: "CEO" emails requesting urgent wire transfer
- Invoice fraud: Fake invoices from "vendors" with changed bank details
- W-2 scams: Fake HR requests for employee tax information
- Defense: Verify through secondary channel (call, in-person), never email alone
Social Media Intelligence Gathering (OSINT)
- Attackers research you on Facebook, LinkedIn, Instagram
- Learn about family, work, interests, vacation plans
- Use information to create targeted attacks
- Defense: Review privacy settings, limit public posts, be aware of oversharing
Romance and Investment Scams
- Fake profiles building long-term relationships
- "Pig butchering": Gaining trust before investment scam
- Cryptocurrency and forex trading scams promising guaranteed returns
- Defense: Never send money to people you haven't met, research investments independently
Pretexting
- Creating elaborate false scenarios to extract information
- "I'm calling from the power company about your account..."
- Building trust over multiple interactions
- Defense: Verify caller identity through official channels
:exclamation: Key principle: Urgency + Authority + Fear = Red flags. Legitimate organizations don't pressure immediate action.
- Unusual skin texture or hair rendering
AI-generated phishing
Modern AI can write phishing emails with perfect grammar, personalized content, and convincing context. These emails no longer have the obvious spelling errors and awkward phrasing of the past.
Defense strategies:
- Never trust email content quality as a security indicator
- Verify requests through a different communication channel (call, in-person, separate message)
- Establish code words with family and colleagues for sensitive requests
- Be especially suspicious of urgent financial or credential requests
Protection measures
Establish verification protocols
- Create secret code words with family members for emergencies
- Implement multi-step approval for financial transactions
- Verify unusual requests by calling known phone numbers (not numbers in suspicious emails)
Out-of-band confirmation
- If you receive a suspicious email, contact the sender through a different method
- Don't rely on callback numbers or links provided in suspicious messages
- For video calls with unusual requests, ask questions only the real person would know
Stay informed
- Keep up with current deepfake detection techniques
- Educate family and colleagues about these threats
- Report suspected deepfakes to relevant authorities
:wrench: Be aware that deepfake technology is evolving rapidly - trust verification processes over your senses.
Use passphrases instead of passwords
What is passphrase?
Use passphrases instead of passwords to eliminate problems related to passwords' length and use of dictionary words.
To create a passphrase, choose a phrase you won't forget easily: a line from a poem or a song's lyrics, a proverb, a slogan etc. Then transform it to a single string by removing spaces and replacing letters to similar digits: A->4, B->8, C->(, E->3, I->1, L->7, S->5, T->7 etc. Adding special characters and capitalizing random words in the phrase also makes it stronger.
How to create strong passphrase?
Use passphrase recipes to create strong unique passphrases. Recipe is an algorithm used to create different passphrases for different systems using a common basis. For example:
Choose a strong basis, say, the passphrase
w3llD0nem8'.Think about a way of linking the passphrase to the system. Simply adding server name in the end is easy:
w3llD0nem8'googleSplitting the name in halves and adding in the beginning and at the end of the phrase is even cooler:
goow3llD0nem8'gleglew3llD0nem8'gooDon't forget to apply a mangling rule too, say, change the last letter of the server name to a digit if applicable, and always add an exclamation mark or another special character.
goow3llD0nem8'gl3!
Keep passphrases secret
No one should know your passphrase except you. Don't tell it to anyone including your boss, your sysadmin or helpdesk, your wife, your parents, your kids etc. There is no legitimate reason for anyone to ask for your passphrase. Technically, even the system that you are using it for does not have your passphrase in its original form – instead it 'hashes' it and stores its cryptographically protected copy.
Never write down your passphrases on paper or in a clear text (unencrypted) file. Password-protected Excel is not encrypted. Password-protected archive is not properly encrypted. Only use trustworthy password managers if needed.
Updating passphrases
Change passphrases regularly and at least once a year. Your corporate passphrases or the passphrases you use more often (e.g. multiple times a day) have to be changed at least once a month or two.
:bulb: The rule of thumb is: the more frequently you use it, the more frequently it has to be changed.
Still want to use passwords?
Strong passwords are long, complex, and unique. This means they should be longer than 12 characters, contain different types of characters (letters, digits, special characters), and be different for every service, web-site or system you use. Passwords should not be based on simple words that could be found in dictionaries. Passwords shall not be cognitive, that means they have to be based on something else than data about the user or the system. Otherwise, information related to the user or the system could and will help an attacker guess the password.
Password managers
Use password manager (password safe) software and follow these rules:
- Generate strong random passwords of configurable length (longer than 20 characters) and complexity.
- Make sure your master password is strong.
- Use a password manager that encrypts password database before storing it in the cloud or synchronizing it between your devices via the network.
- Backup your password database often.
:bulb: For additional layer of protection, use a manual password salt: figure out a secret string, keep it in memory, and add it manually to each password stored in the manager application every time you paste it into a login form.
:wrench: Examples of good password managers are:
- 1Pasword https://1password.com
- KeePass https://keepass.info
- Password Safe https://pwsafe.org
Use multi-factor authentication
Enable multi-factor authentication
Most respected online services allow two-factor authentication. Enable it using a built-in software token (available on Facebook, Twitter, Google etc.) or an SMS one-time verification code.
:wrench: URLs to multi-factor authentication settings of popular web-sites::
- Apple https://support.apple.com/en-us/HT204915
- Google https://myaccount.google.com/security/signinoptions/two-step-verification
- Facebook https://www.facebook.com/settings?tab=security§ion=approvals
- Twitter https://twitter.com/settings/security
- Dropbox https://www.dropbox.com/account/#security
:wrench: Large collection of services that support two-factor authentication: https://twofactorauth.org
The best second factor for authentication is a security key or hardware token.
:wrench: Most popular security keys:
- YubiKey: https://www.yubico.com/products/yubikey-hardware/
- Google Titan Security Key: https://store.google.com/product/titan_security_key
- Thetis FIDO U2F Security Key: https://thetismedia.com/products/thetis-fido-u2f-security-key
- Feitian MultiPass K16: https://www.ftsafe.com/Products/FIDO/BLE/K16
- Ledger Nano S Plus / Nano X: https://shop.ledger.com/ (FIDO2/WebAuthn support)
:wrench: Convenient apps for two-factor authentication:
- Google Authenticator for Android: https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2
- Google Authenticator for iOS: https://apps.apple.com/us/app/google-authenticator/id388497605
- Authy: https://authy.com/
- Microsoft Authenticator: https://www.microsoft.com/en-us/account/authenticator
- Duo Mobile: https://duo.com/product/trusted-users/two-factor-authentication/duo-mobile
Avoid SMS
Prefer using Google Authenticator, physical token, or mobile app verification techniques. Avoid SMS one-time passwords wherever possible.
Cryptocurrency and Digital Asset Security
Why cryptocurrency security matters
Cryptocurrencies and digital assets present unique security challenges. Unlike traditional banking, there's no customer service to call if your funds are stolen, and transactions cannot be reversed. You are your own bank, which means you're fully responsible for security.
Hardware wallets for storage
The safest way to store significant cryptocurrency holdings is using a hardware wallet - a physical device that keeps your private keys offline.
:wrench: Recommended hardware wallets:
- Ledger Nano X / Nano S Plus: https://shop.ledger.com/
- Trezor Model T / Trezor One: https://trezor.io/
- SafePal S1: https://www.safepal.com/
Critical: Your seed phrase (recovery phrase) is everything
- Never store it digitally (no photos, no cloud storage, no password managers)
- Write it on paper or use metal backup solutions
- Store copies in multiple secure physical locations
- Never share it with anyone - legitimate companies will never ask for it
Common cryptocurrency scams
1. Fake wallet applications
- Malicious apps that look like legitimate wallets in app stores
- Always download from official websites, verify developer signatures
- Double-check app names and developers before installing
2. Phishing websites
- Sites that mimic popular exchanges or wallets:
myetherwa11et.com,metamask.i0 - Always type URLs manually or use bookmarks
- Verify SSL certificates and correct domain spelling
3. Clipboard hijacking malware
- Malware that changes wallet addresses when you copy/paste
- Always verify the full address after pasting before sending funds
- Send a small test transaction first for large transfers
4. Rug pulls and fake tokens
- Scam projects that take investor money and disappear
- Research projects thoroughly before investing
- Check for audited smart contracts and verified team members
- Be suspicious of guaranteed returns or "too good to be true" yields
5. Social media impersonation
- Fake "giveaway" posts impersonating celebrities or companies
- Direct messages offering investment advice or "help"
- Rule: No legitimate entity will ever ask you to send crypto to receive more crypto
Best practices for crypto security
Use dedicated devices for large holdings
- Consider a separate computer or phone for crypto transactions
- Never access crypto wallets on public WiFi without VPN
Verify addresses thoroughly
- Check first and last several characters of addresses
- Use address book/contacts features when available
- Be aware of address poisoning attacks (similar-looking addresses)
Test with small amounts first
- Send small test transactions before large transfers
- Verify receipt on block explorer before sending full amount
Enable all available security features
- Transaction confirmations on hardware wallets
- Whitelisting addresses where possible
- Multi-signature wallets for large holdings
Understand what you're signing
- Read transaction details carefully before approving
- Be especially cautious with smart contract interactions
- Never sign blind transactions or approve unlimited token spending
Keep software updated
- Update wallet firmware and software regularly
- Use official update channels only
- Verify update authenticity before installing
NFT-specific security
Blind signing attacks
- Malicious sites that trick you into signing transactions that transfer your NFTs
- Always review what you're signing in your wallet
- Use wallets that clearly display transaction details
Malicious smart contract approvals
- Some interactions request unlimited access to your wallet
- Revoke unnecessary approvals regularly using tools like Revoke.cash or Etherscan's token approval feature
- Only approve specific amounts when possible
:wrench: Useful tools:
- Block explorers: Etherscan.io, Blockchain.com, BscScan.com
- Token approval management: Revoke.cash, Etherscan token approvals
- Scam detection: CertiK Skynet, GoPlus Security
:exclamation: Remember: If you lose your seed phrase or private keys, your funds are permanently lost. If someone else gains access to them, your funds can be stolen instantly with no recourse.
Operating system and software
Do not run client software with administrator privileges. Always log into OS interactively with the rights of the 'regular' user and, if necessary, increase the privileges with the program menu Run As ... when it is required to install or run legitimate programs. Never run, especially with administrator rights, programs on Java and Flash, PowerShell and cmd scripts, etc., and any other 'mobile' code.
:exclamation: WARNING: When you run programs with the rights of a local administrator, you enable them to intercept the access credentials and current sessions of other users who are currently working on your computer or have recently visited it. In this way, the attacker can intercept the access credentials of the corporate domain administrator and completely compromise Active Directory the domain.
Don't use pirated software. Don't run or install software downloaded from untrusted sources. This includes torrents and other peer-to-peer networks. This especially includes keygen and cracking tools that require administrator privileges to run.
Morals or ethics have nothing to do with it: it is just totally insecure. First, trojaning the distribution and putting it online 'for free' is a known way of hacking into systems and it happens much more often than we'd like. Second, pirated software can rarely be kept up to date with security patches that just don't arrive to your system. Messing with 'activations' and re-activations just isn't worth it and the risks of not updating software are unacceptable.
Windows
Turn on Auto-Update in your Windows OS. For more details refer to the official FAQ.
Make sure your Windows Update is configured to check for updates for all Microsoft products, including MS Office.
Update third party software regularly or automatically. Use one of these tools to check and update your applications:
:wrench: Windows Package Manager (winget) - Built into Windows 11+: winget upgrade --all
:wrench: Patch My PC: https://patchmypc.com/home-updater
:wrench: SUMo (Software Update Monitor): https://www.kcsoftwares.com/sumo/
macOS
Turn on AppStore auto-updates as recommended by Apple.
Turn on your MS Office Auto-Update in macOS as recommended by Microsoft.
Use Homebrew to keep your third party apps up to date. You can easily find many tools you already use in Homebrew:
brew search vlc
brew search wireshark
brew search gpgtools
To install Homebrew, follow the official guide: https://brew.sh
Alternatively, to keep third-party apps up to date, use MacInformer or equivalent tool. :exclamation:WARNING: although safer than not using any update mechanism, this kind of software may be invasive and not as secure as Homebrew. So no URL here.
Linux
Modern Linux distributions allow you to configure an auto-update with OS tools, or to manually update the software manually. For example, in Ubuntu Linux, the software is updated using the command
apt update && apt -y upgrade
### Supply Chain and Software Security
Modern cyberattacks increasingly target the software supply chain - the complex network of vendors, libraries, and dependencies that make up the software you use.
**What are supply chain attacks?**
Attackers compromise trusted software before it reaches you:
- **SolarWinds (2020)**: Attackers inserted malware into software updates affecting 18,000+ organizations
- **NPM/PyPI attacks**: Malicious packages with names similar to popular libraries
- **Browser extension takeovers**: Legitimate extensions sold to malicious actors
- **Compromised software updates**: Fake updates that install malware
**Protection for end users:**
1. **Download from official sources only**
- Use official websites, not third-party download sites
- Verify URLs carefully before downloading
- Avoid "cracked" or "pirated" software (often contains malware)
2. **Verify software integrity**
- Check digital signatures on downloaded files
- Verify checksums (SHA-256 hashes) when provided
- On macOS: Software must be notarized by Apple
- On Windows: Look for valid code-signing certificates
3. **Check software reputation**
- Read recent reviews (not just star ratings)
- Look for active development (recent updates)
- Be wary of abandoned software (no updates in 2+ years)
- Research the developer/company
4. **Use official package managers**
- **Windows**: Microsoft Store, winget (official)
- **macOS**: App Store, Homebrew (verify formulae)
- **Linux**: Distribution repositories (apt, dnf, pacman)
- Avoid third-party PPAs unless from well-known, trusted sources
5. **Review permissions and access**
- Check what permissions apps request
- Be suspicious of excessive permissions (why does a calculator need camera access?)
- Review browser extension permissions carefully
**For developers:**
- Pin dependency versions in lock files
- Regularly audit dependencies: `npm audit`, `pip-audit`, Snyk
- Use Software Bill of Materials (SBOM) tools
- Verify package signatures before installation
- Monitor for dependency confusion attacks
:wrench: **Useful tools:**
- Virustotal: https://virustotal.com (scan files before running)
- Snyk: https://snyk.io (dependency scanning)
- Socket: https://socket.dev (npm package security)
:exclamation: **Remember**: Trust is not transitive. Just because you trust a vendor doesn't mean you can trust all their dependencies.
For details about your Linux distribution, refer to the documentation.
Antivirus
macOS & Linux
On Linux or macOS don't use antivirus. Seriously. Security software comes with security vulnerabilities, it is not more secure than any other piece of code. However, in order to be efficient, antivirus normally requires elevated privileges in the OS. This introduces new risks that outweigh the dangers of getting infected on relatively secure and less popular platforms. If you follow recommendations in this guide, you can install an AV that is not continuously monitoring your OS, and scan your system with it once in a while. Malwarebytes has one of those, BitDefender is a more thorogh option.
:wrench: Malwarebytes https://www.malwarebytes.com
:wrench: BitDefender https://www.bitdefender.de
Windows
On Windows do use antivirus. But don't forget that AV is very ineffective against modern online threats. You can imagine antivirus efficiency to vary from 15% to 30%, most of the time this is true.
Choosing antivirus is not easy: 'independent' tests are biased toward the AV vendors who in the end of the day pay for these tests. There are, however, more or less objective reviews and testing results.
- AV-Test.org https://www.av-test.org/en/antivirus/home-windows
- NSS Labs reports, if you can find any nowadays.
Firewall
macOS
Enable and configure the built-in macOS firewall in System Settings -> Privacy & Security -> Firewall (or System Preferences -> Security & Privacy -> Firewall on older macOS). Advanced Firewall Options... allow more detailed configuration, such as blocking all incoming connections, configuring ingress and egress filtering for specific applications, and allowing incoming connections to system and signed applications. Enable stealth mode if you would like to make your Mac unavailable to any other network client (e.g. to prevent a recent remote attack over ICMP protocol).
Install and master advanced network protection using one of the custom firewall solutions such as
:wrench: Little Snitch(commercial) or
:wrench: LuLu(free & open source).
Windows
To enable the firewall in Windows, follow these steps:
- Open
Control Panel. - Navigate to
System and Security. - Click on
Windows Defender Firewall. - In the left panel, select
Turn Windows Defender Firewall on or off. - Enable the firewall for the desired network types (private, public) by selecting
Turn on Windows Defender Firewall. - Save changes by clicking
OK.
Linux
To activate the firewall on Linux, depending on the distribution, you can use the following tools:
- UFW (Ubuntu Firewall)
- Installation:
sudo apt install ufw - Enable:
sudo ufw enable
- Installation:
- Firewalld (Fedora, CentOS)
- Installation:
sudo dnf install firewalld - Enable:
sudo systemctl enable --now firewalld
- Installation:
- Iptables (For most distributions)
- Usually pre-installed.
- Configuration: Edit rules using
iptablescommands.
- nftables (Modern alternative to Iptables)
- Installation: Usually pre-installed.
- Configuration: Edit rules using
nftcommands.
- Gufw (Graphical interface for UFW)
- Installation:
sudo apt install gufw - Enable: Launch through graphical interface.
- Installation:
Each tool has its own features and configurations. The choice depends on your system and needs.
Backup your data
macOS
Use a separate encrypted external hard drive with configured Time Machine backups. Attach it whenever you are doing some important work, it will backup everything automatically. Recommended HDD size: at least twice as large as your internal hard drive. Apple guide.
Windows
In Windows 10 backup & restore functionality is easy and can be configured in Settings -> Update & Security -> Backup. Microsoft guide.
For Windows 8.1 and 7 follow Microsoft recommendations on system and data backups.
Select and use a third party backup software.
Linux
Linux users have many backup mechanisms at their disposal: from tar to rsync remotely to a file share. Less technically savvy users can choose from more user-friendly tools like Timeshift, Cronopete, or Duplicati.
You can backup your data by putting it to a cloud drive such as Dropbox, iCloud Drive, Google Drive etc. Don't forget to encrypt data before uploading it though.
Ransomware Defense and Recovery
Understanding modern ransomware
Ransomware is malicious software that encrypts your files and demands payment for the decryption key. Modern ransomware attacks have evolved into sophisticated operations:
- Ransomware-as-a-Service (RaaS): Criminal organizations rent out ransomware to affiliates
- Double extortion: Files are encrypted AND stolen, with threats to publish sensitive data
- Triple extortion: Adding DDoS attacks or contacting your clients/partners to increase pressure
Prevention strategies
1. Maintain offline backups (3-2-1 rule)
- 3 copies of your data
- 2 different storage types (external drive + cloud, for example)
- 1 offsite/offline copy (disconnected from network)
- Keep backup drives physically disconnected when not in use
- Test restoration regularly to ensure backups work
2. Disable macros by default
Cloud Security and Misconfiguration
Cloud storage is convenient but introduces unique security risks if not properly configured.
Common cloud misconfigurations:
Public access to private data
- S3 buckets, Azure Blob storage accidentally set to public
- Google Drive/Dropbox folders shared with "anyone with the link"
- Check sharing settings regularly
Weak access controls
- Overly permissive IAM roles
- Shared accounts instead of individual credentials
- No multi-factor authentication on cloud accounts
Hardcoded credentials
- API keys, passwords committed to Git repositories
- Credentials in configuration files uploaded to cloud
- Use environment variables or secret managers instead
Best practices for cloud security:
Enable versioning
- Recover from accidental deletions or ransomware
- Available in AWS S3, Google Cloud Storage, Azure Blob
Use bucket/container policies
- Explicitly deny public access by default
- Grant minimum necessary permissions
- Regularly audit access logs
Enable access logging
- Track who accessed what and when
- Set up alerts for unusual access patterns
- Required for forensics if breached
Encrypt at rest and in transit
- Use cloud provider encryption (AWS KMS, Azure Key Vault)
- Or client-side encryption before upload (Cryptomator, Boxcryptor)
- Always use HTTPS/TLS for transfers
Repository security (GitHub, GitLab, etc.)
- Never commit secrets to Git
- Use
.gitignorefor sensitive files (.env,config.json,credentials.json) - Scan commits with git-secrets or TruffleHog
- If secrets exposed: rotate immediately, assume compromised
:wrench: Tools to prevent secret leaks:
- git-secrets: https://github.com/awslabs/git-secrets
- TruffleHog: https://github.com/trufflesecurity/trufflehog
- GitHub secret scanning (automatic for public repos)
:exclamation: Remember: Once data is on the internet, assume it's permanent. Be extremely careful with cloud sharing.
- Most ransomware spreads through Office document macros
- Only enable macros for documents from absolutely trusted sources
- Consider blocking macros organization-wide
3. Keep systems and software updated
- Many ransomware attacks exploit known vulnerabilities
- Enable automatic updates where possible
- Prioritize security patches
4. Use application whitelisting
- Only allow approved applications to run
- Prevents unauthorized ransomware executables from launching
- Available through Windows Defender Application Control or third-party tools
5. Network segmentation
- Separate critical systems on different network segments
- Limits ransomware spread across your network
- Use VLANs or physical separation for important data
Early detection signs
Catch ransomware before it's too late:
:exclamation: Warning signs:
- Unknown file extensions appearing (
.locked,.encrypted,.crypted) - Inability to open previously accessible files
- Ransom notes appearing (
README.txt,HOW_TO_DECRYPT.html) - Unusual CPU or disk activity when system should be idle
- Antivirus or security tools being disabled
- Unfamiliar processes running in Task Manager
If you're infected - immediate response
:exclamation: Critical first steps:
Disconnect immediately (within seconds)
- Unplug Ethernet cable
- Disable WiFi
- Turn off mobile hotspot
- DO NOT turn off the computer yet (may lose evidence)
Disconnect external storage
- Unplug all USB drives, external HDDs
- Disconnect network-attached storage (NAS)
- Prevents ransomware from spreading to backups
Document everything
- Take photos of ransom notes with your phone
- Screenshot any error messages
- Note the time you discovered the infection
- Document what you were doing when it happened
Do NOT pay the ransom
- No guarantee you'll get your files back
- Funds criminal organizations
- May mark you as a willing payer for future attacks
- Approximately 50% of victims who pay don't get their data back
Recovery procedures
Step 1: Identify the ransomware strain
:wrench: ID Ransomware: https://id-ransomware.malwarehunterteam.com/
- Upload ransom note or encrypted file sample
- Identifies the specific ransomware variant
- Important for finding decryption tools
Step 2: Check for decryption tools
:wrench: No More Ransom: https://www.nomoreransom.org/
- Free decryption tools for many ransomware strains
- Partnership between law enforcement and security companies
- New decryptors added regularly
Step 3: Report to authorities
Always report ransomware attacks:
- United States: IC3.gov (FBI Internet Crime Complaint Center)
- European Union: Europol's No More Ransom initiative
- United Kingdom: Action Fraud (0300 123 2040)
- Your local cybercrime division
Step 4: Clean and restore
Complete system wipe
- Ransomware may leave backdoors
- Reinstall operating system from scratch
- Don't just delete visible malware
Restore from clean backups
- Use backups from before the infection
- Verify backup integrity before restoring
- Scan restored files with updated antivirus
Change all passwords
- Assume credentials may have been stolen
- Use different device to change passwords
- Enable 2FA on all accounts
Immutable backups
For critical data, consider immutable (write-once) backup solutions:
- Cloud solutions: AWS S3 Object Lock, Azure Immutable Blob Storage
- Hardware solutions: WORM (Write Once Read Many) drives
- Software solutions: Veeam immutable backups, Acronis Cyber Protect
These prevent ransomware from encrypting or deleting your backups even if it gains access to backup systems.
Business-specific considerations
If this is a business/work computer:
- Immediately notify IT/security team
- Don't attempt solo recovery - may destroy forensic evidence
- Activate incident response plan
- Consider hiring cybersecurity professionals
- Check cyber insurance policy - may cover recovery costs
- Prepare for potential regulatory notification - data breach laws may apply
:bulb: Prevention is infinitely cheaper than recovery. A good backup strategy is your best defense against ransomware.
Use crypto
Check web-sites encryption
Always make sure that the web-site to which you are passing your sensitive data is protected by HTTPS. That means it has https:// before it in the address bar and its certificate is validated by your browser, so it does not generate security warnings.
Note that presence of HTTPS by itself should not increase your trust in the web-site: anyone can generate a valid certificate for his/her web-site. The web-site domain name should be verified because it can be easily spoofed and web-site cloned if you don't pay attention.
:exclamation: And do not accept untrusted certificates either temporarily or permanently.
Encrypt data
You can use Full Disk Encryption feature of your OS to protect the data at your laptop or PC from theft or loss. FDE is a free feature on Linux, macOS, and Windows Pro.
macOS
Enable File Vault. That's it, you're done. Apple guide.
Linux
Use LUKS or other means of Full Disk Encryption. Alternatively you can select disk encryption options or encrypt just your home partition during OS installation. This seems to be a reasonable guide for Arch, but every popular distro has a similar how-to.
Windows
Enable BitLocker. It's fast, it's native to Windows, and it's easy to configure and use. Microsoft guide.
In case your edition of Windows comes without BitLocker, use a third party solution such as VeraCrypt, a fork of TrueCrypt, which itself is not recommended.
:wrench: VeraCrypt: https://www.veracrypt.fr/en/Home.html
:bulb: You can encrypt external drives or individual files too.
Encrypt communications
Use trusted end-to-end encrypted communications for private/confidential data. End-to-end encryption ensures that no one other than you and your recipient can access the conversation. The means of encrypting email end-to-end are PGP or GPG, or S/MIME. End-to-end encrypted Instant Messengers are Signal, WhatsApp, iMessage, Viber, Threema. Facebook Messenger, Google Allo, and Telegram have 'secret chats' that may be seen as more secure than default mode.
:wrench: Email encryption
- GPGTools for Apple Mail and macOS: https://gpgtools.org/
- OpenPGP in Microsoft Outlook 2016/2013/2010/2007: https://www.encryptomatic.com/openpgp/
- S/MIME in Outlook Web App: https://support.office.com/en-us/article/Encrypt-messages-by-using-S-MIME-in-Outlook-Web-App-2e57e4bd-4cc2-4531-9a39-426e7c873e26
:wrench: End-to-end encrypted IMs:
- Signal https://whispersystems.org
- WhatsApp (uses Signal protocol) https://www.whatsapp.com
- Viber https://www.viber.com
- Threema https://threema.ch
:bulb: Secure messaging apps comparison: https://www.securemessagingapps.com
Encrypt cloud data
Encrypt your sensitive data before uploading it to the cloud. Remember: there is no 'cloud', it's just someone else's computer. Boxcryptor and Cryptomator are the tools that allows you to encrypt data offline before putting it to your cloud drive. Use Boxcryptor for one cloud drive for free. Cryptomator is a free open source software.
:wrench: Boxcryptor: https://www.boxcryptor.com :wrench: Cryptomator: https://cryptomator.org
Use VPN
To protect your traffic data and metadata from network sniffing, use Virtual Private Networks. You can choose from many VPN services providers, such as proXPN or PrivateTunnel. You can install and maintain your own VPN server as well. Always use corporate VPN when working with business data remotely.
:wrench: Personal VPN services (recommended by Daniel Miessler):
- Mullvad https://www.mullvad.net/
- Zipline https://atenlabs.com/zipline/
- IVPN https://www.ivpn.net/
- AzireVPN https://www.azirevpn.com/
- OVPN.se https://www.ovpn.se/
:bulb: How to setup your own OpenVPN server on Digital Ocean: https://www.digitalocean.com/community/tutorials/openvpn-access-server-centos
:bulb: Algo is a fully automated Ansible-based approach to deploying a personal IPSec VPN server in any major cloud: https://github.com/trailofbits/algo
Mobile security
Mobile network is as insecure as public WiFi access point. Use the same crypto tools while on your cellular data network. Don't consider SMS or your voice calls private: use end-to-end encrypted voice calls and messages instead.
Use iOS. By all accounts, Apple mobile security and the security of its applications ecosystem is much more secure than one based on Android and controlled by your carrier or an OEM manufacturer (Samsung, LG, Sony etc.)
If Android, then Google. Only direct support by OS manufacturer can guarantee timely security updates. Any additional hops in the supply chain (OEM vendor, cellular carrier, enterprise IT etc.) decrease your security level. In some occasions updates just don't reach you after a year or two of using the device.
Don't root your phone. Use only authorized application repositories e.g. Google Play and Apple AppStore. Don't download or install 'emergency security updates' coming from sources other than software manufacturer.
SIM Swapping Attacks
What is SIM swapping? An attacker convinces your mobile carrier to transfer your phone number to a SIM card they control, bypassing SMS-based two-factor authentication.
Why it's dangerous:
- Attackers receive your SMS codes
- Can reset passwords to email, banking, crypto accounts
- High-profile victims include Twitter CEO Jack Dorsey
Protection measures:
Contact your carrier - request SIM protection:
- T-Mobile: Account Takeover Protection
- AT&T: Extra Security (passcode required for SIM changes)
- Verizon: Number Lock feature
- Other carriers: Ask about "port freeze" or "SIM PIN"
Create a carrier PIN/password:
- Different from your account password
- Required for any SIM or port requests
- Make it complex and unique
Never use SMS for 2FA on critical accounts:
- Use authenticator apps (Google Authenticator, Authy)
- Use hardware security keys (YubiKey, Google Titan)
- SMS is the weakest form of 2FA
Monitor for warning signs:
- Sudden loss of cellular service
- Notifications about SIM changes you didn't request
- Unable to make calls but WiFi works
If you're targeted:
- Contact carrier immediately to regain control
- Contact your bank and financial institutions
- Change passwords on all critical accounts (from a secure device)
- Enable 2FA on accounts that didn't have it
- File a police report (needed for financial recovery)
- Monitor accounts for fraudulent activity
:exclamation: SIM swapping is a federal crime but hard to prosecute. Prevention is critical.
Physical security
Keep your stuff where you can see or control it. Your computer and gadgets require the same level of physical security you maintain for your credit cards and apartment/car keys. :exclamation:Remember: if an attacker can get close to your PC without you noticing, most probably he will succeed in complete OS takeover with very little effort. Keeping user session locked can help, but there are modern attacks which it cannot protect you against.
So, don't leave your equipment unattended, especially when it is running. Shutdown or hibernate every time you leave it event for a few minutes. Require password every time you turn it on.
Do sensitive and insensitive operations on different computers. If you allow your kids play online games on the same PC you use for online banking – you will be hacked. If you shop online from the PC in a computer club or internet cafe – you will be hacked. If you send business emails from the PC in the open area of your hotel – you will be hacked.
Use separate computers for business and financial operations and activities that demand privacy and confidentiality. Use a dedicated virtual or physical machine for the most critical operations.
:bulb: In some authoritarian countries, you may be asked to provide a password to your encrypted information at the border and at the airport. When crossing the borders of such states, take advantage of the advice: ask the person you trust (preferably the lawyer) to change your password before leaving and give it to you only when you complete a trip. Repeat the procedure on the reverse path.
Stay safe!
IoT and Smart Home Security
Understanding IoT risks
Internet of Things (IoT) devices - smart cameras, doorbells, speakers, thermostats, TVs - are often the weakest link in home security.
Common vulnerabilities:
- Default passwords rarely changed
- Unpatched firmware with known security flaws
- Always-on microphones and cameras (privacy concerns)
- Unsecured communication protocols
- No encryption for data transmission
Securing common smart devices
Smart Cameras and Doorbells (Ring, Nest, Arlo, Wyze)
- Change default password immediately
- Enable two-factor authentication
- Disable remote access if not needed
- Cover cameras when not in use (or use privacy shutters)
- Check for firmware updates monthly
- Review who has access to shared cameras
Smart Speakers (Alexa, Google Home, Siri)
- Disable microphone when not needed (physical button)
- Review voice recording settings and delete history
- Don't link to sensitive accounts (banking)
- Be aware recordings may be reviewed by humans
- Place away from private conversation areas
Smart TVs
- Disable ACR (Automatic Content Recognition) tracking
- Cover built-in cameras with tape
- Review privacy settings
- Don't sign into sensitive accounts on TV browsers
- Disconnect from internet if only using for streaming devices
Smart Locks
- Use locks with local backup (physical key)
- Change default access codes
- Regularly review access logs
- Disable remote unlock if not needed
- Ensure batteries are fresh (lockouts are frustrating)
Router security (critical!)
Your router is the gateway to all your devices. Secure it properly:
Essential steps:
Change default admin password
- Default credentials are publicly available online
- Use a strong unique password
- Write it down and store securely offline
Update router firmware
- Check manufacturer website quarterly
- Enable automatic updates if available
- Old firmware = known vulnerabilities
Disable WPS (WiFi Protected Setup)
- Convenient but easily exploited
- Push-button WPS can be brute-forced in hours
Use WPA3 encryption (or WPA2 if WPA3 unavailable)
- Never use WEP (completely broken)
- Avoid WPA if possible (has vulnerabilities)
Change default SSID (network name)
- Default SSIDs reveal router model
- Don't use personally identifiable info ("Smith Family WiFi")
- Makes targeted attacks harder
Disable remote management
- Unless you specifically need it
- Reduces attack surface
- Manage router locally only
Create a guest network
- Separate network for visitors
- Different password than main network
- No access to your devices
Network segmentation for IoT
Why segment your network?
- IoT devices can't access your computers/phones
- If one device is compromised, attacker is isolated
- Critical devices protected from IoT vulnerabilities
Implementation options:
Guest WiFi for all IoT devices (easiest)
- Put all smart devices on guest network
- Keep computers and phones on main network
- Requires router with guest network support
VLAN segmentation (advanced)
- Separate virtual networks on same physical network
Incident Response: What to Do When Compromised
Recognizing you've been compromised
Computer/device indicators:
- Unusually slow performance or high CPU usage when idle
- Programs crashing frequently or unexpected reboots
- Unknown programs in startup or task manager
- Browser homepage/settings changed without your action
- Antivirus or security tools disabled
- Webcam light activating unexpectedly
- Pop-ups appearing when browser is closed
Account indicators:
- Password no longer works or was changed
- Friends report receiving spam from your accounts
- Unfamiliar emails in your sent folder
- Unknown devices logged into your accounts
- Two-factor authentication prompts you didn't initiate
- Alerts about logins from strange locations
Financial indicators:
- Unauthorized transactions or purchases
- Unknown subscriptions or recurring charges
- Cryptocurrency wallet balances changed
- Credit card charges you didn't make
Immediate response protocol
First 5 minutes - STOP THE BLEEDING:
Disconnect from internet immediately
- Unplug Ethernet cable OR disable WiFi
- Turn off mobile data
- DO NOT turn off the computer (may lose evidence)
Disconnect external storage
- Unplug USB drives, external HDDs
- Prevents malware spread to backups
Document everything
- Take photos with phone of any ransom notes, error messages
- Note the exact time you discovered the issue
- Write down what you were doing when it happened
Next 15-60 minutes - ASSESS AND CONTAIN:
From a DIFFERENT, clean device:
- Change passwords for critical accounts (email, banking, work)
- Enable 2FA on all accounts if not already enabled
- Contact your bank/credit card companies about potential fraud
Notify relevant parties:
- If work computer: Immediately inform IT/security team
- If personal: Notify family members, close contacts
- Don't attempt solo recovery on work systems
Assess the damage:
- What sensitive data is on the compromised device?
- What accounts were logged in?
- Do you have recent backups?
Recovery steps
For malware/virus infections:
- Boot into Safe Mode (if possible)
- Run full antivirus scan with updated definitions
- Use specialized removal tools:
- Malwarebytes: https://www.malwarebytes.com
- HitmanPro
- ESET Online Scanner
- Check for malicious browser extensions
- Reset browser settings to defaults
- If severe: Complete system wipe and OS reinstall
For account compromise:
- Change password from clean device
- Enable or reset two-factor authentication
- Review account activity logs thoroughly
- Revoke access for connected apps and services
- Check for email forwarding rules (common attacker tactic)
- Review and update account recovery options
- Notify contacts if your account sent spam
For ransomware:
- See the dedicated Ransomware Defense and Recovery section above
Reporting to authorities
Always report these incidents:
- Ransomware attacks
- Identity theft
- Financial fraud over $1000
- Stalking or harassment
- Child exploitation material
- Corporate data breaches
Where to report:
- Ukraine: Кіберполіція України - https://cyberpolice.gov.ua
- United States: IC3.gov (FBI), IdentityTheft.gov (FTC)
- European Union: Europol's EC3
- United Kingdom: Action Fraud - 0300 123 2040
- Canada: Canadian Anti-Fraud Centre
- Australia: ReportCyber - https://www.cyber.gov.au
When to hire professionals:
- Business systems compromised
- Suspected advanced persistent threat (APT)
- Data breach involving customer/employee data
- Legal or compliance requirements
- Unable to remove infection after multiple attempts
- Need forensic evidence for legal action
Prevention through preparation
Create your incident response kit NOW:
Emergency contact list (keep offline):
- Bank phone numbers
- Credit card company numbers
- IT support contact
- Cybersecurity incident response firm
- Local police cybercrime unit
Recovery tools:
- Bootable USB with OS installer
- Antivirus rescue disk
- Backup of critical data (tested recently)
- Password manager backup/recovery codes
- Software licenses and activation keys
Documentation:
- List of all your important accounts
- Device serial numbers and purchase receipts
- Insurance policy information (cyber insurance if you have it)
- Baseline system configurations
:bulb: Remember: The best incident response is incident prevention. Maintain backups, use strong authentication, keep systems updated.
- Requires managed switch or advanced router
- Best security but more complex
- Separate physical router (intermediate)
- Dedicated router for IoT devices
- Completely isolated network
- Simple but requires extra hardware
IoT device purchase considerations
Before buying, check:
- How long will manufacturer provide updates?
- Does it require cloud services? (What if company shuts down?)
- Can it work locally without internet?
- What data does it collect and where is it sent?
- Have there been past security incidents with this brand?
- Are there independent security reviews?
:wrench: Tools for IoT security:
- Fing: https://www.fing.com/ (see all devices on network)
- Bitdefender Home Scanner: https://www.bitdefender.com/solutions/home-scanner.html
- Router
Check: Check router security
:exclamation: Remember: Convenience vs Security - every smart device is a potential entry point. Only connect devices you actually use.
Thank you for taking care of your personal cyber-security. Share these tips with your friends, colleagues and close ones to make the world a bit safer.
These tips are contributed by multiple security professionals who have years of experience in building, assessing, and ethically hacking computer systems, applications and networks.
You can share these tips, use them commercially, and change them as you wish. It's free. Links to the original and credits are welcome.
If you have something add or found an error in the text, let me know: via email [email protected] or by creating an issue. Pull requests are the most welcome.
Credits
This guide wouldn't exist without the help of many security professionals in Ukraine and abroad. Big thanks to everyone who contributed to the contents of this document and proposed the edits and updates along the course of its creation. Compiled and drafted by Vlad Styran, BSG, https://blog.styran.com.
Special thanks go to Boris "@jadedsecurity" Sverdlik for a great deal of inspiration and coining the "Don't click shit" slogan.
Explore related projects
Loading…