Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How does on-demand scanning work?
Cyber Security

How does on-demand scanning work?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 19, 2026 Domain: Cyber Security

On-demand scanning examines files, folders, or entire systems when an administrator or scheduled task starts the scan, rather than at the moment of access. It is used for periodic assurance, incident response, and clean-up after a suspected exposure, with results guiding quarantine, removal, or deeper investigation.

What on-demand scanning is doing under the hood

On-demand scanning is a deliberate inspection run, not a continuous monitor. It pulls a defined target set, then evaluates it against the scanner’s current signature, heuristic, or policy logic. That makes it useful when you want a point-in-time answer about exposure, not just a live protection signal. In endpoint programs, it often complements host telemetry and containment rather than replacing them, as described in the Endpoint Security Guide.

The target can be a file, directory, mounted volume, or a whole host, depending on the product and the scope the administrator selects. The scan can start manually, on a schedule, or as part of a response workflow after an alert, suspicious download, or compromise concern. Because it runs when invoked, it is better suited to validation, triage, and cleanup than to intercepting every access event.

What matters operationally is that the scan outcome is actionable, not merely informational. A clean result can support assurance, but a detection usually feeds quarantine, deletion, restore, or deeper investigation. If the scanner is running after a suspected exposure, the main value is often discovery of dormant artifacts, not immediate prevention.

Why administrators still use it alongside real-time protection

Real-time scanning and on-demand scanning solve different problems. Real-time controls aim to stop known bad content at the moment it is touched, while on-demand scans let defenders re-check large sets of data or systems with updated detections. That is why on-demand scans remain common after rule updates, policy changes, migrations, and incident response actions.

It also helps with blind spots that real-time policy may not fully cover, such as archive contents, inactive directories, removable media, or systems that were offline when an earlier control fired. In practice, the scan becomes a verification step: it confirms whether the current state still contains suspicious or prohibited material, rather than assuming the earlier alert already resolved the issue.

That distinction is why many teams pair it with lifecycle and exposure-management work, including inventory review and cleanup of stale content. Where dormant files or credentials may be present, the NHI Lifecycle Management Guide is useful for the broader problem of visibility, rotation, and removal of lingering assets that should no longer exist.

How to interpret results and decide what happens next

The most important operational question is not whether the scan found something, but whether the finding changes trust in the host or data set. A single positive result in a critical system may justify containment, whereas a low-confidence hit in a lab or staging environment may call for retesting and context review. Treat the scan as evidence, then confirm whether the file is active, inert, quarantined, or part of an expected workflow.

On-demand scans are most useful when the output is tied to a response decision. For example, a detection in a user workstation may warrant quarantine and credential review, while a detection in a server image may require rebuild or revalidation of the image source. The scan itself does not remove risk, it only makes the risk visible enough to act on.

If the scan is part of an incident workflow, preserve the evidence before cleanup when possible. That usually means recording the detection time, file path, hash, affected host, and any action taken by the scanner, so investigators can determine whether the issue was introduced recently or was already resident.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-5 — Account ManagementOn-demand scanning supports periodic validation of exposed assets and cleanup.
Recommendation — Schedule targeted scans to validate exposed assets and drive remediation.
NIST CSF 2.0DE.CM-01 — Monitoring for Adverse EventsOn-demand scanning is a monitoring activity used to detect suspicious files and systems.
Recommendation — Use scans to detect suspicious content and trigger response actions.
NIST SP 800-53 Rev 5SI-3 — Malicious Code ProtectionScanning files and systems for malicious content maps directly to malicious code detection.
Recommendation — Configure scans to inspect targeted content for malicious code indicators.
ISO/IEC 27001:2022A.8.7 — Protection against malwareThe topic concerns malware scanning and remediation within endpoint protection.
Recommendation — Apply malware scanning and cleanup controls across relevant endpoints.

Practitioner Guidance

What to verify: Confirm whether the scanner is using current detections and whether its target set matches the actual question you are trying to answer. A broad scan of the wrong path can produce false confidence, while a narrow scan of only active files can miss dormant exposure.

Decision rule: If the scan is being used for incident response, preserve artifacts before remediation. If it is being used for routine assurance, make sure the result feeds a repeatable clean-up or validation process, not just a report archive.

Common mistake: Treating a clean on-demand scan as proof that the host has no problem. It only shows that the selected scope was clean at the moment of the run, and it says nothing about content outside that scope or files introduced afterward.

Practitioner takeaway: On-demand scanning is strongest as a verification and response tool, so its value depends on scope discipline, current detections, and a clear next action when the scan finds something.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org