
A Better Antivirus (aba) plants fake passwords, wallets and browser profiles on Windows and freezes any process that reads them, giving defenders and home users a behavioral tripwire against infostealers.
| Tool | vulnix0x4/a-better-antivirus — a Go-based Windows deception tool that plants bait files and freezes infostealers that touch them |
| Category | Endpoint deception / behavioral malware detection (blue team) |
| Primary Use | Deploying canary-style bait files, fake browser profiles and wallet data so that credential-stealing malware reveals itself the moment it reads them, on machines you own or are authorized to protect |
| Safe Use | Hardening your own Windows endpoints or endpoints under an authorized security assessment; it is a defensive tripwire, not an antivirus replacement or offensive tool |
| Telemetry Note | Leaves only decoy artifacts (fake passwords.txt, wallet seeds, Profile 23 browser folders) plus NTFS audit rules and Security event 4663 entries; from the defender's side it emits desktop toasts, ntfy phone alerts and canarytoken emails |
Despite the provocative name, a-better-antivirus (ABA) is not an antivirus at all — and the README is emphatic that you should keep Windows Defender enabled. What it is instead is a behavioral deception layer written in Go, aimed at the class of malware that signature engines consistently miss: infostealers such as Lumma, RedLine, Vidar and StealC. The core insight it builds on is that stealers almost universally collect first and upload later, and collecting means opening files in predictable locations. ABA puts tripwires in exactly those locations and freezes whatever touches them, catching malware by what it does rather than what it looks like. That makes it a genuinely interesting addition to an endpoint hardening workflow for authorized defenders and privacy-conscious users.
The bait inventory is the heart of the design. ABA plants fake files where file grabbers search: a password list on the Desktop, in Documents and in the home folder, a wallet recovery phrase, 2FA backup codes and a KeePass database. Each install randomizes the bait filenames based on what grabbers actually search for, so malware cannot simply skip them by name. On top of that it fabricates app data for applications you do not have installed — Opera, Vivaldi, Yandex and Brave browser profiles built as real SQLite databases with plausible saved logins and cookies, plus MetaMask, Exodus, Electrum and Atomic wallet data, Telegram sessions, Discord tokens, FileZilla server entries and AWS keys.
What elevates this above a naive honeypot-folder script is the hygiene around the decoys. ABA inventories what is actually installed on the machine and never fakes data for applications that are present, keeping the signal clean — nothing legitimate reads profile data for an app that does not exist. If you later install an app whose decoy is planted, ABA notices, retires the bait and notifies you, and it only accepts the real thing: a binary signed by its publisher in its install folder. A file that merely impersonates the real application gets reported instead, which is itself a useful detection primitive. For browsers you do use, it plants a fake Profile 23 folder alongside your real Chrome, Edge or Brave profiles, exploiting the fact that stealers grab every profile directory while the browser only opens the ones it knows about.
Optionally, ABA integrates real canarytokens.org tokens: the fake AWS credentials and a link inside passwords.txt are live canaries, so if stolen data is ever used downstream, you get an email even if your machine was offline or wiped. This closes the visibility gap that plagues purely local detection — you learn not just that something was taken, but when someone acts on it. It is a well-chosen combination of host-side tripwires and external beacons, and it reflects a realistic threat model where exfiltration may succeed but monetization is observable.
The detection engine has two paths, and the README documents both with unusual depth. The instant path holds an exclusive opportunistic lock (oplock) on every bait, so Windows notifies ABA the moment the file is opened; a suspicious opener is frozen in roughly 0.1 seconds (72–151 ms in CI), before reading a byte. The backup path uses native NTFS auditing — an audit rule per bait, read through Security event 4663 by an ABA service running as SYSTEM, delivered within milliseconds to a second. Notably, there is no kernel driver and no background scanning, so idle CPU cost is effectively zero, and malware running as the user can neither see nor remove the audit rules nor read ABA's files to discover bait locations.
The oplock identification technique deserves attention from anyone designing host deception. When a program opens a guarded file, Windows pauses it inside its open call without naming the PID. ABA snapshots threads that entered a kernel wait at that instant and are still stuck milliseconds later, releases the lock, and identifies the thread that wakes — an innocent thread waiting on a pipe stays stuck. If it cannot pinpoint the opener with certainty, it refuses to guess and defers to the event log, which is the right conservative posture for anything that freezes processes. It also only ever acts on ordinary non-admin programs running as you, never system processes or ABA itself.
Evasion resistance is addressed head-on, which suggests the author understands adversary tradecraft. A stealer can request a non-blocking open via FILE_COMPLETE_IF_OPLOCKED to avoid being paused; that open still leaves a handle, which ABA queries with NtQueryInformationFile, and the refusal itself is flagged as critical evasion. Execute-only mappings — opening a bait with FILE_EXECUTE and reading bytes through a memory mapping without read access — are treated as reads by both the oplock guard and the audit rule. Hard links, which let a process open a bait under an unfamiliar path, are countered by matching audited opens by NTFS file ID and correlating with the oplock open when the link was deleted. Each of these is a plausible stealer countermeasure, and each has a documented answer.
Once an opener is identified, the response pipeline runs: an instant verdict from path and name (unsigned binary in Temp, AppData or Downloads, or a script host), freezing the process tree, verifying the code signature — signed legitimate applications get unfrozen with a note — collecting forensics while frozen (command line, parents, hash, network connections), then block, kill or isolate as configured, alerting via desktop popup, toast and ntfy phone push, and finally running an autopsy while frozen to determine whether real data was already taken. Severity assignment is automatic, grounded in the observation that unprivileged malware cannot write to Program Files or Windows. The README's demo of a real Discord token stealer being frozen 158 ms after opening a bait is a credible illustration of the pipeline end to end.
Installation is straightforward and unusually well-documented for a tool of this size. The ABA-Setup.exe installer for Windows 10/11 x64 and Arm64 asks two questions (phone alerts, automatic updates), sets recommended baits with Balanced protection, and offers a safe self-test at the end. Terminal users can run the install.ps1 bootstrap via irm ... | iex, which verifies the download's SHA-256 against SHA256SUMS.txt before executing — and the README wisely warns that pasting remote scripts is also how infostealers themselves get installed. Releases are not code-signed yet, so SmartScreen warnings are expected; the Get-FileHash verification workflow is the documented mitigation. Silent deployment flags like /VERYSILENT, /PRESET=alert|balanced|strict and /BAITS=id,id make it scriptable for lab or fleet-style use by authorized administrators.
For the professional audience, the interesting question is where this fits. It is not an EDR replacement, and the author does not pretend it is — it is a high-signal tripwire tuned for one malware class that traditional AV handles poorly, on personal Windows machines and, by extension, small authorized environments. Its safety design (never acting on system processes, refusing ambiguous attribution, verifying signatures before permanent action) shows genuine restraint, and the MIT-licensed Go codebase with CI tests on main makes it auditable. With roughly 169 stars and cross-platform installers for Windows, macOS and Linux (the latter marked early-stage in the README), it is a young but thoughtfully engineered defensive tool, best evaluated in a test VM using the documented strict-mode silent install before any wider deployment.
vulnix0x4/a-better-antivirus.Educational analysis for authorized security professionals. Use only in controlled, authorized environments.
Related coverage
0 comentários:
Post a Comment
Note: Only a member of this blog may post a comment.