<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Clear Path Security Ltd</title>
    <description>The latest articles on DEV Community by Clear Path Security Ltd (@clearpathsecurity).</description>
    <link>https://dev.to/clearpathsecurity</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4131773%2F5e4f38d2-b1da-4666-bb73-a19a8e22f9c3.png</url>
      <title>DEV Community: Clear Path Security Ltd</title>
      <link>https://dev.to/clearpathsecurity</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/clearpathsecurity"/>
    <language>en</language>
    <item>
      <title>IEC 61850 substation security: GOOSE, MMS and what to monitor</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Thu, 03 Dec 2026 11:33:08 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/iec-61850-substation-security-goose-mms-and-what-to-monitor-3e2k</link>
      <guid>https://dev.to/clearpathsecurity/iec-61850-substation-security-goose-mms-and-what-to-monitor-3e2k</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/iec-61850-substation-security-goose-mms-and-what-to-monitor/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/iec-61850-substation-security-goose-mms-and-what-to-monitor/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;IEC 61850 is the dominant communications standard for modern digital substations. For security teams, the challenge is not just that it is specialised, but that it carries time-sensitive protection and control traffic where delays, drops, or misinterpretation can have operational impact. A sensible monitoring approach therefore starts with passive visibility, protocol-aware baselining, and a clear understanding of which messages matter most.&lt;/p&gt;

&lt;p&gt;In practice, the two traffic types that usually deserve the most attention are GOOSE and MMS. GOOSE, or Generic Object Oriented Substation Event, is used for fast event and protection messaging. MMS, or Manufacturing Message Specification, is used for supervisory control, reporting, and configuration-related activity. If you already work with OT segmentation and zone design, the ideas in &lt;a href="https://clearpathsecurity.co.uk/zone-and-conduit-modelling-under-iec-62443-a-practical-guide-for-uk-smes/" rel="noopener noreferrer"&gt;zone and conduit modelling under IEC 62443&lt;/a&gt; are a useful companion, because the same trust boundaries should shape what you can see and what you should alert on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Monitor IEC 61850 passively first, because protection traffic is time-sensitive and intrusive tooling can create operational risk.&lt;/li&gt;
&lt;li&gt;Treat GOOSE as a fast state-change channel and MMS as the main control and configuration surface when building detections.&lt;/li&gt;
&lt;li&gt;Baseline publishers, subscribers, session endpoints, and message rates so that endpoint drift and abnormal write activity stand out.&lt;/li&gt;
&lt;li&gt;Correlate network telemetry with IED logs, engineering workstation logs, and switch telemetry to separate maintenance from suspicious behaviour.&lt;/li&gt;
&lt;li&gt;Use monitoring findings to validate segmentation, access control, and incident response rather than treating them as isolated alerts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What IEC 61850 is used for in substations
&lt;/h2&gt;

&lt;p&gt;IEC 61850 defines how intelligent electronic devices, or IEDs, exchange information inside a substation. IEDs include protection relays, bay controllers, meters, and other automation devices that coordinate switching, fault isolation, and status reporting. The standard is designed to support interoperability between vendors, which is valuable operationally, but it also means security teams need to understand how different devices behave on the wire rather than relying on generic IT assumptions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where GOOSE and MMS fit in the protection and control stack
&lt;/h3&gt;

&lt;p&gt;GOOSE is typically used for very fast, event-driven communication. A relay can publish a trip or interlock condition, and other devices subscribed to that message can react within milliseconds. Because of that speed requirement, GOOSE is usually multicast and often repeated in a burst pattern until the state is acknowledged by the receiving logic. That makes it highly sensitive to timing, repetition, and endpoint changes.&lt;/p&gt;

&lt;p&gt;MMS sits higher in the stack. It is commonly used for supervisory functions such as reading status, issuing control commands, retrieving reports, and in some cases accessing device configuration. MMS traffic is more conversational than GOOSE and is therefore easier to baseline in terms of sessions, endpoints, and command types. It is also the place where unauthorised write activity or unexpected engineering access is more likely to stand out.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why substation traffic behaves differently from typical IT network traffic
&lt;/h3&gt;

&lt;p&gt;Substation networks are not normal enterprise networks with a few predictable client-server flows. They often include multicast traffic, strict timing expectations, vendor-specific implementation details, and devices that are extremely sensitive to latency or packet loss. A monitoring tool that is excellent for office networks may still be poor at interpreting IEC 61850 context, especially if it cannot distinguish a protection event from a configuration change.&lt;/p&gt;

&lt;p&gt;That is why the monitoring objective should not be to inspect every packet in a deep forensic sense. Instead, the goal is to identify deviations from expected behaviour without interfering with protection traffic. In many environments, that means passive capture, protocol decoding, and a baseline that reflects normal substation operations rather than generic network norms.&lt;/p&gt;

&lt;h2&gt;
  
  
  GOOSE vs MMS: the practical security difference
&lt;/h2&gt;

&lt;p&gt;From a security perspective, GOOSE and MMS create different detection opportunities. GOOSE is about speed and state changes, so anomalies often show up as timing issues, retransmission patterns, publisher changes, or unexpected subscribers. MMS is about control and visibility, so anomalies often show up as new sessions, unusual write operations, or access from engineering workstations that do not normally talk to a given IED.&lt;/p&gt;

&lt;h3&gt;
  
  
  GOOSE for fast event and protection messaging
&lt;/h3&gt;

&lt;p&gt;GOOSE messages are usually published on Layer 2 and are designed for low-latency delivery. They often carry critical state information such as trip signals, breaker status, or interlocking conditions. Because they are multicast, a single publisher can reach multiple subscribers without a traditional session setup. That makes them efficient, but it also means that a change in publisher identity or message cadence can be a meaningful indicator.&lt;/p&gt;

&lt;p&gt;For defenders, the main question is whether the GOOSE traffic looks like the known protection design. If a relay that normally publishes a small set of messages suddenly starts sending at a different rate, or if a new device appears as a publisher on a critical VLAN, that deserves investigation. The same is true if a subscriber disappears unexpectedly, because protection logic may no longer be receiving the state it expects.&lt;/p&gt;

&lt;h3&gt;
  
  
  MMS for supervisory control, configuration and reporting
&lt;/h3&gt;

&lt;p&gt;MMS is more like a traditional application protocol. It can be used to read data objects, issue commands, and in some cases access configuration or reporting services. That means it is often the best place to look for control-plane abuse, especially where an attacker or rogue insider is trying to interact with an IED from an engineering workstation or jump host.&lt;/p&gt;

&lt;p&gt;In a well-run environment, MMS access should be tightly scoped to known management hosts and expected device pairs. If you see a new source IP, a new workstation, or a new session pattern from a host that does not normally perform substation management, that is a strong signal. If you already monitor OT protocols such as Modbus and DNP3, the same principle applies: protocol awareness matters more than raw volume.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to monitor on IEC 61850 networks
&lt;/h2&gt;

&lt;p&gt;The most useful monitoring starts with a small number of high-value questions. Which devices publish critical GOOSE messages? Which devices subscribe to them? Which hosts are allowed to initiate MMS sessions? Which links carry engineering access? Once those are known, you can look for drift.&lt;/p&gt;

&lt;h3&gt;
  
  
  Traffic patterns, publishers and subscribers
&lt;/h3&gt;

&lt;p&gt;Build a map of normal publishers and subscribers for each critical GOOSE dataset. Record the VLAN, multicast address, source MAC, and the devices that are expected to consume the traffic. For MMS, record the source and destination endpoints, the usual session times, and the normal service types in use. This gives you a baseline that can be compared against live telemetry.&lt;/p&gt;

&lt;p&gt;Useful indicators include a new GOOSE publisher, a missing publisher, a new MMS client, or a destination that has never previously been involved in control traffic. If a protection relay starts talking to a device outside its expected bay or station zone, that may indicate misconfiguration, maintenance activity, or something more concerning. The point is to make the deviation visible quickly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Unexpected device roles, message rates and protocol changes
&lt;/h3&gt;

&lt;p&gt;Device role changes are often more important than raw packet counts. A relay that becomes a publisher for a dataset it never used before, or an engineering workstation that begins acting like a control client, should stand out. Likewise, a sudden increase in GOOSE retransmissions can indicate instability, link issues, or repeated state changes that warrant review.&lt;/p&gt;

&lt;p&gt;For MMS, watch for changes in command frequency, access to objects that are rarely queried, and write operations outside maintenance windows. If your environment supports it, separate read-only activity from write-capable activity in your detections. That distinction is often the difference between routine monitoring and a useful alert.&lt;/p&gt;

&lt;h3&gt;
  
  
  Time synchronisation and sequence anomalies
&lt;/h3&gt;

&lt;p&gt;Time matters in substations. Many protection and event correlation functions rely on accurate clocks, and poor synchronisation can make both operations and investigations harder. Monitor for clock drift, loss of time source, and inconsistent timestamps across IEDs and engineering systems. If sequence numbers or retransmission intervals look wrong, that can be a symptom of device fault, network degradation, or tampering.&lt;/p&gt;

&lt;p&gt;Where possible, correlate protocol events with switch telemetry and time source health. A GOOSE anomaly that coincides with a time synchronisation failure may be operational rather than malicious, but it still needs attention because it can affect protection confidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Telemetry sources that are useful in practice
&lt;/h2&gt;

&lt;p&gt;Good monitoring depends on the right data sources. In substations, the best sources are usually passive and low impact. You want visibility without inserting anything that could disrupt protection traffic or create a new failure mode.&lt;/p&gt;

&lt;h3&gt;
  
  
  Network taps, SPAN ports and passive sensors
&lt;/h3&gt;

&lt;p&gt;Network taps are often the most reliable source of traffic for critical links because they do not depend on switch configuration in the same way as mirrored ports. SPAN ports can still be useful, but they need careful validation because oversubscription or misconfiguration can lead to dropped packets. Passive sensors that understand IEC 61850 can decode GOOSE and MMS without actively participating in the network.&lt;/p&gt;

&lt;p&gt;For smaller operators, a staged approach works well. Start with the station bus or the most critical protection segment, then extend coverage to engineering access paths and inter-substation links. If you are building a broader OT monitoring capability, the same passive-first approach used in monitoring OT protocols such as Modbus and DNP3 for anomalies applies here too.&lt;/p&gt;

&lt;h3&gt;
  
  
  IED logs, engineering workstation logs and switch telemetry
&lt;/h3&gt;

&lt;p&gt;Network traffic alone is rarely enough. IED logs can show configuration changes, access attempts, and fault conditions. Engineering workstation logs can reveal who connected, what tools were used, and whether a session was expected. Switch telemetry can show port flaps, MAC moves, VLAN changes, and link errors that may explain protocol anomalies.&lt;/p&gt;

&lt;p&gt;Where available, collect authentication logs from engineering jump hosts and remote access gateways as well. If a control session appears on the wire but there is no corresponding approved maintenance activity, that mismatch is worth investigating. The more you can correlate network, host, and device telemetry, the less likely you are to miss a subtle issue.&lt;/p&gt;

&lt;h3&gt;
  
  
  Asset inventory and configuration baselines
&lt;/h3&gt;

&lt;p&gt;Monitoring is much more effective when you know what should exist. Maintain an asset inventory that includes IED model, firmware version, role, physical location, network address, and the GOOSE datasets or MMS services it uses. Pair that with a configuration baseline for each critical device and switch. If a device changes firmware, role, or network placement, your monitoring should reflect that change.&lt;/p&gt;

&lt;p&gt;This is also where good zone design helps. If your asset inventory shows a protection relay talking across an unexpected conduit, that may indicate a segmentation weakness rather than a protocol issue. For a broader design view, &lt;a href="https://clearpathsecurity.co.uk/segmenting-ot-networks-with-the-purdue-model-and-iec-62443-zones/" rel="noopener noreferrer"&gt;segmenting OT networks with the Purdue model and IEC 62443 zones&lt;/a&gt; provides a useful structural lens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detection ideas for suspicious activity
&lt;/h2&gt;

&lt;p&gt;Detection in IEC 61850 environments should be conservative and specific. False positives are expensive because they can distract engineers and reduce trust in alerts. Focus on behaviours that are both unusual and meaningful.&lt;/p&gt;

&lt;h3&gt;
  
  
  Unexpected GOOSE retransmission behaviour
&lt;/h3&gt;

&lt;p&gt;GOOSE retransmission patterns are usually stable enough to baseline. Alerts can be built around a new publisher, a sudden change in retransmission interval, or a burst pattern that does not match the known device profile. If a critical publisher disappears and then reappears from a different MAC address or switch port, that is particularly important because it may indicate device replacement, spoofing, or a network path issue.&lt;/p&gt;

&lt;p&gt;Do not treat every retransmission change as malicious. Maintenance, firmware updates, and link instability can all alter behaviour. The useful detection is the one that combines protocol change with a change in asset identity, location, or maintenance context.&lt;/p&gt;

&lt;h3&gt;
  
  
  New MMS sessions, abnormal write operations and configuration access
&lt;/h3&gt;

&lt;p&gt;New MMS sessions from an unknown host should be investigated, especially if they target protection relays or bay controllers. Write operations are more sensitive than reads, so separate them in your alerting. If a host that normally only reads status begins issuing control or configuration commands, that is a strong signal.&lt;/p&gt;

&lt;p&gt;Where your tooling supports it, alert on access to rarely used objects, repeated failed session attempts, and management activity outside approved windows. If you already use a SIEM, create protocol-aware rules that track source, destination, service type, and device role rather than just port numbers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Changes in source or destination endpoints for critical messages
&lt;/h3&gt;

&lt;p&gt;Endpoint drift is one of the most practical indicators to monitor. A GOOSE publisher that moves to a new source MAC, a new MMS client, or a control message that starts originating from a different engineering workstation can all be signs of change. Some changes will be legitimate, but they should still be visible.&lt;/p&gt;

&lt;p&gt;For this reason, it helps to maintain allowlists by device role and not just by IP address. In OT, IPs can change, devices can be replaced, and maintenance laptops can be reimaged. Role-based baselines are usually more durable than static address lists.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common blind spots in substation monitoring
&lt;/h2&gt;

&lt;p&gt;Even mature teams miss things in substation environments because the tooling assumptions are wrong. A few recurring blind spots are worth calling out.&lt;/p&gt;

&lt;h3&gt;
  
  
  Encrypted or proprietary management traffic
&lt;/h3&gt;

&lt;p&gt;Some management functions may be wrapped in vendor-specific tooling or encrypted channels that are opaque to generic sensors. If you cannot decode the content, you can still monitor metadata such as endpoints, timing, session duration, and frequency. That is often enough to spot unusual behaviour, even if the payload remains hidden.&lt;/p&gt;

&lt;h3&gt;
  
  
  Poor time synchronisation and incomplete baselines
&lt;/h3&gt;

&lt;p&gt;If clocks are inconsistent, event correlation becomes unreliable. If your baseline only covers a short period, you may mistake routine maintenance for an anomaly. Build baselines across normal operating cycles, including planned maintenance windows, seasonal load changes, and known switching events. Then revisit them after any significant network or firmware change.&lt;/p&gt;

&lt;h3&gt;
  
  
  Assuming IT tools will understand OT protocol context
&lt;/h3&gt;

&lt;p&gt;Many enterprise tools can ingest packets from a substation network, but that does not mean they understand the operational meaning. A generic IDS may see multicast traffic and raise noise, while missing the fact that a specific GOOSE dataset changed publisher. Choose tools and rules that can interpret IEC 61850 semantics, or at least preserve enough context for an analyst to do so.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to build a monitoring baseline
&lt;/h2&gt;

&lt;p&gt;A useful baseline is not a one-time document. It is a living reference that reflects how the substation actually operates. Start with the most critical protection and control flows, then expand.&lt;/p&gt;

&lt;h3&gt;
  
  
  Start with normal protection and control flows
&lt;/h3&gt;

&lt;p&gt;Identify the top protection paths first. Which relays publish the most critical GOOSE messages? Which IEDs receive them? Which engineering hosts are allowed to use MMS? Once those are mapped, record the normal rates, endpoints, and maintenance dependencies. This gives you a practical minimum viable baseline.&lt;/p&gt;

&lt;h3&gt;
  
  
  Document critical assets, message paths and expected rates
&lt;/h3&gt;

&lt;p&gt;For each critical device, document the expected publishers, subscribers, session types, and message rates. Include the switch ports and VLANs where possible. If you have multiple substations, do not assume they are identical. Baselines should be site-specific because device mix, vendor configuration, and operational practice often differ.&lt;/p&gt;

&lt;h3&gt;
  
  
  Review baselines after maintenance, firmware changes and network reconfiguration
&lt;/h3&gt;

&lt;p&gt;Any planned change can invalidate a baseline. After maintenance, compare the new state to the old one and update the inventory, allowlists, and alert thresholds. This is especially important after firmware upgrades or network reconfiguration, because both can alter timing and message behaviour in ways that look suspicious if the baseline is stale.&lt;/p&gt;

&lt;h2&gt;
  
  
  How IEC 61850 monitoring supports wider OT security
&lt;/h2&gt;

&lt;p&gt;Protocol monitoring is not a separate discipline from OT security architecture. It is one of the ways you verify that your design is working. If a zone or conduit is supposed to restrict traffic, the monitoring should show whether that is actually happening.&lt;/p&gt;

&lt;h3&gt;
  
  
  Linking protocol monitoring to zone and conduit design
&lt;/h3&gt;

&lt;p&gt;When you align telemetry with zones, you can detect traffic that crosses boundaries unexpectedly. That helps validate segmentation, remote access controls, and engineering pathways. It also gives you evidence for where to tighten access or redesign a conduit. If you are setting security objectives for OT environments, the ideas in &lt;a href="https://clearpathsecurity.co.uk/setting-security-level-targets-under-iec-62443-2/" rel="noopener noreferrer"&gt;setting security level targets under IEC 62443&lt;/a&gt; are useful context for deciding how much monitoring is appropriate for each zone.&lt;/p&gt;

&lt;h3&gt;
  
  
  Using findings to improve segmentation, access control and incident response
&lt;/h3&gt;

&lt;p&gt;Monitoring findings should feed back into architecture. If you repeatedly see MMS access from a workstation that should not be talking to protection relays, fix the access path. If a GOOSE publisher is visible beyond its intended segment, review segmentation and switch configuration. If an incident occurs, your baseline and telemetry will also help you scope impact more quickly and preserve evidence.&lt;/p&gt;

&lt;p&gt;For organisations that want a broader OT security programme, IEC 61850 monitoring should sit alongside asset inventory, segmentation, remote access control, and incident response planning. It is not a silver bullet, but it is one of the most practical ways to reduce uncertainty in a high-consequence environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical rollout approach for smaller operators and integrators
&lt;/h2&gt;

&lt;p&gt;Smaller operators do not need to monitor everything on day one. A phased rollout is usually more realistic and more effective.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prioritise the highest-value substations and links first
&lt;/h3&gt;

&lt;p&gt;Start where the operational impact would be greatest if something went wrong. That may be a primary substation, a site with remote access, or a location with older devices and weaker visibility. Focus on the links that carry the most critical GOOSE and MMS traffic, then expand once the detection logic is stable.&lt;/p&gt;

&lt;h3&gt;
  
  
  Choose passive monitoring before intrusive controls
&lt;/h3&gt;

&lt;p&gt;Passive sensors, taps, and log collection should come before active scanning or intrusive controls. In substations, the risk of interfering with protection traffic is usually more important than the convenience of a quick scan. Build confidence in the telemetry first, then decide whether any active validation is justified and safe.&lt;/p&gt;

&lt;h3&gt;
  
  
  Define who reviews alerts and how exceptions are handled
&lt;/h3&gt;

&lt;p&gt;Alerts are only useful if someone knows what to do with them. Define who reviews protocol anomalies, how maintenance windows are recorded, and how exceptions are approved. If engineering teams can explain a change quickly, your monitoring can stay focused on genuine deviations rather than routine work.&lt;/p&gt;

&lt;p&gt;If you want help shaping a practical OT monitoring approach, including how IEC 61850 visibility fits into a wider security programme, speak to a consultant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is the difference between GOOSE and MMS in IEC 61850?
&lt;/h3&gt;

&lt;p&gt;GOOSE is used for fast event and protection messaging, usually with multicast delivery and repeated bursts for low-latency state changes. MMS is used for supervisory control, reporting, and configuration-related activity, so it is better suited to monitoring sessions, reads, and write operations.&lt;/p&gt;

&lt;h3&gt;
  
  
  What should you monitor first on an IEC 61850 substation network?
&lt;/h3&gt;

&lt;p&gt;Start with the critical GOOSE publishers and subscribers, the allowed MMS clients and targets, and any engineering access paths. Then add device logs, switch telemetry, and time synchronisation health so you can distinguish normal maintenance from suspicious change.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>GitHub Actions security hardening checklist</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Thu, 03 Dec 2026 11:33:06 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/github-actions-security-hardening-checklist-1kc1</link>
      <guid>https://dev.to/clearpathsecurity/github-actions-security-hardening-checklist-1kc1</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/github-actions-security-hardening-checklist/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/github-actions-security-hardening-checklist/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;GitHub Actions is often where code changes become build artefacts, deployment packages, container images, or release notes. That makes it a high-value control point in the software delivery chain, not just another automation tool. If an attacker can alter a workflow, steal a token, or abuse a pull request path, they may be able to move from source code access to release integrity, secret exposure, or production impact.&lt;/p&gt;

&lt;p&gt;For UK SMEs, the goal is not to make GitHub Actions perfect. It is to reduce the chance that a routine pipeline becomes a route into your repositories, cloud accounts, or production systems. A sensible baseline is to treat workflow files, runner configuration, secrets, and third-party actions as part of your security boundary. That framing aligns well with broader software supply chain assurance, as discussed in our &lt;a href="https://clearpathsecurity.co.uk/implementing-software-supply-chain-assurance-controls-for-technical-teams/" rel="noopener noreferrer"&gt;software supply chain assurance controls&lt;/a&gt; guidance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Treat GitHub Actions as part of your software supply chain, not just a build tool, and protect workflow files, runners, tokens, and secrets accordingly.&lt;/li&gt;
&lt;li&gt;Set default permissions to read-only, then grant elevated access only to the specific jobs that need it.&lt;/li&gt;
&lt;li&gt;Pin third-party actions to commit SHAs, review their trustworthiness, and avoid relying on mutable tags in critical workflows.&lt;/li&gt;
&lt;li&gt;Keep untrusted pull request handling separate from privileged release jobs, and never execute untrusted input in a high-privilege context.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why GitHub Actions needs a hardening baseline
&lt;/h2&gt;

&lt;p&gt;GitHub Actions introduces several trust boundaries that are easy to overlook. A workflow triggered by a trusted branch is not the same as one triggered by an external contributor. A reusable action maintained by a third party is not the same as a script you control in your own repository. A job that only builds code is not the same as a job that can publish packages, deploy infrastructure, or write to cloud storage.&lt;/p&gt;

&lt;p&gt;The main risk areas are predictable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;workflow file tampering, especially when changes are merged without strong review;&lt;/li&gt;
&lt;li&gt;token over-permissioning, where the default job token can do more than the job needs;&lt;/li&gt;
&lt;li&gt;secret exposure through logs, environment variables, or unsafe shell usage;&lt;/li&gt;
&lt;li&gt;untrusted pull request content reaching privileged jobs;&lt;/li&gt;
&lt;li&gt;third-party action compromise or misuse;&lt;/li&gt;
&lt;li&gt;runner persistence, where one job can influence the next.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are supply chain issues as much as they are CI/CD issues. A compromised workflow can alter what you ship, what you sign, or what you trust. If you are already thinking about build provenance, dependency integrity, or release assurance, GitHub Actions should be in scope.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with repository and organisation settings
&lt;/h2&gt;

&lt;p&gt;The first layer of hardening is governance. If the wrong people can change workflows, approve them too easily, or bypass branch controls, the rest of the checklist becomes less effective.&lt;/p&gt;

&lt;p&gt;Start by limiting who can create and modify workflow files. In practice, that means reviewing repository roles, branch protection, and the ability to approve pull requests that touch &lt;code&gt;.github/workflows&lt;/code&gt;. For higher-risk repositories, require at least one review from someone who understands the pipeline, not just the application code.&lt;/p&gt;

&lt;p&gt;Use branch protection rules on your main release branches. Require status checks, require reviews, and block direct pushes where possible. If your organisation uses environments for deployment, enable environment protection rules so that production deployments need explicit approval and cannot be triggered casually from any branch.&lt;/p&gt;

&lt;p&gt;For teams with multiple repositories, standardise these settings. Inconsistent controls create weak links. A single less-protected repository can become the easiest route to a release compromise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reduce the blast radius of workflow permissions
&lt;/h2&gt;

&lt;p&gt;GitHub provides a default token to each workflow run. That token is useful, but it should not be treated as harmless. If it can write contents, create releases, or access packages when the job does not need those rights, then a compromised step has more room to move.&lt;/p&gt;

&lt;p&gt;Set the default &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; permissions to read-only wherever possible. Then grant elevated permissions only to the specific jobs that need them. A build job may need read access to the repository and packages, while a release job may need write access to create tags or publish artefacts. Those should not be the same permission set.&lt;/p&gt;

&lt;p&gt;A practical pattern is to define the minimum permissions at workflow level, then override them only for the job that needs more. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;

&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;build&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;release&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
      &lt;span class="na"&gt;packages&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That pattern is simple, but it materially reduces the impact of a compromised build step. It also makes permission drift easier to spot during review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pin and verify third-party actions
&lt;/h2&gt;

&lt;p&gt;Third-party actions are convenient, but they are also a dependency you do not fully control. If you reference a mutable version tag such as &lt;code&gt;v3&lt;/code&gt;, you are trusting the maintainer to keep that tag stable and safe. If the action is updated maliciously or compromised upstream, your workflow may inherit that change without any local code review.&lt;/p&gt;

&lt;p&gt;Pin actions to a commit SHA instead of a mutable tag. This is one of the most important GitHub Actions hardening measures you can apply. It does not remove all risk, but it gives you a fixed reference point and makes unexpected changes easier to detect. If you need to update the action, review the new commit deliberately rather than drifting with the tag.&lt;/p&gt;

&lt;p&gt;When reviewing an action, consider three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;provenance, meaning who published it and how it is maintained;&lt;/li&gt;
&lt;li&gt;update cadence, meaning whether it is actively maintained or stale;&lt;/li&gt;
&lt;li&gt;scope, meaning whether it needs broad permissions or just a narrow task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If an action is doing something simple, such as checking out code or setting up a runtime, prefer the smallest trusted dependency that meets the need. Where possible, reduce the number of external actions in your critical release workflows. This is especially relevant if you are already using controls such as SAST, DAST, or dependency scanning in the pipeline, because those jobs often run with access to sensitive build context. Our &lt;a href="https://clearpathsecurity.co.uk/securing-github-actions-pipelines-with-sast-and-dast/" rel="noopener noreferrer"&gt;GitHub Actions SAST and DAST guidance&lt;/a&gt; covers how those checks fit into a pipeline without overexposing the job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Control secrets and sensitive outputs
&lt;/h2&gt;

&lt;p&gt;Secrets are often the most valuable thing a workflow can touch. API keys, signing credentials, cloud tokens, and package publish credentials should be treated as high-impact assets. The mistake many teams make is to make them available too widely, then assume masking will solve the problem.&lt;/p&gt;

&lt;p&gt;Masking helps, but it is not a complete control. Use it as a last line of defence, not the main one. The stronger control is to scope secrets tightly and only expose them to trusted branches, protected environments, and jobs that genuinely need them.&lt;/p&gt;

&lt;p&gt;Prefer environment secrets for deployment jobs, especially where production access is involved. That way, a build or test job does not inherit the same secret set. If a workflow only needs a secret for one step, avoid passing it through the entire job. Keep the secret in the narrowest possible scope and avoid echoing it into logs, files, or command output.&lt;/p&gt;

&lt;p&gt;Be careful with derived values too. A secret can leak indirectly through debug output, error messages, or a script that prints environment variables. If you need to log a value for troubleshooting, log a non-sensitive identifier instead. For example, log the last four characters of an internal reference, not the full token or connection string.&lt;/p&gt;

&lt;p&gt;For organisations already dealing with secret sprawl, it is worth aligning GitHub Actions secret handling with your wider secrets management approach. That usually means central vaulting, short-lived credentials where possible, and a clear rule that secrets are never embedded in repository files. Our article on preventing secret leakage in CI/CD environments is a useful companion if you want to tighten this area further.&lt;/p&gt;

&lt;h2&gt;
  
  
  Harden workflow triggers and pull request handling
&lt;/h2&gt;

&lt;p&gt;Trigger choice matters. The same workflow logic can be safe in one context and unsafe in another. In particular, &lt;code&gt;pull_request&lt;/code&gt; and &lt;code&gt;pull_request_target&lt;/code&gt; behave differently, and that difference is often misunderstood.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;pull_request&lt;/code&gt; for untrusted contributions when you want the workflow to run against the contributor’s changes without granting elevated repository privileges. Be cautious with &lt;code&gt;pull_request_target&lt;/code&gt;, because it runs in the context of the base repository and can access secrets and write permissions if you configure it that way. That makes it useful for some review automation, but dangerous if you check out and execute untrusted code without strict controls.&lt;/p&gt;

&lt;p&gt;A safe pattern is to separate validation from privileged actions. Let untrusted pull requests run linting, unit tests, and static checks in a low-privilege context. Keep deployment, release, and secret-bearing jobs for trusted branches or protected environments only.&lt;/p&gt;

&lt;p&gt;Also avoid unsafe checkout and script execution on untrusted input. Do not interpolate pull request titles, branch names, or issue content directly into shell commands. Treat all external input as untrusted, even if it appears to come from a familiar contributor. If you need to process metadata, validate it first and use defensive quoting in shell scripts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Secure runners and execution environments
&lt;/h2&gt;

&lt;p&gt;Runner choice is a major design decision. GitHub-hosted runners are convenient because they are ephemeral and managed for you. Self-hosted runners give you more control, but they also increase your responsibility for isolation, patching, and cleanup.&lt;/p&gt;

&lt;p&gt;For most UK SMEs, GitHub-hosted runners are the safer default for general build and test work. They reduce the risk of residual state between jobs and remove the burden of maintaining the host. Use self-hosted runners only when you have a clear need, such as access to internal networks, specialised hardware, or regulated build environments.&lt;/p&gt;

&lt;p&gt;If you do use self-hosted runners, isolate them carefully. Do not share runners across unrelated repositories or trust levels unless you have strong segmentation and cleanup controls. Treat each runner as a potentially exposed execution environment. Remove persistent state after each job, rotate credentials regularly, and make sure the runner cannot retain artefacts, caches, or tokens that a later job could reuse.&lt;/p&gt;

&lt;p&gt;It is also worth considering network egress. A compromised job should not be able to reach everything on your internal network. Restrict outbound access where possible, especially from self-hosted runners that can access sensitive systems. If the runner does not need internet access beyond package repositories, limit it accordingly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build safer job and step patterns
&lt;/h2&gt;

&lt;p&gt;Many workflow weaknesses come from small implementation choices rather than headline misconfigurations. Shell interpolation, broad environment variables, and mixed-trust jobs are common examples.&lt;/p&gt;

&lt;p&gt;Minimise shell interpolation and avoid building commands from untrusted strings. Use explicit arguments rather than concatenated command lines. Where possible, prefer action inputs over raw shell scripting. If you must use shell, quote variables carefully and keep the script short enough to review easily.&lt;/p&gt;

&lt;p&gt;Split build, test, and release jobs to separate trust levels. A build job should not automatically become a release job just because it succeeded. Release steps should be gated by branch protection, environment approvals, and explicit permission changes. This separation makes it easier to reason about where secrets are available and where artefacts can be published.&lt;/p&gt;

&lt;p&gt;Keep job outputs narrow as well. Outputs are useful for passing data between jobs, but they can become an accidental data channel if you place sensitive values in them. Pass only what is needed for the next stage, and avoid using outputs as a general-purpose storage mechanism.&lt;/p&gt;

&lt;p&gt;For teams that want to go further, it is useful to map workflow steps to threat scenarios. For example, ask what happens if a contributor manipulates a build parameter, if a dependency update changes the behaviour of a third-party action, or if a compromised runner attempts to exfiltrate a token. That style of analysis fits well with the threat modelling approach used in our &lt;a href="https://clearpathsecurity.co.uk/supply-chain-attack-modelling-using-mitre-attck-for-technical-practitioners/" rel="noopener noreferrer"&gt;supply chain attack modelling&lt;/a&gt; article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add supply chain checks into the pipeline
&lt;/h2&gt;

&lt;p&gt;GitHub Actions hardening is not only about preventing misuse. It is also about making the pipeline more trustworthy. That means adding checks that help you understand what is being built, what is being shipped, and whether the artefact matches the source you reviewed.&lt;/p&gt;

&lt;p&gt;At a minimum, combine static analysis, dependency scanning, and artefact or container scanning where relevant. These controls do not replace workflow hardening, but they help catch issues before release. If you build containers, scan the image for vulnerabilities and misconfigurations. If you publish packages, scan dependencies and lockfiles. If you produce signed artefacts, make sure the signing step is isolated and controlled.&lt;/p&gt;

&lt;p&gt;Where it adds value, generate build provenance and an SBOM, or software bill of materials. Provenance helps you show how an artefact was built. An SBOM helps you understand what components are inside it. For technical teams, these are useful evidence artefacts when you need to investigate a release issue or answer supplier assurance questions. Our posts on build provenance and SBOM generation cover the mechanics in more detail.&lt;/p&gt;

&lt;p&gt;If you already use Trivy, Semgrep, or similar tools, keep them in the lowest-privilege jobs that still give useful results. Security tooling should not force you to grant broad write access to the repository or deployment environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detect abuse and monitor for suspicious workflow activity
&lt;/h2&gt;

&lt;p&gt;Hardening is stronger when it is paired with monitoring. You want to know when workflow files change, when permissions drift, and when a job behaves in a way that does not fit the normal pattern.&lt;/p&gt;

&lt;p&gt;Alert on changes to workflow files, especially when they introduce new third-party actions, new permissions, or new secret usage. Also watch for changes to branch protection, environment rules, and repository settings that affect who can approve or deploy. These are often the precursor to a more serious issue.&lt;/p&gt;

&lt;p&gt;Review logs for indicators of exfiltration or unexpected outbound connections. A job that suddenly reaches out to unfamiliar domains, downloads unusual binaries, or writes large amounts of data to external endpoints deserves attention. The same applies to repeated token failures, unexpected use of deployment credentials, or jobs that run outside normal release windows.&lt;/p&gt;

&lt;p&gt;If you have central logging, include GitHub audit events and workflow run metadata in your monitoring scope. That gives you a better chance of spotting permission changes, runner registration events, and unusual administrative activity. For teams already building detection content, it is sensible to treat GitHub audit data as part of the same monitoring model you use for identity, endpoint, and cloud events.&lt;/p&gt;

&lt;h2&gt;
  
  
  Create a practical operating model for ongoing maintenance
&lt;/h2&gt;

&lt;p&gt;GitHub Actions hardening is not a one-off task. Workflows drift, actions are deprecated, permissions expand, and teams add shortcuts under delivery pressure. Without ownership, the baseline erodes.&lt;/p&gt;

&lt;p&gt;Assign clear ownership for workflow reviews, action updates, and exception handling. Someone should be responsible for checking whether a new workflow follows your baseline, whether an existing workflow still needs its current permissions, and whether a third-party action is still trusted. This does not need to be a separate team, but it does need to be explicit.&lt;/p&gt;

&lt;p&gt;Set a regular cadence for reviewing deprecated actions and permission drift. A monthly or quarterly review is usually enough for smaller teams, provided the release pipeline is not changing daily. During that review, check for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;actions pinned to tags rather than commit SHAs;&lt;/li&gt;
&lt;li&gt;jobs with unnecessary write permissions;&lt;/li&gt;
&lt;li&gt;secrets available to more branches or environments than needed;&lt;/li&gt;
&lt;li&gt;self-hosted runners that have not been patched or cleaned up;&lt;/li&gt;
&lt;li&gt;workflow files that have grown complex without a clear owner.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where exceptions are necessary, document them. For example, a legacy release job may need broader permissions for a short period while you refactor it. That can be acceptable if the exception is time-bound, reviewed, and tracked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist summary for teams to implement first
&lt;/h2&gt;

&lt;p&gt;If you want a practical order of operations, start with the controls that reduce the biggest risks fastest. First, lock down repository and branch settings so workflow changes are reviewed properly. Second, reduce default token permissions and grant write access only where it is genuinely needed. Third, pin third-party actions to commit SHAs and review them before updating. Fourth, scope secrets to trusted branches and protected environments. Fifth, separate untrusted pull request validation from privileged release jobs.&lt;/p&gt;

&lt;p&gt;After that, improve runner hygiene, add provenance and SBOM evidence where it helps, and bring workflow activity into your monitoring and review process. That sequence gives you a meaningful reduction in risk without forcing a complete redesign of your delivery pipeline.&lt;/p&gt;

&lt;p&gt;If you are already working on broader secure development or supplier assurance improvements, GitHub Actions is a sensible place to start because it affects both code integrity and release integrity. It is also a good candidate for evidence-led improvement, which fits well with an ISO 27001-aligned approach to risk treatment and operational control.&lt;/p&gt;

&lt;p&gt;If you would like help reviewing your CI/CD controls, tightening workflow permissions, or aligning pipeline hardening with a wider security programme, Speak to a consultant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Should all GitHub Actions be pinned to a commit SHA?
&lt;/h3&gt;

&lt;p&gt;Yes, for production and release-critical workflows that is the safest default. Pinning to a commit SHA reduces the risk of a mutable tag changing underneath you, although you still need to review updates before you move to a new commit.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the safest way to handle secrets in GitHub Actions?
&lt;/h3&gt;

&lt;p&gt;Scope secrets as narrowly as possible, use protected environments for deployment jobs, and avoid exposing secrets to untrusted pull request runs. Keep secrets out of logs, avoid passing them through unnecessary steps, and prefer short-lived credentials where your platform supports them.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Hunting for LSASS credential dumping with Defender for Endpoint</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 25 Nov 2026 19:14:33 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/hunting-for-lsass-credential-dumping-with-defender-for-endpoint-31g3</link>
      <guid>https://dev.to/clearpathsecurity/hunting-for-lsass-credential-dumping-with-defender-for-endpoint-31g3</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/hunting-for-lsass-credential-dumping-with-defender-for-endpoint/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/hunting-for-lsass-credential-dumping-with-defender-for-endpoint/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;LSASS credential dumping is one of those Windows attack patterns that still matters because it gives an attacker access to material they can use laterally, escalate privileges, or persist. For a UK SME, the issue is not just the technical act of reading memory. It is the downstream risk: a single compromised workstation or server can become a stepping stone to domain-wide access if the right credentials are exposed.&lt;/p&gt;

&lt;p&gt;In Microsoft environments, Defender for Endpoint gives you enough telemetry to hunt for this behaviour without relying on a single noisy indicator. The useful approach is to combine process telemetry, file and command-line context, and device timeline pivots, then correlate that with identity signals where possible. If you have already built a broader detection stack, this hunt fits neatly alongside other memory and credential abuse work, such as the patterns covered in our article on &lt;a href="https://clearpathsecurity.co.uk/memory-and-credential-attack-detection-with-defender-for-endpoint/" rel="noopener noreferrer"&gt;memory and credential attack detection with Defender for Endpoint&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LSASS access is a high-value signal because it can indicate credential theft that enables lateral movement and privilege escalation.&lt;/li&gt;
&lt;li&gt;In Defender for Endpoint, the strongest hunts combine process telemetry, command-line context, and parent-child relationships rather than relying on one indicator.&lt;/li&gt;
&lt;li&gt;False positives are best reduced by documenting legitimate LSASS-touching tools and suppressing only validated binaries, paths, or service identities.&lt;/li&gt;
&lt;li&gt;Detection is stronger when LSASS hunting is correlated with identity and authentication activity, not treated as an isolated endpoint event.&lt;/li&gt;
&lt;li&gt;Hardening measures such as Credential Guard, RunAsPPL, least privilege, and attack surface reduction rules help reduce LSASS exposure before detection is needed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What LSASS is and why attackers target it
&lt;/h2&gt;

&lt;p&gt;LSASS is the Local Security Authority Subsystem Service. On Windows, it handles authentication, token creation, and several security-related functions that sit close to the logon process. In practical terms, it is a high-value process because it can hold credential material in memory, depending on the system configuration, authentication methods in use, and the protections enabled.&lt;/p&gt;

&lt;p&gt;That makes LSASS a common target for credential theft. Attackers are usually looking for reusable secrets, such as NTLM material, Kerberos tickets, or other authentication artefacts that can be used to impersonate users or service accounts. The exact value depends on the environment, but the defensive conclusion is consistent: if an attacker can access LSASS memory, they may be able to move beyond the initial foothold much faster than with password guessing alone.&lt;/p&gt;

&lt;p&gt;For defenders, the important point is not to obsess over one technique. The goal is to detect suspicious access to LSASS early enough to stop follow-on activity. That means looking for process access patterns, suspicious tool use, and the surrounding chain of events rather than waiting for a single perfect alert.&lt;/p&gt;

&lt;h2&gt;
  
  
  How LSASS abuse typically appears in Defender for Endpoint telemetry
&lt;/h2&gt;

&lt;p&gt;In Defender for Endpoint, LSASS abuse often shows up as a process on an endpoint interacting with &lt;code&gt;lsass.exe&lt;/code&gt; in an unusual way. The signal may be direct, such as suspicious handle access, or indirect, such as a process tree that makes little operational sense for the host. A legitimate endpoint protection agent may also touch LSASS, so context matters.&lt;/p&gt;

&lt;p&gt;The patterns worth paying attention to include unusual parent-child relationships, unexpected command lines, and binaries that are not normally associated with administration or security tooling. For example, a user-launched shell spawning a utility that then interacts with LSASS is more interesting than a known security agent doing the same thing. Likewise, a process running from a temporary directory, user profile path, or unusual staging location deserves more scrutiny than one launched from a standard management path.&lt;/p&gt;

&lt;p&gt;Another useful clue is the presence of security tooling abuse. Attackers often try to disable protections, run from renamed binaries, or use living-off-the-land components to reduce visibility. If you are already hunting for those behaviours, the overlap is useful. Our guide to detecting living-off-the-land binaries with Defender for Endpoint covers the broader process abuse angle that often appears alongside credential theft.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to look for in Microsoft Defender for Endpoint
&lt;/h2&gt;

&lt;p&gt;For hunting, the main place to start is Advanced Hunting. The tables you will use most often are &lt;code&gt;DeviceProcessEvents&lt;/code&gt;, &lt;code&gt;DeviceImageLoadEvents&lt;/code&gt;, &lt;code&gt;DeviceFileEvents&lt;/code&gt;, and, where relevant, &lt;code&gt;DeviceEvents&lt;/code&gt;. The exact schema can vary by tenant and feature set, but the principle is the same: build a process-centric view, then enrich it with file, command-line, and device context.&lt;/p&gt;

&lt;p&gt;Useful fields include &lt;code&gt;FileName&lt;/code&gt;, &lt;code&gt;ProcessCommandLine&lt;/code&gt;, &lt;code&gt;InitiatingProcessFileName&lt;/code&gt;, &lt;code&gt;InitiatingProcessCommandLine&lt;/code&gt;, &lt;code&gt;FolderPath&lt;/code&gt;, &lt;code&gt;DeviceName&lt;/code&gt;, &lt;code&gt;AccountName&lt;/code&gt;, and timestamps. If your tenant has good telemetry coverage, you can also use parent process details to identify suspicious launch chains. A process that accesses LSASS after being spawned by a script host, archive utility, or remote administration tool deserves more attention than one started by a known endpoint security product.&lt;/p&gt;

&lt;p&gt;A practical hunting pattern is to search for processes that reference &lt;code&gt;lsass.exe&lt;/code&gt; in command lines, access it indirectly through suspicious tooling, or appear in the same timeline as credential-related activity. You are not trying to prove compromise from one event. You are trying to identify a cluster of indicators that makes the activity worth investigating.&lt;/p&gt;

&lt;p&gt;It also helps to baseline your environment. If you know which tools your support team, endpoint protection stack, and remote administration platform use, you can separate expected LSASS access from unusual behaviour much more quickly. That baseline work is part of the same operational discipline discussed in &lt;a href="https://clearpathsecurity.co.uk/endpoint-hardening-using-cis-benchmarks-for-uk-smes/" rel="noopener noreferrer"&gt;endpoint hardening using CIS Benchmarks for UK SMEs&lt;/a&gt;, because hardening and detection quality are closely linked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building a hunting workflow for LSASS credential dumping
&lt;/h2&gt;

&lt;p&gt;A good hunt starts with a hypothesis. For example: a non-standard process on an endpoint accessed LSASS outside of normal administrative activity. From there, narrow the search to devices with recent privilege changes, suspicious script execution, or signs of defence evasion. This is more effective than scanning every process event for a generic keyword and hoping the result is useful.&lt;/p&gt;

&lt;p&gt;In practice, a useful workflow looks like this:&lt;/p&gt;

&lt;p&gt;First, identify candidate devices with suspicious process activity. Look for unusual process names, odd command lines, or binaries executing from user-writable locations. Second, inspect the process tree to understand what launched the activity and whether the parent process is expected. Third, check whether the same device shows signs of credential theft, such as unusual authentication attempts, remote logons, or later movement to other systems.&lt;/p&gt;

&lt;p&gt;Correlating endpoint and identity data is especially valuable. If a host shows suspicious LSASS access and the same account then performs atypical sign-ins, remote service creation, or access to administrative shares, the combined picture is stronger than either signal alone. That is why endpoint hunting should not live in isolation. It should sit alongside identity and network monitoring, as discussed in our article on &lt;a href="https://clearpathsecurity.co.uk/unified-threat-detection-across-endpoint-identity-and-network-for-uk-smes/" rel="noopener noreferrer"&gt;unified threat detection across endpoint, identity, and network for UK SMEs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you use Microsoft Sentinel as your SIEM, you can also push the hunt results into a broader investigation workflow. The KQL patterns are similar, but Sentinel gives you more room to correlate across tables and build repeatable analytics. If you want a refresher on the query style, our &lt;a href="https://clearpathsecurity.co.uk/kql-threat-hunting-with-microsoft-sentinel-a-practical-guide-for-uk-smes/" rel="noopener noreferrer"&gt;KQL threat hunting with Microsoft Sentinel&lt;/a&gt; article is a useful companion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reducing false positives without losing coverage
&lt;/h2&gt;

&lt;p&gt;LSASS access is not automatically malicious. Endpoint protection platforms, EDR agents, backup tools, remote support software, and some administrative utilities may interact with LSASS as part of their normal operation. The challenge is to distinguish expected access from activity that is unusual for the host, the user, or the time of day.&lt;/p&gt;

&lt;p&gt;Start by documenting the legitimate tools that touch LSASS in your environment. That includes the vendor name, binary path, signing status, service account used, and the hosts where it should appear. Then compare that list against your hunting results. If a known tool is generating noise, do not suppress the entire technique. Instead, narrow the suppression to the specific binary, path, hash, or service identity that you have validated.&lt;/p&gt;

&lt;p&gt;Be careful with broad allowlisting. If you suppress on process name alone, you can miss renamed binaries or lookalike tools. If you suppress on a whole folder path without checking who can write there, you may create a blind spot. A better pattern is to combine multiple attributes, such as signed binary, expected publisher, known path, and known parent process.&lt;/p&gt;

&lt;p&gt;For small teams, it is often worth separating hunting logic from alert logic. Hunting queries can stay broad and exploratory, while alert rules should be tighter and more operationally stable. That way you preserve visibility without flooding analysts with low-value incidents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detection engineering considerations for Defender for Endpoint
&lt;/h2&gt;

&lt;p&gt;Not every hunt should become an alert. Some LSASS queries are best kept as scheduled hunts or workbook views, especially when you are still learning the normal shape of the environment. Once you have enough confidence in the signal, you can decide whether to convert the logic into a custom detection rule or an analytics rule in your SIEM.&lt;/p&gt;

&lt;p&gt;When you do promote a hunt into production detection, think about severity and grouping. A single suspicious access event may not justify a high-severity incident if there is no corroborating evidence. On the other hand, repeated access attempts, suspicious parent processes, and follow-on authentication anomalies should raise the priority quickly. Incident grouping should also reflect the likely attack chain, not just the individual event. Multiple related alerts on the same host should usually collapse into one investigation case.&lt;/p&gt;

&lt;p&gt;Enrichment matters too. Add device risk, user risk, recent sign-in context, and host role where possible. A domain controller, jump host, or privileged admin workstation deserves a different threshold from a standard user laptop. This is where operational context improves detection quality more than any single rule tweak.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardening and preventive controls that reduce LSASS exposure
&lt;/h2&gt;

&lt;p&gt;Detection is important, but it should not be your only control. Reducing the chance that LSASS can be accessed in the first place is a better outcome. Two of the most relevant controls are Credential Guard and RunAsPPL, which helps protect LSASS as a protected process. These controls are not a silver bullet, but they raise the bar and reduce the number of easy paths available to an attacker.&lt;/p&gt;

&lt;p&gt;Least privilege also matters. If local administrator rights are handed out too freely, an attacker who compromises one endpoint has a much easier route to memory access and credential theft. Tightening administrative access, using separate admin accounts, and limiting where privileged logons can occur all help reduce exposure.&lt;/p&gt;

&lt;p&gt;Attack surface reduction rules can also help, particularly where they block common abuse paths such as script-based launch chains, suspicious child process creation, or credential theft tooling. The exact rules you deploy will depend on your environment, but the principle is consistent: make it harder for untrusted code to reach sensitive processes.&lt;/p&gt;

&lt;p&gt;These controls work best when they are part of a broader hardening programme rather than a one-off change. If you are building that baseline, our article on &lt;a href="https://clearpathsecurity.co.uk/reducing-attack-surface-using-system-hardening-techniques-for-uk-smes/" rel="noopener noreferrer"&gt;reducing attack surface using system hardening techniques for UK SMEs&lt;/a&gt; is a useful reference point.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to investigate a suspected LSASS dumping alert
&lt;/h2&gt;

&lt;p&gt;When an alert fires, start with the process tree and the host timeline. Confirm which process touched LSASS, what launched it, and whether the binary path and signature look expected. Check whether the process was started by a user, a service, a script host, or a remote management tool. Then look for nearby events that suggest defence evasion, staging, or lateral movement.&lt;/p&gt;

&lt;p&gt;Next, validate whether the activity matches a known tool or support workflow. If it does, document the justification and tune the detection accordingly. If it does not, preserve the artefacts you need for follow-up analysis: process command lines, hashes, file paths, device timeline entries, and any related authentication events. If memory capture or deeper endpoint analysis is required, make sure you follow your organisation’s evidence handling process.&lt;/p&gt;

&lt;p&gt;It is also sensible to check for scope. One suspicious endpoint may be an isolated event, but if you see similar activity across multiple hosts, the priority changes. In that case, look for common accounts, common parent processes, or a shared management tool that may have been abused.&lt;/p&gt;

&lt;p&gt;If your team is still maturing its response process, it may help to align this work with your wider incident handling approach. Our article on creating incident response playbooks and runbooks is a practical companion for turning this kind of hunt into a repeatable workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mapping LSASS hunting to MITRE ATT&amp;amp;CK
&lt;/h2&gt;

&lt;p&gt;From a MITRE ATT&amp;amp;CK perspective, LSASS credential dumping maps to OS credential dumping techniques. That mapping is useful because it gives you a common language for coverage, prioritisation, and gap analysis. It also helps you explain to stakeholders why a hunt matters without having to describe every technical detail.&lt;/p&gt;

&lt;p&gt;Use the ATT&amp;amp;CK mapping to answer three questions. First, do you have telemetry that can see the technique? Second, do you have a detection that is likely to fire with useful fidelity? Third, do you have a response path that can contain the host quickly if the signal is strong? If the answer to any of those is no, you have a gap to close.&lt;/p&gt;

&lt;p&gt;That same mapping approach works well when you are building a broader detection programme. If you want to see how this fits into a structured coverage model, our article on mapping detections and controls to MITRE ATT&amp;amp;CK shows how to turn technique coverage into something you can manage over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Operational next steps for small security teams
&lt;/h2&gt;

&lt;p&gt;If you want to get this hunt into production without overcomplicating it, start small. Define the expected LSASS-touching tools in your environment, write one or two high-signal Advanced Hunting queries, and test them against a known-good set of devices. Then review the results with whoever owns endpoint management so you can separate legitimate activity from suspicious behaviour.&lt;/p&gt;

&lt;p&gt;After that, decide whether the hunt should remain a manual analyst workflow or become a custom alert. For many SMEs, the right answer is a mix of both: a scheduled hunt for visibility, plus a tighter alert for the most suspicious patterns. Review the output monthly at first, then tune the logic as you learn what normal looks like.&lt;/p&gt;

&lt;p&gt;Finally, keep the hunt connected to the rest of your security stack. LSASS access is rarely the only signal that matters. The most useful detections usually come from combining endpoint telemetry, identity context, and a clear understanding of what normal administration looks like in your own environment.&lt;/p&gt;

&lt;p&gt;If you want help tuning Defender for Endpoint detections or building a practical hunting workflow, speak to a consultant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What does LSASS.exe do, and why is it targeted for credential dumping?
&lt;/h3&gt;

&lt;p&gt;LSASS is the Windows process that handles authentication and related security functions. It is targeted because it may hold credential material in memory that an attacker can abuse for lateral movement or privilege escalation.&lt;/p&gt;

&lt;h3&gt;
  
  
  How can Defender for Endpoint help detect suspicious access to LSASS?
&lt;/h3&gt;

&lt;p&gt;Defender for Endpoint provides process and device telemetry that can show unusual access to lsass.exe, suspicious command lines, odd parent-child process chains, and related activity that helps you build a hunting and investigation workflow.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Enforcing SBOM requirements in CI/CD pipelines</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 25 Nov 2026 19:14:31 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/enforcing-sbom-requirements-in-cicd-pipelines-g02</link>
      <guid>https://dev.to/clearpathsecurity/enforcing-sbom-requirements-in-cicd-pipelines-g02</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/enforcing-sbom-requirements-in-ci-cd-pipelines/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/enforcing-sbom-requirements-in-ci-cd-pipelines/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Software bills of materials, or SBOMs, are only useful if they are produced consistently and trusted by the teams that consume them. For technical teams, the real challenge is not whether to generate an SBOM, but how to make it a reliable control inside the delivery pipeline. That means defining what good looks like, checking it automatically, and deciding when a build should stop, continue with a warning, or require manual approval.&lt;/p&gt;

