Skip to content

[Feature]: Configurable option to limit full scans to files modified since a defined date #208

Description

Problem Description
The DMG agents scan currently runs full scan all files on the device on the targetted directories every time, regardless of whether they've changed since the last scan. On machines with large filesystems, many packages, or deep node_modules/venv trees, this makes full scans slow and resource-intensive, even though most files are static between scans.

Proposed Solution
Add a configurable option (e.g. a policy/config setting such as fullScanModifiedSince) that lets admins define a cutoff, either a relative window (e.g. "only scan files modified in the last N days") or "since the last successful scan", so that during a full scan, the agent skips files whose last-modified timestamp falls outside that window. Newly created/modified files would still always be scanned. This should be opt-in and configurable per policy, not a replacement for true full-coverage scans.

Alternatives Considered
Always defaulting to incremental scans was considered, but that could reduce detection coverage for cases where full re-scans are required for compliance. Making it an explicit, configurable option preserves the choice for admins who need guaranteed full coverage vs. those optimizing for speed.

Additional Context
No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions