As per apnaqanoon,Malicious code is a broad category of dangerous programs, files and code strings that are used to create malicious software, also known as malware, and carry out a cyberattack. According to cyber law/qanoon there are several different types of malicious code, each with various effects, uses and methods of attack.