Skip to content
yofriendfromschool1Public

About

Bunch of stuff to protect your self from viruses

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ stay-safe

Platforms Focus Cost

A practical, community-maintained guide to protecting yourself from malware: prevention, detection, removal, and recovery — across Windows, macOS, Linux, and Android, with dedicated deep dives into ransomware and info-stealers.

Everything in this guide is free to use and free to share. Corrections and new tools are welcome — see Contributing.

Quick navigation

Situation Go to
Not infected, want to stay that way 1. The Golden Rules
Want to vet a file before opening it 2.1 Online Scanners and Sandboxes
Infected right now 4. Infected Right Now: Incident Response
Ransom note on screen 5. Ransomware
Passwords or sessions stolen 6. Info-Stealers
Cleaning a specific device 8. Windows · 9. macOS · 10. Linux · 11. Android

⚡ The 60-second audit

Run through this now — every "no" is your to-do list:

  • An offline backup exists and was tested this quarter (7. Backups)
  • An ad blocker is installed (2.4 Ad Blockers)
  • A filtering DNS resolver is configured (2.5 DNS Filtering)
  • 2FA is on email, banking, and crypto accounts (14. Passwords and 2FA)
  • Every password is unique and stored in a manager (14)
  • OS and browser are fully updated
  • File extensions are visible on Windows (8.8)
  • You know how to find persistence with Autoruns if you ever have to (8.6 Manual Hunting)

📑 Table of Contents


🧭 1. The Golden Rules

No single product makes you safe. Layers and habits do. If you remember ten things from this guide, make it these:

# Rule Why
1 Verify before you run. Check what you are downloading and where it came from. Common sense is the antivirus no vendor can sell you. Most infections start with a file the victim ran on purpose.
2 Scan before executing. VirusTotal plus one sandbox run (see 2. Prevention Toolkit). A clean scan is a data point, not a green light.
3 Keep offline backups. Ransomware is an inconvenience if you can restore, and a disaster if you can't. See 7. Backups.
4 Update everything. OS, browser, phone, antivirus. Most attacks exploit bugs that were patched months ago.
5 Unique passwords + 2FA everywhere. One reused password turns one breach into every breach. See 14. Passwords, 2FA, and Account Hygiene.
6 Run with least privilege. Malware inherits the rights of the account that launched it. A standard user account blunts a large share of payload behavior.
7 If it is normally paid and you got it free, ask why. Cracks, keygens, and "free" game cheats are the single biggest malware channel. The STOP (Djvu) ransomware family spread almost exclusively through cracks and keygen downloads (Emsisoft).
8 Never paste commands from web pages. A growing scam ("ClickFix") shows a fake CAPTCHA and asks you to press Win + R, paste, and hit Enter. The pasted text is the malware.
9 An ad blocker is not optional. Malvertising is a top infection vector — one malicious ad on a normal site is enough. See 2.4 Ad Blockers.
10 When in doubt, contain it. Run it in a disposable VM (12. Advanced Analysis) — or don't run it at all.

🧪 2. Prevention Toolkit

2.1 Online Scanners and Sandboxes

Scan files before you run them. These services are free, need no installation, and detonate the file on their servers instead of yours.

Service Type Best for
VirusTotal Dozens of AV engines The mandatory first check for any file, URL, or hash; read the community comments too
Triage Automated sandbox Detonate a suspicious file and read a full behavioral report
ANY.RUN Interactive sandbox Watch malware execute step by step in real time and interact with the desktop
Cuckoo · mirror Automated sandbox Classic sandbox detonation reports
Manalyzer Static analysis Deep look inside a Windows executable without running it
Hybrid Analysis Sandbox (Falcon) Detailed behavioral and static reports
Jotti Multi-engine scan Quick second opinion
OpenTip Cloud scanner (Kaspersky) Second opinion from Kaspersky's engine
Malprob AI sandbox Fast automated triage
Filescan Sandbox Behavioral and static analysis
MetaDefender Multi-engine (OPSWAT) Multi-engine scanning plus content disarm and reconstruction
Dangerzone Document sanitizer Converts scary PDFs and Office documents into safe, flat copies before you open them

Notes

  • Uploading a file to a public scanner shares it with the security community. Fine for malware — do not upload documents containing personal secrets.
  • Sandboxes run the file on their servers, not on your machine. Use them for anything that did not come from an official source.

2.2 How to Read Scanner Results

A clean scan does not mean safe. Read the evidence instead of trusting one number:

  • A 0-detection result is not a green light. Brand-new samples, custom-built malware, and freshly repacked crypters pass every engine. Scanners can only catch what they have already seen.
  • Detection names matter. Trojan:Win32/Lumma.Stealer tells you exactly what you have. Several engines flagging Generic/Heuristic/Suspicious at once should also be taken seriously.
  • Look at the file details. An unsigned executable pretending to be a PDF invoice, a setup.exe compiled yesterday with a random name, and extreme entropy (heavy packing) all strengthen the case.
  • In sandboxes, watch behavior. Persistence (registry run keys, scheduled tasks, startup folders), processes spawned, files dropped, connections to odd domains. capa gives you the same insight offline.
  • Two independent suspicious indicators = treat as malicious. Do not rationalize a file you already want to trust.

2.3 Browsers

The browser is the door most malware walks through. Recommended:

  • LibreWolf — Firefox with privacy hardening built in
  • Mullvad Browser — the Tor Browser's anti-fingerprinting technology, without the Tor network
  • Brave — Chromium with a built-in blocker

Any of these three beats a stock browser setup. If you must use Chrome or Edge, at least keep an ad blocker installed and updated.

2.4 Ad Blockers

Always use an ad blocker while browsing. Malvertising is one of the most common infection vectors — a single malicious ad on an otherwise normal site can deliver fake update banners, scam popups, and drive-by downloads.

  • uBlock Origin — if you install one thing from this guide, install this. Efficient, open source, actively maintained.
  • AdNauseam — an experimental fork of uBlock Origin that also clicks ads in the background; still an effective blocker.

