SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

Security Fundamentals β€” Overview

What it is, why it matters, architecture and key concepts

πŸ“„
Last updated Aug 2026
Expert Content

Security Fundamentals β€” Cybersecurity for Engineers

Before you start: no prior security background is assumed β€” this is the entry point for the whole Security academy. Basic familiarity with how a web request reaches a server (client β†’ network β†’ server) helps for the later examples, but isn't required.

Imagine a bank vault. It isn't protected by one lock β€” there's a guard at the door, a vault door itself, a time lock, cameras, an alarm tied to a monitoring center, and a safe deposit box inside that. Any single one of those failing (a guard falls asleep, a camera goes offline) doesn't mean the bank gets robbed, because the other layers are still there. A secure computer system works the same way: no single protection is ever assumed to be perfect, so real systems stack several independent defenses, and a failure in one layer is a warning, not a catastrophe. Security engineering is the discipline of designing and reasoning about those layers deliberately, instead of hoping nothing ever goes wrong.

The CIA Triad

Every security decision traces back to protecting one (or more) of three properties:

Confidentiality
Only authorized people can see the information. Protected by encryption (scrambling data so only someone with the right key can read it), access controls (rules about who's allowed to see what), and authentication (proving you are who you claim to be).
Integrity
The data is accurate and hasn't been secretly changed. Protected by hash functions (a fingerprint of data that changes if the data changes) and audit logs (a record of who did what, so tampering can be traced).
Availability
The system is actually reachable when someone needs it. Protected by redundancy (more than one copy, so no single failure takes the whole thing down) and backups.

Each is broken differently β€” data exfiltration (data being stolen and copied out) breaks confidentiality; SQL injection (an attack that sneaks database commands into a form field) breaks integrity by letting an attacker alter data directly; a DDoS attack (flooding a system with fake traffic until it can't respond to real users) breaks availability.

Threat Modeling

Threat modeling means deliberately asking "what could go wrong here, before it actually happens" β€” walking through a system on paper and identifying its weak points, rather than waiting to find out the hard way. STRIDE is one structured way to do this β€” a checklist of 6 categories of things that can go wrong with any system:

ThreatDescriptionExample

|--------|-------------|---------|

**S**poofingImpersonating another entityStolen credentials
TamperingModifying data or codeSQL injection
RepudiationDenying performed actionsNo audit logs
Information DisclosureExposing sensitive dataUnencrypted PII (Personally Identifiable Information β€” data that could identify a specific person, like a name or SSN)
Denial of ServiceDisrupting availabilityDDoS, resource exhaustion
Elevation of PrivilegeGaining unauthorized accessPrivilege escalation (a user or process getting access rights beyond what it was supposed to have)
Threat Modeling in Practice
Identify the asset
What are we actually protecting?
Apply STRIDE
Which of the 6 categories could hit it?
Assess real impact
How bad, how likely?
Design a mitigation
A specific control for that specific threat

Defense in Depth

Never rely on a single security control β€” the vault-with-many-layers idea from the opening, applied to a real web system. Each layer below assumes every layer above it could fail:

External Users
WAF / DDoS Protection
Filters malicious traffic before it reaches anything else
CDN / Load Balancer
Spreads traffic, absorbs spikes
Firewall / Security Groups
Only allows expected traffic through
Authentication (MFA)
Proves who's connecting
Authorization (RBAC / ABAC)
Controls what an authenticated user can actually do
Application Security
Input validation β€” rejects malformed/malicious input
Encryption (TLS, at-rest)
Protects data in transit and in storage
Database Access Controls
Audit Logging & SIEM
Records what happened, for after-the-fact investigation
Backup & Recovery
The last resort if everything else fails

Common Attack Vectors

OWASP Top 10 (Web Applications):

1.Broken Access Control
2.Cryptographic Failures
3.Injection (SQL, Command, LDAP)
4.Insecure Design
5.Security Misconfiguration
6.Vulnerable & Outdated Components
7.Identification & Authentication Failures
8.Software & Data Integrity Failures
9.Security Logging & Monitoring Failures
10.Server-Side Request Forgery (SSRF)

Cloud Security Misconfigurations (most breaches):

β€’S3 buckets publicly accessible
β€’EC2 instances with no MFA on IAM
β€’Security groups open to 0.0.0.0/0 on port 22
β€’No encryption at rest for databases
β€’Root account access keys in use
β€’No CloudTrail logging enabled
β€’Overly permissive IAM roles

Encryption Fundamentals

Symmetric Encryption β€” Same key for encryption and decryption. Fast. AES-256 is the standard. Problem: secure key exchange.

Asymmetric Encryption β€” Public key encrypts, private key decrypts. RSA, ECC. Slower but solves key exchange. Used in TLS handshake, SSH, digital signatures.

Hashing β€” One-way function, produces fixed-length digest. SHA-256, bcrypt (passwords). Used for integrity verification, password storage.

TLS (Transport Layer Security) β€” Combines asymmetric (handshake) + symmetric (data transfer). TLS 1.3 is current standard. Provides: authentication, confidentiality, integrity.

bash
# Check TLS certificate
openssl s_client -connect synfracore.com:443 -showcerts 2>/dev/null | openssl x509 -noout -text

# Check expiry
echo | openssl s_client -connect example.com:443 2>/dev/null \
  | openssl x509 -noout -dates

# Generate self-signed cert (dev only)
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
  -keyout server.key -out server.crt

Identity and Authentication

Multi-Factor Authentication (MFA):

β€’Something you know (password)
β€’Something you have (phone, hardware token)
β€’Something you are (biometrics)

Always enable MFA for: AWS root account, cloud consoles, VPN access, admin SSH, code repositories.

Zero Trust Model: "Never trust, always verify." Assume the network is compromised. Verify every request regardless of origin. Least-privilege access. Micro-segmentation.

Incident Response β€” PICERL

1.Preparation β€” IR plan, runbooks, SIEM, backups
2.Identification β€” Detect the incident (alerts, anomalies)
3.Containment β€” Limit blast radius (isolate affected systems)
4.Eradication β€” Remove threat (patch, clean, rebuild)
5.Recovery β€” Restore from known-good state
6.Lessons Learned β€” Post-mortem, improve defenses
Share:
Join our Community
Daily tips, job alerts, interview help β€” join engineers learning together
β†’
Up Next
βœ…
Security Fundamentals β€” Prerequisites
What to know or set up before starting
Also Worth Exploring
← Back to all Security Fundamentals modules
Prerequisites β†’