&lt;p&gt;For UK SMEs, this is usually a pragmatic engineering problem rather than a large governance exercise. You want enough control to improve dependency visibility, support vulnerability response, and give customers or suppliers confidence in what you ship, without turning every release into a paperwork task. If you already have controls around secure software supply chain assurance, this article shows how to operationalise the SBOM part of that work in CI/CD. If you need a broader view of the control set, our article on &lt;a href="https://clearpathsecurity.co.uk/implementing-software-supply-chain-assurance-controls-for-technical-teams/" rel="noopener noreferrer"&gt;implementing software supply chain assurance controls&lt;/a&gt; is a useful companion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enforce SBOMs as a pipeline control, not a manual afterthought, so every releasable artefact has a validated inventory.&lt;/li&gt;
&lt;li&gt;Generate the SBOM from the final build output, then validate, sign and publish it alongside the artefact.&lt;/li&gt;
&lt;li&gt;Use clear policy rules for blocking failures, warnings and temporary exceptions so teams know exactly what will stop a release.&lt;/li&gt;
&lt;li&gt;Standardise on a small set of SBOM formats and reusable CI templates to avoid drift across services.&lt;/li&gt;
&lt;li&gt;Use SBOM data to speed up vulnerability triage and support supplier assurance, but do not treat it as a compliance guarantee.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What enforcing SBOM requirements actually means in a delivery pipeline
&lt;/h2&gt;

&lt;p&gt;Enforcement does not simply mean running a tool that emits a JSON file. It means the pipeline checks that an SBOM exists, that it matches a defined format, that it covers the artefact being built, and that it is stored or attached in a way that downstream teams can actually use. In practice, enforcement usually spans three stages: pre-build, build-time, and post-build.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where SBOM checks fit in the build, test and release stages
&lt;/h3&gt;

&lt;p&gt;At pre-build stage, the pipeline can verify that dependency manifests and lockfiles are present and current. This is where you catch missing package metadata, unpinned dependencies, or a build that is not reproducible enough to support a trustworthy SBOM. During the build, the pipeline generates the SBOM from the exact artefact that is being produced, not from a source tree snapshot that may drift from the final output. After the build, the pipeline validates the SBOM, signs it if required, and publishes it alongside the artefact or container image.&lt;/p&gt;

&lt;p&gt;The key point is that the SBOM should describe the thing you are releasing, not an approximation of it. That matters because container images, compiled binaries, and bundled front-end assets can all differ from the raw source repository. If your pipeline only scans source dependencies, you may miss packaged libraries, vendored code, or operating system packages included in the final image.&lt;/p&gt;

&lt;h3&gt;
  
  
  What to enforce: generation, validation, signing and publication
&lt;/h3&gt;

&lt;p&gt;A practical enforcement model usually has four checks. First, generation: the pipeline must create an SBOM for every releasable artefact. Second, validation: the SBOM must conform to the chosen schema and contain the expected fields. Third, signing: the SBOM should be integrity-protected so it cannot be swapped after the build. Fourth, publication: the SBOM must be stored where release, security, and support teams can retrieve it later.&lt;/p&gt;

&lt;p&gt;That last step is often overlooked. An SBOM that lives only in a transient build workspace is not operationally useful. If you cannot retrieve it when a vulnerability lands, or when a customer asks what is in a release, then the control has not really been implemented.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why SBOM enforcement matters for software supply chain risk
&lt;/h2&gt;

&lt;p&gt;SBOMs are most valuable when they improve decision-making. They help you see what is inside a release, including transitive dependencies, which are packages pulled in by other packages. That visibility is important because many software risks sit several layers deep in the dependency tree, where teams do not normally look.&lt;/p&gt;

&lt;h3&gt;
  
  
  Dependency visibility, transitive risk and release confidence
&lt;/h3&gt;

&lt;p&gt;Without enforcement, SBOM generation is often inconsistent. One team publishes a CycloneDX document, another exports SPDX, and a third forgets to include it at all. That inconsistency makes it hard to compare releases, automate checks, or answer supplier questions. A pipeline gate creates a baseline: every release follows the same rules, and every artefact has a machine-readable inventory.&lt;/p&gt;

&lt;p&gt;This also improves release confidence. If the SBOM is generated from the final build output and validated automatically, you have a stronger basis for saying that the artefact was built from known components. That does not eliminate risk, but it reduces uncertainty. For teams already thinking about provenance and build integrity, this sits naturally alongside approaches such as SLSA and signed artefacts.&lt;/p&gt;

&lt;h3&gt;
  
  
  How SBOM controls support vulnerability response and supplier assurance
&lt;/h3&gt;

&lt;p&gt;When a new vulnerability is disclosed, the first question is often whether you are affected. An SBOM lets you answer that faster by matching the affected component against the contents of your shipped artefacts. That can shorten triage time and reduce unnecessary patching. It also helps with supplier assurance, because you can show customers or partners that you have a repeatable process for identifying what is in your software.&lt;/p&gt;

&lt;p&gt;For organisations that supply into regulated or security-conscious environments, this is increasingly relevant. It supports conversations about secure development expectations, and it can complement supplier checks described in our article on &lt;a href="https://clearpathsecurity.co.uk/verifying-supplier-compliance-with-secure-software-requirements-a-practical-guide-for-uk-smes/" rel="noopener noreferrer"&gt;verifying supplier compliance with secure software requirements&lt;/a&gt;. It is not a guarantee of compliance, but it is a strong operational control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the policy before you automate the gate
&lt;/h2&gt;

&lt;p&gt;Before you add a pipeline job, define the policy it will enforce. If the policy is vague, the automation will be inconsistent. The policy should state what artefacts need SBOMs, which formats are accepted, what minimum metadata is required, and which failures are blocking versus advisory.&lt;/p&gt;

&lt;h3&gt;
  
  
  Minimum fields, accepted formats and versioning expectations
&lt;/h3&gt;

&lt;p&gt;At a minimum, define the fields you need for downstream use. That usually includes the artefact name, version, supplier or publisher, component list, package identifiers, and build or release reference. If you use container images, include the image digest and the package manager or base image details where possible. If you use multiple languages or build systems, define how each one maps into the SBOM schema.&lt;/p&gt;

&lt;p&gt;Choose one or two accepted formats and standardise on them. CycloneDX and SPDX are the most common choices. CycloneDX is often easier for application security workflows, while SPDX is widely used for software licensing and supply chain use cases. The important thing is consistency. If you accept multiple formats, document which one is authoritative and how conversion is handled.&lt;/p&gt;

&lt;p&gt;Versioning matters too. The SBOM should be tied to a specific build, not a moving branch or a generic release label. If you rebuild the same source later, the SBOM should either be identical or explain the differences clearly. That is especially important where build timestamps, package mirrors, or base image updates can change the output.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deciding what should block a build versus trigger a warning
&lt;/h3&gt;

&lt;p&gt;Not every SBOM issue needs to fail the pipeline. Missing SBOM generation for a production release should usually be a hard fail. A malformed document, schema mismatch, or missing required field should also block release. By contrast, a warning may be enough if the SBOM is complete but includes a package with incomplete upstream metadata, provided you have a documented exception path.&lt;/p&gt;

&lt;p&gt;The policy should distinguish between technical failure and risk acceptance. For example, a temporary exception for a legacy component may be acceptable if it is time-bound, approved, and tracked. What you want to avoid is a pipeline that silently ignores problems because the team has become used to bypassing the gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Designing the CI/CD control points
&lt;/h2&gt;

&lt;p&gt;Good SBOM enforcement is usually layered. You do not want a single late-stage check that fails after a long build has already consumed time and compute. Instead, use control points that catch issues early and confirm the final artefact before release.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pre-build checks for dependency metadata and lockfiles
&lt;/h3&gt;

&lt;p&gt;Start by checking that the repository contains the dependency files you expect. For Node.js, that may mean package-lock.json or pnpm-lock.yaml. For Python, it may mean requirements.txt, poetry.lock, or a pinned dependency manifest. For Go, you may want to verify go.sum and module versions. For Java, that may mean a lockfile or a resolved dependency report from Maven or Gradle.&lt;/p&gt;

&lt;p&gt;These checks are not the SBOM itself, but they are important because they reduce ambiguity. If dependencies are not pinned, the build may resolve different versions on different days, which undermines reproducibility. A simple script can fail the build if the lockfile is missing, stale, or not committed. That is a useful precondition for reliable SBOM generation.&lt;/p&gt;

&lt;h3&gt;
  
  
  Build-time SBOM generation and post-build verification
&lt;/h3&gt;

&lt;p&gt;Generate the SBOM from the built artefact, not just the source repository. For container images, that usually means running the SBOM tool against the image digest or exported filesystem. For binaries, it may mean scanning the packaged release directory. For multi-stage builds, ensure the final image is the one being analysed, not an intermediate layer.&lt;/p&gt;

&lt;p&gt;After generation, validate the SBOM against the schema and compare it to the artefact metadata. Check that the package count is plausible, that the version matches the release tag, and that the file is not empty or truncated. If you sign artefacts, verify that the SBOM is linked to the same build identity or provenance record. This is where controls around provenance and signing become useful, because they help you prove that the SBOM belongs to the artefact you are shipping.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tooling patterns for SBOM generation and validation
&lt;/h2&gt;

&lt;p&gt;There is no single correct toolchain. The right choice depends on your build platform, language mix, and release process. The main requirement is that the tool can run non-interactively in CI, produce a machine-readable output, and be integrated into your release gates.&lt;/p&gt;

&lt;h3&gt;
  
  
  Using Syft, CycloneDX or SPDX in a pipeline
&lt;/h3&gt;

&lt;p&gt;Syft is a common choice for generating SBOMs from container images, directories, and archives. It can output CycloneDX or SPDX, which makes it flexible for different downstream consumers. A typical pattern in a container pipeline is to build the image, tag it with the commit SHA, and then generate the SBOM from that exact image reference.&lt;/p&gt;

&lt;p&gt;For example, a pipeline step might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;syft packages oci:registry.example.com/app:&lt;span class="nv"&gt;${GIT_SHA}&lt;/span&gt; -o cyclonedx-json &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; sbom.cdx.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is only the generation step. You should then validate the file, store it as a build artefact, and attach it to the release record. If your organisation prefers SPDX, use the same pattern but keep the output format consistent across services.&lt;/p&gt;

&lt;h3&gt;
  
  
  Validating SBOM completeness, schema and package coverage
&lt;/h3&gt;

&lt;p&gt;Validation should cover more than JSON syntax. Check the schema, required fields, and whether the SBOM covers the expected package types. For example, if your application bundles operating system packages in a container image, the SBOM should include them. If it does not, the build should fail or at least raise a high-priority warning.&lt;/p&gt;

&lt;p&gt;Many teams also add a coverage check. That means comparing the SBOM against the package manager output, the image contents, or a dependency manifest to confirm that the major components are represented. This is especially useful in polyglot repositories where one scanner may miss a language ecosystem or a vendored directory. The goal is not perfect completeness in theory, but dependable coverage in practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to fail a pipeline safely when SBOM requirements are not met
&lt;/h2&gt;

&lt;p&gt;Pipeline failure should be predictable and informative. If a build fails because the SBOM is missing, the developer should know exactly why and what to fix. A good failure message is part of the control, because it reduces the temptation to bypass the gate.&lt;/p&gt;

&lt;h3&gt;
  
  
  Hard fails for missing or malformed SBOMs
&lt;/h3&gt;

&lt;p&gt;Use hard fails for conditions that make the SBOM unusable. That includes no SBOM file, invalid schema, missing artefact linkage, or a mismatch between the SBOM and the release version. These are not minor issues. They mean the release cannot be trusted to carry the required inventory.&lt;/p&gt;

&lt;p&gt;Hard fails should be reserved for conditions that matter. If every small inconsistency blocks the pipeline, teams will start looking for ways around the control. Keep the rules strict but sensible. The objective is to stop unsafe releases, not to create friction for its own sake.&lt;/p&gt;

&lt;h3&gt;
  
  
  Soft fails, exceptions and manual approval paths
&lt;/h3&gt;

&lt;p&gt;Some situations need a softer path. A legacy service may not yet support full SBOM generation, or a third-party build step may produce incomplete metadata. In those cases, create a manual approval workflow with a time limit, named owner, and remediation plan. The exception should be visible in the pipeline logs and in whatever risk register or ticketing system you use.&lt;/p&gt;

&lt;p&gt;Do not let exceptions become permanent by accident. If you need a manual approval path, make it explicit that it is temporary and reviewed regularly. This is one of the easiest ways to keep the control practical without normalising weak practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Signing, storing and distributing SBOMs
&lt;/h2&gt;

&lt;p&gt;An SBOM is only as trustworthy as its handling after generation. If it can be altered, detached from the artefact, or lost after release, then its value drops quickly. That is why signing and storage are part of enforcement, not optional extras.&lt;/p&gt;

&lt;h3&gt;
  
  
  Attaching SBOMs to build artefacts and container images
&lt;/h3&gt;

&lt;p&gt;Where possible, attach the SBOM to the artefact itself or store it in the same release bundle. For container images, many teams store the SBOM in the registry as an attached artefact or alongside the image digest. For packaged software, include it in the release archive and in the internal artefact repository. The important thing is that the SBOM is easy to retrieve by release identifier.&lt;/p&gt;

&lt;p&gt;If you already use release manifests, include a pointer to the SBOM location. That makes it easier for support, security, and procurement teams to find the right file without searching through build logs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Using provenance and signatures to reduce tampering risk
&lt;/h3&gt;

&lt;p&gt;Signing the SBOM helps prove that it has not been changed since the build. If you also sign the artefact and record provenance, you can link the SBOM to the exact build process that produced it. That reduces the risk of tampering and makes later verification much simpler. It also supports stronger release governance, because you can show that the inventory and the artefact came from the same controlled pipeline.&lt;/p&gt;

&lt;p&gt;This is particularly useful if you are already working with signed container images or provenance records. The SBOM then becomes part of a broader trust chain rather than a standalone document.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handling third-party dependencies and transitive packages
&lt;/h2&gt;

&lt;p&gt;Third-party and transitive dependencies are where SBOM work often becomes messy. Some upstream packages have incomplete metadata, some private packages are mirrored internally, and some repositories vendor code directly into the tree. Your policy needs to account for those realities.&lt;/p&gt;

&lt;h3&gt;
  
  
  What to do when upstream metadata is incomplete
&lt;/h3&gt;

&lt;p&gt;If upstream metadata is incomplete, do not ignore it. Record the gap, decide whether it blocks release, and document the reason if you accept it. In some cases, you may need to enrich the SBOM with internal metadata or map the package to a known internal identifier. The key is traceability. You should be able to explain what the component is, where it came from, and why it was accepted.&lt;/p&gt;

&lt;p&gt;For high-risk components, incomplete metadata may justify a release hold until the issue is resolved. For lower-risk components, a warning and follow-up task may be enough. The decision should be based on business impact and exposure, not on convenience.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to treat private packages, vendored code and monorepos
&lt;/h3&gt;

&lt;p&gt;Private packages should be treated as first-class components in the SBOM, with internal source and version references. Vendored code should not disappear just because it is copied into the repository. If you ship it, it belongs in the inventory. In monorepos, define the boundary of each releasable artefact so the SBOM reflects the actual package or service being delivered.&lt;/p&gt;

&lt;p&gt;That boundary definition matters because a monorepo can contain many services, libraries, and build outputs. If you do not define the release unit clearly, your SBOMs will be noisy or incomplete. This is one reason why teams often pair SBOM enforcement with a clear software release model and dependency ownership structure.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using SBOMs to support vulnerability management
&lt;/h2&gt;

&lt;p&gt;Once SBOMs are enforced in the pipeline, they become useful operational data. They can feed vulnerability management, incident response, and supplier conversations. The value comes from using them, not just producing them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Matching SBOM contents to CVE intelligence and advisories
&lt;/h3&gt;

&lt;p&gt;When a new vulnerability is announced, compare the affected package names and versions against your SBOM inventory. This can be automated in the pipeline or in a separate security workflow. If the affected component appears in a release artefact, you know which services need review. If it does not, you can often rule out impact more quickly.&lt;/p&gt;

&lt;p&gt;This is where SBOMs and vulnerability data work well together. The SBOM tells you what you shipped, and the advisory tells you what is affected. Together they reduce guesswork. For teams already using software composition analysis, the SBOM can improve precision and help distinguish direct from transitive exposure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prioritising remediation when affected components appear in release artefacts
&lt;/h3&gt;

&lt;p&gt;Not every affected component should trigger the same response. Prioritise based on whether the vulnerable package is reachable, whether it is in a runtime path, and whether there is an exposed service boundary. A package in a test-only path is different from one in a production API. The SBOM helps you identify presence, but you still need engineering judgement to assess exploitability and business impact.&lt;/p&gt;

&lt;p&gt;That distinction is important for SMEs with limited engineering capacity. The goal is to focus effort where it matters most, not to create a long list of theoretical issues that never get fixed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Operationalising SBOM enforcement in GitHub Actions, GitLab CI or Azure DevOps
&lt;/h2&gt;

&lt;p&gt;Most teams can implement SBOM enforcement with standard CI features. The pattern is the same across platforms: run the generator, validate the output, publish the file, and fail the job if the policy is not met.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reusable pipeline jobs and policy-as-code approaches
&lt;/h3&gt;

&lt;p&gt;Use a reusable job or template so every service inherits the same control. In GitHub Actions, that may mean a composite action or reusable workflow. In GitLab CI, it may mean an included template. In Azure DevOps, it may mean a shared YAML template. The point is to avoid hand-crafted pipeline logic in every repository.&lt;/p&gt;

&lt;p&gt;Where possible, encode the policy as code. That makes reviews easier and reduces drift between teams. A policy-as-code approach can check for required artefacts, expected formats, and release conditions before the job completes. It also makes it easier to audit changes to the enforcement logic over time.&lt;/p&gt;

&lt;h3&gt;
  
  
  Secrets, permissions and runner hardening considerations
&lt;/h3&gt;

&lt;p&gt;SBOM jobs often need access to registries, artefact stores, or signing keys. Keep permissions narrow. Use short-lived credentials where possible, and avoid giving the job more access than it needs. If the pipeline signs SBOMs or publishes them to a protected repository, isolate those steps and protect the runner environment accordingly.&lt;/p&gt;

&lt;p&gt;Runner hardening matters because a compromised pipeline can tamper with artefacts, SBOMs, or provenance records. Keep build runners patched, restrict outbound network access where practical, and separate trusted release jobs from untrusted pull request jobs. If your team is already hardening CI against token theft and untrusted contributions, SBOM enforcement should sit inside that same design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common implementation mistakes to avoid
&lt;/h2&gt;

&lt;p&gt;The most common mistake is treating SBOM generation as a one-off compliance task. If the process is not part of every release, the inventory quickly becomes stale. Another mistake is allowing manual uploads without validation. That creates a gap between what the pipeline built and what the organisation thinks it shipped.&lt;/p&gt;

&lt;p&gt;Inconsistent formats are another problem. If one service emits CycloneDX JSON, another emits SPDX tag-value, and a third stores a PDF export, automation becomes brittle. Standardise early. Also avoid unchecked exceptions. If teams can bypass the gate too easily, the control will lose credibility.&lt;/p&gt;

&lt;p&gt;Finally, do not assume that generating an SBOM automatically means it is accurate. Validate it against the artefact and review the output for obvious gaps. The control should be lightweight, but it still needs engineering oversight.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical rollout plan for SMEs
&lt;/h2&gt;

&lt;p&gt;For most SMEs, the best approach is incremental. Start with one critical application and one release path. Pick a service that is representative, but not so business-critical that a few early failures would cause major disruption. Define the policy, implement generation and validation, and make sure the release team understands the failure modes.&lt;/p&gt;

&lt;p&gt;Once that works, extend the pattern to other services. Reuse the same templates, the same accepted formats, and the same exception process. If you have multiple delivery teams, publish a short internal standard so everyone knows what is required and why. That standard should cover artefact scope, SBOM format, validation rules, storage location, and exception handling.&lt;/p&gt;

&lt;p&gt;As the control matures, connect the SBOM output to vulnerability management and supplier assurance workflows. That is where the real value appears. You stop treating the SBOM as a document and start using it as operational evidence. If you are aligning software controls with broader governance or ISO 27001 work, this is also a sensible point to review how the pipeline evidence fits into your ISMS records and supplier assurance process. For organisations that want help designing that operating model, speak to a consultant.&lt;/p&gt;

&lt;p&gt;In practice, the best SBOM programme is the one your engineers can run repeatedly without special effort. Keep the policy clear, keep the tooling consistent, and keep the exceptions visible. That is usually enough to turn SBOMs from a nice-to-have into a dependable part of secure software delivery.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Do SBOM checks need to block every release?
&lt;/h3&gt;

&lt;p&gt;No. Missing, malformed or unlinked SBOMs should usually block production releases, but lower-risk issues such as incomplete upstream metadata can be handled with warnings or time-bound exceptions if you have a documented approval path.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do you enforce SBOM requirements without slowing delivery teams?
&lt;/h3&gt;

&lt;p&gt;Use reusable pipeline templates, generate the SBOM automatically from the final artefact, and keep the policy narrow and predictable. The goal is to fail only on conditions that make the SBOM unusable, not on every minor inconsistency.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Detecting Kerberoasting using Windows Event ID 4769 analysis</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 18 Nov 2026 18:02:01 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/detecting-kerberoasting-using-windows-event-id-4769-analysis-27bh</link>
      <guid>https://dev.to/clearpathsecurity/detecting-kerberoasting-using-windows-event-id-4769-analysis-27bh</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/detecting-kerberoasting-using-windows-event-id-4769-analysis/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/detecting-kerberoasting-using-windows-event-id-4769-analysis/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Kerberoasting remains one of the more practical credential attack paths in Active Directory environments because it targets service accounts rather than interactive users. The attacker does not need to break encryption in real time. Instead, they request service tickets for accounts with Service Principal Names, then work offline against the ticket material. That makes the detection problem less about blocking a single action and more about spotting unusual service ticket request patterns early enough to investigate.&lt;/p&gt;

&lt;p&gt;For defenders, Windows Event ID 4769 is the most useful starting point. It records Kerberos service ticket requests, which means it gives you visibility into who requested a ticket, for which service, from which source, and with which encryption type. In practice, that is enough to build a useful detection layer for Kerberoasting, especially when you combine it with baseline analysis and a small amount of correlation. If you already monitor other identity abuse patterns, such as &lt;a href="https://clearpathsecurity.co.uk/detecting-kerberos-and-ntlm-abuse-in-enterprise-environments/" rel="noopener noreferrer"&gt;Kerberos and NTLM abuse in enterprise environments&lt;/a&gt;, 4769 analysis fits naturally into the same detection stack.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Event ID 4769 is the key Windows log for spotting Kerberoasting because it shows service ticket requests, source context, and encryption type.&lt;/li&gt;
&lt;li&gt;The strongest detection patterns are high-volume requests, many distinct service principals, and suspicious use of legacy encryption such as RC4.&lt;/li&gt;
&lt;li&gt;False positives usually come from management hosts, service accounts, and scheduled jobs, so baseline those sources before you tune alerts.&lt;/li&gt;
&lt;li&gt;Correlate 4769 with 4768, 4770, and endpoint telemetry to confirm whether the activity matches normal authentication behaviour.&lt;/li&gt;
&lt;li&gt;Reducing RC4 exposure, tightening service account hygiene, and limiting SPN sprawl all make Kerberoasting harder to carry out.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What Kerberoasting is and why Event ID 4769 matters
&lt;/h2&gt;

&lt;p&gt;Kerberoasting is an Active Directory attack technique where an authenticated user requests Kerberos service tickets for one or more service accounts. Those tickets are then taken offline and analysed for weak passwords or weakly protected service principals. The key point for defenders is that the request itself is legitimate Kerberos behaviour. The malicious part is the volume, breadth, or context of the requests.&lt;/p&gt;

&lt;p&gt;That is why Event ID 4769 matters. It is generated when a client requests a service ticket from the Key Distribution Centre. Unlike a generic authentication failure, 4769 tells you which service was targeted and what encryption was used. Those two details are often enough to separate normal application traffic from suspicious enumeration. If you are already using a broader identity detection programme, it is worth treating 4769 as one of the core telemetry sources alongside logon and directory events.&lt;/p&gt;

&lt;p&gt;From a MITRE ATT&amp;amp;CK perspective, Kerberoasting sits in the credential access and lateral movement space, because it is usually a precursor to privilege escalation or deeper domain compromise. In a small team, the practical objective is not perfect attribution. It is to identify unusual service ticket harvesting before it becomes a password cracking exercise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Understanding Event ID 4769 fields for detection
&lt;/h2&gt;

&lt;p&gt;To make 4769 useful, you need to understand the fields that matter. The exact field names vary a little depending on whether you are reading raw Windows Event Logs, forwarding into a SIEM, or normalising through an agent, but the same core data is present.&lt;/p&gt;

&lt;p&gt;The most important fields are the service name, account name, client address, and ticket encryption type. The service name identifies the target service principal. The account name tells you which user or computer requested the ticket. The client address gives you the source host, which is useful for spotting one workstation requesting tickets for many services. The ticket encryption type tells you how the ticket was encrypted, which is often the strongest signal for Kerberoasting risk.&lt;/p&gt;

&lt;p&gt;In many environments, the ticket encryption type is where the first useful triage decision happens. Values such as 0x17, 0x12, and 0x18 are commonly discussed because they map to different Kerberos encryption algorithms. In simple terms, 0x17 is associated with RC4-HMAC, which is older and often more attractive to attackers because it can be easier to work with offline. 0x12 is associated with AES256, and 0x18 is associated with AES256-CTS-HMAC-SHA1-96 in many Windows contexts. The exact interpretation can depend on your environment and logging format, so it is better to validate the mapping in your own telemetry before you build hard rules around it.&lt;/p&gt;

&lt;p&gt;A useful operational rule is this: do not alert only on one encryption type. Alert on suspicious combinations of volume, service diversity, and encryption type. A single RC4 ticket request is not enough. A burst of RC4 requests for many service accounts from one source host is much more interesting.&lt;/p&gt;

&lt;h2&gt;
  
  
  What suspicious Kerberoasting activity looks like in 4769 data
&lt;/h2&gt;

&lt;p&gt;The most obvious pattern is high-volume service ticket requests from a single host or user. In a normal environment, a workstation may request tickets for a handful of services as a user opens applications, accesses file shares, or authenticates to internal systems. Kerberoasting activity tends to look broader and more mechanical. You may see one account requesting tickets for many service principals in a short time window, often with little sign of corresponding application use.&lt;/p&gt;

&lt;p&gt;Another common pattern is requests for many different service principals in a short period. This is especially suspicious when the services are unrelated, such as database services, application pools, and legacy line-of-business systems all being requested from the same source. That breadth is often a better indicator than raw count alone. A single busy application server can generate a lot of 4769 events, but it usually does so against a stable and predictable set of services.&lt;/p&gt;