Note: Manifest V3 limits content blockers on Chrome. uBlock Origin works best on Firefox-based browsers (LibreWolf, Firefox, Waterfox) and on Brave.

2.5 DNS Filtering

Your DNS resolver decides where domain names point. A filtering resolver blocks known-malicious domains before a connection is ever made — configure it once on your router and every device in your home benefits.

  • Quad9 — free, non-profit resolver that blocks malware and phishing domains. Set 9.9.9.9 (secondary: 149.112.112.112) on your router or device. Mullvad shut down its own public DNS service and now sponsors Quad9 (announcement).
  • NextDNS — free tier for personal use, with customizable blocklists and query logs.

2.6 Safe Downloading Habits

  • Official sources first. Vendor site, app store, your distro's repositories, the developer's GitHub. If a download reached you through an ad, a Discord DM, or a "free download" aggregator, treat it as hostile until scanned.
  • Watch file extensions. invoice.pdf.exe, photo.scr, document.lnk, setup.vbs — the real extension is what matters. Turn on file extensions in Explorer (8.8).
  • Password-protected archives are a red flag. If a site hands you a ZIP plus a password, that password exists to defeat email and antivirus scanning.
  • Verify checksums when available. A SHA-256 you compare yourself beats trusting the mirror.
  • Trust uploaders, not sites. On torrent and community sites, reputation follows the uploader. The same site serves both gold and garbage.
  • Use community safety lists. FMHY (Free Media Heck Yeah) maintains a large, actively curated wiki of free content — including an Unsafe Sites list naming the game repack sites, software sites, and file hosts that have been caught distributing malware (GetIntoPC, FileCR, OceanOfGames, and many more), plus lists of fake Windows activators, fake Z-Library mirrors, and fake Anna's Archive clones. FMHY also publishes the SafeGuard browser extension and an adblocker filterlist (both linked from the Tools menu on their site). If you download free media or software, bookmark that page and check it. And remember: scene groups do not have websites — anything claiming to be an official repacker site is fake by definition.

🎣 3. Scam and Trap Awareness

Most infections do not "hack" you — they talk you into running them. Know the patterns:

  • Fake infection alerts and tech-support scams. A full-screen "YOUR PC IS INFECTED — call +1-..." popup with a siren sound is a scam page, not Windows. Close the tab. If the dialog keeps re-appearing, kill the entire browser process with Task Manager (Ctrl + Shift + Esc). Never call the number, and never grant remote access (AnyDesk, TeamViewer, ScreenConnect) to anyone who contacts you first.
  • Fake updates. Flash Player reached end-of-life in December 2020 — every "Flash update" prompt since then is malware. Same for fake Chrome, Java, and driver-update popups on random sites. Update only through the browser's or application's own update function.
  • Fake CAPTCHA pages ("ClickFix"). A page claims you must "verify you are human" and shows instructions like press Win + R, Ctrl + V, Enter. The clipboard holds a command that downloads and runs malware. Never paste anything into a Run dialog or terminal at a web page's request.
  • Cracks, keygens, cheats, "free Nitro". The top infection channel, period. Game cheats are predominantly stealer droppers; Discord "free Nitro" links are token grabbers; YouTube videos and comments promising free premium software are, in FMHY's words, "nearly always scams." See rule 7 in 1. The Golden Rules.
  • Crypto drainers. "Connect your wallet to claim the airdrop" pages ask you to sign a malicious transaction. Never sign transactions reached from links — navigate to the protocol yourself.
  • Phishing and lookalike domains. steamcomunity.com, discordgift.site, micros0ft-login.com. Read the domain character by character before entering credentials. Urgency ("your account will be deleted in 24 hours") is the tell.
  • Sponsored search results. Attackers buy ads that sit above the real site. Check the URL before clicking an ad — or better, use a bookmark.

🚨 4. Infected Right Now: Incident Response

Work through this in order. Do it from your phone if you have to — don't freestyle.

  1. Disconnect from the internet. Unplug the cable or turn off Wi-Fi. This stops command-and-control traffic, data exfiltration, and ransomware spreading to other devices on your network.
  2. Power off only if files are being encrypted right now. If you can watch files being renamed or a ransom note just appeared, power off immediately to halt the encryption. Otherwise leave the machine on — memory may hold encryption keys or evidence you will want (5. Ransomware).
  3. Unplug external drives and pause sync now. Ransomware encrypts connected USB drives and network shares. Disconnect every backup target. Pause or unlink cloud sync so encrypted files don't overwrite good versions in the cloud.
  4. Identify what you actually have:
What you're seeing Most likely Go to
Files renamed with new extensions, ransom notes, wallpaper changed Ransomware 5. Ransomware
Signed out everywhere, unknown logins, missing crypto, friends get strange DMs from you Info-stealer 6. Info-Stealers
CPU/GPU pinned at 100% while idle, PC slow and hot Cryptominer 8. Windows / 10. Linux
Popups, homepage hijack, new toolbar, fake search engine Adware / PUP 8.2 The Cleaning Kit
Cursor moves on its own, windows open themselves, webcam light on RAT 8.6 Manual Hunting — and assume data theft too
Antivirus disabled, admin rights gone, tools report "access denied" Rootkit / bootkit 8.7 Last Resort

Symptoms overlap and modern malware bundles payloads — a RAT usually also steals. Assume the worst column that matches your symptoms.

  1. Do not log into anything on the infected machine. No banking, no email, no Discord, no wallet. Assume every keystroke and cookie is being recorded.
  2. Clean the machine. Follow the section for your platform: Windows · macOS · Linux · Android. A full reset or clean reinstall is the gold standard whenever you are not confident the cleaning worked.
  3. Reset credentials — from a clean device. Never change passwords from the infected machine; a keylogger will simply capture the new one. Follow the order in 6.3 Aftermath: The Reset Checklist. Email comes first.
  4. Close the entry point. Uninstall the crack or loader that brought it in, revoke permissions you granted blindly, patch what needed patching. If you can't find the entry point, expect to be reinfected.
  5. Aftercare. Watch account activity for a couple of weeks, review OAuth app grants and email forwarding rules, and run another full scan after a few days.

