👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn how malicious email attachments, including PDFs, RTF files, and Office documents with macros, can put your computer or account at risk. This beginner-friendly CompTIA Security+ guide explains when opening a file can be enough and what to do if you’ve already clicked.
Chapters: 0:00 Intro 0:14 Why are email attachments an attack vector? 0:49 Can a malicious PDF or RTF hurt you just by opening it? 1:38 What happens if a malicious Office macro runs? 2:44 What should you do if you opened a suspicious attachment? 3:50 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
Opening or previewing a PDF or RTF can be enough to trigger a software flaw. You don’t have to click inside the file, but opening it doesn’t prove your device was compromised.
A PDF can compromise your account without infecting your device. If a link or QR code asks you to sign in, reach the service through a trusted route instead.
Office macros are code, not a viewing feature. A malicious macro can tamper with files you can access without administrator rights. Leave Microsoft’s macro protections enabled.
Report suspicious attachments promptly and don’t reopen them. Say when it happened, which app handled the file, and whether you enabled content, ran a download, entered a password, or approved a sign-in.
Keep document readers, Office apps, browsers, and mail clients updated. Verify unexpected attachments through a separate, trusted channel, even if the sender looks familiar.
👉 Put your Security+ knowledge into practice with Pluralsight through guided labs, feedback, assessments, and practice exams.
Malicious email attachments can put your computer, your account, or both at risk. A PDF or RTF can trigger a flaw in the software that opens it. An Office document can contain a macro that does damage if it’s allowed to run. And a PDF can steal your password by sending you to a fake sign-in page without installing malware at all.
Opening an attachment is sometimes enough to trigger a problem, but it doesn’t automatically mean you’ve been compromised. What matters is which software processed the file and what happened next.
Why malicious email attachments are an attack vector
Quick answers to the questions people usually ask about this topic.
Can a malicious email attachment pass an antivirus scan?
Yes. A clean scan means the scanner didn't flag the file; it doesn't prove the attachment is safe. A PDF can contain a link or QR code that leads to a fake sign-in page without containing malware. If the document asks you to sign in, open the service through a trusted bookmark or app instead.
Is it safe to download an email attachment without opening it?
Saving a file without opening it is generally less risky than opening it, but some apps automatically preview downloaded files or generate thumbnails. If the attachment is suspicious, don't download it just to inspect it. If you already saved it, tell your security team whether an app displayed or opened it.
Is a password-protected email attachment safer?
Not necessarily. A password can protect the file's contents from unauthorized readers, but it doesn't verify who sent the file or whether it's safe. Encryption can also prevent some email security tools from inspecting the contents before delivery. Verify unexpected password-protected attachments through a separate, trusted channel.
Can a malicious PDF or Office attachment affect an iPhone or Android phone?
Yes. A flaw in a mobile app that processes the attachment can put the phone at risk. Phishing doesn't require a software flaw: if you scan a QR code from a PDF and enter your password on a fake sign-in page, your account can be compromised even if your phone isn't infected.
Is changing your password enough after entering it on a fake sign-in page?
Not always. Changing your password may not end every active session. If it's a work account, report it immediately so your security team can reset the password, revoke active sessions, and review recent sign-ins. If you reused the password elsewhere, change it on those accounts too, using their official sites or apps.
How can I practice assessing suspicious email attachments for CompTIA Security+?
Practice distinguishing between a document-processing flaw, a macro that was allowed to run, and a phishing link that puts an account at risk. If you're ready to apply what you've learned, explore Pluralsight for guided cybersecurity labs with feedback, assessments to identify gaps, and practice exams to focus your Security+ preparation.
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this course.
For CompTIA Security+, it helps to separate three terms:
Term
What it means for email attachments
Attack vector
The route an attacker uses to reach you. In this case, it’s the attachment delivered by email.
Attack surface
The features exposed to attack, such as an email previewer, a PDF reader, or the Office macro engine.
Vulnerability
A specific weakness, such as a flaw in how a reader processes a document. A phishing attachment can succeed without exploiting a software vulnerability.
Can opening or previewing a malicious PDF or RTF infect your computer?
Yes, if the file triggers a flaw in the software processing it. A reader has to interpret the file before it can display the page. If that processing is vulnerable, opening the document can be enough. Previewing can also count if the previewer uses the affected component. You don’t necessarily have to click anything inside the file.
That’s different from a document that simply displays a deceptive link. Opening that file may only show the lure; the account is put at risk when you follow the link and enter credentials or approve an unexpected sign-in.
Malicious PDFs: Reader flaws, links, and QR codes
PDFs can contain links, embedded files, and, in supported viewers, JavaScript for tasks such as form calculations. PDF JavaScript is not an Office macro, and a malicious PDF doesn’t need either one.
For example, a PDF posing as an HR notice could display a QR code that leads to a fake work sign-in page. You might open the PDF on your computer but enter your password on your phone. The account can still be compromised even if neither device is infected.
A PDF that triggers a reader flaw is a different problem. Adobe’s Acrobat and Reader security bulletin documents an actively exploited vulnerability that could allow an attacker to run code. In that case, the weakness was in the software handling the document, not in a login page or an Office macro.
Malicious RTF files: More than formatted text
Rich Text Format (RTF) is used to exchange formatted text between applications. But an RTF file can also contain embedded objects or references to external content. A document reader may process those elements even though they aren’t obvious on the page.
That’s why blocking VBA macros doesn’t eliminate the risk from RTF attachments. In a documented Dridex campaign, malicious RTF files took advantage of a flaw in Microsoft Office’s document handling. The vulnerability was in how the software processed the file, not in whether it allowed a VBA macro to run.
What happens if a malicious Office macro runs?
A macro is code that automates a task. Office macros are commonly written in Visual Basic for Applications (VBA) and can do legitimate work, such as formatting a spreadsheet or generating standard letters. Macro-enabled file extensions include .docm, .xlsm, and .pptm, and some older Office formats can store macros too.
A malicious macro misuses that same automation feature. If Office allows it to run, it can download malware or tamper with files the signed-in user can access. It doesn’t need to exploit a software bug, and it doesn’t automatically gain administrator rights. Ordinary permissions can still give it access to sensitive documents or shared folders.
Microsoft blocks VBA macros from internet-origin files by default in covered Office apps on Windows. Depending on the version and organizational policy, Office may show a Security Risk banner with no Enable Content button. If a document claims you need to enable macros just to read an invoice, don’t bypass the warning. Enabling a macro means trusting code to run, not just asking Office to display the file.
What to do if you opened a suspicious email attachment
Don’t reopen the attachment to check what it does. Report it promptly through your organization’s phishing or security channel, and describe exactly what you did and when.
If more than one action applies, report all of them. For example, “I previewed the PDF, scanned its QR code, and entered my work password on my phone” is more useful than “I clicked an attachment.” You don’t have to diagnose the incident yourself.
How to protect against malicious email attachments
Keep document readers and related apps updated. Patching your PDF reader, Office apps, browser, and mail client helps close known flaws in the software that opens or previews files.
Leave macro protections on. If a legitimate workflow needs macros, follow your organization’s policy for approved files and publishers rather than bypassing a warning.
Verify unexpected requests separately. If an attachment asks you to sign in, use a trusted route to the service instead of the document’s link or QR code. Verify unexpected payment changes with the sender through an established contact method.
Use layered defenses. Attachment scanning can help catch malicious files, while link protection addresses a different risk. A document without detectable malware can still lead to a fake sign-in page.
Practice attachment triage for Security+
The free series explains the concepts. If you want to practice applying them, Pluralsight offers guided security labs with feedback, assessments to help you spot gaps, and practice exams to focus your certification prep.
Report the message as suspicious. If you need to verify the request, contact the sender through a known phone number or another trusted channel, not through details in the message or attachment.
You opened or previewed it.
Say whether you opened it or used a preview, and which app handled it if you know. Opening alone doesn’t prove infection, but a normal-looking screen doesn’t rule it out.
You enabled content or ran a downloaded file.
Say exactly what you enabled or ran. That helps responders decide whether to check for code execution or isolate the device.
You entered a password or approved an unexpected sign-in.
Report possible account compromise, even if the computer seems fine. Your security team may need to revoke active sign-in sessions as well as reset your password.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn understanding into hands-on confidence
You've built the foundations. Pluralsight adds opportunities to practice in guided security labs, get feedback, and check your knowledge with assessments and practice exams, so your next step is more than another video.
đź› Put concepts to workBuild practical skills with guided security labs and feedback.
🎯Find your weak spotsUse assessments to focus on what needs more work.
📝Check your understandingUse practice exams to guide your certification preparation.
đź§Give study sessions directionOrganize further learning with curated paths and progress tracking.