&lt;p&gt;Look for clustering as well. If the same source host requests tickets for multiple service accounts across different departments or business units, that is worth investigating. In a small UK SME, where infrastructure is often simpler than in a large enterprise, the normal pattern is usually easier to define. That can make anomalies stand out more clearly, provided you have enough baseline data.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to distinguish Kerberoasting from normal Kerberos traffic
&lt;/h2&gt;

&lt;p&gt;The main challenge is avoiding false positives. Many legitimate systems generate a lot of 4769 events. Admin tools, service accounts, scheduled jobs, backup software, monitoring agents, and application pools can all produce dense ticket activity. The trick is to distinguish expected operational noise from unusual breadth or timing.&lt;/p&gt;

&lt;p&gt;Start by baselining known service accounts and management hosts. For example, a jump server used by administrators may legitimately request tickets for many systems. A monitoring platform may request tickets for dozens of services every few minutes. Scheduled jobs may also create regular bursts at predictable times. Those patterns should be documented and, where appropriate, allowlisted or thresholded differently.&lt;/p&gt;

&lt;p&gt;Encryption choice also changes the signal. If you still have legacy services that negotiate RC4, you will see more 0x17 traffic than you would like. That does not automatically mean Kerberoasting is underway, but it does increase the value of monitoring. If you can reduce RC4 exposure over time, the remaining RC4 traffic becomes more interesting. This is one of the reasons service account hygiene and encryption policy matter together.&lt;/p&gt;

&lt;p&gt;It is also worth checking whether the source is a user workstation, a server, or a service account. A workstation requesting tickets for many service principals is often more suspicious than a server doing the same thing, because servers usually have a narrower role. If the source is a service account, ask whether that account is meant to perform discovery or orchestration. If not, the behaviour deserves closer scrutiny.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detection logic you can implement in a SIEM
&lt;/h2&gt;

&lt;p&gt;In Microsoft Sentinel, KQL is usually the most practical way to start. The exact table depends on your ingestion path, but many teams work with SecurityEvent or a custom WindowsEvent table. The simplest useful logic is to count distinct service names per source host and user over a short time window, then flag unusually high values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SecurityEvent
| where EventID == 4769
| summarize TicketCount = count(), DistinctServices = dcount(ServiceName)
    by bin(TimeGenerated, 15m), Account, ClientAddress
| where DistinctServices &amp;gt; 10 or TicketCount &amp;gt; 25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is only a starting point. In practice, you will want to add filters for known service accounts, known management hosts, and known noisy applications. You may also want to break out RC4 requests separately:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SecurityEvent
| where EventID == 4769
| where TicketEncryptionType in ("0x17", "0x18")
| summarize RC4Tickets = count(), DistinctServices = dcount(ServiceName)
    by bin(TimeGenerated, 30m), Account, ClientAddress
| where RC4Tickets &amp;gt; 5 and DistinctServices &amp;gt; 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Splunk-style logic, the same idea applies. Group by source, user, and time window, then count distinct service principals and filter on suspicious encryption types. If you are building detections as code, a Sigma rule can express the same logic in a portable way, although you will still need backend-specific tuning for field names and aggregation. If you are already using Sigma for other Windows detections, such as building SIEM detections using Sigma rules, Kerberoasting is a good candidate for the same workflow.&lt;/p&gt;

&lt;p&gt;The main implementation point is to avoid a binary rule that fires on every RC4 ticket. That approach usually creates too much noise. A better pattern is a correlation rule that combines ticket encryption type, service diversity, and source rarity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reducing false positives in Event ID 4769 detections
&lt;/h2&gt;

&lt;p&gt;False positives are usually caused by predictable infrastructure. The first control is allowlisting, but it should be used carefully. Allowlist known service accounts and management hosts only after you have verified their behaviour over time. If you allowlist too early, you may hide the very activity you are trying to detect.&lt;/p&gt;

&lt;p&gt;Threshold tuning matters as well. A 15-minute window may be appropriate in a busy environment, but a smaller SME with fewer servers may benefit from a one-hour window because the baseline is lower and the signal is easier to see. Conversely, a high-volume environment may need per-subnet or per-application thresholds rather than a single global rule.&lt;/p&gt;

&lt;p&gt;It is also worth separating interactive users from service identities. A user account requesting a small number of tickets for a few services may be normal. A service account requesting tickets for many unrelated services from a workstation is more unusual. If your SIEM supports enrichment, add asset role, owner, and criticality so analysts can see whether the source is a server, a jump box, or a standard endpoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to check alongside 4769 for stronger confidence
&lt;/h2&gt;

&lt;p&gt;Event ID 4769 is useful, but it should not be treated in isolation. Correlating with 4768 and 4770 can help you understand whether the activity is part of a normal authentication sequence or something more unusual. 4768 shows ticket-granting ticket requests, while 4770 relates to ticket renewals. If 4769 activity appears without the expected surrounding authentication pattern, that can strengthen suspicion.&lt;/p&gt;

&lt;p&gt;Domain controller logon activity can also help. If a source host is generating many 4769 events but has little corresponding user activity, that is worth a closer look. Endpoint telemetry is equally valuable. Process creation logs, EDR telemetry, and network connections can tell you whether the source host is running administrative tools, scripts, or unusual binaries at the same time as the ticket requests.&lt;/p&gt;

&lt;p&gt;For a broader identity investigation, it can help to compare the pattern with other credential abuse detections. If you already hunt for &lt;a href="https://clearpathsecurity.co.uk/detecting-credential-theft-and-misuse-patterns-for-uk-smes/" rel="noopener noreferrer"&gt;credential theft and misuse patterns&lt;/a&gt;, you can reuse the same investigative logic: identify the source, confirm the account context, and check whether the activity aligns with the host’s normal role.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardening measures that reduce Kerberoasting exposure
&lt;/h2&gt;

&lt;p&gt;Detection is only half the job. Reducing exposure makes the detection problem easier. One of the most effective steps is to reduce or disable RC4 where feasible. If your domain and applications support stronger Kerberos encryption, moving away from legacy algorithms reduces the usefulness of captured tickets. This should be tested carefully because older applications may still depend on legacy settings.&lt;/p&gt;

&lt;p&gt;Service account hygiene is equally important. Use strong, unique passwords for service accounts, and review whether each service principal is still needed. SPN sprawl creates unnecessary attack surface because every extra service principal is another potential target. If you can consolidate services or move them to managed identities or gMSA-style patterns where appropriate, you reduce the number of credentials that can be roasted.&lt;/p&gt;

&lt;p&gt;It also helps to review privilege. Service accounts should have the minimum rights needed for their role. If a service account has excessive domain or local administrator privileges, Kerberoasting becomes more damaging because a cracked password has a larger blast radius. This is a good place to align with least privilege work already in progress, including least privilege access using IAM and RBAC principles.&lt;/p&gt;

&lt;h2&gt;
  
  
  Investigation workflow when a 4769 pattern looks suspicious
&lt;/h2&gt;

&lt;p&gt;When a 4769 pattern looks unusual, the first question is whether the source and account make sense together. Ask who owns the source host, what role it performs, and whether it is expected to request tickets for those services. Then check whether the ticket requests line up with a known job, application deployment, or admin activity window.&lt;/p&gt;

&lt;p&gt;Next, review the service principals involved. Are they business-critical, legacy, or rarely used? Are they all on the same server, or spread across multiple systems? A broad spread across unrelated services is more concerning than repeated requests for a single application.&lt;/p&gt;

&lt;p&gt;Preserve the evidence before you make changes. Export the relevant 4769 events, the surrounding 4768 and 4770 records, any correlated endpoint telemetry, and the asset metadata for the source host. If your environment supports it, capture the time window in UTC and local time so you can align with user reports and change records later. For a small team, a simple case note with timestamps, hostnames, account names, and ticket types is often enough to keep the investigation organised.&lt;/p&gt;

&lt;p&gt;If you suspect a real compromise, do not jump straight to broad remediation without understanding the scope. A service account password reset may be appropriate, but only after you have identified the affected services and any dependencies. In many cases, the immediate goal is to contain the source, preserve evidence, and determine whether the activity was a test, a misconfiguration, or an actual attack.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical monitoring checklist for small security teams
&lt;/h2&gt;

&lt;p&gt;A workable minimum setup is straightforward. Collect 4769 events from all domain controllers, retain enough history to compare current activity with prior weeks, and normalise the fields you need for analysis. At a minimum, you want account name, service name, client address, ticket encryption type, and timestamp.&lt;/p&gt;

&lt;p&gt;Build one alert for high-volume distinct service requests from a single source, and a second alert for suspicious encryption types combined with service diversity. Add exclusions for known management hosts and service accounts only after validation. Review alert volume weekly at first, then monthly once the rule is stable.&lt;/p&gt;

&lt;p&gt;Over time, tune the detection using real incidents and benign cases. If the rule is too noisy, narrow the time window, increase the distinct service threshold, or add asset role context. If it is too quiet, lower the threshold or add a second condition for rare source hosts. This kind of iterative tuning is part of normal detection engineering, not a sign that the rule is failing.&lt;/p&gt;

&lt;p&gt;Finally, document what good looks like. A short baseline note for each major service account or management host is often enough. That makes future triage faster and helps new analysts understand why a given burst of 4769 activity is expected rather than suspicious.&lt;/p&gt;

&lt;p&gt;Kerberoasting detection is rarely about one perfect indicator. It is about combining ticket request volume, service diversity, encryption type, and source context into a pattern that stands out from normal Kerberos traffic. If you get those pieces right, Event ID 4769 becomes a practical and high-value source of identity telemetry rather than just another noisy log stream.&lt;/p&gt;

&lt;p&gt;If you want help turning that into a working detection rule set, or you need support aligning identity monitoring with a broader control framework, you can speak to a consultant about a pragmatic next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What does Event ID 4769 mean in Windows?
&lt;/h3&gt;

&lt;p&gt;Event ID 4769 records a Kerberos service ticket request. It is useful for detection because it shows which account requested a ticket, which service was targeted, the source address, and the ticket encryption type.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I identify Kerberoasting from Kerberos service ticket activity?
&lt;/h3&gt;

&lt;p&gt;Look for unusual patterns such as many service ticket requests from one host or user, requests for many different service principals in a short period, and repeated use of legacy encryption types such as RC4. Correlate the activity with 4768, 4770, and endpoint telemetry before escalating.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I check whether RC4 is disabled?
&lt;/h3&gt;

&lt;p&gt;Check your domain and service account Kerberos settings, then validate the observed ticket encryption types in 4769 events. If you still see 0x17 traffic, some accounts or services are still negotiating RC4 somewhere in the environment.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>OWASP Top 10 2025 explained with code examples and fixes</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 18 Nov 2026 18:01:58 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/owasp-top-10-2025-explained-with-code-examples-and-fixes-2gnn</link>
      <guid>https://dev.to/clearpathsecurity/owasp-top-10-2025-explained-with-code-examples-and-fixes-2gnn</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/owasp-top-10-2025-explained-with-code-examples-and-fixes/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/owasp-top-10-2025-explained-with-code-examples-and-fixes/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The OWASP Top 10 remains one of the most useful ways to prioritise application security work. It is not a standard, and it is not a complete secure coding guide. It is a risk-based list of the most important classes of web application weakness that security engineers, developers, and product teams should keep in view when they design, build, test, and operate software.&lt;/p&gt;

&lt;p&gt;For UK SMEs, the value is practical. The list helps you focus limited engineering time on the weaknesses that are most likely to matter in real systems, especially where you have web apps, APIs, cloud services, and third-party dependencies. It also gives teams a common language for discussing findings from code review, SAST, DAST, penetration testing, and incident response. If you are already using secure development practices, the OWASP Top 10 can act as a prioritisation layer on top of them, not a replacement for them. For a broader secure development baseline, it is worth reading our &lt;a href="https://clearpathsecurity.co.uk/secure-software-development-why-it-matters/" rel="noopener noreferrer"&gt;overview of secure software development&lt;/a&gt; alongside this article.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the OWASP Top 10 as a prioritisation tool, not a compliance checklist, and map each category to your own architecture and delivery process.&lt;/li&gt;
&lt;li&gt;Fix broken access control, injection, and authentication issues in the service layer with explicit server-side checks, parameterised queries, and stronger session controls.&lt;/li&gt;
&lt;li&gt;Treat supply chain integrity, dependency risk, and logging as first-class application security concerns, not separate operational topics.&lt;/li&gt;
&lt;li&gt;Build OWASP coverage into design, build, test, and release stages using threat modelling, SAST, DAST, SCA, SBOMs, and signed artefacts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the OWASP Top 10 is and how to use it
&lt;/h2&gt;

&lt;p&gt;The OWASP Top 10 is best treated as a conversation starter and a triage aid. It is useful when you need to decide what to fix first, what to test more deeply, and where to invest in controls that reduce recurring risk. It is less useful if you treat it as a tick-box checklist and assume that a product is safe because it has no obvious Top 10 issues in one scan.&lt;/p&gt;

&lt;p&gt;For engineers, the right way to use it is to map each category to your own architecture. A SaaS platform with REST APIs, background jobs, and cloud storage will have different exposure from a monolithic internal line-of-business app. The same category can also show up in different ways. Broken access control might be an IDOR in an API, a missing object-level permission check in a service layer, or a privilege escalation path in an admin console.&lt;/p&gt;

&lt;p&gt;For product teams, the list is a reminder that security is not just about code quality. Some weaknesses are design problems, some are deployment problems, and some are operational problems. That is why the Top 10 works best when paired with threat modelling, secure design reviews, code review, and release-time testing. If you want a structured way to measure maturity over time, &lt;a href="https://clearpathsecurity.co.uk/using-owasp-samm-to-measure-secure-development-maturity/" rel="noopener noreferrer"&gt;OWASP SAMM&lt;/a&gt; is a useful companion framework.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed in the OWASP Top 10 for 2025
&lt;/h2&gt;

&lt;p&gt;The 2025 list continues the same broad themes as 2021, but the emphasis has shifted further towards real-world engineering patterns: API-first systems, cloud-native deployments, supply chain trust, and the operational reality of logging and detection. In practice, that means the list is less about isolated web forms and more about the full application lifecycle.&lt;/p&gt;

&lt;p&gt;That shift matters because many modern failures are not caused by a single vulnerable line of code. They arise when insecure defaults, weak identity controls, poor dependency hygiene, and incomplete telemetry combine. A secure design can still fail if the build pipeline cannot prove what was built, or if the application cannot tell you who did what after the fact.&lt;/p&gt;

&lt;p&gt;For technical teams, the main change in mindset is to think in terms of control coverage. Ask where each weakness can be introduced, where it can be detected, and where it can be prevented. That gives you a more useful view than simply asking whether a scanner found a matching issue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Broken access control
&lt;/h2&gt;

&lt;p&gt;Broken access control remains one of the most common and most damaging application issues. It appears when a user can access data or functions they should not be able to reach. In APIs, the classic pattern is object-level authorisation failure, where the application checks that a user is authenticated but does not verify that they are allowed to access the specific record.&lt;/p&gt;

&lt;p&gt;A weak pattern looks like this in pseudocode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/orders/:id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;order&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code returns any order by ID, regardless of ownership. The fix is to bind the object lookup to the authenticated principal and enforce the access rule in the service layer, not just in the UI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'/orders/:id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;authRequired&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;order&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;orders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findOne&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;accountId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;accountId&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;404&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Not found'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That pattern is better because the server enforces the rule, and the response does not reveal whether the object exists for another tenant. In more complex systems, use centralised authorisation checks, role-based access control where appropriate, and explicit policy decisions in the service layer. For broader access design patterns, our article on least privilege access using IAM and RBAC is a useful companion.&lt;/p&gt;

&lt;p&gt;In practice, engineers should test for missing object checks, forced browsing, privilege escalation, and insecure direct object references. These issues often survive code review because the code looks reasonable at a glance, especially when the UI hides the action but the API still accepts it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cryptographic failures
&lt;/h2&gt;

&lt;p&gt;Cryptographic failures usually mean data is not protected properly in transit, at rest, or in memory, or that keys and secrets are handled badly. The problem is often not the algorithm itself. It is the implementation. Common mistakes include using weak or outdated ciphers, hard-coding keys, reusing IVs or nonces incorrectly, and storing sensitive data without a clear retention or encryption strategy.&lt;/p&gt;

&lt;p&gt;A poor pattern is to invent your own encryption wrapper and reuse a static key from configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'crypto'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="k"&gt;from&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;APP_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'hex'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;iv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;alloc&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;encrypt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cipher&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createCipheriv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'aes-256-cbc'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;iv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;cipher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utf8'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'hex'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;cipher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;final&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'hex'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is fragile because the IV is fixed and CBC mode does not provide authenticated encryption by itself. A safer approach is to use a well-reviewed library or a platform service that gives you authenticated encryption, key rotation, and access control. If you must implement encryption in application code, prefer an authenticated mode such as AES-GCM and generate a fresh IV for each encryption operation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'crypto'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;encrypt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;iv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;randomBytes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cipher&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;crypto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createCipheriv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'aes-256-gcm'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;iv&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;encrypted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;concat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="n"&gt;cipher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'utf8'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;cipher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;final&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cipher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getAuthTag&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Buffer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;concat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;iv&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encrypted&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;toString&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'base64'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Transport security matters too. Use TLS for all external and internal service-to-service traffic where practical, and do not rely on network location as a control. For a more detailed treatment of secure channels, see our guide to encryption and secure channels.&lt;/p&gt;

&lt;p&gt;From a control perspective, cryptographic failures are best handled through standards-based libraries, secrets management, key lifecycle controls, and regular review of where sensitive data is stored and copied. If the application does not need to retain the data, do not encrypt it and keep it forever. Reduce the data first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Injection flaws
&lt;/h2&gt;

&lt;p&gt;Injection remains relevant because applications still build queries, commands, and templates from untrusted input. SQL injection is the best known example, but command injection, LDAP injection, and template injection follow the same basic pattern: user input is interpreted as part of a language rather than as data.&lt;/p&gt;

&lt;p&gt;Unsafe SQL construction looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sb"&gt;`SELECT * FROM users WHERE email = '${email}'`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Parameterised queries remove the ambiguity by separating code from data:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;sql&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'SELECT * FROM users WHERE email = ?'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sql&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same principle applies to shell commands. Do not concatenate user input into a command string. Use safe APIs that pass arguments separately, and avoid shell invocation unless there is no alternative. For web applications, validate input against an allow list, encode output for the target context, and keep the trust boundary clear. Our article on &lt;a href="https://clearpathsecurity.co.uk/input-validation-encoding-and-output-sanitisation-techniques-for-secure-software-development/" rel="noopener noreferrer"&gt;input validation, encoding, and output sanitisation&lt;/a&gt; goes deeper into those patterns.&lt;/p&gt;

&lt;p&gt;For technical teams, the important point is that injection is not just a coding issue. It is also a design issue. If a service accepts free-form text and passes it to a parser, query engine, or template renderer, you need to understand the downstream interpreter and the exact context in which the input will be used.&lt;/p&gt;

&lt;h2&gt;
  
  
  Insecure design
&lt;/h2&gt;

&lt;p&gt;Insecure design is where the application behaves as intended, but the intended behaviour is unsafe. This is why code review alone will not catch it. A system can be perfectly implemented and still fail because it lacks rate limiting, abuse-case handling, workflow validation, or trust boundaries between components.&lt;/p&gt;

&lt;p&gt;Examples include password reset flows that reveal account existence, approval workflows that can be bypassed by changing state directly, or business logic that assumes a user will only ever submit one request at a time. These are not syntax errors. They are design assumptions.&lt;/p&gt;

&lt;p&gt;The right response is threat modelling and abuse-case testing. Start with the data flow, identify trust boundaries, and ask how an attacker could misuse each step. Techniques such as STRIDE or attack trees are useful here, but the key is to make the exercise concrete. Ask what happens if a request is replayed, if a token is stolen, if a workflow step is skipped, or if a background job is triggered out of sequence.&lt;/p&gt;

&lt;p&gt;For SMEs, the practical outcome should be a short list of design controls that are enforced consistently: rate limits, state validation, step-up authentication for sensitive actions, server-side workflow checks, and explicit authorisation at each sensitive transition. If you want a structured way to embed this into architecture reviews, our guide to secure design reviews and architecture checkpoints is a useful reference.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security misconfiguration
&lt;/h2&gt;

&lt;p&gt;Security misconfiguration covers unsafe defaults, unnecessary services, overly permissive headers, debug features left on, and cloud or platform settings that expose more than intended. In modern environments, this can be as simple as a storage bucket with public access, a container running as root, or an API that returns verbose error messages in production.&lt;/p&gt;

&lt;p&gt;A common example is a framework running in debug mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'env'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'development'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;use&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;errorHandler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;exposeStack&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That may be fine in local development, but it is risky in production because it can leak stack traces, internal paths, and implementation details. A safer pattern is to separate configuration by environment and make secure defaults the norm:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;isProd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;NODE_ENV&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'production'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'env'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;isProd&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s1"&gt;'production'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'development'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;use&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;errorHandler&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;exposeStack&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;isProd&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Configuration hardening should also cover HTTP security headers, CORS policy, container runtime settings, infrastructure as code, and cloud IAM. The goal is to remove unnecessary exposure and make insecure states harder to deploy accidentally. Where possible, enforce this in CI and deployment pipelines rather than relying on manual review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vulnerable and outdated components
&lt;/h2&gt;

&lt;p&gt;Most teams depend on third-party packages, base images, and platform components. That is normal. The risk comes from untracked dependencies, transitive dependencies, and patch lag. A package may appear safe at the top level while pulling in a vulnerable library several layers deep.&lt;/p&gt;

&lt;p&gt;Good practice starts with version pinning, dependency review, and software composition analysis. Use a lockfile, keep direct dependencies minimal, and review updates before they reach production. An SBOM, or software bill of materials, helps you understand what is actually in the build. For a practical approach to dependency risk, see our article on managing dependency risk and transitive dependencies.&lt;/p&gt;

&lt;p&gt;A simple operational pattern is to combine three controls:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run SCA in CI to identify known vulnerable packages.&lt;/li&gt;
&lt;li&gt;Generate an SBOM for each release so you can trace what shipped.&lt;/li&gt;
&lt;li&gt;Use dependency update automation with human review for higher-risk changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That combination will not eliminate supply chain risk, but it gives you visibility and a repeatable remediation path. It also helps when you need to answer customer or assurance questions about what is in a release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Identification and authentication failures
&lt;/h2&gt;

&lt;p&gt;Authentication failures include weak password handling, poor session management, missing MFA for sensitive actions, insecure password reset flows, and token handling mistakes. The issue is not just whether a user can log in. It is whether the application can reliably prove identity and maintain that identity safely across requests.&lt;/p&gt;

&lt;p&gt;A weak session pattern is to store a long-lived token in a place that is easy to steal, or to accept a token without checking expiry, audience, or revocation state. A safer approach is to use short-lived access tokens, secure cookie flags where cookies are used, and server-side session controls for sensitive applications. For browser-based systems, set HttpOnly, Secure, and SameSite attributes appropriately, and avoid exposing tokens to JavaScript unless you have a clear reason and compensating controls.&lt;/p&gt;

&lt;p&gt;Authentication flows should also protect against enumeration and brute force. Return generic error messages, rate limit login and reset endpoints, and step up to MFA for risky actions. If your application supports administrative functions, separate those flows from standard user sessions and require stronger assurance for privileged access.&lt;/p&gt;

&lt;p&gt;In code, the fix is often not a single line. It is a set of guardrails around the whole flow: password policy, reset token expiry, session invalidation on password change, MFA enforcement, and logging of suspicious authentication events.&lt;/p&gt;

&lt;h2&gt;
  
  
  Software and data integrity failures
&lt;/h2&gt;

&lt;p&gt;Integrity failures happen when the application or build pipeline trusts code, artefacts, or updates that have not been properly verified. This includes unsigned packages, tampered build outputs, compromised CI jobs, and update mechanisms that accept untrusted content.&lt;/p&gt;

&lt;p&gt;For engineering teams, this is where build provenance and artefact signing become important. You want to know what source was used, what build process created the artefact, and whether the artefact was altered after the build. That is especially relevant for container images and release bundles. Our guide to signing and verifying container images shows one practical route, and our article on SLSA build provenance explains how to strengthen build trust further.&lt;/p&gt;

&lt;p&gt;A useful control pattern is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Build in a controlled CI environment.&lt;/li&gt;
&lt;li&gt;Sign the artefact and attach provenance metadata.&lt;/li&gt;
&lt;li&gt;Verify signatures before deployment.&lt;/li&gt;
&lt;li&gt;Restrict who can modify pipeline definitions and release credentials.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is one of the clearest examples of the OWASP Top 10 reaching beyond application code into the software supply chain. If your pipeline cannot prove integrity, the application inherits that weakness.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security logging and monitoring failures
&lt;/h2&gt;

&lt;p&gt;Logging and monitoring failures are often overlooked because they do not create an immediate visible defect. The problem appears later, when you need to investigate suspicious activity and discover that the application did not log enough detail, logged the wrong detail, or logged it in a way that is hard to search.&lt;/p&gt;

&lt;p&gt;At minimum, log authentication events, authorisation failures, privilege changes, sensitive data access, workflow anomalies, and security-relevant configuration changes. Make sure logs include a stable user identifier, a request identifier, the source IP or network context where appropriate, and the outcome of the action. Do not log secrets or full payment data. Log enough to investigate, not enough to create a new data exposure.&lt;/p&gt;

&lt;p&gt;A practical pattern is to emit structured JSON logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;logger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;info&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;event&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'order_access_denied'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;userId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;accountId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;accountId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;orderId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'ownership_mismatch'&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is more useful than a free-text message because it can be queried in a SIEM and correlated with other events. If you are building detection content, think about what should trigger an alert versus what should remain as searchable telemetry. For broader monitoring design, our article on what security logs you actually need is a good companion.&lt;/p&gt;

&lt;p&gt;From a defensive standpoint, logging is only valuable if someone reviews it, or if detections are built on top of it. That means you need retention, alerting, and a clear ownership model for response.&lt;/p&gt;

&lt;h2&gt;
  
  
  Server-side request forgery and other modern web risks
&lt;/h2&gt;

&lt;p&gt;Server-side request forgery, or SSRF, is especially relevant in cloud and API-heavy systems. It occurs when an application fetches a URL supplied by a user or another system without properly restricting where the request can go. The result can be access to internal services, metadata endpoints, or other resources that should not be reachable from the application tier.&lt;/p&gt;

&lt;p&gt;A weak pattern is to accept any URL and fetch it directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is dangerous because the application becomes a proxy for arbitrary outbound requests. A safer pattern is to use an allow list of destinations, validate scheme and host, resolve and check the final target, and block access to internal address ranges and metadata services. You should also set timeouts, limit redirects, and use a separate egress policy at the network layer where possible.&lt;/p&gt;

&lt;p&gt;SSRF is a good example of why application controls and platform controls need to work together. Input validation alone is not enough if the runtime can still reach internal systems freely. Likewise, network filtering alone is not enough if the application can be tricked into using an approved proxy path.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to prioritise remediation in a real engineering backlog
&lt;/h2&gt;

&lt;p&gt;Not every finding deserves the same treatment. A useful triage model combines severity, exploitability, exposure, and business impact. A broken access control issue on a customer-facing API with sensitive records should usually outrank a low-risk misconfiguration in an internal tool. A cryptographic issue that affects authentication tokens is more urgent than one that affects non-sensitive cached data.&lt;/p&gt;

