Bookmarks

Security architecture

Security architecture is the design of protection for a whole system. This reference covers threat modeling, Zero Trust, IAM, DLP, SIEM and SOC, NIST CSF and ISO 27001.

checked 7 Nov · next check 14 Nov · 76 min read

Sections
13
Reading
76 min
Languages
RU · UZ · EN
Written from
csrc.nist.gov/pubs/sp/800/207/final

Check status of the reference

Verified 7 Nov · next check 14 Nov

The sections were compared with the release notes, the check found nothing, and all source links respond.

  1. Verified
  2. Scheduled check

What security architecture is and how it works

Security architecture is the engineering of secure systems as described in NIST SP 800-160 Vol. 1 Rev. 1: protective measures are designed for the whole system — people, processes and technology — at design time, rather than assembled from separately bought tools.

Three properties it preserves

Protection answers the question of which properties of a system must be preserved. There are three, and FIPS 199 builds system categorisation on them: the potential harm from breaching each property is rated as low, moderate or high — the higher the level, the stricter the required measures.

PropertyWhat it meansHow it is breachedExample measure
Confidentialityonly authorised people can access the dataa customer database leakencryption, role-based access
Integrityonly authorised people can change data and settingspayment details swappeddigital signature, change log
Availabilitythe system and data are available when neededa DDoS attack on a websitespare capacity, traffic filtering

The principles everything rests on

Defense in depth ([[defense in depth]]), according to the NIST glossary, is a strategy that combines the capabilities of people, technology and operations and builds different barriers across several levels of the organisation. Access to a shop’s admin panel is protected by a password, a second factor and an allowlist of addresses: if an attacker breaks through one barrier, the next one is waiting.

The principle of least privilege: every user and service gets only the rights its work needs, and no more. An accountant handles payments but cannot see the customer database; a backup service writes to its own storage but cannot run commands on servers.

Secure by design and secure by default means that security is built in at the design stage rather than added after release. Under the CISA Secure by Design programme, a product ships with multi-factor authentication, logging and single sign-on included at no extra charge, factory default passwords are removed, and the second factor is phishing-resistant.

The “assume breach” principle complements them: the system is designed as if some barriers have already been breached. This leads to limiting movement inside the network, encrypting data and being ready to notice an intruder’s actions; Zero Trust develops this approach — see the “Zero Trust” section for details.

Layers of protection from user to data

Protection is split into layers. Each layer is a separate barrier with its own measures: breaching one layer does not give the attacker access to the data, because the next one stands in the way. Logs and detection run through all the layers, and above the stack sit management and policies that define what should work and how.

Each layer is a separate barrier; the data stays protected even if one of them is breached.
LayerWhat it protectsTypical measuresSection
User and devicepeople and their laptops and phonestraining, updates, disk encryption“Security management”
Account and accesswho can manage whatMFA, least privilege, SSO“Accounts and access”
Networktraffic between zonessegmentation, firewalls, VPN“Network protection”
Applicationapplication and API codesecure development, code review“Secure development”
Datathe data itselfencryption, backups“Data protection”
Logs and detectionevents in all layerscentralised logs, alerts“Detection and response”

Example: the accountant’s stolen password

An online shop with 50 employees: the accountant opened a phishing email and entered their password on a fake page. No single layer stops such an attack entirely, but together the barriers reduce the damage to an alert.

BarrierWhat would work
MFA at sign-inthe stolen password does not grant access: a second factor is needed
Least privilegethe accountant’s account has no rights to the customer database or the code
Network segmentationthe database is not visible from the accountant’s laptop
Data encryptiona stolen copy of the database is useless without the keys
SIEM alertsa sign-in from another country shows up in the logs and the response starts at once

How it differs from other approaches

ApproachSubjectScopeResult
Security architectureprotection of the whole system: people, processes, technologythe whole organisationa system resistant to attacks
OWASP Top 10common classes of web application vulnerabilitiesweb applicationsa list of priorities for code review
Vulnerability managementknown vulnerabilities in componentsservers, dependenciesvulnerabilities fixed by priority
Linux server hardeningthe settings of a single host: SSH, sudo, firewalla single serverthe server meets a baseline
Compliancemeeting formal requirementsorganisationa status confirmed by an auditor

What you need to know first

  • Ports, addresses and how DNS works — the “TCP/IP and DNS” reference.
  • How data in transit is encrypted and how certificates work — the “TLS and PKI” reference.
  • How an application gets access on behalf of a user — the “OAuth and OIDC” reference.

Section sources

the section is written from these pages

Checklist

A checklist for securing a system: verifiable statements about threats and risks, access, network, data, detection, development, cloud and management. Go through it before putting a new system into service, after a major change such as a new cloud or integration, and once a year. Each item is explained in its own section of the reference.

If resources are limited, start smaller: the minimum set for a small company is Implementation Group 1 (IG1) of the CIS Controls, basic hygiene against the most common attacks; a short list of the highest-impact measures is CISA’s Cross-Sector Cybersecurity Performance Goals (CPG) 2.0. The numbers in brackets after the group headings are CIS Controls v8.1 safeguard numbers.

Threats and risks (CIS 1–2)

  • Keep a complete asset inventory: servers, workstations, network devices and cloud resources are all recorded, with nothing unaccounted for.
  • Keep a list of approved software and remove outdated and unapproved software.
  • Update the threat model after the latest major change: new trust boundaries and data flows are described. See the “Threat modeling” section for details.

Access (CIS 5–6)

  • Enable phishing-resistant multi-factor authentication (MFA) (FIDO2, passkeys) for administrators and remote access.
  • Give every employee a separate account and ban shared ones: only a personal account lets the log show who acted.
  • Grant rights by role and revoke access on the day someone leaves: check the list of administrators against current staff.
  • Use accounts without administrative rights for everyday work — the principle of least privilege.

Network (CIS 12–13)

  • Leave only published services open to the internet: manage servers through a VPN or a separate access host, not through open ports.
  • Split the network into segments: servers, workstations, guests and administrators’ devices are not on one network, and traffic between segments is restricted by rules.
  • Describe the allowed connections between segments and investigate deviations: unexpected traffic is a reason to check. See the “Network protection” section for details.

Data (CIS 3 and 11)

  • Label personal and critical data and assign each level rules for storage, access and lifetime.
  • Encrypt personal and critical data in transit (TLS) and at rest.
  • Keep one copy of backups offline or immutable, and test restoring every quarter.
  • Store backups separately from production infrastructure — a different account, network or region — and restrict access to them by the same rules as production data. See the “Data protection” section for details.

Detection and response (CIS 8 and 17)

  • Send sign-in, VPN, cloud and EDR (Endpoint Detection and Response, protection of endpoints) logs to a SIEM (Security Information and Event Management, collecting and analysing security events).
  • Keep logs longer than a typical investigation lasts and forbid changing them, even by administrators.
  • Write a response plan: who declares an incident, whom to notify, and how to communicate if the company’s email and messenger are unavailable.
  • Test the plan once a year: restoring from a backup and walking through a scenario in which an administrator account is compromised. See the “Detection and response” section for details.

Development (CIS 16)

  • Check dependencies for known vulnerabilities on every build and update them once fixes are released.
  • Keep secrets in a secrets store, not in the repository, and enable a check in the pipeline for accidental publication.
  • Have a second person review code before merging and keep the development environment separate from production. See the “Secure development” section for details.

Cloud (CIS 4–6)

  • Do not use the cloud root account for everyday work: use only separate roles with least privilege and MFA.
  • Check the default settings: close public file storage, open management ports and test environments reachable from the internet.
  • Create separate cloud accounts for people instead of a shared one, and disable unused accounts and access keys. See the “Cloud security” section for details.

Management (CIS 14–15)

  • Appoint a security risk owner and approve a policy: which risks are acceptable and who makes decisions during an incident.
  • Run phishing and data-handling training for all employees, including new ones.
  • Check suppliers with access to data: an agreement is signed, access is limited to what is necessary and is revoked when the contract ends. See the “Security management” section for details.

Don’t

  • Shared administrator accounts: the log does not show who acted, and access cannot be revoked for just one person.
  • A flat network where workstations, servers and guest Wi-Fi share one segment: there is no protection between them.
  • Backups in the same domain as the servers: ransomware encrypts them along with the data.

Record unmet items in a plan with an owner and a deadline: the checklist shows the state on the day of the check. Go through the whole list once a year, and after a major change go through the groups “Threats and risks”, “Access” and “Cloud”.

Section sources

the section is written from these pages

Threat modeling

Threat modeling is an analysis of how a system is built, based on the four questions of the Threat Modeling Manifesto (whose authors include Adam Shostack): what are we working on, what can go wrong, what are we going to do about it, and did we do a good job. Such an analysis finds threats at design time, when changing a decision is cheapest.

A threat model is built at the design stage and updated with every significant change: a new integration, a new data flow, a move to the cloud. OWASP advises maintaining the model along with the system rather than writing it once. The result is a list of threats, each with a response and an owner, not a document for its own sake.

Step 1: draw the data flows

Start with a data flow diagram (DFD): it shows what elements the system consists of, where data moves and where the trust boundaries lie — lines beyond which the security rules change. A sketch on a whiteboard will do: the result matters, not the tool. What matters is that the diagram shows flows, stores, processes and external entities: these are the points where an attacker can do something to the system.

ElementNotationExample
External entityrectanglecustomer’s browser, payment gateway
Processrounded rectangleshop API
Data storetwo parallel linesorders database
Data flowarrow labelled with the dataorder request, response with the price
Trust boundarydashed framebetween the internet and the API

Threats are sought first of all on flows that cross a trust boundary: inside one zone a single set of rules applies, but when it crosses a boundary the data ends up somewhere it cannot be trusted. So boundaries go onto the diagram first, and every flow that crosses them is checked.

Solid accent arrows are flows across trust boundaries: this is where threats are sought.

Step 2: look for threats with STRIDE

STRIDE is a Microsoft mnemonic: six categories of threat, one per letter. For each category, go through the elements of the diagram — especially flows across boundaries — and write down what can go wrong. Each category corresponds to a security property it violates:

LetterThreatProperty violatedExampleTypical measure
SSpoofingauthenticitya request with someone else’s tokenauthentication at the entry point
TTamperingintegrityediting the price in a requestdata integrity checks
RRepudiationnon-repudiationa payment is denied and there is no logimmutable action logs
IInformation disclosureconfidentialityreading other people’s ordersencryption and permission checks
DDenial of serviceavailabilitya burst of requests exhausts a resourcerate limits and quotas
EElevation of privilegeauthorisationediting your own role in a requestpermission checks on the server

Worked example: an online shop

Back to the shop from the diagram: the customer’s browser, the API, the orders database and the payment gateway. The main path has two trust boundaries — between the internet and the API, and between the API and the orders database; the payment gateway is an external entity, and its boundary counts too. Let’s run STRIDE over one flow, “browser → API”, with one threat per category:

ThreatExample for the “browser → API” flowMeasure
Spoofinga request with a token stolen from the customerpassword plus a one-time code; short session lifetime
Tamperingthe item’s price in the order request is replaced with a lower onethe server recalculates the total from the prices in the database
Repudiationthe customer denies placing the order and there are no logsa log of actions with the account and the time
Information disclosurea substituted order number returns someone else’s datacheck the order owner on every request
Denial of servicea burst of checkout requests exhausts the connection poola per-address request limit and timeouts
Elevation of privilegein their profile the customer changes their role to “administrator”the server checks permissions, not the interface

Step 3: set priorities and owners

The threats found are assessed by likelihood and impact. For a first pass a scale of 1 to 3 is enough: a 3 × 3 matrix fits on one screen, and arguments over exact numbers do not eat up the meeting. One way to lay it out:

ImpactLikelihood 1 — rareLikelihood 2 — possibleLikelihood 3 — frequent
Impact 1 — minoracceptacceptmitigate
Impact 2 — noticeableacceptmitigatemitigate or transfer
Impact 3 — seriousmitigatemitigate or transfereliminate

For each threat, one of four responses to risk is chosen: eliminate — remove the feature or component that creates it; mitigate — add a measure; transfer — shift responsibility by contract or insurance, recording who is responsible for the remaining measures; accept — leave it as it is, but with the risk owner’s signature. The chosen response and the owner are recorded next to the threat.

How to build it into the process

The threat model is part of architecture review: a new integration or a new data flow does not get approval without an updated diagram. Turn the agreed measures into tasks in the tracker, with an owner and a deadline. Revisit the diagram on every change from this list:

  • a new integration with an external system
  • a new flow of personal or payment data
  • a move to the cloud or a change of provider
  • a change of framework or data store

There are ready-made editors for drawing diagrams and getting threat suggestions: Microsoft Threat Modeling Tool and OWASP Threat Dragon, an open-source editor that picks threats for diagram elements from the STRIDE, LINDDUN and CIA templates.

STRIDE is not the only method: attack trees break down the attacker’s path to a goal, LINDDUN looks for privacy threats, and PASTA ties threats to business goals. For technical design, start with STRIDE and add the others when you need a different view.

Section sources

the section is written from these pages

Zero Trust

Zero Trust is a security approach in which trust is not granted for a place on the network or for owning a device: every access to a resource is checked separately and before the session begins. The approach is described in NIST SP 800-207; to get started you do not need a new product — you need an access policy based on signals about the user, the device and behaviour.

The old model checks the perimeter and then trusts whoever has got in: inside the network almost everything is visible. In Zero Trust, a policy enforcement point stands in front of every resource and lets in only requests allowed for that session — compromising one account gives the attacker one resource, not the network.

The seven NIST SP 800-207 tenets

NIST describes Zero Trust through seven tenets; the architecture you design follows all of them:

  1. All data sources and computing services are considered resources — databases, applications, SaaS and personal devices that have access to them.
  2. All communication is secured regardless of network location: a request from the internal network goes through the same checks as one from the internet.
  3. Access is granted per session: authenticating to one resource does not automatically give access to others.
  4. Access is determined by dynamic policy: identity, device state and behaviour — not only the role, but also the time, location and vulnerabilities.
  5. The state of all devices is monitored: a device with vulnerabilities or without management gets fewer rights or is refused.
  6. Authentication and authorisation are strict and happen before access: MFA and re-checking during the session.
  7. Logs and telemetry are collected and used to improve the policy and later decisions.

Decision point and enforcement point

Two logical components are responsible for the check. The policy decision point (PDP) is the mechanism that matches a request against policy and decides whether to let it through. The policy enforcement point (PEP) stands on the path to the resource and lets through only approved connections. Within the PDP, NIST separates the policy engine, which makes the decision, from the policy administrator, which opens and tears down the connection. Signals for the decision come from IAM, EDR and MDM, SIEM, and threat intelligence.

Signal sources are at the top; dashed lines are signals and the control channel, the solid line is the request itself.

Follow an accountant’s request to the payroll application. The laptop with an agent sends the request, and the PEP passes it to the PDP. The policy engine checks identity and role, the laptop’s state — disk encrypted, OS updated — behaviour and threat intelligence. If the decision is positive, a connection is opened for this session; events flow to the SIEM, and new signals can cut it off.

A device the service knows nothing about is also a signal. A practical rule: if MDM confirms disk encryption and recent updates, access is full; if the device is unmanaged, internal data is refused, but email is allowed.

ZTNA instead of VPN

The closest consequence is application access. A VPN extends the perimeter: once signed in, the user is inside the network and can see a lot from there. Zero Trust network access (ZTNA) grants access to a single application: resources are invisible from the internet and to other users, and a connection is built for every session. Under SP 800-215 this is part of ZTA.

QuestionVPNZTNA
What is available after sign-inthe whole network or a segment of itone application
Is the device checkedusually not: often only a username and passwordyes: its state is part of the decision
Is the application visible from the internetyes: behind the perimeter addressno: hidden until a session is approved
Moving to neighbouring serverspossible: the network is open insidedifficult: there is only one path

The CISA maturity model

Progress is measured with the CISA maturity model (ZTMM 2.0): five pillars — identity, devices, networks, applications and workloads, data — and three cross-cutting capabilities: visibility and analytics, automation and orchestration, and governance. There are four stages: traditional, initial, advanced, optimal; move the pillars not in step but by risk — identity first.

PillarTraditionalOptimal
Identitypasswords or MFA, static accesscontinuous validation, phishing-resistant MFA
Devicescompliance not visible, software unmanagedcontinuous checks throughout the device lifecycle
Networksa large perimeter, open inside a segmentmicro-perimeters and microsegmentation per application
Applicationslocal checks on static attributescontinuous authorisation with risk analysis
Datamanual inventory of critical datacontinuous inventory and dynamic leak protection

SASE and CASB

Cloud services bundle these functions into a subscription. Secure access service edge (SASE), per SP 800-215, combines network functions and protection — secure web gateway (SWG), CASB, ZTNA, firewall as a service (FWaaS) — and delivers them from points of presence close to the user. A CASB (cloud access security broker) is an intermediary between users and cloud applications: it sees unsanctioned SaaS and carries data loss prevention (DLP) policies into the cloud.

Where to start the transition

In SP 800-207 NIST advises starting with one low-risk business process rather than switching everything at once. A five-step plan:

  1. Inventory resources and flows: which applications, data and services exist, who accesses them and from where; look for shadow IT too.
  2. Enable MFA for all accounts, starting with administrators and remote access.
  3. Segment the most valuable assets: separate out critical resources and block traffic to them from the rest of the network.
  4. Feed device signals into the access policy: EDR and MDM report disk encryption, updates and detected threats.
  5. Move one group of applications from VPN to ZTNA in log-only mode: observe first, enforce later.

After the pilot, expand one process at a time. Segmentation and VPN do not go away: in a hybrid network, Zero Trust and the perimeter work side by side for years.

Zero Trust is an architectural approach, not a product: a tool’s name in an advert does not make an architecture. Communication between services is covered by the same principle from another side — mutual TLS authentication (mTLS); see the “TLS and PKI” reference for details.

Section sources

the section is written from these pages

Identity and access

IAM (identity and access management) is the set of processes and tools that decide who signs in to a system (authentication) and what they are allowed to do (authorisation). It covers the whole life cycle of an account, so that a stolen password or an unneeded role does not open up the system.

Access rests on two separate decisions. Authentication confirms that the person is who they claim to be; authorisation decides what they may do. Strengthening one and neglecting the other is a common mistake: a flawless sign-in with generous roles still gives away too much.

Single sign-on through an IdP

With single sign-on (SSO), the user is verified once, at the identity provider (IdP), and applications trust its assertion. NIST SP 800-63C-4 calls this federation: the application (the relying party) opens a session without checking the authenticator itself, relying on a sign-in assertion signed by the IdP. The assertion is cryptographically signed: in SAML it is an XML structure, and in OpenID Connect it is an ID token, a signed JWT (JSON Web Token). The user keeps one strong way to sign in instead of a password for every application, and revoking access at the IdP closes all applications at once.

ProtocolWhat it carriesWhere it is usually used
SAML 2.0A signed XML assertioncorporate web applications
OpenID ConnectAn ID token, which is a signed JWTweb and mobile applications

SAML is older and remains typical for corporate portals; OIDC is simpler for mobile and modern web applications. OIDC flows and ID token validation are covered in the “OAuth and OIDC” reference, in the sections “Flows” and “OpenID Connect”. On a corporate network the IdP usually relies on the domain directory; users and groups are described in the “Windows Server and AD” reference.

Second factor and phishing resistance

A password is one factor: something you know. Multi-factor authentication (MFA) adds possession (a phone, a key) or inherence (a fingerprint, a face). NIST SP 800-63B-4 defines authentication assurance levels (AAL). AAL1 is a single factor, AAL2 is two different factors, and AAL3 is two factors plus a phishing-resistant cryptographic authenticator with a non-exportable key. The table shows the highest level each method can reach.

MethodAALPhishing-resistant
PasswordAAL1no
SMS or phone callAAL2no, a restricted method
One-time code from an app (TOTP)AAL2no
Push approvalAAL2no
FIDO2/WebAuthn and passkeysAAL3; synced passkeys, AAL2yes
Smart card (PIV, CAC)AAL3yes

Phishing resistance is what separates the lower rows of the table from the upper ones. In a proxy phishing attack, a fake site relays the password and the one-time code to the real site in real time: typing a code by hand does not bind the response to the session, so the intercepted code passes verification. A FIDO2 key binds the secret to the site’s domain: a signature made for example.com cannot be accepted by a fake domain. At AAL2, the verifier must offer at least one phishing-resistant method, as SP 800-63B-4 requires.

Roles and attributes

Role-based access control (RBAC) assigns permissions to roles rather than to people: the “accountant” role can read invoices, and every new accountant gets it with a single record. Permissions follow the structure of the organisation, which makes administration cheaper: for example, 5 roles cover 40 employees instead of 200 direct assignments. The NIST model became the basis of the ANSI/INCITS 359 standard; the current edition is INCITS 359-2012.

ModelDecision based onExample ruleWhen it fits
RBACthe user’s rolerole “accountant” → read invoicespermissions repeat by job title
ABACattributes of the subject, object and environmentdepartment = finance, device managed, time 9:00–18:00the rule is more complex than a role

Attribute-based access control (ABAC), per SP 800-162, compares attributes of the subject (department, seniority), the object (sensitivity label) and the environment (time, network) with a policy. The models are combined: a role grants baseline access and attributes narrow it, so that invoices are visible only to finance and only from a managed device. Kubernetes RBAC works on the same idea; see the Kubernetes reference, section “Cluster security”.

Least privilege

The principle of least privilege, from the NIST glossary, means that every account gets the minimum permissions its task needs. Permissions are granted for a task and revoked after it. Each administrator has a separate account for administrative work and does everyday tasks from an ordinary one. Service accounts work without interactive sign-in and get the permissions of a specific service, not of a person.

Just-in-time privileged access

Administrator accounts are the most valuable target, so their permissions are granted for a limited time. This is privileged access management (PAM). Take Microsoft Entra PIM as an example: an administrator is eligible for a role but does not hold it permanently. To do the work, they activate the role for a limited period, pass MFA and give a justification; if the role requires approval, a separate approver confirms the request. Every activation is logged, and access reviews check whether the role is still needed.

Access follows an employee through the joiner, mover, leaver cycle. Access is granted by a request approved by the system owner, not by a verbal ask. A transfer is a reason to review roles: old permissions do not carry over automatically. When someone leaves, access is revoked the same day. Every quarter or half-year, access is reviewed on a schedule: the system owner confirms each role or gives it up.

The abbreviation PAM means something different in Linux: Linux-PAM (Pluggable Authentication Modules) are pluggable sign-in modules and have nothing to do with privileged access management. Users, sudo and the stacks in /etc/pam.d are covered in the “Linux server hardening” reference, section “Accounts and sudo”.

Section sources

the section is written from these pages

Network security

Network security is segmentation and control of traffic at segment boundaries: compromising one host must not open the way to the whole network. On a flat network where every machine can see every other, the first infected laptop becomes a bridgehead; segments and filters at the boundaries limit how far an attacker can go.

A firewall filters traffic at boundaries. A next-generation firewall (NGFW) also sees applications and, when it decrypts TLS, their content. CISA calls limiting movement inside the network microsegmentation and counts it among the network measures of Zero Trust; see the section “Zero Trust” for details.

Segmentation: boundaries and tools

A network is divided by criticality and purpose, and every crossing between zones passes through a rule. There are boundaries at three levels, from the perimeter down to a single workload:

LevelBoundaryToolExample
Perimeter zonesbetween enterprise networksfirewallsinternet, DMZ, office, servers, management
Subnets and VLANsbetween segments of one networkrouting and firewall rulesserver subnet separate from the office one
Microsegmentsbetween workloadsworkload-level rulesonly web → api:8443, nothing else

CISA calls large zones macrosegmentation, while microsegmentation shrinks a segment to a single workload: a server talks only to the hosts it needs for its function. The smaller the segments, the less room an attacker has to move; precise rules require known traffic flows, so CISA advises introducing microsegmentation in stages, starting with critical applications, and keeping policy management centralised.

A typical DMZ (demilitarised zone) rule: public services such as the web server, the mail gateway and the reverse proxy live in a separate segment. Traffic from the internet reaches only the DMZ, and from the DMZ only the necessary ports on the necessary servers are open inward. A compromised server in the DMZ does not get the whole network laid out in front of it; the next firewall is waiting.

Firewalls

According to SP 800-41 Rev. 1, firewall technologies differ in how deeply they inspect traffic. A packet filter looks at individual packets, a stateful firewall remembers whole connections, and an application-layer proxy acts as an intermediary and decides based on the content of the protocol:

TypeWhat it checksLimitation
Packet filteraddresses and ports of a single packetdoes not remember the connection, sees only headers
Statefulconnection state: whether the packet is expectedstill does not parse the packet’s content
Application-layer proxyprotocol commands and data, two connections instead of oneresource-hungry, not available for every protocol

The basic policy rule is that everything not explicitly allowed is denied: the firewall drops any traffic that is not on the allow list. SP 800-41 calls this deny by default and considers it safer than the opposite approach, because a forgotten service does not open by itself.

An NGFW adds awareness of application data: it looks not only at layers 3–4 but also at layer 7, includes an intrusion prevention system (IPS), and decrypts and inspects TLS traffic (per SP 800-215). SP 800-41 treats policies based on a user account rather than an address as a separate class of rules; they are enforced by firewalls with user authentication and by VPN gateways.

A web application firewall (WAF) goes in front of a web application. It inspects HTTP request parameters and bodies against the rules of ready-made sets such as the OWASP Core Rule Set, and catches SQL injection and XSS. Turn on a new rule set in detection mode first, only logging matches, clear out the false positives, and only then switch to blocking. A WAF does not replace fixing the code: it reduces the stream of typical attacks on the application while the vulnerabilities are being closed. Security requirements for web applications are in the “OWASP Top 10” reference.

