Neurosecurity has been defined as "a version of computer science security principles and methods applied to neural engineering", or more fully, as "the protection of the confidentiality, integrity, and availability of neural devices from malicious parties with the goal of preserving the safety of a person’s neural mechanisms, neural computation, and free will". Simply put, Neurosecurity is, at least in principle, an antivirus and firewall for the mind. Neurosecurity also refers to the application of neuroscience to behavioral information security to better understand and improve users' security behaviors. Neurosecurity is a distinct concept from neuroethics; neurosecurity is effectively a way of enforcing a set of neuroethical principles for a neural device. Neurosecurity is also distinct from the application of neuroscience to national security, a topic that is addressed in Mind Wars: Brain Research and National Defense by Jonathan D. Moreno.