Security Principles reference

133 commands, numbers and terms from the 15 lessons, one line each. The right-hand column opens the page that teaches it.

1Security principles and risk

Confidentiality, integrity, availabilityThe three promises every failure breaks one ofThe CIA triad
Authenticity, non-repudiation, AAAIt came from them; they cannot deny it; authenticate, authorise, accountSecurity properties
RiskThreat × vulnerability × asset value, as likelihood × impactThreats and vulnerabilities
SLE = asset value × exposure factorSingle loss expectancyQualitative and quantitative risk
ALE = SLE × AROAnnual loss expectancy: SLE times yearly rate of occurrenceQualitative and quantitative risk
$4.44 million, 241 daysAverage cost and life of a breach (IBM, 2025)Likelihood and impact
Mitigate, transfer, avoid, acceptThe four risk treatmentsRisk treatment
Risk registerOwner, score, treatment and residual risk, one row per riskThe risk register
Preventive, detective, corrective, deterrent, compensating, directiveControl types: when and how a control actsControl types
Technical, managerial, operational, physicalControl categories: what a control is made ofControl types
Separation of duties, least privilege, defence in depthNo one finishes a risky action alone; only what is needed; many layersControl types

2Attackers and how attacks unfold

Nation-state, organised crime, hacktivist, insider, unskilled attackerThreat actors by motive, skill and moneyThreat actors
Attack surfaceEvery door an attacker could tryThreat actor attributes
TTPsTactics, techniques and proceduresThreat actor attributes
OSINT, ISACs, threat feedsWhere intelligence comes fromThreat actor attributes
Credential abuse 22%, exploitation 20%, phishing 16%Top ways in (Verizon DBIR 2025)Initial access
Kill ChainRecon, weaponise, deliver, exploit, install, command and control, actThe Cyber Kill Chain
ATT&CK15 Enterprise tactics in v19 (2026); techniques under eachThe Cyber Kill Chain
Diamond ModelAdversary, capability, infrastructure, victimThe Diamond Model
Pyramid of PainHashes and IPs are cheap to change; behaviour (TTPs) is expensiveThe Cyber Kill Chain
Ransomware as a serviceDevelopers, initial access brokers, affiliatesRansomware as a service
Supply chain attackOne breached supplier reaches all its customers (SolarWinds: under 18,000)Supply chain attacks

3Social engineering

Authority, urgency, scarcity, social proof, familiarity, intimidationThe levers attackers pullSocial engineering
SPF, DKIM, DMARCAllowed senders, a signature, the policy for failuresEmail authentication
Phishing, vishing, smishing, quishingBy email, voice, text, QR codePhishing channels
BECOne email in a real thread redirects a payment; $2.77 billion lost in 2024 (FBI)Business email compromise
PretextingA believable story told to a help deskPretexting
MFA fatiguePush after push until one is approved: use number matchingPretexting
Adversary in the middleA proxy page relays your code and keeps the sessionPretexting
Report fastSomeone will click; minutes to report decide the damageSecurity awareness

4Malware and vulnerabilities

Virus, worm, trojan, ransomware, rootkit, keylogger, logic bombMalware named by how it spreads, hides and actsMalware types
CISA KEV, EPSSKnown exploited now / probability of exploitation soonAnalysing malware
Patch cycleInventory, prioritise, test, deploy, verifyAnalysing malware
WannaCryFix out 14 March 2017, attack 12 May 2017: 59 daysWorms and patching
SQL injectionUse parameterised queries, never string-built SQLInjection
XSSAttacker script runs as the site; encode output, set a Content Security PolicyInjection
Buffer overflowWrites past a buffer into what runs nextInjection
CVEOne public ID per flawCVE and disclosure
CVSS0 to 10 for severity, not urgency; Log4Shell scored 10.0CVE and disclosure

5Cryptography