Intrusion detection: IDS and IPS

A firewall decides by rules set in advance; intrusion detection and prevention systems look in traffic and on hosts for signs of the attack itself. An IDS (intrusion detection system) only reports an event, while an IPS (intrusion prevention system) can also stop it (per SP 800-94):

TypeWhere it sitsWhat it does on a match
Network IDSbeside the traffic flow: receives a copy of the trafficlogs the event and raises an alert
Network IPSinline, in the traffic path like a firewallblocks the packet or connection
Host-basedan agent on the server itselfreports and stops: the process, file or connection

Signatures catch known threats by patterns, an anomaly profile notices deviations from normal behaviour, and stateful protocol analysis checks an exchange against how the protocol should behave (per SP 800-94). Rules and alerts go to central event collection; see the section “Detection and response”.

East-west traffic and DDoS

After the first host is compromised, the attack more often moves inside than comes from outside: server to server, which is east-west traffic. A firewall at the internet boundary does not see it. Control comes from microsegmentation, rules on the hosts themselves and flow logs, which show who actually connected to whom; detecting lateral movement is the job of the section “Detection and response”.

Availability is defended against denial-of-service attacks. The CISA guidance divides DDoS into three kinds: volumetric attacks flood the link, protocol attacks exhaust the network stack, and application attacks go after slow and expensive application-layer requests. Request limiting protects against application-layer attacks; against volumetric ones you need link capacity, which a single host cannot buy:

  • Traffic scrubbing at the provider or in a cloud service: unwanted traffic is filtered out before it reaches your boundary.
  • A CDN spreads the load across its nodes and absorbs volumetric attacks.
  • Rate limiting and filtering on the firewall and in the application.
  • A plan agreed in advance: provider contacts, the order for switching protection on, and who makes decisions.

Example: an office of 300 people

The starting network is flat: one address block for all 300 devices, with laptops, servers and the database in one segment. An infected laptop scans the network and finds a database with an open port; nothing stops it.

After the split there are 5 zones: internet, DMZ, office, servers and management. Between them are 6 rules. From the internet, traffic goes only to the DMZ, on the web service ports. From the DMZ, only to the application on port 8443. From the office, to the applications. From the management zone, to the servers’ management interfaces. From the servers outward, only updates and mail. Everything else is denied. There is no longer a direct path from the DMZ or the office to the database, only through the application.

There is no direct path from the DMZ or the office to the database, only through the application.

Section sources

the section is written from these pages

Data protection

Data protection is the layer of security architecture that protects the data itself rather than the network and applications around it. It starts by answering which data lives where and what it is worth to the company; classification, encryption with key management, leak control and backups follow.

The measures in this layer work where the other layers have already been breached: a stolen copy of a database is useless without the keys, ransomware does not touch an offline copy, and a report sent out by email is seen by DLP. The risk to data is assessed by threat modeling (see the section “Threat modeling”).

Classification: where protection starts

Until you know which data is confidential, you encrypt everything or nothing. Classification sorts data into levels of sensitivity, and each level gets rules for storage, transfer and access.

LevelExamplesStorageTransferWho has access
Publicprices, public documentationno restrictionsopen channeleveryone
Internalpolicies, project planinside the network, role-based accesscorporate emailemployees
Confidentialcustomers’ personal data, contractsencryption at restTLS onlyassigned roles
Highly confidentialcard numbers, health data, keysencryption, minimum of copiesTLS plus field-level encryptiona minimal list; every grant is a log entry

The levels in the table are typical; the names and rules for your own data are fixed by the classification policy from the section “Security governance”.

Three states of data

Data exists in three states, and each is protected differently. At rest, it is protected by encryption of the medium or of records; in transit, by TLS (see the “TLS and PKI” reference); in use, by control over the processes and applications that touch the data. The states do not replace one another.

StateHow it is encryptedWhat it protects againstWhat it does not protect against
At restdisk encryption, database encryption, object encryptiona stolen disk, a seized hostSQL injection: the application reads the data with its own permissions
In transitTLS on the way to the serverinterception along the packet’s paththe server itself, where the data is decrypted
In useaccess control, DLP, application isolationexcess copying and outputcompromise of a process that legitimately has access

Disk encryption does not save you from SQL injection: the database hands decrypted records to the application through which the attacker got in. That is why encryption and access control work as a pair (see the section “Identity and access”).

Envelope encryption and keys in a KMS

The encryption key must be protected too. The typical solution is envelope encryption, as described for AWS KMS: a data key encrypts the data, and a root key in the KMS encrypts the data key itself.

The root key never leaves the HSM, which is validated to FIPS 140-3 level 3: to use it, an application calls the KMS API. The encrypted data key is stored next to the ciphertext, and it is protected by encryption itself. Rotating the root key does not require rewriting the data; it is enough to re-encrypt the data keys.

The root key never leaves the HSM: the data key can be decrypted only by calling the KMS.

Separate the roles: the key administrator manages the KMS policy and does not read the data, while the data administrator reads records and does not change the key policy.

End-to-end encryption

TLS protects the path to the server: on the server’s machine the data is decrypted and visible to it. End-to-end encryption (E2EE) extends protection to the participants: only the end clients hold the keys, and the delivery server sees only ciphertext. For group conversations, such a protocol is described by MLS in RFC 9420: it creates group keys even when participants are not online at the same time, and is designed for groups from two to thousands of members.

The RFC explicitly calls the delivery server untrusted: it is enough for delivery, but the protection of the data does not depend on it. A compromised member is cut off again with new keys once they are back under control; this property of the protocol is called post-compromise security.

Choose E2EE when even the service provider must not read the data: messengers, archives with personal keys. In other cases, TLS with keys in a KMS is enough.

Leak control: DLP

Encryption and access control do not notice when data leaves through an allowed channel: an employee sends a price list with the customer database to a personal mailbox. Data loss prevention (DLP) counters this: the system recognises sensitive data in content and applies a rule, which is to warn, block or log the event. Microsoft describes DLP as covering data in all three states and acting where the data lives: email and storage, devices (USB, printing, clipboard), web traffic, and cloud apps through CASB and APIs.

WhereWhat it seesExample policy
Endpointscopying to USB, printing, clipboard, uploadsblock exporting the customer list to removable media
Network and emailmessages and files with card or passport numberssend emails with card details only to the partner’s domain
Clouduploads to third-party services, shared linksblock posting internal documents to personal drives

Backups against ransomware

Ransomware encrypts or deletes data, then looks for backups on the network to destroy those too; the CISA #StopRansomware Guide warns about this directly. So one copy is kept out of reach, offline or immutable, and the backup system is separated from the production infrastructure with separate credentials:

  • One copy is offline or immutable: erasing and re-encrypting it is impossible even with production network administrator rights.
  • Backup credentials are separate: they cannot be harvested from production machines to reach the copies.
  • Restores are tested regularly: a copy that has never been restored does not count as a backup.

The classic rule for keeping copies, 3-2-1, is covered in the “Infrastructure and cloud architecture” reference; PostgreSQL backups are in the PostgreSQL reference, section “Backups”.

Worked example: an online shop’s customer database

A customer database of 200,000 records: name, phone, email, order history. By classification it is “confidential”: a leak leads to a fine and reputational damage, but it does not contain card numbers. The measures come together like this:

  1. The phone column is encrypted on the database side, with the data key coming from the KMS; developers read decrypted values only through the application.
  2. Transfer is by TLS only, both from the browser and between services.
  3. A DLP rule in simulation mode catches a CSV export with “phone” and “email” columns; after review, uploads to personal drives are blocked.
  4. A daily copy is kept for 30 days in an immutable bucket, a separate account for the copies does not intersect with the domain, and restores are tested every quarter.

Check the measures against a scenario: phishing has stolen the database administrator’s password. Column encryption will not let the phones be read from a dump, the KMS will not release the key without the policy’s permission, separate credentials will keep the copies safe, and DLP will show a mass export. Detection takes over from there (see the section “Detection and response”).

Where to store the personal data of citizens of Uzbekistan, and what the database register requires of your system, is covered in the section “Security governance”.

Section sources

the section is written from these pages

Detection and response

Detection and response is what notices an attack that has already got through the barriers: events are collected from every layer, correlated in one place, and handled according to a rehearsed plan. Without it, a breach is discovered late and from the outside.

Logs: what to collect

Detection starts not with tools but with event logs. The table lists the minimum without which an attack is invisible; everything in it already flows through the previous sections of this reference, and here it is gathered in one place.

