About this question
Is fb2 & epub files can be malicious like pdf? If yes, how can I detect it manually?
Is fb2 & epub files can be malicious like pdf? If yes, how can I detect it manually?
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask Cyber Security Expert
Answered on Mar 29, 2022
What is EPUB? EPUB is an e-book file format with the extension .epub that can be downloaded and read on devices like smartphones, tablets, computers, or e-readers. Is Epub safe?
Yes it can. (You can read this - https://www.baldurbjarnason.com/notes/epub-javascript-security/) Here is another example of how epub had security flaw in past: XML External Entities Are epub files often used by malware authors? No. Compared to PDF and other formats epub is rarely used by attackers. If you want to detect suspicious content (i.e. JavaScript) manually you can start with any hex editor and then you can write your own yara rules if it's needed. Of course if JavaScript is present that doesn't mean it has to be malicious but it can be a subject of further investigation.
Search in header of file for:
6D 69 6D 65 74 79 70 65 61 70 70 6C 69 63 61 74 69 6F 6E 2F 65 70 75 62mime type application/epub
or:
74 65 78 74 2f 6a 61 76 61 73 63 72 69 70 74
text/javascript
More about epub/epub2 and epub3 go here - http://epubzone.org/news/epub-3-and-interactivity
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Step-by-step Cyber Security guides from industry experts
Common Cyber Security interview questions, answered
Guides, tips and career advice on Cyber Security from JanBask experts.
Cyber Security Is Penetration Testing a Good Career in 2026? Pay, Demand, Pros & Cons
Is pen testing a good career? See honest data on demand, pay, entry barriers, AI’s impact, and whether penetration testing is…
Cyber Security GRC Analyst Salary: How Much Can You Earn in 2026?
GRC analyst salary guide for 2026: see average pay, salary range by experience, location, and certifications, plus how to grow…
Cyber Security Is Ethical Hacking a Good Career? Salary, Growth, Pros & Cons
Wondering if ethical hacking is worth it? Get the salary picture, daily work, career paths, trade-offs, and how AI changes the…
Cyber Security SOC Analyst Salary in 2026: Average Pay & Range
SOC analyst salary guide for 2026: average pay, salary range by tier, location, and certifications, plus how to boost your…