A note on System Restore: rolling back to a restore point can help if one exists from before the infection — but many modern threats delete or infect restore points, and System Restore was never designed as malware removal. Treat it as one tool among several, not a cure. Restoring does not touch your personal files either way.


🔒 5. Ransomware

5.1 What Ransomware Is

Ransomware encrypts your files and demands payment for the key. Modern families practice double extortion: they steal your data before encrypting, so the demand becomes "pay to decrypt, and pay so your files aren't leaked." It runs as a criminal industry — ransomware-as-a-service, with affiliates, support desks, and leak sites.

5.2 Signs of Infection

  • Files across the system suddenly renamed with unfamiliar extensions (.lockbit, .rmallox, .stop, or random strings)
  • A ransom note dropped into every folder (HOW_TO_RECOVER.txt, readme!!!.txt) or the wallpaper replaced with a ransom message
  • Files that opened fine minutes ago now won't open at all
  • Shadow copies deleted (vssadmin list shadows comes back empty)
  • A sudden burst of disk activity, then silence

5.3 First Response: Do's and Don'ts

Do Don't
Disconnect from the network immediately Don't pay. There is no guarantee of a working decryptor, payment funds the next attack, and paying some sanctioned operators carries legal risk
Power off if encryption is happening right now Don't keep browsing on the same machine to "research the note" — use your phone
Photograph the ransom note and a few encrypted file names Don't delete the note or the encrypted files — identification tools need them
Disconnect all external and network drives Don't reinstall Windows yet — you may destroy data a decryptor could have recovered
Verify you have clean, offline backups Don't download "decryptors" from random sites — fake decryptors are malware themselves

5.4 Identify and Try to Decrypt

  1. ID Ransomware — upload the ransom note and one encrypted file; it identifies the family and tells you whether a free decryptor exists.
  2. No More Ransom — the largest collection of free decryption tools, run by a coalition of law-enforcement agencies and security companies.
  3. Emsisoft's free decryptor collection — regularly updated; the STOP (Djvu) decryptor alone covers a large share of consumer victims.

Reality check: for competent modern ransomware there is usually no decryptor. Older, amateur, or badly implemented families are often breakable — which is why identifying the family first matters. Archive the encrypted files even if no decryptor exists today; some appear years later.

5.5 Reporting

Report it, even if it feels pointless — reports drive decryptor releases and law-enforcement takedowns:

5.6 Recovery

  • Rebuild the machine cleanly (full reset or verified clean install) before restoring anything to it.
  • Restore files from your offline backup (7. Backups) only after the machine is clean.
  • On Windows, check shadow copies with vssadmin list shadows (admin Command Prompt) — usually wiped by the attacker, but worth 30 seconds.
  • Last resort: file-carving tools like TestDisk / PhotoRec can sometimes recover deleted originals or partial copies. Low odds, but not zero.

5.7 Prevention

With ransomware, preparation decides everything:

  • Offline backups are the only guaranteed cure — see 7. Backups and the 3-2-1 Rule.
  • Never expose RDP (port 3389) directly to the internet. Use a VPN if you need remote access.
  • Email attachments: verify the sender out-of-band before opening documents, especially invoices you weren't expecting.
  • Controlled folder access (Windows) blocks untrusted apps from encrypting your documents — enable it in 8.8.
  • Cyberscarecrow — a free tool that deters human-operated ransomware by making your system look like a hardened, monitored target worth skipping.
  • Patch. Most business intrusions begin with a known, unpatched vulnerability.

5.8 If This Is a Business Machine

Consumer advice stops applying the moment other people's data is involved:

  • Isolate the machine from the network, but do not power it off or wipe it — evidence and legal duties now matter more than convenience.
  • Call your cyber insurer and legal counsel before responding — some policies are voided by the wrong first move.
  • Assume data theft (double extortion is the default) and prepare your disclosure obligations accordingly.
  • Report to CISA and IC3, plus any sector-specific regulator.
  • If the blast radius is more than one desk, engage a professional incident-response firm — this guide is for endpoints, not enterprises.

🕵️ 6. Info-Stealers

The most common consumer malware today. A stealer runs for a few seconds, empties your browser, and leaves — often with no visible sign at all.

6.1 What Info-Stealers Steal

  • Saved passwords and browser autofill (including credit cards and addresses)
  • Session cookies — this is the killer: cookies log the thief into your accounts as you, bypassing both your password and your 2FA
  • Crypto wallets — browser extension wallets (MetaMask, Phantom) and desktop wallets (Exodus, Electrum)
  • Discord tokens — full account access, including bypassing 2FA
  • Telegram desktop sessions, SSH keys, screenshots, and system info

Assume that everything your browser has ever saved is gone the moment a stealer executes.

Signs you were hit:

  • Browser sessions logged out everywhere, or "new sign-in" alerts you don't recognize
  • A recovery email or phone changed on an account, or mail-forwarding rules you didn't create
  • Crypto moved from a wallet you didn't touch
  • Contacts receiving DMs you never sent

6.2 Families to Know

Well-known families include RedLine, Lumma (LummaC2), StealC, Vidar, Raccoon, Csteal, Creal, Lunar Stealer, Comet, and Blank Grabber (stealers), plus RATs that also steal: Remcos, Quasar, and AsyncRAT. When any of these names appears in a detection string or a sandbox report, treat it as a full-compromise event — not an adware-style nuisance.

6.3 Aftermath: The Reset Checklist