SourceEventsWhy
Sign-inssuccessful and failed sign-inspassword guessing, sign-in from someone else’s device
Permissionschanges to permissions and rolesquiet expansion of access after a breach
VPN and remote accessconnections, disconnectionsforeign machines on the network
DNS and proxyoutbound queries and connectionscontact with command-and-control servers
Cloud API logactions in the console and through the APInewly created keys and virtual machines
EDR on endpointsprocesses, network, filesmalicious code being run

Three conditions make logs fit for investigation. First, a common clock on all systems: without NTP synchronisation, events from different sources cannot be put in one sequence. Second, protection from modification: attackers erase their traces, so logs are shipped to a separate store where deletion is forbidden. Third, retention: an attacker’s reconnaissance sometimes drags on for months, so the period is set by policy, usually at least a year.

SIEM: collection and correlation

A security information and event management (SIEM) system takes in events from every source and turns them into alerts. Collection works through agents, Syslog, the CEF format and API connectors; the events are then normalised, meaning mapped to common field names so that the same facts from different systems can be compared. Correlation rules link events into an incident and send alerts.

kqlexample rule
SigninLogs| where TimeGenerated > ago(5m)| where ResultType != 0| summarize fails=count() by UserPrincipalName, bin(TimeGenerated, 1m)| where fails >= 10| join kind=inner (    SigninLogs    | where TimeGenerated > ago(5m)    | where ResultType == 0  ) on UserPrincipalName| project UserPrincipalName, IPAddress, TimeGenerated

EDR, XDR and MDR

Sign-in and network events do not show what is happening inside a laptop or a server. For that you deploy endpoint detection and response (EDR): an agent on every machine sees processes, network activity and files, and can isolate the host from the network.

ClassWhat it seesWho operates itWhen to choose it
EDRprocesses and actions on endpointsyour teamyou have your own security team
XDRendpoints, email, accounts and cloud togetheryour teamattacks cross several environments
MDRthe same data as EDR and XDRan external team, around the clockyou have no on-call staff

Extended detection and response (XDR) links signals from several environments into one incident: a phishing email, a click on a link and a suspicious process become a single chain rather than three separate alerts.

SOAR and the limits of automation

Security orchestration, automation and response (SOAR) carries out the on-call analyst’s actions by playbook: block an account, isolate a host, open a ticket in the tracker, ask the owner to confirm a password change.

Automate what repeats and is safe if it goes wrong: opening a ticket, enriching an alert with data about an IP address, blocking a compromised address. Leave decisions with a costly mistake, such as disabling an executive’s account or isolating a production server, to a human: the playbook prepares the actions and the on-call analyst approves them.

Who is on call: SOC tiers

A security operations centre (SOC) is people, split by the complexity of the tasks they handle.

  • L1 triages alerts by instructions: filtering out false ones and passing real ones on.
  • L2 investigates complex incidents where instructions alone are not enough.
  • L3 does threat hunting without an alert and detection engineering: tuning SIEM rules.

A small team cannot run a full round-the-clock SOC, which means three shifts of several analysts. In that case you choose an external SOC under the MDR model or a mixed arrangement: the external team watches at night, and your own team works by day and makes the decisions on shutdowns.

IoC and MITRE ATT&CK

An indicator of compromise (IoC) is an observable trace of an attack: the hash of a malicious file, an IP address, a domain. Indicators are checked against logs, but they go stale quickly.

The MITRE ATT&CK knowledge base describes how attackers operate: tactics are the stages from reconnaissance to impact, and techniques are the specific actions within a stage. Technique T1566 Phishing belongs to the Initial Access tactic and has four variants: attachment, link, service and voice.

ATT&CK is used as a coverage checklist: in the SIEM you can see which tactics and techniques are covered by rules and which are not. The SP 800-61 Rev. 3 community profile maps each recommendation to CSF 2.0 outcomes and brings the response measures together in one list.

APT here means an attacker group with the resources and patience for a long-running attack (advanced persistent threat); it has nothing to do with the apt package manager on Linux.

First actions in an incident

SP 800-61 Rev. 3 replaced the four-phase cycle of the previous edition with the functions of CSF 2.0: preparation and lessons learned are Govern, Identify and Protect; the incident itself is Detect, Respond and Recover. The plan for the first actions is as follows.

  1. Record when the incident began and start a log of actions.
  2. Contain the spread: isolate hosts and block accounts.
  3. Preserve evidence: logs, memory dumps, disk copies.
  4. Remove the attacker’s access and the malicious code.
  5. Restore systems from clean backups.
  6. Review the lessons and update the detection rules.

Decide before an incident who has the right to shut down a server or an executive’s account: who is on call at night, and whom to phone if the connection to the office is lost. Rehearse the plan in exercises; on paper alone it does not work.

The loop closes: lessons from incidents return as new rules.

Section sources

the section is written from these pages

Secure development

Secure development is a set of practices added to any development process so that vulnerabilities and tampering are caught before release. It rests on NIST SSDF from SP 800-218, which has four groups of practices: prepare the organisation (PO), protect the software (PS), produce well-secured software (PW) and respond to vulnerabilities (RV).

Security checks are pipeline steps from the first commit, not a separate stage before release. The OWASP DevSecOps Guideline advises finding problems as early as possible and checking continuously. Threats are considered even earlier, at the design stage (see the section “Threat modeling”).

Which checks, and when

Each check looks at its own layer: some read the code, some the dependencies, some the running application. A typical set with open-source tools:

CheckWhat it analysesWhen to run itWhat it finds
Secret scanningthe repository and its historybefore every commit and in CIaccidentally committed keys and passwords
SCASCAsoftware composition analysisA method of automatically checking the third-party components of a program — libraries and their dependencies — for known vulnerabilities and incompatible licences.Read more: SCAdependencies and their licenceson every dependency change and on a scheduleknown vulnerabilities in components
SASTSASTStatic Application Security TestingA method for finding vulnerabilities in source code without running the program: the scanner parses the code and its data paths and finds typical weaknesses before build and release.Read more: SASTsource codeon every pull requestinjections, XSS and other weaknesses in code
IaC scanningTerraform and Helm templateson every infrastructure changeinsecure settings such as open ports and public storage
DASTDASTDynamic Application Security TestingA security testing method in which a running application is examined from the outside, as a black box: the scanner sends requests and judges vulnerabilities by how the application responds.Read more: DASTthe running applicationon a test environment after the buildconfiguration errors and weaknesses visible only at run time
Penetration testpenetration testingA test of a system’s defences in which specialists imitate the attacks of a real adversary and try to bypass its security controls, just as an attacker would.Read more: penetration testingthe whole systemperiodically; for frequency, see the section “Security governance”chains of weaknesses that automation does not find

The results share a common vocabulary: SAST assigns a finding to a class of weakness, CWECWECommon Weakness EnumerationA public catalogue of common software and hardware weaknesses: a numbered list of development flaws from which vulnerabilities grow.Read more: CWE, and SCA reports a CVECVECVE identifierAn identifier of the form CVE-YYYY-NNNN that publicly known vulnerabilities receive in the CVE Program’s list; it is used to locate a vulnerability in databases, reports and scanners.Read more: CVE with a CVSSCVSSCVSS scaleAn open scale from FIRST that reduces the severity of a vulnerability to a number from 0.0 to 10.0 and a vector — the string of metrics the number is calculated from.Read more: CVSS score. For what to fix first, see the reference “Vulnerability management (CVE, CVSS)”.

Open-source tools: Gitleaks for secrets, Trivy or OWASP Dependency-Check for SCA, Semgrep and Bandit for SAST. Infrastructure is checked with Checkov or Trivy, the running application with OWASP ZAP. The OWASP DevSecOps Guideline compares tools for each category.

Component inventory and VEX

An SBOMSBOMsoftware bill of materialsA machine-readable inventory of a software product’s components: libraries, packages and their dependencies, with versions and licences.Read more: SBOM is a machine-readable inventory of all the components in a piece of software: dependencies, their versions and the relationships between them. The two common formats are SPDX and CycloneDX. According to CISA, with an SBOM the question “are we affected by this vulnerability?” is answered by matching the CVE number against the inventory of each artefact, with no manual trawl through repositories.

An inventory is accompanied by a VEX, a machine-readable document stating whether a product is affected by a known vulnerability. The statuses are: affected; not affected (the vulnerable code is unreachable or the feature is disabled); fixed; under investigation. VEX separates “the library is present but unused” from real risk. Ask suppliers of off-the-shelf software for an SBOM and VEX: without them, every vulnerability announcement turns into a manual audit of other people’s products.

Supply chain attacks and SLSA

A supply chain attacksoftware supply chain attackAn intrusion in which malicious code reaches a product through links in its supply chain — dependencies, build tools or the update channel — and spreads together with the legitimate distribution.Read more: software supply chain attack is the tampering with any link between author and user: the source code, a dependency, the build process itself or a finished update. The remedy is a provable build: the platform builds the artefact and leaves a machine-readable description of how it was produced (provenance); from level L2 the platform signs it.