Symmetric, asymmetric, hashOne key, two keys, no keyCryptographic primitives
AES-128 / AES-256Brute force out of reach; DES (56 bits) fell in 1998Symmetric encryption
AES-GCMAuthenticated encryption: secret and tamper-evident; never ECBModes and ciphers
HSM, TPM, KMSWhere keys live so they cannot be copied outModes and ciphers
n(n − 1) ÷ 2Keys needed for n people with shared keysKey distribution
RSA, ECCLock with the public key, open with the private oneAsymmetric encryption
Diffie-Hellman (ECDHE)Agree a secret over an open lineAsymmetric encryption
SHA-256256-bit fingerprint; one change flips about half the bitsHashing
Digital signatureHash, signed with the private key, checked with the public keyDigital signatures
Equal strength128-bit symmetric = RSA 3072 = ECC 256Hybrid encryption
ML-KEM, ML-DSA, SLH-DSAPost-quantum standards (2024); RSA and ECC disallowed after 2035Hybrid encryption

6Certificates and TLS

X.509 certificateSubject, public key, issuer, validity, extensions, CA signatureX.509 certificates
DV / OV / EV, wildcard, SANValidation levels; *.example.com; several names in oneCertificate types and formats
.pem .crt .der .pfxCertificate file formatsCertificate types and formats
ACMEAutomatic issue and renewal (Let's Encrypt)Certificate types and formats
mTLS, HSTSBoth sides show certificates; browsers use https onlyCertificate types and formats
Root, intermediate, leafThe chain of trust; roots stay offlineChain of trust
Certificate TransparencyEvery public certificate is loggedChain of trust
ValidationChain, dates, name, not revoked, allowed useCertificate validation
openssl s_client -connect site:443See a server's certificate chainCertificate validation
200 / 100 / 47 daysMaximum certificate life from March 2026 / 2027 / 2029Certificate lifetimes
CRL, OCSP, staplingRevocation lists, live check, the server attaches the answerCertificate lifetimes
TLS 1.3One round trip; only forward-secret key exchangeTLS handshake

7Authentication

Something you know, have, areThe three factor types; MFA uses two different onesAuthentication factors
FAR, FRR, CERFalse accepts, false rejects, the point where they crossAuthentication factors
Salted, slow hashArgon2id, scrypt, bcrypt (cost ≥ 10), PBKDF2 600,000 iterationsPassword storage
Rainbow table, pepper, key stretchingPrecomputed hashes; a secret added server-side; hash many timesHashing and salting
AAL1 / AAL2 / AAL3One factor / two factors / hardware-backed, phishing-resistantHashing and salting
NIST 800-63B-4At least 15 characters alone (8 with MFA), no composition rules, no forced changesPassword policy
Credential stuffingReused passwords tried on every siteCredential stuffing
SMS < app code < push with number match < FIDO2/passkeySecond factors by phishing resistanceSecond factor strength
PasskeySigns a challenge for one site; the server keeps only a public keyPasskeys

8Authorisation and access

Joiner, mover, leaverAccess follows a person through the organisationIdentity life cycle
DAC, MAC, RBAC, rule-based, ABACOwner, labels, role, rule, attributes decideAccess control models
Bell-LaPadulaNo read up, no write down (confidentiality)Mandatory access control
Just-in-time access, password vaultAdmin rights borrowed for an hour, recordedPrivileged access
Access review, break-glass accountRecheck who has what; an emergency login sealed and monitoredLeast privilege in practice
SAMLXML assertion from an identity provider: SSO for business appsSingle sign-on and SAML
OAuth 2.0Grants an app access with a token, never your password; use PKCESingle sign-on and SAML
OpenID ConnectOAuth plus an ID token: who signed inSingle sign-on and SAML
Conditional accessWho, which device, where, how risky, at every sign-inConditional access

9Network security

SegmentationOne break-in stays in one roomSegmentation
Screened subnet (DMZ), microsegmentation, air gapWays to separateWays to segment
NGFW / WAFKnows applications and users / protects web apps from injection and XSSWays to segment
Policy engine, administrator, enforcement pointZero trust parts (NIST SP 800-207)Ways to segment
Firewall rulesTop to bottom, first match wins, deny by defaultFirewall rules
IDS / IPSReports / blocks; signature or anomaly basedIDS and IPS
False positive / false negativeAlarm with no attack / attack with no alarmIDS and IPS
DDoS defenceBe bigger than the flood: scrubbing, CDN, rate limitsDDoS
22, 443, 465/587, 636, 853, 993, 995SSH, HTTPS, SMTPS/submission, LDAPS, DoT, IMAPS, POP3SSecure protocols

10Protecting devices, applications and data

At rest, in transit, in useEach state of data needs its own protectionData states
Full-disk / file / database / cloud encryptionWhich helps against which lossEncryption at rest
EDR / XDR / MDRWatches behaviour on endpoints / across sources / run as a serviceEncryption at rest
SAST, DAST, SCA, SBOMScan code, test the running app, check dependencies, list componentsEncryption at rest
Public, internal, confidential, restrictedClassify first, then protect by classData classification
Clear, purge, destroySanitising media before reuse or disposal (NIST SP 800-88)Data classification
Masking, tokenisation, encryption, hashingHide, substitute, lock, fingerprintData classification
Card maskingShow at most the first six and last four digits (PCI DSS)Data classification
DLPSpots sensitive data leaving by email, upload or USBData loss prevention
HardeningRemove what you do not need; CIS Benchmarks for the restHardening

11Detecting attacks

Dwell time416 days in 2011, 10 to 14 days now (Mandiant)Dwell time
Windows 4624 / 4625 / 4688Logon, failed logon, process createdLog management
SOAR, UEBAAutomated response playbooks; user behaviour baselinesLog management
Red, blue, purpleAttack, defend, both working togetherLog management
SIEMCollects logs and correlates quiet signals into one alertSIEM
BaselineKnow normal so abnormal stands outSIEM
Credentialed scanSees what is really installedVulnerability scanning
Rules of engagementScope, times and permission before any testPenetration testing
Threat huntingAssume they are in; test a hypothesisPenetration testing

12Incident response

Preparation, detection and analysis, containment, eradication, recovery, lessons learnedThe incident response cycleIncident response lifecycle
Playbook, tabletop exerciseSteps written in advance; rehearse themPreparing to respond
Image and hashCopy the disk bit for bit and prove it with a hashPreparing to respond
ContainIsolate, do not power off: memory holds evidenceContainment
Order of volatilityRegisters and cache, memory, network state, disk, logs, backupsDigital forensics
Chain of custodyWho held the evidence, when, and whyChain of custody
GDPR 72 h, NIS2 24 h / 72 h, SEC 4 business daysReporting deadlinesNotification
Five whysKeep asking until you reach a fixLessons learned

13Backup and recovery

RPO / RTOHow much data you may lose / how long you may be downRPO and RTO
Full, incremental, differentialIncremental is quick to take, slow to restore; differential the reverseBackup types
Snapshot, replication, journalingPoint in time; live copy; log of changesBackup and replication methods
MTD, MTBF, MTTRMost downtime tolerable, time between failures, time to repairBackup and replication methods
3-2-1-1-03 copies, 2 media, 1 off site, 1 offline or immutable, 0 restore errorsThe 3-2-1 rule
Nines99.9% ≈ 8.8 hours down a year; 99.99% ≈ 53 minutesAvailability and redundancy
Hot, warm, cold siteRunning, ready to start, an empty roomRecovery sites
BIAThe business decides what comes back first and how fastBusiness impact analysis
Tabletop, simulation, parallel, full interruptionWays to test recovery, cheapest firstTesting recovery

14Governance, risk and compliance

Law, policy, standard, procedure, guidelineFrom why to how, mandatory to advisoryGovernance documents
Controller / processorDecides why data is used / processes it for themGovernance documents
SLA, MSA, SOW, NDA, MOU, BPAAgreements with third partiesGovernance documents
Govern, Identify, Protect, Detect, Respond, RecoverNIST CSF 2.0 functionsNIST CSF 2.0
ISO/IEC 27001:202293 controls in four themes; three-year certificationISO 27001
GDPR finesUp to €20 million or 4% of worldwide turnoverRegulations
Residual riskWhat is left after controls; accepted on the record by its ownerResidual risk
SOC 2 Type I / Type IIControls designed well on one day / worked over a periodAudits and attestation

NeuroqAI · Security Principles · neuroqai.com/courses/security-principles/reference/