&lt;p&gt;When you triage, map the issue to the underlying weakness class using CWE where possible, and use CVE data for third-party components. If the issue resembles a known attack pattern, map it to MITRE ATT&amp;amp;CK to help security operations understand how it might be abused in the wider environment. That is particularly useful when the same weakness could support multiple attack stages.&lt;/p&gt;

&lt;p&gt;For example, broken access control may support initial data access, privilege escalation, or lateral movement depending on the system. Logging failures may not be directly exploitable, but they increase dwell time and reduce confidence in detection. This is why remediation should be risk-based, not purely score-based.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to build OWASP Top 10 coverage into SDLC and DevSecOps
&lt;/h2&gt;

&lt;p&gt;The most effective way to reduce Top 10 risk is to build checks into the delivery process rather than relying on a final test phase. In design, use threat modelling and architecture review. In build, use SAST, secret scanning, dependency scanning, and policy checks. In test, use DAST, API testing, and abuse-case testing. In release, verify artefacts, review configuration, and enforce deployment gates. In operations, monitor for abuse and feed findings back into the backlog.&lt;/p&gt;

&lt;p&gt;For a growing team, a practical baseline might look like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pre-commit secret scanning for obvious credential leaks.&lt;/li&gt;
&lt;li&gt;SAST on every merge request for common coding flaws.&lt;/li&gt;
&lt;li&gt;SCA and SBOM generation on every build.&lt;/li&gt;
&lt;li&gt;DAST or API security testing against a staging environment.&lt;/li&gt;
&lt;li&gt;Signed artefacts and provenance checks before deployment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That does not need to be over-engineered. The key is consistency. If a control only runs occasionally, it will miss the defects that matter most. If it runs automatically and produces actionable output, it becomes part of the engineering workflow rather than a separate security event.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical checklist for teams adopting the OWASP Top 10 2025
&lt;/h2&gt;

&lt;p&gt;Start with the highest-value controls rather than trying to cover everything at once. In the next sprint, you can usually make meaningful progress by doing the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Review all object-level authorisation checks in customer-facing APIs.&lt;/li&gt;
&lt;li&gt;Replace any string-built SQL or shell execution with parameterised or safe APIs.&lt;/li&gt;
&lt;li&gt;Confirm that production environments do not expose debug mode, verbose errors, or unsafe defaults.&lt;/li&gt;
&lt;li&gt;Generate an SBOM for the current release and identify the highest-risk dependencies.&lt;/li&gt;
&lt;li&gt;Verify that authentication flows have MFA, rate limiting, and generic error handling.&lt;/li&gt;
&lt;li&gt;Check that logs capture security-relevant events in a structured format.&lt;/li&gt;
&lt;li&gt;Require signed artefacts or at least controlled provenance for production deployments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Over time, track a small set of metrics: time to remediate high-risk findings, percentage of builds with SCA and SBOM coverage, number of production misconfigurations caught before release, and the proportion of critical endpoints with explicit authorisation tests. Those measures are more useful than a generic security score because they show whether the team is actually reducing risk.&lt;/p&gt;

&lt;p&gt;For UK SMEs, the aim is not to become perfect. It is to make the most common and most damaging weaknesses harder to introduce, easier to detect, and quicker to fix. If you need help turning the OWASP Top 10 into a practical engineering backlog, or aligning it with an ISO 27001-oriented ISMS and delivery process, speak to a consultant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is OWASP Top 10 in simple terms?&lt;/strong&gt; It is a shortlist of the most important classes of web application security risk, used to help teams focus on the weaknesses that matter most in real systems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What changed in the OWASP Top 10 for 2025?&lt;/strong&gt; The 2025 emphasis is even more practical for modern delivery environments, with stronger attention on APIs, cloud deployments, supply chain integrity, and operational detection rather than just classic web form issues.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is the OWASP Top 10 a secure coding standard?&lt;/strong&gt; No. It is a prioritisation guide. It helps teams decide what to fix and test first, but it should be used alongside secure coding standards, threat modelling, and control frameworks such as ASVS and SAMM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How should SMEs use the OWASP Top 10 alongside ASVS and SAMM?&lt;/strong&gt; Use the Top 10 to identify the main risk areas, ASVS to define control depth for applications, and SAMM to measure whether your secure development practice is improving over time.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>IEC 62443-3-2 risk assessment and zone partitioning worked example</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:06:02 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/iec-62443-3-2-risk-assessment-and-zone-partitioning-worked-example-15of</link>
      <guid>https://dev.to/clearpathsecurity/iec-62443-3-2-risk-assessment-and-zone-partitioning-worked-example-15of</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/iec-62443-3-2-risk-assessment-and-zone-partitioning-worked-example/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/iec-62443-3-2-risk-assessment-and-zone-partitioning-worked-example/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;IEC 62443-3-2 is one of the most useful parts of the IEC 62443 series when you need to turn an OT security conversation into an engineering decision. It is the point where you stop talking in generalities about industrial cyber risk and start deciding which assets belong together, which communications are acceptable, and what level of protection each part of the environment actually needs.&lt;/p&gt;

&lt;p&gt;For many UK SMEs, that sounds more formal than the reality on the ground. The plant may be small, the team may be lean, and the control environment may include a mix of modern PLCs, older HMIs, vendor laptops, and a historian that has been in place for years. In that setting, a worked example is often more valuable than a theoretical explanation. It shows how the assessment drives segmentation, access control, and monitoring choices that can be implemented without redesigning the whole site.&lt;/p&gt;

&lt;p&gt;This article focuses on the practical side of &lt;a href="https://clearpathsecurity.co.uk/zone-and-conduit-modelling-under-iec-62443-a-practical-guide-for-uk-smes/" rel="noopener noreferrer"&gt;zone and conduit modelling under IEC 62443&lt;/a&gt;, but with the emphasis on the risk assessment step that sits behind the model. If you already understand the basics of IEC 62443, the aim here is to show how to apply them in a way that is repeatable and defensible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start with the process and the trust boundaries, then let the zone model follow the risk rather than the other way round.&lt;/li&gt;
&lt;li&gt;Keep zones function-based and risk-based, not organisational, so that assets with different exposure and change profiles are not grouped together unnecessarily.&lt;/li&gt;
&lt;li&gt;Treat conduits as controlled communication paths with explicit rules, logging, and access conditions, especially for remote support.&lt;/li&gt;
&lt;li&gt;Use the assessment to create an implementation backlog, not just a diagram, and review it after plant or supplier changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why IEC 62443-3-2 matters in practice
&lt;/h2&gt;

&lt;p&gt;IEC 62443-3-2 is about defining the system under consideration, identifying risk, and using that risk to derive zone and conduit requirements. In plain terms, it helps you answer three questions: what are we protecting, what could go wrong, and how should the environment be divided so that the most important functions are not exposed to unnecessary risk?&lt;/p&gt;

&lt;p&gt;That matters because OT environments are not designed like office IT. Availability is often more important than rapid change. Legacy protocols may not support strong authentication. Some equipment cannot be patched frequently. And remote support, if it exists, is often a business requirement rather than a convenience. A useful assessment therefore has to reflect operational reality, not just ideal security architecture.&lt;/p&gt;

&lt;p&gt;It also helps avoid a common mistake: drawing zones first and then trying to justify them afterwards. The better approach is to start with process and risk, then let the zone model follow. That is the same risk-led logic used in &lt;a href="https://clearpathsecurity.co.uk/risk-assessment-and-treatment-under-iso-27001-explained/" rel="noopener noreferrer"&gt;risk assessment and treatment under ISO 27001&lt;/a&gt;, although the OT context adds constraints around safety, uptime, and physical process continuity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Starting point: define the industrial scope and assumptions
&lt;/h2&gt;

&lt;p&gt;Begin by deciding what is in scope. For a small manufacturing site, that might be one production line, one packaging cell, or one workshop with a handful of machines. Do not start with the whole company unless that is genuinely the right boundary. The scope should be specific enough to model, but broad enough to include the systems that influence the process.&lt;/p&gt;

&lt;p&gt;In a first pass, capture the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The process being supported, such as mixing, filling, packaging, or material handling.&lt;/li&gt;
&lt;li&gt;The business objective of the process, such as throughput, quality, traceability, or safety.&lt;/li&gt;
&lt;li&gt;The key assumptions, such as 24/7 operation, limited maintenance windows, or reliance on vendor support.&lt;/li&gt;
&lt;li&gt;The main constraints, including legacy equipment, safety interlocks, and any regulatory or contractual obligations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, assume a UK food manufacturer runs one packaging line with a PLC controlling conveyors, a local HMI for operators, an engineering workstation used by maintenance staff, a historian collecting production data, and a remote support path used by the machine supplier. The line must keep running during business hours, and any security change that risks downtime needs careful scheduling.&lt;/p&gt;

&lt;p&gt;At this stage, write down what is out of scope too. If the corporate office network, cloud ERP, or other plant lines are not part of the assessment, say so. Clear boundaries reduce confusion later when you decide where a zone begins and ends.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build a usable asset and communication inventory
&lt;/h2&gt;

&lt;p&gt;The next step is to identify the assets that actually matter to the process. A useful inventory is not a procurement list. It is a map of the components that exchange data, make control decisions, or provide access to those functions.&lt;/p&gt;

&lt;p&gt;For the example line, the inventory might include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PLC controlling the packaging sequence.&lt;/li&gt;
&lt;li&gt;Safety controller or safety relay, if present.&lt;/li&gt;
&lt;li&gt;Operator HMI on the line.&lt;/li&gt;
&lt;li&gt;Engineering workstation used for configuration and diagnostics.&lt;/li&gt;
&lt;li&gt;Historian or local data collector.&lt;/li&gt;
&lt;li&gt;Industrial switch or switches connecting the cell.&lt;/li&gt;
&lt;li&gt;Remote access appliance, jump host, or vendor VPN endpoint.&lt;/li&gt;
&lt;li&gt;Any interface to MES, ERP, or quality systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then map the communications. Note which systems talk to each other, what protocol they use, and whether the traffic is periodic, event-driven, or ad hoc. For OT, protocol detail matters because it often determines what can be inspected, filtered, or authenticated. If you need a broader view of protocol-specific monitoring, the article on monitoring OT protocols such as Modbus and DNP3 for anomalies is a useful companion piece, even if your environment uses a different protocol family.&lt;/p&gt;

&lt;p&gt;A simple communication table might look like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HMI to PLC: control and status updates on the local cell network.&lt;/li&gt;
&lt;li&gt;Engineering workstation to PLC: configuration, diagnostics, and firmware maintenance.&lt;/li&gt;
&lt;li&gt;PLC to historian: production counts and alarms.&lt;/li&gt;
&lt;li&gt;Remote vendor access to engineering workstation: support sessions during maintenance windows.&lt;/li&gt;
&lt;li&gt;Historian to MES or reporting platform: batch or scheduled data transfer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not overcomplicate the first version. The goal is to identify trust relationships and dependencies, not to model every packet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Group assets into zones based on risk and function
&lt;/h2&gt;

&lt;p&gt;Once you understand the process and the communications, group assets into zones. A zone is a set of assets that share similar security requirements and trust assumptions. The grouping should be based on function, impact, and exposure, not on who owns the equipment or which department manages it.&lt;/p&gt;

&lt;p&gt;For the example packaging line, a sensible first cut might be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Safety zone: safety controller, safety relays, and any components directly tied to safe shutdown.&lt;/li&gt;
&lt;li&gt;Control zone: PLCs and the devices that directly control the process.&lt;/li&gt;
&lt;li&gt;Supervisory zone: HMI, historian, and engineering workstation if it is used for line support.&lt;/li&gt;
&lt;li&gt;Remote access zone: jump host or remote support appliance used by internal staff or vendors.&lt;/li&gt;
&lt;li&gt;Enterprise interface zone: interface to MES, reporting, or other business systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is where many teams benefit from comparing the model with the Purdue structure. The Purdue model is not a standard in itself, but it remains a practical reference for thinking about industrial layering. If you want to see how that layering maps to IEC 62443 zones, the article on &lt;a href="https://clearpathsecurity.co.uk/segmenting-ot-networks-with-the-purdue-model-and-iec-62443-zones/" rel="noopener noreferrer"&gt;segmenting OT networks with the Purdue model and IEC 62443 zones&lt;/a&gt; gives a useful architectural view.&lt;/p&gt;

&lt;p&gt;When grouping assets, use consistent criteria. For example, place systems together only if they have similar availability requirements, similar trust levels, and similar exposure to change. Do not put the historian in the same zone as the PLC just because they sit in the same cabinet. The historian is usually more exposed, more changeable, and more likely to need connectivity beyond the cell.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define conduits and the controls that sit between zones
&lt;/h2&gt;

&lt;p&gt;Conduits are the communication paths between zones. Once the zones are defined, the next question is which paths are allowed, under what conditions, and with what controls. This is where the risk assessment becomes operational.&lt;/p&gt;

&lt;p&gt;For each conduit, decide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether the communication is necessary.&lt;/li&gt;
&lt;li&gt;Which direction the traffic should flow.&lt;/li&gt;
&lt;li&gt;Whether the path is permanent or only enabled for maintenance.&lt;/li&gt;
&lt;li&gt;What inspection, authentication, or logging is required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Typical controls include industrial firewalls, jump hosts, protocol-aware inspection, one-way transfer mechanisms where appropriate, and tightly controlled remote access. In some cases, network address translation or port restrictions may be enough. In others, you may need application-layer filtering or a dedicated remote support workflow.&lt;/p&gt;

&lt;p&gt;For the example line, the conduit between the remote access zone and the supervisory zone might require a jump host, MFA for the remote user, session logging, and time-bound approval. The conduit between the control zone and the enterprise interface zone might allow only historian traffic on specific ports, with no direct access from the corporate network to the PLCs.&lt;/p&gt;

&lt;p&gt;Keep the control choice proportional to the risk. A small site does not need a complex architecture if a simpler design achieves the same outcome. The point is to reduce unnecessary trust, not to create a maze of devices that nobody can maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Work through a simple zone partitioning example
&lt;/h2&gt;

&lt;p&gt;Here is a worked example for a small manufacturing environment. Assume the site has one production cell with a PLC, an HMI, an engineering workstation, a historian, and a vendor support path.&lt;/p&gt;

&lt;p&gt;First, identify the highest-value functions. In this case, the PLC and safety functions are critical because they control the process and protect people and equipment. The HMI is important because operators need visibility and control. The engineering workstation is powerful because it can change logic, recipes, and configuration. The historian is important for traceability, but it does not need the same level of trust as the PLC.&lt;/p&gt;

&lt;p&gt;Now assign zones:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zone 1, safety: safety controller and related safety components.&lt;/li&gt;
&lt;li&gt;Zone 2, control: PLC and any tightly coupled control devices.&lt;/li&gt;
&lt;li&gt;Zone 3, operations: HMI and operator-facing support systems.&lt;/li&gt;
&lt;li&gt;Zone 4, engineering: engineering workstation, but only if it is not used for general office work.&lt;/li&gt;
&lt;li&gt;Zone 5, data exchange: historian and any interface to business systems.&lt;/li&gt;
&lt;li&gt;Zone 6, remote support: vendor access path, isolated from direct plant control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then define the conduits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Operations to control: HMI to PLC, limited to required control and status traffic.&lt;/li&gt;
&lt;li&gt;Engineering to control: maintenance access, enabled only when needed and logged.&lt;/li&gt;
&lt;li&gt;Control to data exchange: historian collection, restricted to specific data flows.&lt;/li&gt;
&lt;li&gt;Remote support to engineering: vendor access via jump host, not direct access to the PLC.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This model is not perfect, but it is usable. It gives you a basis for firewall rules, remote access design, and monitoring priorities. It also makes it easier to explain to operations staff why some connections are allowed and others are not.&lt;/p&gt;

&lt;p&gt;If remote support is required, the model should change rather than be ignored. A vendor VPN that lands directly on the engineering workstation is usually too much trust. A better pattern is a dedicated remote access zone with a jump host, session recording, and explicit approval for access windows. That reduces the blast radius if credentials are misused or a vendor account is compromised.&lt;/p&gt;

&lt;h2&gt;
  
  
  Assess threats, impact, and likelihood for each zone
&lt;/h2&gt;

&lt;p&gt;IEC 62443-3-2 expects you to consider risk in a structured way. You do not need a heavyweight quantitative model to make progress. A repeatable qualitative method is often enough, provided it is documented and applied consistently.&lt;/p&gt;

&lt;p&gt;For each zone and conduit, consider the main threat scenarios. In a small OT environment, the most common practical scenarios are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unauthorised access through remote support or weak credentials.&lt;/li&gt;
&lt;li&gt;Malware spreading from IT into OT through shared systems or removable media.&lt;/li&gt;
&lt;li&gt;Misconfiguration or accidental change by an authorised user.&lt;/li&gt;
&lt;li&gt;Loss of availability caused by a network fault, patching issue, or overloaded device.&lt;/li&gt;
&lt;li&gt;Process disruption caused by unauthorised logic changes or command injection into control traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Score impact and likelihood in a simple matrix. For example, unauthorised access to the engineering workstation may have high impact because it can alter PLC logic, but the likelihood may depend on whether the workstation is isolated, whether MFA is used, and whether vendor access is tightly controlled. Malware spread from the office network may be less likely if the OT environment is segmented, but the impact could still be high if a shared file server or USB workflow bridges the gap.&lt;/p&gt;

&lt;p&gt;The important point is not the exact score. It is the reasoning behind it. If the team can explain why a conduit is high risk, the control decision becomes much easier to justify and maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set security level targets and justify them
&lt;/h2&gt;

&lt;p&gt;Security level targets translate the risk assessment into an expected level of resilience for each zone or conduit. They should reflect the consequences of compromise, the exposure of the asset, and the practical ability to implement controls.&lt;/p&gt;

&lt;p&gt;In a small plant, you may decide that the control zone needs a higher target than the data exchange zone because compromise of the PLC would directly affect production and possibly safety. The engineering zone may also need a high target because it can change the behaviour of the process. The historian may need a lower target than the control zone, but still enough protection to prevent it becoming a pivot point.&lt;/p&gt;

&lt;p&gt;Where you cannot meet the target immediately, record the gap and the compensating controls. For example, if an older PLC cannot support strong authentication, you may compensate with strict network isolation, limited access paths, and enhanced monitoring. That is not the same as eliminating the risk, but it is a practical way to reduce exposure while planning a longer-term replacement.&lt;/p&gt;

&lt;p&gt;This is also where it helps to align the assessment with a broader architecture method. A risk-driven structure such as &lt;a href="https://clearpathsecurity.co.uk/sabsa-framework-for-risk-driven-security-architecture-a-practical-guide-for-uk-smes/" rel="noopener noreferrer"&gt;SABSA framework for risk-driven security architecture&lt;/a&gt; can help you keep the business objective, risk, and control design connected, rather than treating the OT model as a standalone diagram.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn the assessment into an implementation backlog
&lt;/h2&gt;

&lt;p&gt;A good assessment should produce work, not just documentation. Convert the findings into an implementation backlog with owners, priorities, and dependencies.&lt;/p&gt;

&lt;p&gt;Useful backlog items might include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separate the engineering workstation from general office use.&lt;/li&gt;
&lt;li&gt;Place the historian in its own zone with tightly scoped data flows.&lt;/li&gt;
&lt;li&gt;Introduce a jump host for vendor support.&lt;/li&gt;
&lt;li&gt;Restrict PLC access to approved management stations only.&lt;/li&gt;
&lt;li&gt;Enable logging on firewalls and remote access devices.&lt;/li&gt;
&lt;li&gt;Review protocol exposure and remove unused services.&lt;/li&gt;
&lt;li&gt;Document maintenance windows and access approval steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sequence the work sensibly. Quick wins often include access control changes, firewall rule tightening, and remote access redesign. Longer-term work may involve replacing legacy devices, redesigning the cell network, or introducing protocol-aware inspection. If you need to justify the effort, frame it in terms of reduced downtime risk, easier troubleshooting, and lower chance of accidental change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validate the design and keep it current
&lt;/h2&gt;

&lt;p&gt;Zone models go stale quickly if they are not maintained. A new vendor, a line upgrade, a temporary bypass, or a change in data flow can invalidate the original assumptions. That is why validation matters as much as the initial design.&lt;/p&gt;

&lt;p&gt;Check the model against reality by asking a few simple questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Do the documented zones still match the live network?&lt;/li&gt;
&lt;li&gt;Are there any direct connections that bypass the intended conduits?&lt;/li&gt;
&lt;li&gt;Has remote access changed since the last review?&lt;/li&gt;
&lt;li&gt;Have any new assets been added without being classified?&lt;/li&gt;
&lt;li&gt;Are logs and alerts available for the most important conduits?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Review the assessment after plant changes, supplier changes, incidents, or significant maintenance work. Even a small change, such as a new remote support tool, can alter the trust model enough to require a fresh look. The best OT security teams treat the zone diagram as a living engineering artefact, not a one-off deliverable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes to avoid
&lt;/h2&gt;

&lt;p&gt;The most common mistake is creating zones that are too broad. If a zone contains assets with very different trust levels, the weakest asset tends to set the standard for the whole group. That makes the zone less useful and can hide risk.&lt;/p&gt;

&lt;p&gt;The second mistake is treating the diagram as the end of the exercise. A neat drawing is not a control. The value comes from the rules, restrictions, and monitoring that follow from it.&lt;/p&gt;

&lt;p&gt;Other mistakes include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ignoring vendor access because it is inconvenient to model.&lt;/li&gt;
&lt;li&gt;Allowing direct office-to-PLC connectivity for convenience.&lt;/li&gt;
&lt;li&gt;Assuming older equipment can be protected by patching alone.&lt;/li&gt;
&lt;li&gt;Failing to document why a conduit exists.&lt;/li&gt;
&lt;li&gt;Not revisiting the model after operational changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are avoidable issues if the assessment is run as a practical engineering exercise rather than a paperwork task.&lt;/p&gt;

&lt;p&gt;For teams that are still building their OT security baseline, it can also help to compare the model with broader organisational risk work, such as the approach described in &lt;a href="https://clearpathsecurity.co.uk/defining-and-documenting-risk-appetite-for-small-and-medium-businesses-smbs/" rel="noopener noreferrer"&gt;defining and documenting risk appetite&lt;/a&gt;. The language is different, but the discipline of making risk decisions explicit is the same.&lt;/p&gt;

&lt;p&gt;In summary, IEC 62443-3-2 is most valuable when it helps you make concrete decisions about segmentation, access, and monitoring. A good worked example starts with the process, identifies the assets and flows that matter, groups them into sensible zones, and then defines conduits and controls that reflect real operational constraints. If you can explain why each zone exists and what risk it is designed to contain, you are already doing the standard the way it was intended.&lt;/p&gt;

&lt;p&gt;If you would like help turning an OT risk assessment into a practical segmentation plan, Speak to a consultant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How is IEC 62443-3-2 different from zone and conduit modelling?
&lt;/h3&gt;

&lt;p&gt;IEC 62443-3-2 is the risk assessment step that informs the model. Zone and conduit modelling is the architectural output, while 3-2 helps you decide how to partition the environment and what controls each path needs.&lt;/p&gt;

&lt;h3&gt;
  
  
  What should a small team include in a first-pass zone partitioning exercise?
&lt;/h3&gt;

&lt;p&gt;Include the process scope, key assets, communication flows, remote access paths, safety dependencies, and the main constraints such as uptime, legacy equipment, and maintenance windows. That is usually enough to produce a useful first model.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Initial access techniques and how to detect each one</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:05:59 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/initial-access-techniques-and-how-to-detect-each-one-m1l</link>
      <guid>https://dev.to/clearpathsecurity/initial-access-techniques-and-how-to-detect-each-one-m1l</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/initial-access-techniques-and-how-to-detect-each-one/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/initial-access-techniques-and-how-to-detect-each-one/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Initial access is the point where an attacker first gets a foothold in your environment. In practice, that foothold might come from a stolen password, a malicious email, a vulnerable VPN appliance, a public-facing web application, or a trusted third party. For defenders, the important question is not just how the access happened, but what telemetry should have exposed it early enough to contain it.&lt;/p&gt;

&lt;p&gt;For UK SMEs, initial access is often the hardest stage to spot because it can look like normal business activity. A user signs in from a new device, a supplier account connects through a remote support tool, or a web form receives a burst of requests. None of those events is automatically malicious. The value comes from correlating identity, email, endpoint, proxy, DNS, firewall, and application data so that small anomalies become visible before they turn into broader compromise.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Initial access should be detected across identity, email, endpoint, network, and application layers rather than treated as a single control problem.&lt;/li&gt;
&lt;li&gt;The strongest detections usually combine weak signals, such as unusual sign-ins, mailbox changes, and endpoint activity, with baseline and exposure context.&lt;/li&gt;
&lt;li&gt;Phishing, credential abuse, exposed remote services, web entry points, and trusted third-party access each need different telemetry and alert logic.&lt;/li&gt;
&lt;li&gt;If logging is limited, prioritise identity, email, endpoint, VPN, and reverse proxy data because they provide the earliest and most actionable clues.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What initial access means in the attack chain
&lt;/h2&gt;

&lt;p&gt;In MITRE ATT&amp;amp;CK terms, initial access sits near the start of the intrusion lifecycle, before the attacker establishes persistence, moves laterally, or exfiltrates data. That distinction matters because the telemetry available at this stage is usually noisier and less conclusive than later-stage indicators. You are often looking for weak signals: a suspicious sign-in, an unusual mailbox rule, a remote login from an unexpected geography, or a web request pattern that does not fit the application’s normal use.&lt;/p&gt;

&lt;p&gt;It also means your detection strategy should be broader than a single control. Email security, identity protection, endpoint detection and response, web application logging, and network monitoring all contribute different pieces of the picture. If you only watch one layer, you will miss the others.&lt;/p&gt;

&lt;h2&gt;
  
  
  The main initial access techniques defenders should expect
&lt;/h2&gt;

&lt;p&gt;The most common techniques seen in SME environments tend to fall into four groups. First, phishing, credential theft, and token abuse, where the attacker persuades a user to hand over access or steals an existing session. Second, exposed remote services such as VPN, RDP, SSH, or remote management tools. Third, public-facing applications and web entry points, including login portals, file upload features, and APIs. Fourth, supply chain and trusted third-party access, where the attacker abuses a partner account, integration, or support channel.&lt;/p&gt;

&lt;p&gt;These categories map well to ATT&amp;amp;CK and are useful for building detections because each one leaves a different trail. For example, phishing often shows up in email and identity logs, while exposed services are more likely to surface in authentication logs, firewall data, and endpoint telemetry. Web entry points need application and reverse proxy visibility, and third-party abuse often requires careful baseline work around service accounts and delegated access. If you are still maturing your monitoring, it is worth aligning these detections with the broader detection and response model described in our article on &lt;a href="https://clearpathsecurity.co.uk/implementing-detect-and-respond-functions-in-nist-csf/" rel="noopener noreferrer"&gt;Detect and Respond functions in NIST CSF&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to detect phishing-driven initial access
&lt;/h2&gt;

&lt;p&gt;Phishing remains effective because it targets people and identity systems rather than perimeter controls. The most useful signals usually come from the email platform and the identity provider together. In Microsoft 365 or similar environments, look for suspicious inbox rules, forwarding changes, consent grants to unfamiliar applications, and sign-ins that follow a phishing email delivery or click event within a short time window.&lt;/p&gt;