Do all of this from a clean device (your phone or a disinfected machine), in this order:

  1. Email account first. It is the master key to everything else. Change the password, log out all sessions and devices, and check the recovery email, recovery phone, forwarding rules, and filters.
  2. Log out all sessions everywhere. Most services have a "log out of all devices" button — use it.
  3. Change passwords for banking, shopping, social media, gaming, and cloud accounts. Unique, generated, stored in a manager (14. Passwords, 2FA, and Account Hygiene).
  4. Re-enroll 2FA. Stealers grab TOTP seeds too. Set it up fresh, from the clean device.
  5. Rotate API keys and OAuth grants: GitHub (Settings → Developer settings and Settings → Applications), Discord (deauthorize connected apps), Steam (revoke the API key and deauthorize all devices), and any cloud or exchange keys you hold.
  6. Crypto: move funds to a brand-new wallet generated on a clean device. Assume every seed phrase and wallet file on the infected machine is burned.
  7. Warn your contacts. Stolen accounts get used to send malware to your friends.
  8. Check past exposure: Have I Been Pwned.
  9. Only return to the machine after 4. Incident Response is complete — a reinfection re-steals your new credentials.

6.4 Further Reading

The Ultimate Guide to Info-Stealers (rifteyy) — the definitive community write-up on stealer families, stolen "logs," and aftermath procedure. Strongly recommended reading.


💾 7. Backups and the 3-2-1 Rule

Prevention fails eventually. Backups are what turn a catastrophe into an inconvenience.

The 3-2-1 rule:

  • 3 copies of your data — one primary, two backups
  • 2 different types of media (internal + external, local + cloud)
  • 1 copy offsite — another building, or the cloud

Plus the addition modern ransomware forces on you:

  • 1 copy offline — a USB drive or NAS snapshot that is disconnected. Ransomware encrypts plugged-in drives and network shares using your own credentials. Cloud sync is not a backup either: sync faithfully propagates the encrypted files over your good copies. You need point-in-time versioning (OneDrive/Dropbox previous versions, snapshot-based NAS shares) or a genuinely offline copy.

Practical setups by platform

Platform Good Better
Windows File History to an external drive Plus cloud with versioning and an offline drive rotated weekly
macOS Time Machine to an external disk Plus a second Time Machine destination
Linux Timeshift (system) Plus restic or Borg (files) pushed to remote storage
Android Google's built-in backup Plus local export of critical data

What actually needs backing up: documents, photos, projects, browser bookmarks, 2FA backup codes, wallet seed phrases (stored encrypted and offline), and a list of your accounts with their recovery emails. Programs don't need backups — they can be reinstalled; your files can't.

Test your restores. Once a quarter, actually restore a folder and open the files. An untested backup is a hope, not a backup.


🪟 8. Windows

8.1 Built-in Defenses

Microsoft Defender (Windows Security) is a competent real-time engine that ships with the OS. Before reaching for third-party tools:

  • Keep real-time protection, cloud-delivered protection, and Tamper Protection enabled.
  • For stubborn infections, use the Microsoft Defender Offline scan (Windows Security → Virus & threat protection → Scan options → Microsoft Defender Offline scan). It reboots the PC and scans before Windows loads, where rootkits cannot defend themselves.
  • Keep Windows Update current, including Defender definition updates.

8.2 The Cleaning Kit

Second-opinion scanners — no single engine catches everything. Run a full scan with Defender first, then one or two of these:

Tool Type Notes
AdwCleaner PUP/adware remover First step for browser hijacks, toolbars, and bundled junk
Malwarebytes On-demand scanner Free on-demand cleanup; strong against PUPs
HitmanPro Second opinion (Sophos) Behavioral and multi-cloud verdicts, 30-day free trial
Norton Power Eraser Aggressive remover Deep-set rogues; over-flags legitimate software too — review before deleting
Kaspersky Total Security · mirror Full suite (torrent) Free official alternative: KVRT
Bitdefender Total Security · mirror Full suite (torrent) Official free trials are available at bitdefender.com
The Second Opinion Multi-engine helper Runs several engines for a combined verdict
Emsisoft Emergency Kit Portable dual-engine kit Fully portable, no installation
KVRT Free removal tool Official Kaspersky on-demand cleaner, no install
Rkill Process terminator Run FIRST — it stops malicious processes so scanners can actually run; removes nothing itself
Kaspersky recovery utilities Rescue toolkit Free system-recovery and file-decryption utilities

Torrent links: the torrent links above (plus the HTTP Debugger link in 12.4) require a BitTorrent client — qBittorrent is a clean, open-source choice. All links here are user-submitted; scan whatever you download, every time.

8.3 Recommended Scanner Settings

  • One real-time engine at a time. Running two full antivirus suites simultaneously causes conflicts, crashes, and worse detection. Uninstall the old one before installing a new one.
  • In every scanner, enable: PUP/PUA detection, rootkit detection, scan inside archives, and cloud/behavioral detection.
  • Quarantine, don't delete, on the first pass. Aggressive tools catch false positives — review the list before removing anything.
  • Update definitions immediately before every scan.
  • After cleaning, re-scan with a different engine until two consecutive full scans come back clean.

8.4 Built-in Triage Commands

Run these from an elevated Command Prompt (Start → type cmd → Run as administrator):

Command What it does
mrt (in a Win + R box) Windows Malicious Software Removal Tool — Microsoft's scanner for widespread malware families
sfc /scannow System File Checker — verifies and repairs corrupted or tampered Windows system files
DISM /Online /Cleanup-Image /RestoreHealth Repairs the component store when SFC can't fix files
ipconfig /flushdns Flushes a poisoned DNS cache (symptom: browsers going to wrong sites)
vssadmin list shadows Lists restore points and shadow copies — ransomware usually wipes these
netstat -bno Shows which executable owns each network connection — catch a RAT or miner phoning home (cross-check in Process Explorer)
resmon Resource Monitor — find the process hammering disk or network (active ransomware, miners)

8.5 The Full Cleaning Recipe