SLSA v1.2 grades build requirements in its Build track:

LevelRequirementWhat it protects against
Build L0nothingnothing
Build L1provenance exists, describing how the artefact was builtbuild and release mistakes; L1 does not protect against forged provenance
Build L2provenance is signed and issued by a hosted build platformtampering after the build
Build L3the build platform is hardened: keys are inaccessible to builds, and builds are isolatedcompromise of the build itself

A practical path: run builds on a hosted platform with signed provenance, which is already L2, then strengthen the platform itself up to L3. The specification’s second track, Source, covers protection of source code: version control, review and preservation of history.

Secrets in development and builds

Keep secrets out of code and out of images: OWASP explicitly advises against baking them in at image build time or storing them in source code. A key that reaches a repository is considered compromised: Git history is hard to clean, and bots find published keys within seconds. OWASP advises centralising the storage, issuing, auditing and rotation of secrets.

  • A secrets store instead of code and config files: a dedicated secrets manager or cloud service with role-based permissions and an access log.
  • Short-lived credentials in CI: replace long-lived static keys with federated tokens that live for minutes and expire with the job.
  • Automatic rotation: any static keys that remain are changed on a schedule, not from memory.
  • Scanning the repository and its history: a key may have reached Git before the checks existed, and cleaning history is hard, so it is easier to find the key and revoke it.
bashon your machine, once
pipx install pre-commitpre-commit install
yaml.pre-commit-config.yaml
repos:  - repo: https://github.com/gitleaks/gitleaks    rev: v8.30.1    hooks:      - id: gitleaks

For setting up secrets in GitHub Actions and GitLab CI, see the CI/CD reference, section “Secrets, variables and OIDC”; for protecting the pipeline itself, see its section “Pipeline security”.

Worked example: a web service pipeline

A Python web service: a Git repository, image builds in CI, a release once a week. The checks are distributed like this:

StepChecksAction on a finding
Commit and pull requestsecrets, SAST, IaC scanning (minutes)block the merge: new High and Critical findings
BuildSCA of dependencies, image buildblocks the release for new High and Critical findings
After the buildSBOM and artefact signature, provenance at SLSA L2do not block: collected in a registry for review
Nightly runDAST on a test environment, full SAST across all the codereports: findings go to the vulnerability queue
Releasesignature check before rolloutblocks a release without a signature

The dividing rule: merges are blocked by fast checks with few false positives, namely secrets and SCA. Deep SAST and DAST first run in report-only mode until they are tuned. A full penetration test before every release is unnecessary; its place is in the calendar (see the section “Security governance”).

Section sources

the section is written from these pages

Cloud security

Cloud security is a shared responsibility: the provider protects the facility, servers and network, while the customer protects its own data, accounts, devices and settings under any service model. The foundation, meaning an account hierarchy, centralised logs and guardrail policies, is laid before the first application.

The provider handles what the customer never needs to think about: the data centre building, physical servers and network, and virtualisation. The higher the service model, the more the provider takes on; the models themselves are covered in the reference “Infrastructure and cloud architecture”, section “Cloud models”.

AreaOn-premisesIaaSPaaSSaaS
Customer datacustomercustomercustomercustomer
Settings and configurationscustomercustomercustomercustomer
Accounts and userscustomercustomercustomercustomer
Access devicescustomercustomercustomershared
Applicationscustomercustomersharedshared
Network controlscustomercustomersharedprovider
Operating systemcustomercustomerproviderprovider
Physical hosts and networkcustomerproviderproviderprovider

In every column of the matrix, three rows stay with the customer: data, settings and accounts. The provider does not know which of your employees need access, and cannot tell a legitimate database export from a leak. In IaaS, applications, the operating system and network controls are added to these.

Landing zone: the foundation before the first workload

A landing zone is a prepared foundation for a cloud environment, built before the first applications: a hierarchy of accounts or subscriptions, networking, centralised logs and guardrails, which forbid dangerous settings before a resource is created rather than finding them afterwards.

In Azure, the platform landing zone sets up governance, security and shared services, while teams receive workload landing zones for their applications, which inherit the policies of the management groups. In AWS, AWS Control Tower builds the same structure: it deploys a landing zone from organisational units and accounts and applies controls.

ElementAzureAWS
Who builds the foundationCloud Adoption Framework acceleratorsAWS Control Tower: a landing zone in under an hour
Hierarchymanagement groups and subscriptionsorganisational units (OUs) and AWS Organizations accounts
GuardrailsAzure Policy assigned to management groups, inherited by subscriptionsControl Tower controls: preventive through SCPs, detective through AWS Config, proactive through CloudFormation Hooks
Logsdedicated subscriptions in the platform landing zonea separate log archive account, with events in an S3 bucket
New environmentssubscription vendingAccount Factory: accounts from a template
  • Preventive controls forbid an action: creating a public bucket fails, and the attempt stays in the log.
  • Detective controls find a violation in existing resources: public access to a bucket, disabled logs.
  • Proactive controls check a deployment template before the resource is created.
  • Mandatory controls always apply and cannot be turned off; strongly recommended and elective controls are enabled by the customer.

Permissions and credentials

An IAM (Identity and Access Management) policy grants least privilege: exactly the actions on exactly the resources a task needs. People sign in through federation: single sign-on (SSO) from the corporate identity provider (IdP) issues temporary credentials through a role. Services run under roles, not keys; multi-factor authentication (MFA) is mandatory for people and for the root account.

Excess permissions are found from facts: IAM Access Analyzer builds a minimal policy from the CloudTrail log, based on the actions a role actually performed, and separately lists access from outside, such as public buckets and roles. Unused accounts and keys are deleted on a schedule.

Here is the same role for a reporting service before and after tightening, a “bad → good” pair:

jsonbad: all actions on all resources
{    "Version": "2012-10-17",    "Statement": [        {            "Effect": "Allow",            "Action": "s3:*",            "Resource": "*"        }    ]}
jsongood: read access to one bucket
{    "Version": "2012-10-17",    "Statement": [        {            "Sid": "ReadReports",            "Effect": "Allow",            "Action": "s3:GetObject",            "Resource": "arn:aws:s3:::reports/*"        }    ]}

Cloud logs

The API call log, CloudTrail, records who made which call from the console, the command line and SDKs: console sign-ins, resource creation, permission changes. Without it an incident investigation cannot start: events are the main evidence in the cloud.

Set it up immediately: a trail, which is continuous delivery of events to an S3 bucket, is enabled in all regions and for all accounts in the organisation. The log bucket lives in a separate account that workload accounts have no rights to, and controls verify that logs are not altered. Events then go to a SIEM (security information and event management, the collection and correlation of security events), covered in the section “Detection and response”.

The decision on data encryption stays with the customer: provider-managed keys or your own keys in KMS (Key Management Service). Envelope encryption and separation of roles are covered in the section “Data protection”.

Common cloud mistakes

  • A public bucket with an export or a backup: the data is open to anyone with the direct link; IAM Access Analyzer lists public buckets.
  • An access key in a repository or pipeline: the key travels with the Git history; issuing secrets is covered in the CI/CD reference.
  • The root account (in Entra ID, the global administrator) without MFA and used for everyday work: it has full rights over the whole account or tenant.
  • Disabled logs, or logs in the same account as the workloads: an account administrator erases their own tracks.

Worked example: a website and CRM in the cloud

A company moves its website and CRM to AWS. There are four accounts: management, only for organisation management with no workloads; log archive, only for logs; and prod and dev, one per environment.

ElementDecisionWhat it gives
Accountsfour: management, log archive, prod, deva breach of dev does not open prod
Boundariesmandatory controls plus a ban on public buckets across the whole organisationa developer’s mistake does not become an incident
Peoplesingle sign-on from the IdP, one role per account, MFAno local passwords and no long-lived keys
Servicesroles for applications, data keys in KMSa service reads only its own bucket
Logsan organisation trail into the log archive account, and from there into the SIEMtracks stay intact even if an account is breached

Cloud networking, subnets and describing the environment as code are in the reference “Infrastructure and cloud architecture”; policies and risk owners are covered in the section “Security governance”.

Section sources

the section is written from these pages

Security governance

Security governance is the decisions about risk, and the rules and roles that all other measures work by: whom to protect, who is responsible, and how to check that protection works. Its basis is an information security management system (ISMS) under ISO/IEC 27001.

Individual measures such as firewalls, encryption and scanners are not enough if nobody decides what they protect against and who is responsible for each. Governance ties the measures into a programme: a risk register sets priorities, policies fix the rules, and checks show whether they work.