&lt;p&gt;Identity telemetry is especially important when the attacker uses stolen credentials or session tokens after the initial lure. Watch for impossible travel, unfamiliar device fingerprints, atypical user agents, and sign-ins from hosting providers or consumer VPN ranges that do not match the user’s normal pattern. If your environment uses Entra ID, conditional access should be part of the control story, but the detection story still depends on logging. Our guide to &lt;a href="https://clearpathsecurity.co.uk/implementing-entra-id-conditional-access-policies-as-code/" rel="noopener noreferrer"&gt;Entra ID Conditional Access policies as code&lt;/a&gt; is useful if you want to standardise policy changes and keep them reviewable.&lt;/p&gt;

&lt;p&gt;For email-led initial access, a practical hunting pattern is to join message trace data, mailbox audit logs, and sign-in logs around a single user or tenant-wide campaign. A burst of messages from a newly seen sender domain, followed by a mailbox rule that hides replies or forwards mail externally, is a stronger indicator than any one event on its own. If you have endpoint telemetry, check whether the user opened attachments, launched Office child processes, or spawned script interpreters soon after the email arrived.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to detect credential-based access attempts
&lt;/h2&gt;

&lt;p&gt;Credential attacks are often the first thing a mature defender can see clearly because they create repeated authentication events. Password spraying, brute force, and credential stuffing usually produce many failed logons across multiple accounts from a small set of source IP addresses, followed by one or more successful logons. The key is to look for patterns over time rather than isolated failures.&lt;/p&gt;

&lt;p&gt;Useful detections include repeated failures against many users from the same source, sign-ins outside normal business hours, and successful authentication after a cluster of failures against the same account. In cloud identity platforms, enrich the event with risk signals, device compliance state, and geolocation. In Windows environments, monitor for failed logons on domain controllers, unusual Kerberos activity, and authentication from systems that should not normally be used interactively.&lt;/p&gt;

&lt;p&gt;Token theft and session hijacking are harder because the attacker may not need to reauthenticate at all. You may see a legitimate session continue from an unexpected IP address, a device change without a corresponding MFA challenge, or activity that starts in one region and continues in another. MFA fatigue abuse can also look deceptively normal if the user eventually approves a prompt after repeated notifications. The best defence is a combination of strong MFA methods, number matching or phishing-resistant authentication where possible, and alerting on repeated push prompts or unusual approval patterns. For a deeper view of identity abuse patterns, our article on credential theft and misuse patterns is a useful companion.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to detect abuse of exposed remote access services
&lt;/h2&gt;

&lt;p&gt;Remote access services are attractive because they provide a direct route into internal systems. VPN portals, RDP gateways, SSH endpoints, and remote management tools should all be treated as high-value assets from a detection perspective. The first clue is often authentication telemetry, but network and endpoint data quickly become important once a session is established.&lt;/p&gt;

&lt;p&gt;For VPNs, look for logons from unusual countries, impossible travel between sessions, repeated failures followed by success, and accounts that suddenly begin connecting at odd hours. For RDP and SSH, watch for source IPs that have never been seen before, logons to administrative accounts, and sessions that originate from internet-facing addresses rather than expected corporate ranges. If a remote access service is exposed directly to the internet, correlate authentication events with firewall logs and any available geo-IP enrichment.&lt;/p&gt;

&lt;p&gt;On the endpoint side, successful remote access often leads to process creation, service installation, or remote administration tooling. Sysmon event IDs for process creation and network connections can help you identify follow-on activity, especially when paired with Windows logon events. If you are tuning endpoint telemetry, our article on high-fidelity Sysmon process telemetry is a practical reference.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to detect web application entry points
&lt;/h2&gt;

&lt;p&gt;Public-facing applications are a common route in because they are reachable, often business critical, and frequently exposed to the internet. The challenge is that application traffic can be noisy and legitimate automation can resemble abuse. You need to understand what normal looks like for each application before you can spot the abnormal.&lt;/p&gt;

&lt;p&gt;Start with reverse proxy, WAF, and application logs. Look for repeated authentication failures, parameter tampering, unusual user agents, bursts of requests to login or password reset endpoints, and requests that probe hidden or deprecated paths. If the application supports file uploads, pay attention to unusual file types, oversized payloads, or repeated attempts to bypass validation. For APIs, watch for authentication attempts from new clients, unexpected token use, and request sequences that do not match the normal application workflow.&lt;/p&gt;

&lt;p&gt;Correlate web activity with endpoint and backend telemetry where possible. A suspicious login followed by a new server-side process, a database connection from an unexpected host, or outbound traffic to an unfamiliar destination is much more meaningful than a single HTTP 200 response. If your development teams need a refresher on defensive input handling, our article on &lt;a href="https://clearpathsecurity.co.uk/input-validation-encoding-and-output-sanitisation-techniques-for-secure-software-development/" rel="noopener noreferrer"&gt;input validation, encoding, and output sanitisation&lt;/a&gt; is relevant to reducing the attack surface that initial access depends on.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to detect exploitation of public-facing infrastructure
&lt;/h2&gt;

&lt;p&gt;Edge devices and appliances are often the first place defenders can see exploitation of a vulnerable service. VPN concentrators, firewalls, load balancers, email gateways, and remote management appliances may log authentication attempts, configuration changes, crashes, or unusual administrative actions before any endpoint telemetry exists. That makes them high-value log sources, even if they are awkward to ingest.&lt;/p&gt;

&lt;p&gt;When a vulnerability is being exploited, the first signs may be indirect. You might see a sudden spike in authentication errors, a new administrative session, a configuration export, or a process that should not normally run on the appliance. If the device supports command execution logging, preserve it. If it does not, focus on network indicators such as outbound connections to rare destinations, unexpected DNS lookups, or traffic patterns that do not match the device’s normal role.&lt;/p&gt;

&lt;p&gt;It is also worth correlating known exposure with detection. If a public-facing service is unpatched or newly disclosed, raise the priority of any related authentication or process anomalies. This is where vulnerability management and detection engineering meet. A vulnerable appliance is not yet an incident, but it should change how you interpret the next alert.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to detect trusted third-party or supply chain access abuse
&lt;/h2&gt;

&lt;p&gt;Trusted third-party access is easy to overlook because it often uses legitimate accounts, approved tools, and expected network paths. That trust is exactly why it needs monitoring. Service accounts, support portals, delegated administration, and remote support tools can all be abused if credentials are stolen or access is broader than intended.&lt;/p&gt;

&lt;p&gt;Look for changes in behaviour rather than just failed logons. A partner account that normally accesses one system but suddenly touches several, a service account that begins authenticating outside its usual window, or a remote support tool that is used from a new source IP should all be investigated. If the third party uses privileged access, monitor for changes to group membership, role assignments, and consent grants.&lt;/p&gt;

&lt;p&gt;Control checks matter here as much as detections. Review whether third-party access is time-bound, whether it uses separate accounts, whether MFA is enforced, and whether sessions are recorded. Remote support tools should be tightly scoped, and delegated administration should be visible in logs. If you are building a broader access model, our article on &lt;a href="https://clearpathsecurity.co.uk/designing-least-privilege-access-using-iam-and-rbac/" rel="noopener noreferrer"&gt;least privilege access using IAM and RBAC&lt;/a&gt; helps frame the control side of the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Telemetry and log sources that improve initial access detection
&lt;/h2&gt;

&lt;p&gt;There is no single log source that covers all initial access techniques. Identity logs are essential for authentication and token abuse. Email logs help with phishing and mailbox manipulation. Endpoint telemetry shows process creation, script execution, and network connections after the foothold. Proxy, DNS, and firewall logs provide source and destination context. Application logs expose abuse of login flows, APIs, and upload paths.&lt;/p&gt;

&lt;p&gt;For Microsoft-heavy environments, Microsoft Defender for Endpoint and Microsoft Sentinel can provide a useful correlation layer, especially when identity, endpoint, and cloud logs are centralised. Sysmon adds high-value process and network telemetry on Windows endpoints and servers. The more you can normalise these sources into a SIEM, the easier it becomes to write detections that combine weak signals into something actionable. If you are still designing the pipeline, our article on log pipelines for detection engineering is a good starting point.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detection logic and hunting approaches that work in practice
&lt;/h2&gt;

&lt;p&gt;High-signal detections usually combine three ingredients: a suspicious event, a relevant baseline, and a piece of enrichment. For example, a successful sign-in from a new country is more interesting if the user has never travelled, the device is unmanaged, and the login is followed by mailbox rule creation. Likewise, a burst of failed VPN logons is more actionable if the source IP is known to be associated with hosting infrastructure or if the account is privileged.&lt;/p&gt;

&lt;p&gt;ATT&amp;amp;CK is useful here because it gives you a consistent way to describe the technique and measure coverage. Build rules around the techniques most relevant to your environment, then test them with safe simulation. Sigma rules can help you keep detections portable across SIEM platforms, while KQL is useful if you are working in Microsoft Sentinel. The goal is not to alert on every anomaly, but to create enough confidence that analysts can triage quickly.&lt;/p&gt;

&lt;p&gt;Hunting is also valuable when you do not yet have a mature rule set. Start with a known suspicious account, a newly exposed service, or a recent phishing campaign and work backwards through the logs. That approach often reveals gaps in retention, missing fields, or identity sources that are not yet onboarded. If you want to validate detections safely, our article on &lt;a href="https://clearpathsecurity.co.uk/simulating-adversary-techniques-safely-with-atomic-red-team/" rel="noopener noreferrer"&gt;simulating adversary techniques safely with Atomic Red Team&lt;/a&gt; is a practical companion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common blind spots that let initial access go unnoticed
&lt;/h2&gt;

&lt;p&gt;The most common blind spot is simply missing telemetry. If you do not collect identity logs, you will struggle to see credential abuse. If you do not ingest email audit data, mailbox rule changes and forwarding abuse may be invisible. If endpoint logging is sparse, you may miss the process activity that confirms a foothold. Short retention creates a similar problem because the evidence disappears before anyone can investigate it.&lt;/p&gt;

&lt;p&gt;Another blind spot is overreliance on a single control. MFA helps, but it does not stop token theft or every form of session abuse. Email filtering helps, but it does not stop a user from approving a malicious consent prompt. A WAF helps, but it may not see authenticated abuse or business logic flaws. Good initial access detection assumes controls will fail in different ways and compensates with layered visibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical priorities for SMEs
&lt;/h2&gt;

&lt;p&gt;If your coverage is limited, start with the detections that give the best return for the least effort. First, centralise identity logs and alert on impossible travel, repeated failures, new device sign-ins, and mailbox rule changes. Second, ingest email audit data and look for forwarding, consent, and suspicious sender patterns. Third, collect endpoint telemetry on servers and user devices so you can confirm what happened after a login. Fourth, bring in VPN, firewall, and reverse proxy logs for exposed services and public applications.&lt;/p&gt;

&lt;p&gt;Then link those detections to response actions. If a suspicious sign-in is confirmed, you should know who can disable the account, revoke sessions, isolate the endpoint, and preserve logs. If a web application appears to be the entry point, you should know how to capture the relevant logs before they roll over. This is where detection and incident response should be designed together rather than as separate exercises.&lt;/p&gt;

&lt;p&gt;For SMEs that want to improve without building everything in-house, a focused review of identity, endpoint, and logging architecture is often the fastest way to close the biggest gaps. If you would like help prioritising those controls, Speak to a consultant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What are the 7 types of security?
&lt;/h3&gt;

&lt;p&gt;There is no single universal set of seven types of security, but organisations often group it into areas such as physical, network, endpoint, application, identity, cloud, and data security. For detection work, it is more useful to think in terms of the control and telemetry layers that support each area.&lt;/p&gt;

&lt;h3&gt;
  
  
  What are the 7 steps of incident response?
&lt;/h3&gt;

&lt;p&gt;A common incident response flow is preparation, identification, containment, eradication, recovery, lessons learned, and improvement. Different frameworks use slightly different wording, but the practical aim is the same: detect quickly, limit impact, restore safely, and improve the control set afterwards.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>API security testing checklist for development teams</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 04 Nov 2026 17:14:17 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/api-security-testing-checklist-for-development-teams-2f87</link>
      <guid>https://dev.to/clearpathsecurity/api-security-testing-checklist-for-development-teams-2f87</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/api-security-testing-checklist-for-development-teams/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/api-security-testing-checklist-for-development-teams/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;APIs are often the most direct route into an application, its data, and the services behind it. For development teams, that makes API security testing a practical part of release quality, not a separate exercise reserved for later. A well-run checklist helps you catch weak authentication, broken authorisation, excessive data exposure, and integration mistakes before they become production issues.&lt;/p&gt;

&lt;p&gt;This article is aimed at technical practitioners working in UK SMEs who need a repeatable way to test APIs during development and pre-release. It is deliberately focused on controls that can be verified in code, in test environments, and in CI/CD pipelines. It is not a substitute for a full application security programme, but it gives you a solid baseline for day-to-day engineering work.&lt;/p&gt;

&lt;p&gt;Used properly, this checklist fits into the secure development lifecycle and supports the same risk-based thinking used in frameworks such as OWASP ASVS and Microsoft SDL. If your team already runs &lt;a href="https://clearpathsecurity.co.uk/automating-security-testing-as-part-of-release-pipelines/" rel="noopener noreferrer"&gt;security testing as part of release pipelines&lt;/a&gt;, this checklist can become the API-specific layer that sits underneath your broader automation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Test API security as part of the SDLC and release pipeline, not as a one-off activity after development is finished.&lt;/li&gt;
&lt;li&gt;Focus on authentication, authorisation, schema enforcement, rate limiting, logging, and transport security because those controls most often determine real exposure.&lt;/li&gt;
&lt;li&gt;Use contract tests, negative tests, and gateway-aware checks to catch regressions before they reach production.&lt;/li&gt;
&lt;li&gt;Treat secrets, webhooks, OAuth scopes, and third-party integrations as part of the API attack surface, not separate concerns.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What this checklist is for and when to use it
&lt;/h2&gt;

&lt;p&gt;The purpose of an API security testing checklist is to make sure the same classes of weakness are checked consistently across releases. That matters because API defects are often introduced by small changes: a new field in a response, a missing role check on one endpoint, or a token validation rule that is too permissive.&lt;/p&gt;

&lt;p&gt;Use the checklist at three points. First, during design and implementation, when the API contract is still changing. Second, during pull request review and automated testing, when you can still block a release cheaply. Third, before production release, when you want to confirm that the deployed build behaves as expected in a realistic environment.&lt;/p&gt;

&lt;p&gt;The checklist applies to REST APIs, GraphQL endpoints, and internal service-to-service interfaces. The exact mechanics differ, but the control objectives are the same: prove that only the right caller can reach the right function, with the right data, at the right rate, over a trusted channel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the API attack surface before testing
&lt;/h2&gt;

&lt;p&gt;Before you test controls, you need a complete view of what is actually exposed. Many API security failures start with incomplete inventory. Teams test the documented endpoints and miss admin routes, legacy versions, webhook handlers, or internal methods that are still reachable from a wider network segment than intended.&lt;/p&gt;

&lt;p&gt;Build an inventory of endpoints, methods, authentication requirements, and data classes. Include the HTTP method, route pattern, expected roles, whether the endpoint is public or private, and whether it processes personal data, financial data, or operational data. For GraphQL, record the schema, the available queries and mutations, and any fields that expose nested objects or related records.&lt;/p&gt;

&lt;p&gt;Map trust boundaries as part of that inventory. Identify where traffic crosses from browser to API gateway, from gateway to application, from application to downstream services, and from internal service to third-party integration. This is also the point to note any exposed admin functions, debug endpoints, health checks, and test-only features that could become reachable in production if configuration drifts.&lt;/p&gt;

&lt;p&gt;Where possible, keep the inventory close to the source of truth. OpenAPI specifications, GraphQL schemas, gateway configuration, and infrastructure-as-code should all be checked together. If those artefacts disagree, the test plan will usually miss something.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test authentication controls
&lt;/h2&gt;

&lt;p&gt;Authentication testing should answer a simple question: can an attacker impersonate a valid caller, or keep using credentials after they should have expired? For APIs, this usually means testing bearer tokens, API keys, OAuth flows, and machine-to-machine credentials.&lt;/p&gt;

&lt;p&gt;Check token handling first. Confirm that tokens are validated for issuer, audience, signature, expiry, and not-before time. If you use JWTs, verify that the application rejects unsigned or incorrectly signed tokens, and that it does not accept unexpected algorithms. Test that expired tokens are rejected consistently, including after clock skew and refresh events.&lt;/p&gt;

&lt;p&gt;Rotation and revocation are equally important. If a token or key is revoked, the API should stop accepting it within the expected window. For long-lived credentials, define what “expected” means in your environment and test it. A common failure mode is a revocation process that works in one service but not in a cached gateway or downstream microservice.&lt;/p&gt;

&lt;p&gt;For session-based APIs, confirm that session identifiers are unpredictable, bound to the right context, and invalidated on logout or privilege change. For machine-to-machine authentication, check that service identities are scoped tightly and that credentials are not shared across environments. Service accounts used in development should not have the same reach as production identities.&lt;/p&gt;

&lt;p&gt;If your API uses OAuth, test the scope model carefully. A token with read-only scope should not be able to create, update, or delete data. Also check that the application does not trust claims that are not enforced by the authorisation layer. Authentication proves who the caller is. It does not prove what they are allowed to do.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test authorisation and object-level access control
&lt;/h2&gt;

&lt;p&gt;Authorisation is where many API issues become serious. Broken object level authorisation, often called BOLA, occurs when a caller can access another user’s object simply by changing an identifier. Broken function level authorisation occurs when a user can reach an action that should be reserved for a different role.&lt;/p&gt;

&lt;p&gt;Test object access by changing identifiers in requests and checking whether the response still returns data that belongs to another user, tenant, or account. Do this across all object types, not just the obvious ones. Orders, invoices, files, tickets, devices, and profile records are all common candidates. The test should cover direct object references, nested object references, and list endpoints that return related records.&lt;/p&gt;

&lt;p&gt;Test function access by attempting privileged actions with lower-privilege roles. For example, a standard user should not be able to call administrative endpoints, change another user’s role, export bulk data, or modify security settings. Do not assume that the front end prevents this. The API must enforce the rule itself.&lt;/p&gt;

&lt;p&gt;Tenant isolation deserves separate attention in multi-tenant SaaS. Verify that a token issued for one tenant cannot read or modify another tenant’s data, even if the caller knows the object identifier. Also check for cross-tenant leakage in search, reporting, background jobs, and webhook processing, because those paths are often less carefully protected than the main request flow.&lt;/p&gt;

&lt;p&gt;Where role-based access control is used, confirm that the implementation is explicit and centrally enforced. Ad hoc checks scattered through controller code are easier to miss and harder to maintain. If you already have a secure code review process, link this testing to the same review criteria used for access control in application code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Validate input handling and schema enforcement
&lt;/h2&gt;

&lt;p&gt;API input validation should be strict, predictable, and aligned to the contract. Every request parameter, header, and body field should be validated for type, length, format, range, and allowed values. The goal is not only to prevent injection flaws, but also to stop malformed or unexpected data from changing application behaviour.&lt;/p&gt;

&lt;p&gt;Test positive and negative cases. Positive tests confirm that valid requests are accepted. Negative tests confirm that invalid requests are rejected with a controlled error. Check what happens when required fields are missing, when numeric values are replaced with strings, when arrays are sent where scalars are expected, and when unexpected fields are added to the payload.&lt;/p&gt;

&lt;p&gt;Mass assignment is a common issue in JSON APIs. If the application binds request bodies directly to model objects, an attacker may be able to set fields that were never intended to be user-controlled, such as role, status, price, or ownership attributes. Test whether the API ignores or rejects fields that should be server-controlled.&lt;/p&gt;

&lt;p&gt;Content type handling also matters. Confirm that the API accepts only the content types it is designed to process, and that it does not silently interpret ambiguous input. For example, if the endpoint expects JSON, it should not accept form-encoded or XML payloads unless that is explicitly required and tested.&lt;/p&gt;

&lt;p&gt;For APIs that use deserialisation, test for unsafe object creation, unexpected type coercion, and overly permissive polymorphic handling. These issues are often subtle and can be missed if the team relies only on happy-path functional tests. The article on &lt;a href="https://clearpathsecurity.co.uk/input-validation-encoding-and-output-sanitisation-techniques-for-secure-software-development/" rel="noopener noreferrer"&gt;input validation, encoding, and output sanitisation techniques&lt;/a&gt; is a useful companion if you want to go deeper into the mechanics.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check output handling and data exposure
&lt;/h2&gt;

&lt;p&gt;APIs frequently expose more data than the client actually needs. That creates unnecessary risk even when authentication and authorisation are correct. Excessive data exposure can reveal personal data, internal identifiers, security flags, pricing logic, or operational metadata that should not be visible to every caller.&lt;/p&gt;

&lt;p&gt;Review response bodies field by field. Confirm that each endpoint returns only the data required for the use case. If a mobile app needs a display name and status, it should not receive internal notes, audit metadata, or full account records. For GraphQL, test whether the schema allows clients to request fields that should be hidden or restricted.&lt;/p&gt;

&lt;p&gt;Pagination and filtering deserve the same scrutiny. A list endpoint may be safe for a single page but leak data when page size is increased, filters are removed, or sort parameters are manipulated. Test whether the API enforces sensible limits and whether it validates filter inputs against allowed values rather than passing them directly to a query layer.&lt;/p&gt;

&lt;p&gt;Error messages should be useful for developers but not revealing for attackers. Check that stack traces, database errors, internal hostnames, and implementation details are not returned to clients. A controlled error response should tell the caller what went wrong without exposing internals that help with enumeration or exploitation.&lt;/p&gt;

&lt;p&gt;Also check logging side effects. Sometimes the response is clean, but the application logs the full request or response body, including secrets or personal data. That is a separate exposure path and should be treated as part of the same test case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Assess rate limiting and abuse resistance
&lt;/h2&gt;

&lt;p&gt;Rate limiting is not only about availability. It also reduces the value of brute force, credential stuffing, enumeration, and scraping. A good API security test should confirm that abusive request patterns are slowed, blocked, or challenged before they can cause damage.&lt;/p&gt;

&lt;p&gt;Test authentication endpoints, password reset flows, OTP verification, and token refresh endpoints first. These are common targets for automated abuse. Confirm that the API applies per-user, per-IP, and where appropriate per-device or per-client limits. If the service is public, test whether limits are enforced consistently across the gateway and application layers.&lt;/p&gt;

&lt;p&gt;Then test enumeration resistance. If an endpoint reveals whether a user, order, or account exists, an attacker can use that signal to build a target list. The response should be as uniform as practical, with careful handling of timing, status codes, and error text. This is especially important for account recovery and registration flows.&lt;/p&gt;

&lt;p&gt;Quota enforcement should be tested as a business control as well as a technical one. If one tenant can consume disproportionate resources, other tenants may experience degraded service. For APIs that support bulk export, search, or report generation, confirm that quotas and throttles are enforced before expensive work starts, not after.&lt;/p&gt;

&lt;p&gt;For denial-of-service resilience, test how the API behaves under repeated large payloads, slow requests, and bursts of valid traffic. The aim is not to break the service, but to confirm that defensive controls, timeouts, and queue limits behave as designed. If you need a broader view of resilience testing, the article on testing systems for high load and denial-of-service conditions is relevant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review transport security and API gateway controls
&lt;/h2&gt;

&lt;p&gt;Transport security is easy to assume and easy to misconfigure. Every API should use TLS, and the configuration should be reviewed as part of testing rather than left to default platform settings. Check that plaintext HTTP is redirected or rejected, that weak protocol versions are disabled, and that certificates are valid and trusted in the intended environment.&lt;/p&gt;

&lt;p&gt;For service-to-service APIs, consider mutual TLS where the trust model justifies it. Mutual authentication can reduce the risk of rogue internal clients, but only if certificate issuance, rotation, and revocation are managed properly. Test that the service rejects clients without the correct certificate and that certificate expiry does not create an outage.&lt;/p&gt;

&lt;p&gt;API gateways and reverse proxies should be part of the test scope. Gateway policies often implement authentication, header normalisation, request size limits, and path-based routing. If the gateway and application disagree on how to interpret a request, an attacker may be able to bypass controls by using alternate encodings, duplicated headers, or unusual path formats.&lt;/p&gt;

&lt;p&gt;Check whether the gateway strips or rewrites headers that should not be client-controlled, such as internal forwarding headers or identity assertions. Also confirm that request normalisation happens before security decisions are made. A control that inspects one representation of a request while the backend processes another is a common source of bypass.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test logging, monitoring, and detection coverage
&lt;/h2&gt;

&lt;p&gt;Security testing should not stop at prevention. You also need to know whether the right events are being logged and whether the logs are useful for investigation and detection. If an API is attacked, the team should be able to reconstruct what happened without relying on guesswork.&lt;/p&gt;

&lt;p&gt;At a minimum, log authentication successes and failures, authorisation failures, token issuance and revocation events, privilege changes, object access denials, rate-limit triggers, and unusual request patterns. Include correlation identifiers so that a single transaction can be traced across gateway, application, and downstream services.&lt;/p&gt;

&lt;p&gt;Be careful not to log sensitive data unnecessarily. Request bodies, tokens, passwords, and personal data should be excluded or masked unless there is a clear operational reason to retain them. The logging design should support incident response without creating a second data exposure problem.&lt;/p&gt;

&lt;p&gt;From a detection perspective, think about what abnormal API activity looks like in your environment. Examples include repeated access denied responses from the same token, sudden increases in object enumeration, requests from unusual geographies, or a service account calling endpoints it never normally uses. Those patterns can be surfaced in a SIEM and, where appropriate, fed into SOAR playbooks for automated containment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check secrets, keys, and third-party integrations
&lt;/h2&gt;

&lt;p&gt;API security often depends on the security of secrets and integrations around the API itself. Keys, client secrets, signing material, and webhook tokens should be stored in a dedicated secrets manager, not in source code, build logs, or environment files committed to the repository.&lt;/p&gt;

&lt;p&gt;Test how secrets are issued, rotated, and revoked. Confirm that a leaked key can be replaced without a manual redeploy of every dependent service. Check that development, test, and production secrets are separated and that access is limited by role and environment. If service accounts are used, verify that they have the minimum permissions needed for their function.&lt;/p&gt;

&lt;p&gt;Third-party integrations deserve specific attention. Webhooks should be authenticated, replay-resistant, and validated against a known sender profile. OAuth integrations should use the narrowest practical scopes and should be reviewed whenever the integration changes. If the API consumes data from external services, treat that input as untrusted even if the partner is known and the channel is encrypted.&lt;/p&gt;

&lt;p&gt;Dependency risk also matters. Libraries used in API frameworks, authentication middleware, JSON parsing, and gateway plugins can all introduce exposure if they are outdated or poorly maintained. If your team is already working on software supply chain assurance, tie the API checklist to dependency review and build provenance controls. The article on &lt;a href="https://clearpathsecurity.co.uk/implementing-software-supply-chain-assurance-controls-for-technical-teams/" rel="noopener noreferrer"&gt;software supply chain assurance controls&lt;/a&gt; is a useful reference point here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Automate API security checks in CI/CD
&lt;/h2&gt;