When a machine needs a proper cleaning, order matters. One pass through this sequence handles the overwhelming majority of consumer infections:

  1. Back up your documents first — to a drive you then disconnect. Cleaning tools occasionally eat legitimate files.
  2. Disconnect from the internet.
  3. Boot into Safe Mode — Settings → System → Recovery → Advanced startup → Restart now → Troubleshoot → Advanced options → Startup Settings → Restart → press 4. Most malware doesn't start in Safe Mode, so it can't fight back while you clean.
  4. Run Rkill — stops active malicious processes and un-hijacks proxy and hosts-file settings so the next steps can run.
  5. AdwCleaner: Scan → Clean, then reboot when asked. Clears adware and PUPs.
  6. Malwarebytes: run a full scan, remove everything it finds, reboot if asked.
  7. HitmanPro — a second engine's opinion on whatever survived.
  8. Still suspicious? Back in normal Windows, trigger the Microsoft Defender Offline scan (8.1) and let the machine reboot into it.
  9. Verify persistence is gone with Autoruns — anything the scanners left behind shows up there (8.6).
  10. Reboot normally, reconnect, update everything, and run one final full scan with a different engine (8.3).
  11. Then change passwords — from a clean device if this machine was online while infected (6.3).

8.6 Manual Hunting

Automated scanners miss persistence. Malware that survives scans almost always lives in one of these places — check them in order:

  1. Task Manager → Startup apps — anything unknown; right-click → Open file location to see where it actually lives.
  2. Task Scheduler (taskschd.msc) — look for tasks launching from %APPDATA%, %TEMP%, or your Downloads folder. Legitimate software almost never does.
  3. Startup folders — Win + R → shell:startup (your user) and Win + R → shell:common startup (all users). Anything you didn't put there?
  4. Registry autostart keys (regedit):
Classic malware autostart locations in the registry
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon   (Shell and Userinit values)
HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

Look up any value you don't recognize, and cross-check names in BleepingComputer's Startup Database.

  1. The professional way — Sysinternals:
    • Autoruns — shows every autostart location in one list. Enable Options → Hide Microsoft and Windows Entries, then scrutinize what remains. Turn on the built-in VirusTotal check in Options → Scan Options.
    • Process Explorer — Task Manager with teeth. Purple entries are packed (suspicious), and you can submit any process to VirusTotal from the right-click menu.
  2. Red flags anywhere in the above: a svchost.exe that is not in C:\Windows\System32, anything running from AppData/Temp/Downloads, scripts (.vbs, .ps1, .bat) at startup, scheduled tasks that re-download files, entries with no publisher or description.

Video walkthroughs genuinely help. Searching YouTube for "how to find a RAT with Process Explorer" or "Autoruns malware analysis" and following along in real time is far easier than working from text alone.

8.7 Last Resort: Reset and Reinstall

If anything still feels wrong after a full cleanup — or you found a RAT, rootkit, or bootkit — stop cleaning and reset:

  • Settings → System → Recovery → Reset this PC, and choose Remove everything ("Keep my files" too often keeps the infection too).
  • Better still: a clean install from USB made with Microsoft's Media Creation Tool.
  • Beforehand, back up personal files (documents, photos, projects) — not programs. After reinstalling, scan those files before opening them, and change your passwords from a clean device (6.3).

8.8 Windows Hardening Checklist

  • Microsoft Defender on, with Tamper Protection and cloud-delivered protection
  • Show file name extensions (Explorer → View → Show → File name extensions) — kills invoice.pdf.exe
  • SmartScreen on, and its warnings taken seriously
  • Controlled folder access (Windows Security → Ransomware protection) — blocks untrusted apps from encrypting your documents
  • Core isolation → Memory integrity on
  • BitLocker device encryption on laptops
  • UAC at the default level or higher; use a standard account day-to-day
  • Windows Update and Defender definitions current
  • RDP never exposed directly to the internet
  • A filtering DNS resolver configured (2.5 DNS Filtering)

🍎 9. macOS

"Macs don't get viruses" stopped being true years ago. macOS malware is a real and growing category — recent examples include Atomic macOS Stealer (AMOS), spread through fake Homebrew pages reached from search-engine ads. macOS is a smaller target, not an immune one.

9.1 Built-in Defenses

  • XProtect — Apple's signature- and behavior-based scanner, updated silently in the background. Keep System Settings → General → Software Update → Automatic enabled so these updates arrive.
  • Gatekeeper — blocks apps from unidentified, unnotarized developers (System Settings → Privacy & Security). Don't disable it system-wide; right-click → Open is the intended override for software you actually trust.
  • Malware Removal Tool (MRT) — Apple's cleaner that removes known malware after detection. (Unrelated to the identically named mrt.exe on Windows.)
  • System Integrity Protection (SIP) — protects system files from tampering. Check with csrutil status in Terminal; it should report enabled.
  • Notarization — Gatekeeper requires apps to pass Apple's automated malware scans. Treat it as a filter, not a guarantee.

9.2 Cleaning Tools

Tool What it does
Malwarebytes for Mac Full on-demand scan and cleanup, free tier
KnockKnock Shows everything persistently installed — launch agents, daemons, login items, browser plugins, and more
TaskExplorer Inspect running processes: what they're doing, who signed them, VirusTotal lookups
BlockBlock Real-time alerts when anything tries to establish persistence
LuLu Open-source firewall — catches malware phoning home and apps exfiltrating data
ReiKey Detects keystroke monitoring (event-tap keyloggers)
OverSight Alerts when apps access the microphone or camera
RansomWhere? Ransomware tripwire — alerts on mass file-encryption behavior
What's Your Sign Adds code-signature details to Finder's right-click menu

All the Objective-See tools are free and open source — objective-see.org/tools.html.

9.3 Manual Checks

# Persistence — anything you don't recognize?
ls -la ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons

# What's loaded right now?
launchctl list | sort

# Suspicious processes and network connections
ps aux
lsof -i

# SIP should report "enabled"
csrutil status

/System/Library/Launch* is Apple's own — leave it alone.

