Most Macs do not get malware or virus; however there are several articles and valid opinions
on the definitions of those kinds of bad effects and how to avoid them. Careful browsing is a
fair way to consider using the internet; since it has never been safe and your computer and OS
is only as safe as you know how to use it. Mac OS X has quite a bit of security going for it... if
you don't happen to avoid the responsibility as a user (and choose to set up your mac for best
use of any security afforded by OS X, not disable or avoid practices that make it safer.)
The older Macs from pre-2006 that don't run Intel core processors, used IBM/Motorola/Apple
PowerPC architecture and were quite good; people still use those online even now, with systems
that have not seen security update or Safari update for a long time. I have a few of those here;
their age is a problem, but some innovative persons have developed and support browsers that
can help keep them working, where the internet is concerned. Yet, their better purpose is in doing
tasks offline where costly & high quality software is still in use; that do not require the internet.
Files can be shared with later models or devices to sent over the internet, in those too old.
You may be able to find more answers if you find the authorized Apple service providers & some
of them sell older restored computers and can repair ones the Apple Store won't. There are
Apple User Groups in many cities, especially in most of the US.
Tech Guides (Malware, Adware, Performance)
http://www.thesafemac.com/tech-guides/
As to inquiring about Anti-Virus, Malware, and Adware, etc you may need to start a New question
for that topic. Some web sites cover the general interest, but may be outdated. Avoid mackeeper
and other ones that want to sell you a service; avoid the pop-ups that have an 800 number and
are considered phony 'hostageware' scams. Most issues in the Mac OS X come from the users
browsing habits and by going to untoward and sketchy download sites for applications. Badware.
And avoid non-maker sites for things such as Flash Player, (I don't even use it in my Macs; the
newer browsers including Firefox, use HTML5 and good sites have moved away from Flash.)
Anyway, now is near 1AM so I've going offline.
Good luck in keeping your MacBook in a state of good repair... + healthy!