Background of the Study
Historically, JavaScript was a simple language designed only for web browsers. It was restricted inside a "sandbox," meaning it could not access the user's files or operating system. However, the creation of Node.js changed everything. Node.js allowed JavaScript to run outside the browser, giving it direct access to the computer's file system, network, and memory. While this was a massive leap for web development, it also opened a new door for cybercriminals.
Significance of the Study
This research is highly important because the nature of malware is changing. Today, hackers use modern web technologies like Node.js and Electron to build malicious software (such as Ransomware). This is dangerous because a single JavaScript code can now infect multiple operating systems (Windows, Mac, and Linux) at the same time. Furthermore, traditional antivirus programs often struggle to detect web-based malware.
Objectives of the Report
The primary goal of this report is to:
- Understand how web development tools (specifically Node.js) can be exploited to create malware.
- Demonstrate practically how JavaScript can access and modify computer files maliciously.
- Raise awareness among web developers about the security risks of the tools they use daily.
Scope of the Research
This report focuses strictly on the use of Node.js in creating local malware (like Ransomware). It will explore the built-in Node.js modules, specifically the File System (fs) and Cryptography (crypto) modules.