Also check:

  • System Settings → General → Login Items — the GUI view of persistence
  • Browser extensions (Safari → Settings → Extensions, plus the Chrome/Firefox equivalents) — a favorite adware hiding spot
  • System Settings → General → VPN & Device Management — configuration profiles you didn't install are a classic macOS attack technique; remove them
Advanced: Gatekeeper and quarantine attributes from the command line
spctl --status                            # Gatekeeper status: should say "assessments enabled"
xattr -l ~/Downloads/some-app.dmg         # look for the com.apple.quarantine flag
xattr -d com.apple.quarantine ~/Downloads/some-app.dmg   # remove it (what right-click → Open does under the hood)

Don't strip quarantine flags in bulk as a habit — the flag is what makes Gatekeeper prompt you at all.

9.4 macOS Hardening Checklist

  • Automatic updates enabled (keeps XProtect definitions current)
  • Firewall ON — it ships OFF (System Settings → Network → Firewall)
  • FileVault encryption on
  • Gatekeeper left at "App Store and identified developers"; avoid spctl --master-disable
  • No unknown configuration profiles installed
  • Browser ad blocker installed (2.4 Ad Blockers)
  • Time Machine backups running, with one destination kept offline (7. Backups)

🐧 10. Linux

Linux desktop infections are rare, but Linux servers are among the most attacked machines on the internet — SSH brute force, cryptominers, botnets, web shells, and dependency supply-chain attacks (the 2024 XZ Utils backdoor shows how close that gets to home). The desktop checks below apply to servers too.

10.1 Scanners

Tool Type Usage
ClamAV Antivirus engine sudo freshclam then clamscan -r --bell -i ~
rkhunter Rootkit hunter sudo rkhunter --update && sudo rkhunter --check
chkrootkit Rootkit scanner sudo chkrootkit
Lynis Security auditor sudo lynis audit system — detailed hardening report

Notes:

  • ClamAV is an on-demand scanner — it will check files for you, but it is not a real-time desktop shield.
  • Run rkhunter --propupd only on a machine you already trust, or you will baseline an infected file list as "clean."
  • ClamTk, a GUI front-end for ClamAV, is available in most distro repositories.

10.2 Manual Checks

Work through these on any suspicious machine:

# Cron — user and root
crontab -l
sudo crontab -l
ls -la /etc/cron.d /etc/cron.daily /etc/cron.hourly

# systemd — unknown services and timers
systemctl list-units --type=service --state=running
systemctl list-timers --all
find /etc/systemd/system ~/.config/systemd/user -type f -mtime -30

# Network — listening sockets you can't explain (miners, bots, reverse shells)
ss -tulpn
lsof -i

# SSH — keys you didn't add mean someone is coming back
cat ~/.ssh/authorized_keys
sudo ls -la /root/.ssh/ 2>/dev/null

# Accounts — only 'root' should have UID 0
awk -F: '$3 == 0 {print}' /etc/passwd

# DNS hijacks and hosts-file redirects
cat /etc/hosts
cat /etc/resolv.conf

# Immutable-bit abuse (blocks you from deleting malware files)
lsattr /etc/passwd /etc/shadow

# Recently modified system files
find /etc /var /home -type f -mtime -3 2>/dev/null | less

# Package integrity
debsums -s 2>/dev/null        # Debian/Ubuntu
rpm -Va 2>/dev/null           # Fedora/RHEL

# Login history
last -n 20
sudo lastb | head             # failed login attempts

A high load average with nothing visible in top/htop usually means a miner disguised under a kernel-thread name (fake kworker, names with trailing spaces), a rootkit, or a hidden process — treat that as rootkit territory.

Quick triage one-liner — executables modified in the last week, one filesystem, no pseudo-terminals:

find / -xdev -type f -executable -mtime -7 2>/dev/null

10.3 Compromised Servers: Rebuild, Don't Clean

If a server with network exposure is compromised, do not clean it — rebuild it. The attacker had root and time, and you cannot enumerate everything they changed. Standard procedure:

  1. Snapshot or preserve the disks if forensics or legal action might matter.
  2. Rotate every credential the machine ever touched: passwords, SSH keys, API tokens, database credentials. Assume your keys were read.
  3. Rebuild from clean images, restore data (not binaries), and audit webroots for webshells before going back online.
  4. Close the entry point: leaked credentials, an unpatched service, a vulnerable web app, or SSH exposed to the world.