Risk register

The core of the programme is the risk register, a list of “what could happen and what we decided to do about it”. Each risk has an owner, an assessment and a chosen response. The responses are the same four as in threat modeling (see the section “Threat modeling”): eliminate, reduce, transfer or accept.

RiskOwnerLikelihoodImpactResponseDue
loss of the customer database if a disk failsproduct ownermediumseriousreduce: backups and restore testingQ1 2027
leak of the payment-signing key from a repositoryhead of ITlowseriousreduce: secrets in a vault, rotationQ2 2027

A low–medium–high scale is usually enough: precise figures give false confidence. The register is reviewed every quarter and after every incident: has the likelihood changed, and were the responses delivered on time?

Policies: rules instead of deciding every time

A policy is an approved rule that removes repeated decisions: how to classify data, who gets access and for how long, when to take backups, what counts as an incident and who manages it. Write policies briefly and only about what can be verified.

PolicyWhat it sets outWho approves itReview
information security policyobjectives, scope, rolesmanagementannually
data classificationcategories and how to handle eachhead of securityannually
access controlwho gets and loses access, and howhead of securityannually
backupswhat to back up, where, and how long to keep ithead of ITwhen infrastructure changes
incident responseroles and the order of actionshead of securityafter exercises and incidents

Management approves the security policy and the allocation of resources: without dedicated people and a budget, the programme remains a wish list. Measures found in the threat model become tasks with an owner and a due date in the register.

Roles: who is responsible for what

Security is not the responsibility of security specialists alone: management sets the rules, system and data owners answer for their areas, the SOC watches events, and IT makes the changes. The head of the security function is often called the CISO (Chief Information Security Officer). Who is who in each process is fixed by a RACI matrix, from responsible, accountable, consulted, informed: the person who does the work, the person who answers for it, the one who is consulted, and the one who is kept informed.

ProcessManagementHead of security (CISO)System ownerSOCIT
risk registerARCIC
granting accessIARIR
incident responseIACRC
staff trainingARICI

An access review is a familiar example of separation of duties: the system owner decides who needs access (R), the head of security approves (A), IT carries it out (R), and management receives a report (I). If approval and execution sit with one person, nobody will notice a mistake or abuse.

An ISMS under ISO/IEC 27001

ISO/IEC 27001 is the international ISMS standard: it defines requirements for a management system and sets a “plan–do–check–act” cycle. The organisation defines the scope, assesses risks, selects measures and then works through the cycle. The aim is continual improvement, not a one-off project.

Certification is voluntary: the standard can be implemented without it.

Measures are taken from Annex A of the standard, and the ISO/IEC 27002 catalogue provides guidance on them. The list of selected measures with justification is the Statement of Applicability (SoA): it shows what exactly the organisation does and why it excluded the rest.

Certification is voluntary: the standard is implemented without it too, and certificates are issued by accredited bodies after an audit. According to the ISO Survey 2022, more than 70,000 valid certificates have been issued worldwide, in 150 countries.

Testing protection: four kinds

Governance requires evidence: protection is tested regularly, not occasionally. NIST SP 800-115 describes technical tests, from scanning to penetration testing, and their place in a programme. The four kinds complement one another:

KindPurposeWhoHow often
vulnerability scanningfind known weaknesses and outdated versionsan automated scannerweekly
penetration testtest the defences of the whole system by hand, using specialistsan external teamannually and after major changes
red teamemulation of a real adversary against a blue team of defendersan external teamevery 1–2 years
bug bountyrewards for outside researchers who find weaknessesoutside researcherscontinuously

A red team is a group authorised to imitate the attack of a potential adversary. Its purpose is to show the consequences of successful attacks and what works for the defenders (the blue team) in real conditions. For bug bounty terms and the vulnerability disclosure procedure, see the reference “Vulnerability management (CVE, CVSS)”, section “Vulnerability disclosure”.

Phishing awareness training

Phishing is a form of social engineering: the attacker poses as a trusted organisation and lures out data through an email or a website. CISA lists the signs: a sender address that looks genuine, a generic greeting instead of your name, a link whose text does not match its destination, urgency, and attachments you were not expecting.

Training is built on practice: short rules based on the signs of phishing, simulated campaigns that test vigilance, and a clear way to report a suspicious email, such as a button or a mailbox address that everyone knows. A mistake in a simulation is not punished; otherwise employees hide real ones.

The main training metric is the share of employees who reported a suspicious email, not only the share who clicked the training link. The first shows a working culture: phishing that is noticed and reported stops the attack before any damage.

Compliance

Compliance means meeting external requirements; it relies on governance rather than replacing it. Three requirements are met most often: PCI DSS is mandatory for anyone who stores, processes or transmits payment card data; SOC 2 is an auditor’s report on a service’s controls for its customers; ISO/IEC 27001 is a voluntary ISMS certificate.

The requirements in one phrase each: PCI DSS is about card data, SOC 2 is about customers’ trust in a service, and ISO/IEC 27001 is about the management system. The status of each standard’s editions is in the section “Standards and their status”.

Personal data in Uzbekistan

The Law “On Personal Data” (ZRU-547) has been in force since 1 October 2019. Under Article 27¹, as amended by the Law of 26 March 2026 (ZRU-1125), biometric and genetic data and the data of users of telecommunications operators’ services must be stored in the country; such databases are registered in the State Register of Personal Data Databases (Article 20).

Other data may be stored abroad under one of these conditions: the country is recognised as providing adequate protection, the operator has adopted standard contractual clauses or binding corporate rules, or it complies with approved international standards for managing and storing personal data. The list of adequate countries is approved by the Cabinet of Ministers.

In practice: mandatory registration in the register, operators’ user data and biometrics are reasons to choose hosting in the country or a hybrid arrangement; such data cannot be entrusted to a cloud provider without a local region.

Further reading

For CVE, CVSS and KEV in a security programme, see the reference “Vulnerability management (CVE, CVSS)”. For project risks and RACI, see the reference “IT project management”, section “Risks and changes”.

Section sources

the section is written from these pages

Common mistakes of approach

Most successful attacks use not new techniques but the same configuration and approach mistakes. Joint NSA and CISA assessments identified the ten most common network misconfigurations. Here are eight mistakes of approach: six based on that list, and two (backups, security at the end of a project) based on the CISA #StopRansomware guide and the Threat Modeling Manifesto. For each, what it leads to and what to do instead.

The list comes from an NSA and CISA advisory (an official warning): red teams emulate attackers, blue teams defend the network, and the same picture repeats even in mature organisations.

A strong perimeter, a flat network inside

The budget goes on the border, while inside, the network stays flat: laptops, servers and management systems in one segment. Compromising a single laptop through phishing opens the way to the servers: nothing stops movement across the network, and ransomware reaches critical systems within hours.

Do this instead: split the network by criticality (see the section “Network security”), narrow the permissions between segments and check every access separately. The Zero Trust principles are in the section “Zero Trust”.

A tool instead of a process

A SIEM (security information and event management) or EDR (endpoint detection and response) is bought, and the job is considered done. There are no correlation rules, nobody on call, no response plan, and nobody reviews the alerts. The tool sees the attack but the signal never reaches a defender: in NSA and CISA assessments, lateral movement went unnoticed.

Do this instead: process before tool. Decide who does what when an alert fires, and set up rules and on-call duty. How to build detection is in the section “Detection and response”.

Administrator for everyone, forever

A user works all day with administrator rights, and the password for that account is shared across several systems. An NSA and CISA red team describes a case where phishing led to a file being run by a user with administrator rights: the domain was compromised in less than a working day, and the logs cannot say who exactly let the attack in.

Do this instead: give every person their own accounts, administer from a separate one, and grant rights by the principle of least privilege. Replace permanent rights with rights granted for the length of a task (PAM, privileged access management). Details are in the section “Accounts and access”.

MFA that can be bypassed

There is a second factor, but it is worth nothing: SMS codes are intercepted by SIM swapping, push requests are repeated until the user approves, and a code is read out over the phone to someone posing as support. In one assessment the team knew the password but MFA blocked the sign-in; they persuaded the user to read out the code and got into the mailbox. Exceptions for executives are a separate hole: attackers look for accounts without a second factor.

Do this instead: enforce MFA everywhere without exceptions and choose phishing-resistant methods such as FIDO2 keys, passkeys and smart cards. The methods and trust levels are in the table in the section “Accounts and access”.

Backups in the same domain

Backups are made, but with the same administrator account and on the same network as the live data. After encrypting, ransomware looks for accessible backups and encrypts them too; CISA warns of this in the #StopRansomware guide. There is nothing to restore from, and the business stands still until the ransom is paid.

