Skip to content
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after any top-up. Until Nov 30.

How it works

What Is Cybersecurity? A Guide for Beginners

What cybersecurity covers, the CIA triad, common ways systems fail, and a safe first exercise with hashes on your own machine.

Beginner5 min readBy NotHoly

Cybersecurity is the work of protecting computers, networks, software and the data they hold from unauthorized access, damage and misuse, and of getting them working again when something goes wrong. NIST's glossary defines it as preventing damage to systems, protecting them and restoring them, so that information stays available, intact, authentic, confidential and non-repudiable.

That definition is broad on purpose. It covers a password policy, a firewall rule, a backup, a code review and a phone call to confirm a payment request.

The CIA triad

Most security work is described with three properties. NIST's glossary defines each one.

  • Confidentiality: only authorized people and systems can read the information. A stolen database of customer emails is a confidentiality failure.
  • Integrity: the information has not been changed or destroyed improperly. A tampered invoice or a modified software download is an integrity failure.
  • Availability: authorized users can reach the information and the service when they need it. Ransomware that locks every file and a flood of traffic that takes a site offline are availability failures.

Real incidents often hit more than one. Ransomware that also copies your data breaks availability and confidentiality together. The triad is a checklist for asking "what exactly went wrong?", and it works for both attackers and defenders. A tester asks which property a weakness lets them break. A defender asks which one a control protects.

What security people worry about

Threats, vulnerabilities and risk

A vulnerability is a weakness, such as an unpatched program or a reused password. A threat is something that can exploit it, such as a criminal group or a careless insider. Risk is the likelihood and impact of that happening. You rarely remove risk; you decide which risks to reduce, transfer or accept.

Common ways systems fail

  • Phishing: messages that trick a person into giving up a password or running something. CISA's guidance on recognizing and reporting phishing is a good first read.
  • Weak or reused passwords: when one site leaks a password, attackers try it on other sites.
  • Unpatched software: known flaws stay exploitable until the fix is installed.
  • Misconfiguration: a storage bucket left public, a default password left in place, a management port open to the internet.
  • Flaws in web applications: injection, broken access control and similar bugs. The OWASP Top Ten lists the most common categories.

None of these needs advanced skill to cause damage, and that is why the basics matter.

Defense in depth

No single control stops everything, so defenders layer them. A stolen password should not be enough to reach the data, and a compromised laptop should not be enough to reach every server.

  • Prevent: software updates, multi-factor authentication, least privilege, secure configuration.
  • Detect: logs that someone actually reads, and alerts on unusual sign-ins.
  • Respond and recover: a tested backup, a written plan for who does what, and a way to restore service.

The NIST Cybersecurity Framework organizes the same ideas into functions: Govern, Identify, Protect, Detect, Respond and Recover. Read the framework itself on the NIST site rather than a summary of it.

Offense and defense

Cybersecurity has two sides that need each other. Defenders build and monitor systems. Offensive practitioners, such as penetration testers and red teams, attack systems to find weaknesses before criminals do. The offensive side is only legitimate with authorization: your own machines, a lab you built, or a target whose owner gave you written permission and a defined scope. Reaching a system from the internet does not mean you may test it.

A first exercise on your own machine

You can see the integrity property in action with a hash function. A cryptographic hash such as SHA-256 turns any input into a fixed-length fingerprint. Change one character of the input and the fingerprint changes completely. This is how you check that a downloaded file matches the one the publisher released.

These commands ran in Git Bash on Windows 11. They also work in a Linux or macOS terminal that has sha256sum (on macOS, use shasum -a 256). They touch only text you type, nothing on the network.

bash
printf 'notholy' | sha256sum | cut -d' ' -f1
printf 'notholy2' | sha256sum | cut -d' ' -f1
text
22d877c3c676415aa2de4720884d52a36b60beff37f0c5468dc45ac9366e3c22
500b373e094e8eaa968be463e24fb8c944bb04d325a1da543ad91972a0a700ae

The two inputs differ by one character, and the digests share nothing visible. A hash is one-way: you cannot compute notholy back from the digest, you can only hash a guess and compare. A hash alone does not prove who published a file, only that the content matches a value you obtained from a trustworthy place.

Next, try it on a real file. Download any installer from a vendor's official site, find the checksum the vendor publishes, and compare it with the output of sha256sum on your copy. If the two values differ, do not run the file.

Common misconceptions

  • "I have nothing worth stealing." Attackers also want your accounts, your computing power and your access to other people.
  • "Antivirus covers it." It is one layer. It does not fix a reused password or a phishing click.
  • "Security is a product you buy." It is a continuing practice of configuration, patching, monitoring and habits.
  • "A complicated password is enough." A unique password per account, stored in a password manager and backed by multi-factor authentication, does far more. CISA's guide on strong passwords covers this.

What to learn next

Start with the small habits: updates on, a password manager, multi-factor authentication on your important accounts. Then learn how networks and the web work, because most attacks and defenses sit on top of them. The next article covers cryptography, including hashing, in more depth. When you want hands-on practice, run a deliberately vulnerable training application such as OWASP Juice Shop in a lab you own, or use NotHoly to help you plan and review your own lab work. Keep every test inside systems you have permission to touch.

Sources

  1. NIST Glossary: cybersecurity
  2. NIST Glossary: confidentiality
  3. NIST Glossary: integrity
  4. NIST Glossary: availability
  5. NIST Cybersecurity Framework
  6. CISA: Recognize and report phishing
  7. CISA: Use strong passwords
  8. OWASP Top Ten
  9. OWASP Juice Shop

More in Security fundamentals