&lt;p&gt;Manual testing is valuable, but it does not scale well across frequent releases. The strongest pattern is to automate as much of the checklist as possible in CI/CD and reserve manual effort for edge cases, complex authorisation logic, and exploratory testing.&lt;/p&gt;

&lt;p&gt;Place static analysis early in the pipeline so that obvious coding issues are caught before merge. Add API contract tests to verify that the implementation still matches the OpenAPI or GraphQL schema. Include negative tests that send malformed requests, missing fields, unexpected roles, and boundary values. These tests are often more valuable than a large number of happy-path checks.&lt;/p&gt;

&lt;p&gt;Dynamic testing should run against a deployed test environment that mirrors production controls as closely as possible. That includes the gateway, identity provider, rate limiting, and logging path. If the test environment is too different from production, the results will be misleading. For example, a test that passes without a gateway may fail in production because the gateway normalises requests differently.&lt;/p&gt;

&lt;p&gt;Use contract tests to stop accidental breaking changes and security regressions. For example, if a field should no longer be returned, assert that it is absent. If a role should not reach an endpoint, assert that the request is rejected. If a token should expire after a fixed interval, assert that the API refuses it after that point. These are simple tests, but they prevent a lot of avoidable drift.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prioritise findings and decide what good looks like
&lt;/h2&gt;

&lt;p&gt;Not every issue has the same urgency. A useful checklist should help the team decide what must block release and what can be scheduled for remediation. Prioritisation should combine exploitability, exposure, and business impact.&lt;/p&gt;

&lt;p&gt;As a rule, treat unauthorised access to another user’s data, privilege escalation, token bypass, and secret leakage as high priority. Issues that only affect edge-case behaviour or require unrealistic preconditions may still matter, but they should be triaged differently. The key is to avoid a flat backlog where everything is labelled critical and nothing gets fixed.&lt;/p&gt;

&lt;p&gt;Define minimum acceptance criteria for release readiness. For example: all authentication and authorisation tests pass, no high-risk data exposure remains, rate limiting is in place for public endpoints, and logging captures the events needed for investigation. That gives engineering, product, and security teams a common standard to work to.&lt;/p&gt;

&lt;p&gt;If you want to align the checklist with a broader secure development programme, map the findings to your existing risk treatment process and secure coding standards. That keeps the work practical and avoids creating a separate security process that nobody uses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common API security gaps teams miss
&lt;/h2&gt;

&lt;p&gt;Some of the most persistent API issues are not in the main code path. Versioning mistakes are a good example. Old API versions may remain live long after the team believes they have been retired. If those versions are less protected, they can become the easiest route in.&lt;/p&gt;

&lt;p&gt;Shadow APIs are another common gap. These include undocumented endpoints created for internal tooling, partner integrations, or temporary debugging. If they are not in the inventory, they are unlikely to be tested. The same applies to staging or test environments that are reachable from the internet and use weaker controls than production.&lt;/p&gt;

&lt;p&gt;Documentation can also create risk if it is too generous. Public API docs should not expose internal-only routes, sample credentials, or implementation details that reveal how to bypass controls. Debug features, verbose error modes, and admin consoles should be disabled or tightly restricted outside controlled environments.&lt;/p&gt;

&lt;p&gt;Finally, do not forget asynchronous paths. Webhooks, message queues, background jobs, and event consumers often process the same data as the main API but with less scrutiny. They should be tested with the same assumptions about trust, validation, and authorisation.&lt;/p&gt;

&lt;p&gt;For teams building or buying software in the UK SME space, the practical value of this checklist is consistency. It gives developers a repeatable way to test the controls that matter most, and it gives security and engineering leaders a clearer basis for release decisions. If you want help turning this into a working control set for your environment, speak to a consultant.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What should be included in an API security testing checklist?
&lt;/h3&gt;

&lt;p&gt;A practical checklist should cover authentication, authorisation, object-level access control, input validation, schema enforcement, output handling, rate limiting, transport security, logging, secrets management, and integration trust. It should also include automated checks in CI/CD so the same controls are verified on every release.&lt;/p&gt;

&lt;h3&gt;
  
  
  How often should development teams test APIs for security?
&lt;/h3&gt;

&lt;p&gt;API security checks should run continuously during development, on every meaningful change, and again before release. High-risk areas such as authentication, authorisation, and data exposure should be tested whenever related code, configuration, or gateway policy changes.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>SLSA levels explained and how to reach level 3 with GitHub</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 04 Nov 2026 17:14:13 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/slsa-levels-explained-and-how-to-reach-level-3-with-github-co6</link>
      <guid>https://dev.to/clearpathsecurity/slsa-levels-explained-and-how-to-reach-level-3-with-github-co6</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/slsa-levels-explained-and-how-to-reach-level-3-with-github/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/slsa-levels-explained-and-how-to-reach-level-3-with-github/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Software supply chain security has moved from a specialist concern to a practical delivery issue for many UK SMEs. If you build software, ship containers, or publish internal packages, you need some way to show that what you released really came from the source you intended, built in the way you expected, without hidden changes slipping in along the way. That is where SLSA, the Supply-chain Levels for Software Artifacts, becomes useful.&lt;/p&gt;

&lt;p&gt;This article explains SLSA levels in plain terms and shows how to move towards level 3 using GitHub. It is written for technical practitioners who need implementation detail rather than a high-level overview. If you want a broader view of software supply chain assurance, it is worth pairing this with our &lt;a href="https://clearpathsecurity.co.uk/implementing-software-supply-chain-assurance-controls-for-technical-teams/" rel="noopener noreferrer"&gt;software supply chain assurance controls for technical teams&lt;/a&gt; guidance and our article on &lt;a href="https://clearpathsecurity.co.uk/generating-and-verifying-slsa-build-provenance-for-artifacts/" rel="noopener noreferrer"&gt;generating and verifying SLSA build provenance for artifacts&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SLSA focuses on build integrity and provenance, not on replacing secure coding, dependency management or vulnerability scanning.&lt;/li&gt;
&lt;li&gt;For many GitHub-based teams, level 3 is a practical target because it balances stronger assurance with achievable implementation effort.&lt;/li&gt;
&lt;li&gt;Pinned actions, protected branches, least-privilege workflow permissions and runner isolation are the core controls that support level 3.&lt;/li&gt;
&lt;li&gt;Provenance is only useful if the build environment and workflow changes are controlled, so treat GitHub Actions as part of your security boundary.&lt;/li&gt;
&lt;li&gt;Start with one high-value repository, phase the controls in gradually and verify provenance at the point where release trust matters.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What SLSA is and why it matters for software supply chain security
&lt;/h2&gt;

&lt;h3&gt;
  
  
  SLSA in plain terms
&lt;/h3&gt;

&lt;p&gt;SLSA is a maturity model for build integrity. It does not replace secure coding, dependency management, or vulnerability scanning. Instead, it focuses on whether your build and release process can be trusted to produce the artefact you think it produced. In practice, SLSA asks questions such as: was the build triggered from reviewed source, was the build environment controlled, were the inputs known, and can you prove how the artefact was created?&lt;/p&gt;

&lt;p&gt;For SMEs, the value is straightforward. If a release pipeline is compromised, or if an attacker can alter source, workflows, or build outputs, the business impact can include customer trust loss, emergency patching, support overhead, and contractual issues with downstream buyers. SLSA gives you a structured way to reduce that risk without trying to solve every supply chain problem at once.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where SLSA fits alongside SBOMs, provenance and signing
&lt;/h3&gt;

&lt;p&gt;SLSA is often discussed alongside SBOMs, provenance and signing, but they solve different problems. An SBOM tells you what components are in a release. Signing tells you that a specific key approved an artefact. Provenance tells you how and where the artefact was built. SLSA adds a target level of assurance around the build process itself.&lt;/p&gt;

&lt;p&gt;In a mature pipeline, these controls reinforce each other. You might generate an SBOM during the build, sign the artefact and the provenance, and then verify all three at deployment time. That gives release engineering, platform teams and consumers a more defensible chain of evidence than a checksum alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the SLSA levels work
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What each level is trying to prove
&lt;/h3&gt;

&lt;p&gt;The SLSA levels are best understood as increasing confidence in the build process rather than as a checklist of isolated controls. Lower levels focus on basic provenance and tamper resistance. Higher levels add stronger guarantees about source control, build isolation and the ability to reproduce or verify the build.&lt;/p&gt;

&lt;p&gt;At a practical level, the progression is about reducing the number of places where an attacker or a careless change can influence the output. Early levels may tell you that a build happened. Later levels aim to show that the build happened from reviewed source, in a controlled environment, with limited opportunities for hidden manipulation.&lt;/p&gt;

&lt;p&gt;For many teams, the important point is not to chase the highest number possible. It is to choose the level that matches the risk profile of the software you ship. Internal tools may justify a lighter approach. Customer-facing services, regulated workloads and software distributed to third parties usually justify a stronger target.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why level 3 is the practical target for many GitHub-based teams
&lt;/h3&gt;

&lt;p&gt;SLSA level 3 is often the sweet spot for organisations using GitHub because it is ambitious enough to materially improve build integrity, but still achievable without building a bespoke supply chain platform. It usually implies controlled source, controlled build definitions, isolated build execution, and provenance that can be trusted by downstream consumers.&lt;/p&gt;

&lt;p&gt;For a UK SME, level 3 is a sensible target when you want to reduce the risk of workflow tampering, compromised runners, or unauthorised changes to release logic. It is also a useful target when customers, partners or internal governance teams want evidence that your release process is not just automated, but controlled.&lt;/p&gt;

&lt;h2&gt;
  
  
  What SLSA level 3 requires in practice
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Build integrity, provenance and controlled build environments
&lt;/h3&gt;

&lt;p&gt;Level 3 is about more than generating a provenance document after the fact. The build environment itself needs to be controlled enough that the provenance is meaningful. That means the workflow definition should be protected, the build inputs should be known, and the runner should not be a shared, mutable environment that can be influenced by unrelated jobs.&lt;/p&gt;

&lt;p&gt;In GitHub terms, this usually means using GitHub Actions with tight permissions, pinned action versions, protected branches, and a runner strategy that reduces cross-job contamination. If you are using self-hosted runners, you need to treat them as part of your security boundary. If they are ephemeral, isolated and rebuilt frequently, that helps. If they are long-lived and shared across repositories, that makes level 3 much harder to defend.&lt;/p&gt;

&lt;p&gt;Reproducibility is helpful, but do not confuse it with provenance. A reproducible build can help you validate that source and output match expectations. Provenance helps you show how the output was produced. Level 3 usually needs both the process controls and the evidence trail.&lt;/p&gt;

&lt;h3&gt;
  
  
  Identity, access and change control expectations for the pipeline
&lt;/h3&gt;

&lt;p&gt;To reach level 3, your pipeline needs strong identity and access control. The people who can change source should not automatically be the people who can alter release workflows, runner configuration or secret material. That separation matters because the build pipeline is itself a high-value target.&lt;/p&gt;

&lt;p&gt;In practice, that means using branch protection, required reviews, restricted workflow changes, environment approvals where appropriate, and least-privilege tokens. It also means reviewing who can administer the GitHub organisation, who can edit repository settings, and who can approve changes to reusable workflows. If those controls are weak, provenance may still exist, but the trust you can place in it drops sharply.&lt;/p&gt;

&lt;h2&gt;
  
  
  How GitHub can support a SLSA level 3 approach
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Using GitHub Actions as the build system
&lt;/h3&gt;

&lt;p&gt;GitHub Actions can support a level 3 approach if you treat it as a controlled build platform rather than a convenience feature. The main design goal is to make the workflow deterministic enough that the build is traceable and the execution context is constrained.&lt;/p&gt;

&lt;p&gt;Start by reducing the default permissions in workflow files. Use the narrowest possible &lt;code&gt;permissions&lt;/code&gt; block, for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;id-token&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only grant additional scopes when a job genuinely needs them. Avoid broad repository write access for build jobs. If a workflow needs to publish packages or attestations, isolate that step into a separate job with a separate permission set.&lt;/p&gt;

&lt;p&gt;Pin third-party actions to a commit SHA rather than a floating tag. Mutable tags such as &lt;code&gt;v1&lt;/code&gt; or &lt;code&gt;latest&lt;/code&gt; make it harder to reason about what actually ran. This is one of the most common gaps in otherwise well-run pipelines. If you need to update an action, do it deliberately and review the change as you would any other dependency.&lt;/p&gt;

&lt;p&gt;For teams already using GitHub Actions, the article on &lt;a href="https://clearpathsecurity.co.uk/hardening-github-actions-against-pwn-requests-and-token-theft/" rel="noopener noreferrer"&gt;hardening GitHub Actions against pwn requests and token theft&lt;/a&gt; is a useful companion, because many of the same controls that reduce token theft also support a stronger SLSA posture.&lt;/p&gt;

&lt;h3&gt;
  
  
  Protecting workflows, runners and secrets
&lt;/h3&gt;

&lt;p&gt;Workflow files should be protected as carefully as application code. If an attacker can change the workflow, they can often change the build logic, exfiltrate secrets, or alter the artefact without touching the application source. Use branch protection on the default branch, require reviews for workflow changes, and restrict who can modify reusable workflows.&lt;/p&gt;

&lt;p&gt;Secrets should be scoped to the smallest practical audience. Prefer GitHub environments for deployment secrets, with approval gates where needed. Where possible, use OIDC-based federation rather than long-lived cloud credentials. That reduces the blast radius if a workflow is compromised.&lt;/p&gt;

&lt;p&gt;Runner isolation is equally important. GitHub-hosted runners are easier to reason about because they are ephemeral, but they may not fit every workload. If you use self-hosted runners, consider ephemeral runners, per-repository isolation, hardened base images, and network egress restrictions. A self-hosted runner that persists across jobs and repositories can become a hidden trust problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  A reference architecture for GitHub-based SLSA level 3
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Source control and branch protection
&lt;/h3&gt;

&lt;p&gt;A sensible starting point is a protected main branch with mandatory pull requests, at least one approving review, and status checks that must pass before merge. For release branches, apply the same discipline if they are used. If your organisation uses trunk-based development, keep the trunk protected and make release tagging a controlled event.&lt;/p&gt;

&lt;p&gt;Repository settings should prevent direct pushes to protected branches. If you use CODEOWNERS, include workflow files, reusable workflow definitions and release automation scripts so that changes to the delivery mechanism are reviewed by the right people. This is one of the simplest ways to reduce the risk of accidental or malicious pipeline changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Workflow permissions, environments and runner isolation
&lt;/h3&gt;

&lt;p&gt;Use separate workflows for build, test, package and release where that separation improves control. A build job should not need the same privileges as a release job. Keep the build job read-only where possible, and move publishing or deployment into a later stage with explicit approvals and environment protection.&lt;/p&gt;

&lt;p&gt;For runners, a common pattern is to use GitHub-hosted runners for standard build and test jobs, then use a tightly controlled self-hosted runner pool only where required for network access or specialised tooling. If you do use self-hosted runners, make them ephemeral, rebuild them from a known image, and avoid reusing them across trust zones. That aligns well with broader secure development practices and with the controls discussed in our &lt;a href="https://clearpathsecurity.co.uk/microsoft-secure-development-lifecycle-explained-for-uk-smes/" rel="noopener noreferrer"&gt;Microsoft Secure Development Lifecycle explained for UK SMEs&lt;/a&gt; article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Implementation checklist for moving towards level 3
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Lock down source and workflow changes
&lt;/h3&gt;

&lt;p&gt;Begin with the source control layer. Protect the default branch, require reviews, and make workflow files subject to the same review standard as application code. Remove unnecessary admin access from developers who do not need it. Review GitHub organisation roles, repository permissions and access to reusable workflows.&lt;/p&gt;

&lt;p&gt;Next, audit your actions usage. Replace floating references with pinned SHAs. Review marketplace actions for maintenance status and trustworthiness. If you depend on internal reusable workflows, version them explicitly and treat them as controlled artefacts.&lt;/p&gt;

&lt;p&gt;Then review secrets and tokens. Replace static credentials with OIDC where your cloud platform supports it. Use environment-scoped secrets for deployment, and avoid exposing secrets to jobs that only need read access. If a job does not need a secret, do not give it one.&lt;/p&gt;

&lt;h3&gt;
  
  
  Make builds reproducible and attestable
&lt;/h3&gt;

&lt;p&gt;Build reproducibility does not need to be perfect before you start, but you should aim for deterministic inputs. Pin package versions, lock dependencies, and avoid pulling mutable artefacts during the build. Where practical, capture build metadata such as commit SHA, workflow run ID, runner image, dependency lockfiles and build parameters.&lt;/p&gt;

&lt;p&gt;Generate provenance as part of the pipeline, not as a manual afterthought. The provenance should be tied to the exact build that produced the artefact. If you also sign the artefact, keep the signing step separate from the build step and protect the signing identity carefully. That separation helps preserve trust if one part of the pipeline is later questioned.&lt;/p&gt;

&lt;p&gt;It is also worth scanning the build output and the pipeline itself. Tools such as Trivy can help identify vulnerable dependencies and misconfigurations in GitHub Actions pipelines, which supports the broader assurance picture even though scanning alone does not create SLSA compliance. See our &lt;a href="https://clearpathsecurity.co.uk/integrating-trivy-vulnerability-and-misconfiguration-scanning-into-github-actions/" rel="noopener noreferrer"&gt;Trivy in GitHub Actions&lt;/a&gt; guide for a practical implementation pattern.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common gaps that stop teams reaching level 3
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Unpinned actions and mutable dependencies
&lt;/h3&gt;

&lt;p&gt;One of the most common blockers is reliance on mutable references. If your workflow uses actions by tag, downloads scripts from the internet during the build, or installs packages without lockfiles, you have introduced change points that are hard to audit. Level 3 expects stronger control than that.&lt;/p&gt;

&lt;p&gt;Another common issue is hidden dependency drift. Even if your own source is protected, transitive dependencies can change the build result or introduce risk. That is why dependency management, lockfiles and package source control matter so much in a SLSA programme.&lt;/p&gt;

&lt;h3&gt;
  
  
  Over-privileged tokens and weak runner controls
&lt;/h3&gt;

&lt;p&gt;Many teams give GitHub Actions more permission than it needs because it is convenient. That convenience becomes a problem when a workflow is compromised. Broad write permissions, long-lived cloud keys and shared runners all increase the chance that a single issue can affect multiple repositories or environments.&lt;/p&gt;

&lt;p&gt;Weak runner controls are especially important. If a runner can retain state between jobs, access internal networks broadly, or execute unreviewed code from multiple repositories, it becomes difficult to argue that the build environment is controlled. Level 3 does not require a perfect environment, but it does require one that is deliberately constrained.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to verify SLSA provenance in your delivery pipeline
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Verification points for release engineering and consumers
&lt;/h3&gt;

&lt;p&gt;Verification should happen at the point where trust matters. For internal release engineering, that may be before promotion into production. For external consumers, it may be during package installation, container admission or deployment admission control. The key is to verify the provenance against the expected source, builder identity and build parameters.&lt;/p&gt;

&lt;p&gt;In practical terms, your verification logic should check that the artefact was built by the expected workflow, from the expected repository and commit, using the expected build system. If the provenance does not match those expectations, the artefact should not be promoted. This is where policy enforcement becomes more valuable than a one-off manual check.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where SLSA verifier tools fit into the process
&lt;/h3&gt;

&lt;p&gt;Verifier tools are useful, but they are not a substitute for pipeline design. They should be treated as enforcement points that consume the evidence your pipeline produces. Depending on your stack, that may mean verifying attestations in CI, in a package registry, in a container admission controller, or in deployment automation.&lt;/p&gt;

&lt;p&gt;For teams already building release governance, the verification step can be integrated into change management and release approval. That gives security, platform and engineering teams a shared control point rather than a separate security-only process.&lt;/p&gt;

&lt;h2&gt;
  
  
  How SLSA aligns with wider supply chain controls
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Relationship to SBOMs, dependency management and signing
&lt;/h3&gt;

&lt;p&gt;SLSA should sit alongside, not instead of, other supply chain controls. SBOMs help you understand what is in the release. Dependency management reduces the chance of unexpected input. Signing gives you a cryptographic assertion over the artefact. SLSA helps you prove the build path that produced it.&lt;/p&gt;

&lt;p&gt;That combination is particularly useful when you need to answer supplier assurance questions or support internal governance. If you are already working on supplier controls, our guidance on &lt;a href="https://clearpathsecurity.co.uk/verifying-supplier-compliance-with-secure-software-requirements-a-practical-guide-for-uk-smes/" rel="noopener noreferrer"&gt;verifying supplier compliance with secure software requirements&lt;/a&gt; may help you translate technical controls into procurement and assurance language.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to map SLSA work into broader assurance programmes
&lt;/h3&gt;

&lt;p&gt;For UK SMEs, SLSA work often fits naturally into secure development lifecycle, DevSecOps and supplier assurance programmes. It can also support ISO 27001-aligned governance by giving you evidence that build integrity, change control and access restrictions are being applied in a structured way. That said, SLSA is not a certification scheme, and it should not be presented as one.&lt;/p&gt;

&lt;p&gt;A practical way to map the work is to treat SLSA as a technical control set under your wider risk management process. Define the repositories and artefacts in scope, identify the trust assumptions for each pipeline, and record the controls that protect source, workflow, runner and release. That creates a clear path for improvement without overcomplicating the programme.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical roadmap for UK SMEs
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What to do first if you are starting from GitHub Actions
&lt;/h3&gt;

&lt;p&gt;If you are starting from a typical GitHub Actions setup, begin with the controls that give the biggest risk reduction for the least operational cost. Protect the default branch, pin actions, reduce workflow permissions, and review who can edit workflow files. Those changes are usually achievable quickly and immediately improve your security posture.&lt;/p&gt;

&lt;p&gt;Then move to runner isolation and secret handling. Replace static credentials where possible, use environment protections for deployment, and decide whether GitHub-hosted runners are sufficient or whether you need a hardened self-hosted model. If you need self-hosted runners, design them as disposable infrastructure rather than long-lived pets.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to phase improvements without disrupting delivery
&lt;/h3&gt;

&lt;p&gt;Do not try to rebuild the entire pipeline in one go. A phased approach works better. Start with one high-value repository, implement the controls, measure the friction, and then roll the pattern out to the rest of the estate. That lets you tune the balance between assurance and delivery speed.&lt;/p&gt;

&lt;p&gt;As you mature, add provenance generation, artefact signing, verification gates and stronger isolation. Keep the controls visible to developers so they understand why a workflow is restricted. When teams see that the controls reduce rework and release risk, adoption is usually easier.&lt;/p&gt;

&lt;p&gt;If you want help designing a practical target state for GitHub-based software supply chain controls, we can help you shape the roadmap, prioritise the controls and align the work with your wider governance and risk objectives. Speak to a consultant if you would like to discuss it.&lt;/p&gt;

&lt;p&gt;In summary, SLSA level 3 is not about adding bureaucracy to your pipeline. It is about making the build process trustworthy enough that you can defend what you ship. For UK SMEs using GitHub, that is a realistic and worthwhile target when the software matters to customers, operations or compliance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What does SLSA mean in software supply chain security?
&lt;/h3&gt;

&lt;p&gt;SLSA stands for Supply-chain Levels for Software Artifacts. It is a maturity model that helps teams improve build integrity, provenance and trust in the software release process.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is the difference between SLSA level 2 and level 3 in GitHub?
&lt;/h3&gt;

&lt;p&gt;Level 2 mainly improves provenance and traceability, while level 3 adds stronger controls around source integrity, build isolation and the trustworthiness of the build environment.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do we need level 3 for every repository?
&lt;/h3&gt;

&lt;p&gt;Not necessarily. A sensible approach is to reserve level 3 for repositories that produce customer-facing, regulated or otherwise high-value artefacts, and apply lighter controls where the risk is lower.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can a small team achieve SLSA level 3 without heavy tooling?
&lt;/h3&gt;

&lt;p&gt;Yes. Many of the most important controls are configuration choices in GitHub, such as branch protection, pinned actions, least-privilege permissions, environment controls and runner isolation.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Data leakage through AI assistants and how to prevent it in Microsoft 365 Copilot</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 28 Oct 2026 16:00:07 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/data-leakage-through-ai-assistants-and-how-to-prevent-it-in-microsoft-365-copilot-1fbm</link>
      <guid>https://dev.to/clearpathsecurity/data-leakage-through-ai-assistants-and-how-to-prevent-it-in-microsoft-365-copilot-1fbm</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/data-leakage-through-ai-assistants-and-how-to-prevent-it-in-microsoft-365-copilot/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/data-leakage-through-ai-assistants-and-how-to-prevent-it-in-microsoft-365-copilot/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The main risk is usually not the AI model itself, but the information it can reach because of existing permissions and poorly managed content.&lt;/li&gt;
&lt;li&gt;Review access to SharePoint, OneDrive, Teams, and email before rolling out Copilot more widely.&lt;/li&gt;
&lt;li&gt;Use sensitivity labels, retention, and data loss prevention controls to reduce the chance of oversharing.&lt;/li&gt;
&lt;li&gt;Give staff clear rules on what they must never paste into an AI assistant.&lt;/li&gt;
&lt;li&gt;If you suspect sensitive data has been exposed, contain the issue first and then assess the business impact.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What data leakage through AI assistants means for an SME
&lt;/h2&gt;

&lt;p&gt;For many small and medium-sized businesses, the appeal of an AI assistant is simple: save time, draft content faster, and help staff find information more quickly. The risk is just as simple. If the assistant can reach sensitive information, it may surface that information to people who should not see it, or help staff share it more widely than they intended.&lt;/p&gt;

&lt;p&gt;In Microsoft 365 Copilot, the main concern is usually not that the AI has somehow learned your secrets. It is that Copilot can work with the content your organisation already stores in email, files, chats, and shared workspaces. If those locations are messy, over-shared, or poorly governed, the assistant can make the problem more visible.&lt;/p&gt;

&lt;p&gt;That matters because data leakage is not only a technical issue. It can affect client trust, commercial confidence, and day-to-day operations. A single misplaced document, a broad folder permission, or an over-helpful prompt can expose payroll details, pricing, contracts, or personal data. For an SME, the cost of cleaning that up can be far higher than the time saved by using the tool without preparation.&lt;/p&gt;

&lt;p&gt;If you are already thinking about your wider Microsoft 365 setup, it is worth reviewing your &lt;a href="https://clearpathsecurity.co.uk/secure-baseline-configurations-for-microsoft-365/" rel="noopener noreferrer"&gt;secure baseline configurations for Microsoft 365&lt;/a&gt; before rolling out Copilot more widely. The same basic discipline that protects email and file sharing also reduces the chance of AI-assisted oversharing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Microsoft 365 Copilot can expose sensitive information
&lt;/h2&gt;

&lt;p&gt;Copilot is designed to help users work with the information they already have access to. That is useful, but it also means the quality of your permissions and content management becomes critical. If a user can open a file, join a chat, or read a mailbox item, Copilot may be able to use that content when responding to a request.&lt;/p&gt;

&lt;h3&gt;
  
  
  Over-permissioned files and shared folders
&lt;/h3&gt;

&lt;p&gt;One of the most common causes of leakage is simple over-sharing. Many businesses create shared folders for convenience and then leave them open long after the project ends. Others give broad access to whole teams when only a few people need it. Over time, this creates a large pool of information that is technically available to more people than intended.&lt;/p&gt;

&lt;p&gt;Copilot does not create that access problem, but it can make the consequences more obvious. A user may ask for a summary of a project and receive details from files they did not know existed. That can lead to accidental disclosure inside the business, or to staff acting on information they were never meant to see.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sensitive content in email, Teams and SharePoint
&lt;/h3&gt;

&lt;p&gt;Email inboxes, Teams chats, and SharePoint sites often contain the most sensitive material in a business because they are where people actually work. Contracts, customer complaints, HR issues, finance discussions, and supplier negotiations all end up there. If those areas are not organised and access-controlled properly, Copilot can help people retrieve content that should have remained limited.&lt;/p&gt;

&lt;p&gt;This is why data leakage through AI assistants is often a governance problem first and a technology problem second. The assistant is only as safe as the information environment around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common privacy concerns businesses should understand
&lt;/h2&gt;

&lt;p&gt;When leaders hear about AI privacy risks, they often picture a dramatic breach. In practice, the more likely issues are quieter and more routine. They still matter, because repeated small leaks can do real damage over time.&lt;/p&gt;

&lt;h3&gt;
  
  
  Personal data, client information and commercial secrets
&lt;/h3&gt;

&lt;p&gt;Three categories deserve particular attention:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Personal data, such as employee records, customer contact details, or health-related information.&lt;/li&gt;
&lt;li&gt;Client information, such as project notes, service issues, pricing, and contract terms.&lt;/li&gt;
&lt;li&gt;Commercial secrets, such as bids, margins, strategy documents, and product plans.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If Copilot can help a user find or summarise any of these from a location that was too broadly shared, the business may face reputational damage, loss of trust, and extra work to investigate what was exposed.&lt;/p&gt;

&lt;p&gt;For organisations that handle sensitive information regularly, it is also sensible to consider whether a formal privacy review is needed. A practical starting point is &lt;a href="https://clearpathsecurity.co.uk/data-protection-impact-assessments-explained-for-uk-smes/" rel="noopener noreferrer"&gt;data protection impact assessments&lt;/a&gt;, especially where new tools change how personal data is accessed or used.&lt;/p&gt;

&lt;h3&gt;
  
  
  What happens when staff paste sensitive content into prompts
&lt;/h3&gt;

&lt;p&gt;Another common risk is staff entering sensitive information directly into an AI prompt. This may happen because they want a quick summary, a rewritten email, or help with a document. The problem is that people often treat the assistant like a private notebook, when in reality they are still using a business system.&lt;/p&gt;

&lt;p&gt;Even if the tool is well configured, staff should not assume that every prompt is harmless. A prompt can contain confidential customer details, internal plans, or personal data. If that content is not necessary for the task, it should not be entered.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to reduce the chance of oversharing before you enable Copilot
&lt;/h2&gt;

&lt;p&gt;The safest way to use Copilot is to reduce the amount of sensitive information it can reach in the first place. That means tidying up your Microsoft 365 environment before you expand access.&lt;/p&gt;

&lt;h3&gt;
  
  
  Review who can access what
&lt;/h3&gt;

&lt;p&gt;Start with the basics. Check who has access to shared folders, Teams channels, SharePoint sites, and key mailboxes. Look for access that was granted for a temporary project and never removed. Look for people who changed roles but kept old permissions. Look for external users who no longer need access.&lt;/p&gt;

&lt;p&gt;This review does not need to be perfect to be useful. Even a focused pass over the most sensitive areas can reduce risk quickly. The aim is to make sure access matches current business need, not historical convenience.&lt;/p&gt;

&lt;h3&gt;
  
  
  Remove stale access and tidy up shared locations
&lt;/h3&gt;

&lt;p&gt;Once you have identified excessive access, remove it. Then tidy up the places where sensitive information tends to accumulate. Archive old project spaces. Separate active work from closed work. Move confidential material out of general shared areas. Use clearer folder naming so staff can tell what is sensitive and what is routine.&lt;/p&gt;

&lt;p&gt;This is also a good time to review your wider information handling habits. If your business has never defined where sensitive documents should live, Copilot will simply inherit that confusion. Good structure makes the assistant more predictable and easier to trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Microsoft 365 settings and controls to check
&lt;/h2&gt;

&lt;p&gt;Microsoft 365 gives you several ways to reduce leakage risk, but they only help if they are turned on and managed properly. The goal is not to block productivity. It is to make sure the right people can use Copilot safely.&lt;/p&gt;

&lt;h3&gt;
  
  
  Permissions in SharePoint, OneDrive, Teams and Outlook
&lt;/h3&gt;

&lt;p&gt;Check the sharing settings in the main places where staff store and exchange information:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SharePoint sites should have clear ownership and limited access by default.&lt;/li&gt;
&lt;li&gt;OneDrive should not become a long-term storage area for shared business documents.&lt;/li&gt;
&lt;li&gt;Teams should be used with the same discipline as any other shared workspace.&lt;/li&gt;
&lt;li&gt;Outlook mailboxes and shared mailboxes should be reviewed for unnecessary delegation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where possible, keep access narrow and intentional. If everyone can see everything, Copilot will only make that weakness easier to notice.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sensitivity labels, retention and data loss prevention controls
&lt;/h3&gt;

&lt;p&gt;Sensitivity labels help staff understand what kind of information they are handling. A clear label can remind people that a document is confidential, internal only, or restricted. Retention settings help you keep information for the right amount of time and avoid leaving old material lying around indefinitely.&lt;/p&gt;

&lt;p&gt;Data loss prevention controls are also important. These are rules that help stop sensitive information being shared in the wrong way. For example, they can help detect when personal data or financial details are being sent outside the business or copied into the wrong place. Used well, these controls support safer use of Copilot because they reduce the chance that sensitive content is widely available in the first place.&lt;/p&gt;

&lt;p&gt;If you want a broader view of how Microsoft 365 should be configured, the article on &lt;a href="https://clearpathsecurity.co.uk/secure-baseline-configurations-for-microsoft-365/" rel="noopener noreferrer"&gt;secure baseline configurations for Microsoft 365&lt;/a&gt; is a useful companion piece.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to stop or limit Copilot use when needed
&lt;/h2&gt;

&lt;p&gt;There may be times when the right answer is not to roll out Copilot broadly. That is not a failure. It is a sensible business decision when the environment is not ready or when a specific team handles highly sensitive information.&lt;/p&gt;

&lt;h3&gt;
  
  
  When a temporary pause may be sensible
&lt;/h3&gt;

&lt;p&gt;A temporary pause can make sense if you have just discovered widespread oversharing, if your document structure is in poor shape, or if you are still working out how staff should use the tool. It can also be appropriate if you are dealing with a sensitive incident and need to reduce the number of moving parts.&lt;/p&gt;

&lt;p&gt;The point is to avoid creating a new risk while you are still fixing an old one. If the underlying information environment is not under control, Copilot can amplify confusion rather than improve productivity.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to restrict rollout to specific users or groups
&lt;/h3&gt;

&lt;p&gt;A phased rollout is usually the best approach for SMEs. Start with a small group of users who understand the business context and can give practical feedback. Choose teams that work with lower-risk information first. Keep highly sensitive functions, such as HR or finance, for later once controls are proven.&lt;/p&gt;

&lt;p&gt;This approach lets you learn how the tool behaves in your environment without exposing the whole business at once. It also gives you time to refine guidance, permissions, and monitoring before wider adoption.&lt;/p&gt;

&lt;h2&gt;
  
  
  Simple staff guidance that reduces leakage risk
&lt;/h2&gt;

&lt;p&gt;Technology alone will not solve this problem. Staff need clear, practical guidance in plain English. The message should be simple: Copilot is a business tool, not a private space, and it should be used with the same care as email or file sharing.&lt;/p&gt;

&lt;h3&gt;
  
  
  What staff should never enter into an AI assistant
&lt;/h3&gt;

&lt;p&gt;Staff should avoid entering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Passwords, passcodes, or login details.&lt;/li&gt;
&lt;li&gt;Client confidential information unless it is genuinely needed for the task.&lt;/li&gt;
&lt;li&gt;Employee records, medical information, or other personal data unless approved.&lt;/li&gt;
&lt;li&gt;Commercially sensitive plans, bids, or pricing unless the business has agreed the use case.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It helps to give examples from your own business. People are more likely to follow guidance when they can see what it means in their day-to-day work.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to use Copilot safely for everyday work
&lt;/h3&gt;

&lt;p&gt;Encourage staff to use Copilot for low-risk tasks first, such as drafting routine emails, summarising non-sensitive meeting notes, or helping to structure a document. Remind them to check the output before sending it on. AI tools can be useful, but they can also be confidently wrong or too revealing if the input is poorly chosen.&lt;/p&gt;

&lt;p&gt;For businesses that are building a wider AI policy, an AI governance policy template for UK SMEs can help turn these rules into something staff can actually follow.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short checklist for SMEs before wider rollout
&lt;/h2&gt;

&lt;p&gt;Before you expand Copilot use, ask yourself a few practical questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Do we know where our sensitive information lives?&lt;/li&gt;
&lt;li&gt;Have we removed unnecessary access from shared folders and workspaces?&lt;/li&gt;
&lt;li&gt;Are our Microsoft 365 settings aligned with how the business actually works?&lt;/li&gt;
&lt;li&gt;Have staff been told what not to enter into an AI assistant?&lt;/li&gt;
&lt;li&gt;Do we know who owns the rollout and who will review issues?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If the answer to any of these is unclear, pause and fix the basics first. That is usually cheaper and less disruptive than dealing with a leak later.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do if sensitive data may already have been exposed
&lt;/h2&gt;

&lt;p&gt;If you think Copilot has surfaced information it should not have, treat it as a business issue first. Do not assume the problem will sort itself out. Start by containing the issue and understanding the scope.&lt;/p&gt;

&lt;h3&gt;
  
  
  Contain the issue and review access
&lt;/h3&gt;

&lt;p&gt;Check which users could access the content, where it was stored, and whether the permissions were broader than intended. If a document or workspace is the source of the problem, restrict access while you investigate. Preserve relevant records so you can understand what happened and when.&lt;/p&gt;

&lt;p&gt;If the issue involves a wider Microsoft 365 environment, it may help to review your logging and investigation approach alongside the content itself. Good records make it easier to decide whether the issue is isolated or part of a wider pattern.&lt;/p&gt;

&lt;h3&gt;
  
  
  Assess business impact and decide next steps
&lt;/h3&gt;

&lt;p&gt;Once you know what was exposed, consider the practical impact. Was it internal only, or could it have affected customers, suppliers, or employees? Was the information commercial, personal, or both? Do you need to notify anyone internally, and do you need specialist support to assess the exposure properly?&lt;/p&gt;

&lt;p&gt;For some businesses, the right next step is simply to tighten permissions and improve guidance. For others, especially where sensitive personal data or regulated information is involved, a deeper review is sensible.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to get extra help
&lt;/h2&gt;

&lt;p&gt;You should consider outside support if your Microsoft 365 estate is large, if sensitive information is spread across many teams, or if you are unsure how Copilot is interacting with your existing permissions. A structured review can identify the biggest risks quickly and help you prioritise the fixes that matter most.&lt;/p&gt;

&lt;p&gt;That kind of review is especially useful if you want to adopt AI without creating avoidable exposure. It can also help you connect the technical controls with the business process changes that make them work in practice.&lt;/p&gt;

&lt;p&gt;If you would like help reviewing your Microsoft 365 setup, access controls, and AI rollout approach, speak to a consultant. A risk-based review can help you decide where Copilot is ready for wider use and where more work is needed first.&lt;/p&gt;

&lt;p&gt;Used well, Microsoft 365 Copilot can save time and improve productivity. Used without preparation, it can surface information that was already too easy to reach. The difference is usually not the AI itself. It is the quality of your permissions, the discipline of your information handling, and the clarity of your staff guidance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What are the privacy concerns associated with artificial intelligence?
&lt;/h3&gt;

&lt;p&gt;For SMEs, the main privacy concern is usually not the AI tool itself but the data it can access, store, or reveal. Risks include accidental exposure of personal data, client information, and commercial secrets through over-shared files, chats, or prompts.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I stop Microsoft 365 Copilot from running?
&lt;/h3&gt;

&lt;p&gt;The practical answer depends on how your Microsoft 365 environment is licensed and configured. In many cases, the better approach is to limit rollout to specific users or groups, tighten permissions, and pause wider use until your information structure and controls are ready.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Log ingestion delay and its effect on detection latency in Microsoft Sentinel</title>
      <dc:creator>Clear Path Security Ltd</dc:creator>
      <pubDate>Wed, 28 Oct 2026 16:00:03 +0000</pubDate>
      <link>https://dev.to/clearpathsecurity/log-ingestion-delay-and-its-effect-on-detection-latency-in-microsoft-sentinel-4fgg</link>
      <guid>https://dev.to/clearpathsecurity/log-ingestion-delay-and-its-effect-on-detection-latency-in-microsoft-sentinel-4fgg</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the ClearPath Security site: &lt;a href="https://clearpathsecurity.co.uk/log-ingestion-delay-and-its-effect-on-detection-latency-in-microsoft-sentinel/" rel="noopener noreferrer"&gt;https://clearpathsecurity.co.uk/log-ingestion-delay-and-its-effect-on-detection-latency-in-microsoft-sentinel/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Microsoft Sentinel can only detect what it has received, parsed, and made available for analytics. That sounds obvious, but in practice many teams focus on rule logic and miss a more basic constraint: the delay between an event happening and that event becoming queryable in Sentinel. For a security engineer or SOC analyst, that delay is not just a platform metric. It affects triage speed, correlation quality, hunting confidence, and whether an alert lands while the activity is still in progress.&lt;/p&gt;

&lt;p&gt;For UK SMEs, the issue is usually not one dramatic failure. It is a collection of small delays across agents, connectors, network paths, transformations, and rule schedules. A few minutes here and there can be acceptable for low-value telemetry, but the same delay on identity, endpoint, or privileged access logs can materially weaken detection. If you already think about pipeline design, it is worth reading this alongside our &lt;a href="https://clearpathsecurity.co.uk/designing-log-pipelines-for-detection-engineering/" rel="noopener noreferrer"&gt;designing log pipelines for detection engineering&lt;/a&gt; guidance, because ingestion latency is one of the main reasons a well-written detection still underperforms.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Treat ingestion latency as a detection quality issue, not just a platform performance metric.&lt;/li&gt;
&lt;li&gt;Measure both event time and ingestion time so you can see where delay is introduced.&lt;/li&gt;
&lt;li&gt;Prioritise low-latency handling for identity, endpoint, and privileged access telemetry.&lt;/li&gt;
&lt;li&gt;Tune analytics rule lookback windows and schedules to account for late-arriving data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What log ingestion delay means in Sentinel
&lt;/h2&gt;

&lt;p&gt;Log ingestion delay is the time between when an event occurs on the source system and when that event is available in Sentinel for search, analytics, and hunting. In a healthy pipeline, that delay is usually short and predictable. In a less mature environment, it can vary by source, by time of day, or by the volume of data being processed.&lt;/p&gt;

&lt;p&gt;The first distinction to make is between event time and ingestion time. Event time is when the source system says something happened. Ingestion time is when Sentinel receives the record. Those two timestamps are often close, but they are not the same. A detection that keys off event time may describe the real-world sequence accurately, while a detection that depends on ingestion time may reflect pipeline behaviour more than attacker behaviour.&lt;/p&gt;

&lt;p&gt;Delay can appear at several points. An endpoint agent may buffer logs locally. A connector may batch records before forwarding them. A source system may only export data periodically. A transformation may take time to parse or normalise records. Network congestion, throttling, or workspace pressure can add more latency. By the time a record is queryable, the original activity may already be over.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why detection latency matters for SOC operations
&lt;/h2&gt;

&lt;p&gt;Detection latency is the operational effect of ingestion delay. If a brute-force attempt, suspicious sign-in, or privilege escalation event arrives late, the SOC may lose the chance to contain the activity while it is still active. Even when the alert is still useful for investigation, the response window is narrower and the evidence trail may be less complete.&lt;/p&gt;

&lt;p&gt;Late logs also affect correlation. Many Sentinel analytics rules depend on multiple events occurring within a defined window. If one source arrives quickly and another arrives late, the rule may fail to match the sequence even though the activity really happened. That is especially relevant for multi-stage detections, such as identity plus endpoint combinations, or parent-child process chains. The detection logic may be sound, but the timing assumptions are wrong.&lt;/p&gt;

&lt;p&gt;Hunting is affected in a similar way. Analysts often assume that a recent query window reflects recent activity. If one source is delayed by 10 minutes and another by 30, a hunt for “last 15 minutes” may miss the most relevant records. That is why latency should be treated as part of detection quality, not as a separate infrastructure concern. It sits alongside the same themes discussed in &lt;a href="https://clearpathsecurity.co.uk/measuring-detection-quality-and-false-positives-for-technical-teams/" rel="noopener noreferrer"&gt;measuring detection quality and false positives&lt;/a&gt;, because a detection that is technically correct but consistently late is still operationally weak.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common causes of delayed ingestion
&lt;/h2&gt;

&lt;p&gt;One common cause is connector or agent-side buffering. Many collectors batch events to reduce overhead and network chatter. That is often sensible, but the batch interval becomes part of your latency budget. If the collector waits for a buffer to fill before sending, low-volume sources can sit idle for longer than expected.&lt;/p&gt;

&lt;p&gt;Transformation and parsing overhead can also introduce delay. If you are normalising data heavily at ingestion time, or using complex parsing logic, the pipeline may spend measurable time reshaping each record. That is not inherently bad, but it should be intentional. Ingestion-time processing should improve detection value, not become an accidental bottleneck.&lt;/p&gt;

&lt;p&gt;Workspace, network, and source-system constraints matter too. A source system under load may export logs slowly. A constrained VPN or proxy path may add jitter. A workspace receiving very high volumes may experience throttling or back-pressure. None of these issues are unique to Sentinel, but they become visible in Sentinel because they directly affect when analytics can run.&lt;/p&gt;

&lt;h2&gt;
  
  
  How DCRs and transformations influence latency
&lt;/h2&gt;

&lt;p&gt;Data Collection Rules, or DCRs, are a useful control point because they define how data is collected and shaped before it lands. They can reduce noise, standardise fields, and improve downstream analytics. They can also add latency if the collection path is over-engineered or if too much work is pushed into ingestion-time processing.&lt;/p&gt;

&lt;p&gt;In practice, the trade-off is between efficiency and immediacy. A well-designed DCR can reduce storage cost and improve signal quality. A poorly designed one can delay high-value telemetry enough to weaken detections. The right answer is usually not to avoid transformations altogether, but to reserve the most expensive processing for sources where the benefit is clear.&lt;/p&gt;

&lt;p&gt;For example, if you are ingesting Windows event data, it may be better to keep the ingestion path lightweight and do only essential normalisation, then use KQL for enrichment where possible. If you are handling a source with known schema inconsistency, some ingestion-time parsing may be justified. The key is to measure the impact rather than assume the transformation is free.&lt;/p&gt;

&lt;p&gt;For teams building detections from multiple sources, this is also where architecture discipline matters. Our &lt;a href="https://clearpathsecurity.co.uk/building-microsoft-sentinel-analytics-rules-from-mitre-attck-techniques/" rel="noopener noreferrer"&gt;building Microsoft Sentinel analytics rules from MITRE ATT&amp;amp;CK techniques&lt;/a&gt; article explains how to align rules to attacker behaviour. Latency is the missing operational variable in that model. A good ATT&amp;amp;CK mapping still needs realistic timing assumptions.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to measure ingestion delay in practice
&lt;/h2&gt;

&lt;p&gt;The simplest way to measure delay is to compare the source event timestamp with the ingestion timestamp. In Sentinel, the exact field names vary by table and connector, but the principle is the same. You want to understand the difference between when the event happened and when it became available for query.&lt;/p&gt;

&lt;p&gt;A basic KQL pattern is to calculate the age of each record at ingestion or at query time. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SecurityEvent
| extend DelayMinutes = datetime_diff("minute", TimeGenerated, ingestion_time())
| summarize AvgDelay = avg(DelayMinutes), P95Delay = percentile(DelayMinutes, 95), MaxDelay = max(DelayMinutes) by bin(TimeGenerated, 1h)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That query is not a universal answer, because not every table exposes the same semantics and not every source uses the same timestamp quality. But it is a useful starting point. You can adapt it to specific tables such as sign-in logs, device events, or firewall data, then compare the results over time.&lt;/p&gt;

&lt;p&gt;Another useful pattern is to build freshness checks. For example, if a source should emit records continuously, you can alert when the most recent record is older than an expected threshold. That is less about exact delay and more about source health. It helps distinguish “slow but alive” from “silent and broken”.&lt;/p&gt;

&lt;p&gt;When you test latency, do not look only at averages. Median and 95th percentile values are usually more informative. A source with a 2 minute average delay but a 20 minute 95th percentile delay will create inconsistent detection behaviour. That inconsistency is often what frustrates analysts most.&lt;/p&gt;

&lt;h2&gt;
  
  
  What good latency looks like for different log sources
&lt;/h2&gt;

&lt;p&gt;There is no single acceptable delay target for every source. High-value identity and endpoint telemetry usually deserves the tightest latency budget because those logs support rapid containment and account protection. If sign-in anomalies, device alerts, or privilege-related events arrive late, the organisation may miss the best window to respond.&lt;/p&gt;

&lt;p&gt;Lower-priority or batch-oriented sources can tolerate more delay. Historical exports, compliance feeds, and some third-party logs are often more useful for trend analysis than immediate response. In those cases, a longer delay may be acceptable if the data is complete and reliable.&lt;/p&gt;

&lt;p&gt;A practical approach is to classify sources into tiers. Tier 1 might include identity, endpoint, and domain controller telemetry. Tier 2 might include network security devices and cloud audit logs. Tier 3 might include batch feeds, reference data, or low-value operational logs. Each tier can have a different latency expectation, which makes it easier to decide where to invest effort.&lt;/p&gt;

&lt;p&gt;This is closely related to the broader question of visibility and blind spots. If you want a wider view of how missing or delayed data affects coverage, our &lt;a href="https://clearpathsecurity.co.uk/understanding-detection-coverage-and-blind-spots-for-uk-smes/" rel="noopener noreferrer"&gt;understanding detection coverage and blind spots for UK SMEs&lt;/a&gt; article provides useful context.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to reduce delay without losing visibility
&lt;/h2&gt;

&lt;p&gt;The first step is to prioritise critical sources. If you cannot improve everything at once, focus on the logs that support the fastest and most important decisions. That usually means identity, endpoint, and privileged access telemetry before low-value operational noise.&lt;/p&gt;

&lt;p&gt;Next, reduce unnecessary volume. Excessive logging can create self-inflicted delay, especially if collectors, parsers, or workspaces are under pressure. Filtering out low-value events at source is often better than ingesting everything and trying to sort it out later. That said, be careful not to remove data that supports investigations or correlation. The goal is not minimal logging. The goal is useful logging with predictable latency.&lt;/p&gt;

&lt;p&gt;Transformation logic should be kept as simple as possible for high-priority streams. If a field can be normalised at source, do that. If enrichment can happen later in KQL or in a downstream process, consider moving it out of the ingestion path. This is particularly important where the transformation is expensive but only marginally improves detection fidelity.&lt;/p&gt;

&lt;p&gt;Retention and cost settings also matter. Teams sometimes over-optimise for storage cost and accidentally create a pipeline that is too aggressive in filtering or batching. Cost control is sensible, but it should not undermine the timeliness of the data that drives response. A small increase in ingestion cost can be justified if it materially improves detection latency for critical sources.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detection engineering considerations when logs arrive late
&lt;/h2&gt;

&lt;p&gt;Late-arriving data changes how you schedule and scope analytics rules. If a rule runs every five minutes but the source can arrive 10 minutes late, the rule may need a longer lookback window or a different execution cadence. Otherwise, the detection may repeatedly miss the relevant event set.&lt;/p&gt;

&lt;p&gt;For scheduled analytics, the main design question is whether the rule should optimise for speed or completeness. A short lookback window gives faster alerts but increases the chance of missing late data. A longer lookback window improves coverage but may create duplicate alerts or more noise. In many environments, the right answer is to use a slightly longer window and then deduplicate intelligently.&lt;/p&gt;

&lt;p&gt;You should also think about event ordering. Some detections assume that the source event time reflects the true sequence. If ingestion delay is inconsistent, the order in which records appear in Sentinel may not match the order in which the activity happened. That matters for correlation rules, especially those that chain multiple steps together.&lt;/p&gt;

&lt;p&gt;For hunting, the safest approach is to build a small delay buffer into your queries when working with sources known to be late. That means not always querying right up to the current minute. It is a pragmatic compromise that reduces false confidence. If you are using KQL heavily, our &lt;a href="https://clearpathsecurity.co.uk/kql-threat-hunting-with-microsoft-sentinel-a-practical-guide-for-uk-smes/" rel="noopener noreferrer"&gt;KQL threat hunting with Microsoft Sentinel&lt;/a&gt; guide is a useful companion for building those queries in a disciplined way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Operational checks for small security teams
&lt;/h2&gt;

&lt;p&gt;Small teams do not need a large observability platform to manage ingestion delay well. They do need a few routine checks. Start by monitoring source freshness for the logs that matter most. If a critical source has not produced data within its expected interval, that should be visible quickly.&lt;/p&gt;

&lt;p&gt;It is also worth tracking latency trends over time. A source that is stable today but slowly degrading over several weeks can be harder to spot than a sudden outage. Simple dashboards showing median delay, 95th percentile delay, and last-seen time are often enough to reveal problems early.&lt;/p&gt;

&lt;p&gt;Set thresholds that trigger investigation rather than immediate panic. For example, a 5 minute delay on a source that normally arrives in under a minute may justify a check, but it does not always require escalation. The threshold should reflect the business value of the source and the operational impact of missing it.&lt;/p&gt;

&lt;p&gt;Finally, make sure the team knows which delays are acceptable and which are not. If everyone assumes Sentinel is “real time”, they may over-trust the platform and under-estimate the risk of delayed telemetry. Clear expectations are part of good operational security, not just good engineering.&lt;/p&gt;

&lt;p&gt;For organisations that want a broader detection architecture review, this is often a good place to discuss pipeline design, source prioritisation, and rule timing together. If that would be useful, you can Speak to a consultant about practical support.&lt;/p&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can delayed ingestion cause missed alerts?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. If a rule depends on a narrow time window, late-arriving data can fall outside the query window or arrive after the rule has already run. That can lead to missed matches, delayed alerts, or weaker correlation across sources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should every log source be treated with the same latency target?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
No. Identity, endpoint, and privileged access logs usually deserve tighter latency targets than batch feeds or low-value operational logs. A tiered approach is more realistic and helps you spend effort where it improves detection most.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I check whether Microsoft Sentinel is ingesting logs late?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Compare the source event timestamp with the ingestion timestamp for the relevant table, then review median, 95th percentile, and maximum delay over time. Also check last-seen time for critical sources so you can spot stalled pipelines as well as slow ones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can ingestion delay affect scheduled analytics rules and hunting queries?&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Yes. Scheduled rules may miss late data if the lookback window is too short, and hunting queries can give a false sense of completeness if they assume the newest records are already present. Build in a delay buffer for sources that are not consistently fast.&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