Do this instead: keep one copy out of reach, offline or in immutable storage, with separate credentials, and test restoration regularly. The backup scheme is in the section “Data protection”.

Prioritising by CVSS score alone

The patch queue is ordered by descending CVSS score, and exploited vulnerabilities sit at the end. Attackers take what is already used in attacks, and CISA maintains the KEV catalogue for exactly this kind of prioritisation. Patches close only what is known: a zero-day attack is, by NIST’s definition, an attack on a previously unknown vulnerability.

Do this instead: first what is already being exploited, using the KEV (Known Exploited Vulnerabilities) catalogue, then the rest; the method is in the reference “Vulnerability management (CVE, CVSS)”. Against unknown vulnerabilities, the layers of defense in depth help: segmentation, execution prevention and detection.

bashon the management host
# list the vulnerabilities already used in attacks, for the patch queueurl=https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.jsoncurl -fsSL "$url" \  | jq -r '.vulnerabilities[].cveID' > kev.txt

Default settings

Out-of-the-box passwords, services enabled by the manufacturer, open ports: the system lives as it was after installation. The first mistake on the NSA and CISA list is precisely factory settings: default passwords can be found with an ordinary search, and printers and scanners often store privileged domain accounts, through which an attacker moves further into the domain.

Do this instead: change passwords when putting a system into service, turn off unused services and close management access from the internet. The steps are in the section “Checklist” and in the Linux and Windows Server hardening references.

Security at the end of a project

The project is written with no thought for threats, and a week before launch a penetration test finds architecture problems: it is too late to change them, so the launch slips or goes ahead with a known risk. This also produces formal “checkbox security”: requirements met on paper, with nobody having examined what could go wrong. The Threat Modeling Manifesto contrasts such a tick-box with a culture of finding design flaws.

Do this instead: model threats at design time, whenever the architecture changes rather than the code; how and why is described in the section “Threat modeling”. The process for the whole development cycle is in the section “Secure development”.

MistakeWhat happensInstead
A strong perimeter, a flat network insidecompromising one laptop opens the way to the serverssegmentation and Zero Trust
A tool instead of a processnobody reviews SIEM alertsrules, on-call duty, a response plan
Administrator for everyone, foreverphishing immediately yields administrator rightsseparate accounts and PAM
MFA that can be bypassedpush bombing and a code read out over the phonephishing-resistant MFA
Backups in the same domainransomware encrypts the backups tooan offline or immutable copy
Prioritising by CVSS score aloneexploited vulnerabilities wait their turnprioritise by KEV
Default settingsfactory passwords and open serviceshardening when putting into service
Security at the end of a projecta penetration test finds architecture problemsthreat modeling at design time

Section sources

the section is written from these pages

Standards and their status

Security architecture is defined by NIST CSF 2.0 (outcomes across six functions), ISO/IEC 27001:2022 (management system requirements) and the control catalogues: ISO/IEC 27002:2022, CIS Controls v8.1 and NIST SP 800-53 Rev. 5. The other documents in this section answer narrower questions.

DocumentWhat it definesStatusReplaced or supplemented by
NIST CSF 2.0 (CSWP 29)security goals as outcomesFinal, 26 February 2024replaced CSF 1.1 (2018)
ISO/IEC 27001:2022requirements for a management system (ISMS)current, 3rd edition; Amd 1:2024replaced ISO/IEC 27001:2013
ISO/IEC 27002:2022catalogue of controls for Annex A of 27001current, 3rd editionreplaced ISO/IEC 27002:2013
CIS Controls v8.1prioritised set of controlscurrent versionupdated v8: added the Govern function
NIST SP 800-53 Rev. 5catalogue of controls for systemsFinal, September 2020; Release 5.2.0 of 27 August 2025Release 5.2.0 supplemented Rev. 5
MITRE ATT&CKadversary tactics and techniquesv20.1, current since 13 October 2026replaced v19.2 (in effect from 28 April to 12 October 2026)
NIST SP 800-207Zero Trust architectureFinal, August 2020supplemented by SP 800-207A (September 2023) and SP 1800-35 (June 2025)
NIST SP 800-218 (SSDF 1.1)secure software development practicesFinal, February 2022Rev. 1 (SSDF 1.2) in preparation
OWASP SAMMsoftware assurance maturityv2, latest 2.2.0v2.x releases
OWASP ASVS 5.0.0requirements for verifying web applicationspublished 30 May 2025previous ASVS 4.x releases
NIST SP 800-61 Rev. 3incident responseFinal, April 2025replaced Rev. 2 (2012)
NIST SP 800-63-4identity proofing, authentication and federationFinal, July 2025replaced SP 800-63-3
PCI DSS v4.0.1payment card data protectioncurrent, June 2024replaced v4.0 (March 2022)
SOC 2: Trust Services Criteriacriteria for auditing service organisations2017 TSC (with revised points of focus, 2022)2027 TSC drafts — 26 October 2026
ZRU-547 “On Personal Data”Uzbekistan’s law on personal datain force since 1 October 2019Article 27¹ as amended by ZRU-1125 of 26 March 2026

NIST CSF 2.0

The framework describes the outcomes an organisation wants to achieve, not specific controls: supporting resources show how to achieve them. There are six functions: Govern (new in version 2.0), Identify, Protect, Detect, Respond and Recover. A profile records an organisation’s current and target outcomes; tiers show how mature its risk management is.

How the documents relate

QuestionDocument
What the result should beNIST CSF 2.0
How to build a management systemISO/IEC 27001
Which controls to applyISO/IEC 27002, CIS Controls, SP 800-53 (in short: catalogues to choose from)
How the adversary operatesMITRE ATT&CK
How to design accessNIST SP 800-207
How to develop softwareSSDF; OWASP SAMM and ASVS (in short: process and verification)
What the industry requiresPCI DSS, SOC 2

What changed in recent editions

  • CSF 2.0 (26 February 2024): added the Govern function; it now applies to any organisation, regardless of size or sector.
  • CIS Controls v8.1: also added the Govern function and revised the asset classes and control descriptions.
  • SP 800-61 Rev. 3 (April 2025): incident response is described through the CSF 2.0 functions.
  • SP 800-63-4 (July 2025): at AAL2, the relying party (verifier) must offer phishing-resistant authentication; syncable authenticators are covered.
  • PCI DSS v4.0.1 (June 2024): a limited revision with no new or removed requirements; the 51 future-dated requirements took effect on 31 March 2025.
  • SP 800-53 Release 5.2.0 (27 August 2025): new controls SA-15(13), SA-24 and SI-02(07).
  • OWASP ASVS 5.0.0 (30 May 2025) and MITRE ATT&CK v20.1 (13 October 2026).

In preparation

  • SSDF 1.2: the draft of SP 800-218 Rev. 1 was published on 17 December 2025, the comment period closed on 30 January 2026, and there is no final edition yet.
  • SOC 2: on 26 October 2026 the AICPA published drafts of the 2027 criteria; the 2017 criteria remain in effect.

Outdated documents that are still cited

  • NIST CSF 1.1 (2018): has five functions, without Govern.
  • ISO/IEC 27001:2013 and 27002:2013: withdrawn, replaced by the 2022 editions.
  • SP 800-61 Rev. 2 (2012) and SP 800-63-3: replaced by Rev. 3 and 800-63-4.
  • PCI DSS v4.0 and v3.2.1: v4.0.1 is in effect.
  • CIS Controls v8: replaced by v8.1.

Section sources

the section is written from these pages

End of the reference

What changed

revision history · 4 entries

Every edit is saved as a revision: a snapshot of the reference, the reason and a summary of changes. The published version changes only after the same checks as at creation.

  1. Manual edit

    reason: manual edit
  2. Manual edit

    reason: manual edit
  3. Manual edit

    reason: manual edit
  4. Reference updated

Weekly check

How the reference is checked

Once a week — and right after news of a release or a vulnerability — the reference is checked in three steps.

  1. 1. Freshness

    Sections are compared with the release notes and changelogs from the official sources and with the topic’s news.

  2. 2. Errors

    Every section is read again: wrong facts, outdated APIs and flags, broken examples.

  3. 3. Links — by an HTTP request

    Every source link must respond. A broken link is a reason to recheck the section.

No findings — only the date changes. Findings — only the affected sections are rewritten, and they appear in “What changed”. A new version replaces the published one only after passing the same checks as at creation.

Statuses

Verified
no findings
Updated
sections rewritten, edits are listed
Rechecking
while the check runs, the previous version stays open
Needs review
disputed points: the verified version is shown, editors review

Last check

10 Nov · Check · updated · no findings

Found an error in the reference?

On the topic

tracks, news and other references
The whole “Security architecture” topic
13 sections
Another reference · DevOps & cloud

Docker

Verified 31 Oct
All references · 61