10.4 Linux Hardening Checklist

  • Updates applied now: sudo apt update && sudo apt full-upgrade (or your distro's equivalent)
  • Automatic security updates enabled (unattended-upgrades)
  • Firewall on, incoming denied by default: sudo ufw default deny incoming && sudo ufw enable
  • SSH: key-only login, root login disabled, fail2ban installed
  • Daily account is unprivileged; sudo only when needed
  • AppArmor/SELinux not disabled
  • Never run curl ... | sudo bash from random pages — download, read, then run
  • Software from your distro's repos, Flathub, or the project's own release page — never "Linux download" aggregator sites
  • Backups with Timeshift (system) and restic/Borg (files) — one copy offline

🤖 11. Android

11.1 Play Protect

Google Play Protect scans every app from the Play Store and — critically — checks sideloaded APKs at install time. Turn it on:

  • Play Store → profile icon → Play Protect → Settings (gear icon)
  • Enable Scan apps with Play Protect and Improve harmful app detection
  • Run a manual scan after installing anything new

11.2 Sideloading Risks

  • Every APK installed from outside the Play Store bypasses Google's pre-publication review, and "free premium app" APK sites mostly serve repackaged apps with malware stitched in.
  • If you must sideload, prefer F-Droid (open-source apps, reproducible builds) and scan every APK on VirusTotal before installing.
  • Never sideload banking, wallet, or 2FA apps. Ever.

11.3 Signs of Android Malware

  • Device admin apps: Settings → Security → Device admin apps — an unknown app with admin rights cannot be uninstalled normally. Revoke first, then uninstall.
  • Accessibility abuse: Settings → Accessibility — any non-accessibility app holding accessibility access is a keylogger, screen reader, and 2FA interceptor in one. Banking trojans (Anatsa, Hydra, and friends) live here.
  • Overlay permission ("Display over other apps") granted to unknown apps — used to draw fake login screens over real banking apps.
  • Unknown VPN profiles, a random app holding notification access, or Play Protect mysteriously disabled.
  • Stalkerware indicators: odd battery drain, generic "system" apps you can't identify, and behavior that changed after someone physically had the device.

11.4 If Your Phone Is Infected

  1. Revoke device admin from unknown apps, and revoke accessibility from anything that isn't an accessibility tool.
  2. Uninstall the suspect app. If it refuses, boot into safe mode (hold power → long-press Power off → confirm, on most devices) and uninstall from there.
  3. Run a full Play Protect scan.
  4. Still misbehaving? Factory reset. It's the honest answer — mobile malware hides too well for manual cleaning.
  5. Afterwards, from another device: run Google's Security Checkup, change your Google password, and re-secure your accounts (6.3).

11.5 Android Hardening Checklist

  • Play Store only; sideloading off (or F-Droid only)
  • Play Protect on with both settings enabled
  • Auto-update apps enabled
  • Google account protected with app-based 2FA
  • Find My Device enabled
  • App permissions reviewed periodically — especially Accessibility, Display over other apps, Notification access, and Device admin
  • Screen lock set and device encryption on (default on modern Android)

🧬 12. Advanced Analysis: VMs and Reverse Engineering

For when you want to know what a file actually does instead of just whether scanners dislike it. This is the deep end — work carefully.

12.1 Rules of the Lab

  1. Never analyze on your real machine. One VM, one sample, disposable.
  2. Snapshot the clean VM state before detonation. Revert afterwards. Every single time.
  3. Isolate the network. NAT is acceptable when you need internet; host-only networking is safer when you don't.
  4. No real credentials in the lab. Fake browser profiles, throwaway accounts, empty wallets.
  5. Malware commonly checks for VM artifacts and refuses to run — that is exactly what the stealth tools below are for.

12.2 VM Stealth

  • VmwareHardenedLoader — patches VMware's VM artifacts so evasive samples actually execute
  • vbox_stealth — hides VirtualBox indicators
  • smolvm — small, stealthy VM setups
  • QEMU/KVM with customized CPU and SMBIOS values is a strong stealth base if you already run Linux

12.3 Static Analysis Tools

What a binary is, without running it:

Tool What it does
capa (Mandiant) Detects capabilities — persistence, keylogging, credential theft, command-and-control — and reports them in plain English
Detect It Easy Identifies packers, compilers, and entropy — high entropy means packed, which means suspicious
pestudio Malware initial assessment: indicators, imports, strings, VirusTotal scores
PE-bear PE file structure inspector
CyberChef Decode base64, hex, and obfuscated strings and configs in the browser
strings (Linux) · Sysinternals Strings (Windows) Raw strings — hunt for URLs, mutexes, wallet paths, API endpoints
YARA Write and test detection rules against families

12.4 Dynamic Analysis and RE

Tool Purpose
x64dbg Free Windows debugger — step through unpacking and injection live
IDA (unofficial mirror) · official free options: IDA Free and Ghidra Disassembly and decompilation. Ghidra is the NSA's open-source suite; IDA Free is the official no-cost IDA
Wireshark Full packet capture — find the command-and-control traffic
HTTP Debugger Pro · mirror (torrent) HTTP(S) traffic inspection. Free alternatives: Fiddler Classic, mitmproxy, Burp Suite Community

The torrent links need qBittorrent — see the note in 8.2 The Cleaning Kit.

12.5 Red-Flag Indicators

Strings and behaviors that mean credential theft, full stop:

  • Family names in detections or configs: Csteal, Creal, generic Stealer detections, Remcos, Quasar, Lunar Stealer, Comet, Blank Grabber — and the list grows monthly
  • Reading browser profile data (Chrome/Firefox Login Data and Cookies SQLite files, the Local State encryption key file)
  • Enumerating wallet paths (MetaMask, Exodus, Electrum) and Discord's Local Storage/leveldb files
  • Keylogging and screenshot APIs (SetWindowsHookEx, GetAsyncKeyState)
  • Long sleeps and VM-check routines (anti-analysis behavior)
  • Heavily obfuscated strings and high-entropy blobs wrapped around a tiny code footprint

Do your research. When you hit an indicator you don't recognize, look it up before deciding it's harmless — that habit is the entire skill.

Quick string hunt (Sysinternals strings, elevated prompt — see 12.3):

strings64.exe -nobanner sample.exe | findstr /i "http wallet discord telegram login config"

12.6 Worked Example: Triaging a Suspicious File

You downloaded setup_premium_crack.exe from a forum. Here is the full triage, without ever running it on your machine:

  1. Hash it first. certutil -hashfile setup_premium_crack.exe SHA256 (Windows) or sha256sum (Linux/WSL). Paste the hash into VirusTotal's search bar — identical files share hashes, and someone may have already uploaded it.
  2. VirusTotal verdict: 45/70 detections, names like Trojan:Win32/Lumma.Stealer. Stop here. That's a stealer. Delete it, run a scan if you already executed it once (4. Incident Response).
  3. If detections were 0–2, keep digging: Detect It Easy reports entropy 7.9 and "UPX (modified)" — a repacked binary. Suspicious.
  4. capa on the file lists capabilities: capture keystrokes, persist via registry run key, connect to URL. That's not an installer — it's a RAT with stealer behavior. Verdict: malicious.
  5. Optional sandbox confirmation (Triage or ANY.RUN): the sample spawns cmd.exe, drops a file into the Startup folder, and beaconed to a day-old domain. Confirmed.

The point of the workflow: you reached a verdict using evidence, without ever giving the file a chance to execute on a real machine. That's the habit that keeps you safe.


📚 13. Malware Glossary

Term What it is Typical signs
Adware / PUP Pushes ads, hijacks homepage and search Popups, new tabs, toolbars
Backdoor Opens permanent re-entry access Unexpected remote access
Bootkit Rootkit infecting the boot process Security tools disabled at boot, MBR tampering
Botnet Your device enlisted in someone else's army Strange traffic, slow internet
Clipper Swaps clipboard content — mostly crypto addresses Pasted wallet address differs from the copied one
Crypter / Packer Obfuscates malware to defeat scanners High entropy, generic AV verdicts
Dropper / Loader Delivers and runs the real payload Small signed executable downloading more
Fileless malware Runs in memory only, nothing on disk Scans come back clean, symptoms remain
Info-stealer Steals passwords, cookies, wallets, tokens Sessions stolen, drained accounts
Keylogger Records keystrokes Credentials leak while "safe"
Ransomware Encrypts files for ransom Renamed files, ransom notes
RAT Remote access trojan — full remote control Cursor moves alone, webcam light on
Rootkit Hides deep in the OS (kernel or firmware) Security tools disabled, files invisible
Scareware Fake "infection" warnings to sell you junk Aggressive popups, fake scans
Spyware / Stalkerware Silent monitoring of your activity Battery drain, unknown admin apps
Worm Self-spreads across networks without your help Multiple devices infected at once
Wiper Destroys data with no ransom demanded Files gone, systems unbootable

Jargon you'll meet in scanner reports and write-ups:

Term Meaning
C2 (command and control) The attacker's server that malware receives orders from and sends stolen data to
IOC (indicator of compromise) A concrete artifact of an attack — a hash, domain, IP, or mutex you can search for
TTP Tactics, techniques, and procedures — how a family operates
Hash A file's fingerprint (MD5/SHA-1/SHA-256); identical files share hashes
Mutex A named flag malware creates to avoid double-running — usable as a detection sign
Zero-day A vulnerability exploited before any patch exists
FUD "Fully undetected" — crypter marketing speak for evading scanners
RaaS Ransomware-as-a-service — rented ransomware platforms with affiliates
EDR Endpoint detection and response — business-grade behavioral security tooling
LOLBin "Living off the land" — malware abusing legitimate system tools (PowerShell, certutil, and friends)

🔑 14. Passwords, 2FA, and Account Hygiene

  • Use a password manager. Bitwarden (open source, cloud-synced) or KeePassXC (local vault). A unique generated password for every account — reusing one password means one breach unlocks everything.
  • Prefer passkeys where offered. Phishing-resistant, and they can't be stolen the way passwords and cookies are.
  • Turn on 2FA for everything important, in this order of strength:
    1. Hardware key (YubiKey)
    2. Authenticator app (Aegis on Android, or your platform's built-in)
    3. SMS codes — last resort, vulnerable to SIM swaps
  • Remember that 2FA is not stealer-proof. Session cookies and TOTP seeds get stolen along with everything else — re-enroll after any infection (6.3).
  • Keep backup codes offline — printed, in a drawer — not in a note on the desktop.
  • Check your exposure: Have I Been Pwned tells you which known breaches included your email address.

❓ 15. Frequently Asked Questions

Is Microsoft Defender enough? For everyday use combined with the habits in this guide: yes, it's a solid, integrated baseline. Add a second-opinion scan (8.2) after anything sketchy. If you prefer a paid suite, pick exactly one — never run two real-time engines at once (8.3).

Do I need antivirus on macOS or Linux? On macOS, the built-in defenses (9.1) plus the Objective-See tools are plenty for most people. On Linux desktops, ClamAV for on-demand checks is usually enough — servers need hardening and monitoring far more than scanning (10.4).

Is a VPN an antivirus? No. A VPN changes where your traffic exits the internet. It does not inspect, block, or remove anything. Marketing that implies otherwise is marketing.

Does a factory reset or reinstall remove everything? Almost always, yes. The exceptions — firmware and bootkit-level implants — are rare and overwhelmingly targeted rather than commodity criminal malware. If you did find a bootkit, re-image the disk from a known-clean machine.

Should I pay the ransom? No. See 5.3 for why, and 5.4 for what to try instead.

Are password managers safe? What if they get breached? Far safer than reuse. Manager breaches leak encrypted vaults, while password reuse leaks plaintext credentials on every forum that ever gets popped. Use a strong master password plus 2FA on the vault.

"Someone offered to fix my PC remotely / my screen shows a support phone number." — Scam. See 3. Scam and Trap Awareness. Kill the browser, hang up, revoke the remote-access tool, run the cleaning recipe, and change passwords from a clean device if you let them in.

Is torrenting itself dangerous? The protocol isn't; the ecosystem can be. Verify uploaders (2.6), scan everything before running it (2.1), and prefer qBittorrent plus reputable uploaders over random mirrors.


🆘 16. Getting Help

How to ask for help well (applies to every forum above):

  • List your OS and version, and what happened, in order.
  • Say which tools you have already run and what they found.
  • Helpers will usually ask for logs — on Windows, the Farbar Recovery Scan Tool (FRST) is the standard — attach the log files themselves, not screenshots.
  • Don't keep running random fixes from comment threads while you wait; it muddies the evidence a helper needs.

⚖️ 17. Disclaimer and Contributing

Disclaimer. This guide is educational. Tools and links are provided as-is and are user-submitted; several are torrents or community mirrors — verify everything you download before running it (that's rule 1). No single tool catches everything, and no guide replaces professional incident response. Use your judgment, and when a situation exceeds it, get help (16. Getting Help).

Contributing. Found a dead link, a better tool, or a new scam pattern? Pull requests are welcome — this document stays accurate through the same community it was written for.

If this guide saved your PC, a ⭐ on the repo helps the next person find it before their files do the finding.

About

Bunch of stuff to protect your self from viruses

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages