Trace a Windows SQLite scan into inventory
Trace a Windows SQLite scan into inventory
Loading video…
This walkthrough uses the real native Windows runtime and the live workspace. It shows local file authorization, policy validation, managed job submission and the resulting evidence. No database service is mocked. The lab harness writes the agent configuration and starts its foreground process off-camera; the steps below explain that handoff. This is not Windows service-account or SQLCipher acceptance.
What you will accomplish
Authorize one local SQLite file, validate the policy as the Windows agent account, submit a managed database job, and inspect the resulting evidence and coverage gaps. Complete Windows agent enrollment first. This path uses a foreground agent; service-account configuration is a separate workflow.
Prepare the host
Use the verified unified Windows package and a workspace agent with the database capability. Choose an owned database file that the agent account may inspect. This demonstration uses a disposable ordinary SQLite database; it is not a SQLCipher example. Never authorize a production file merely because a tutorial shows a similar path.
Use a protected local directory for policy and credentials. The agent credential file itself requires a protected Windows ACL, not only an ACL inherited from its directory. The installer handles credential storage for its supported deployment mode. If supplying a credential file for automation, apply the documented owner/service-account restrictions before running doctor.
Authorize the file locally
- Run the native executable's
database configurecommand with a protected--directoryand the exact workspace--tenantID. - Choose
sqliteand provide the absolute existing file path. - Answer No to SQLCipher for an ordinary SQLite file. An encrypted SQLCipher file requires the separate format and passphrase workflow.
- Review and save the authorization. Retain its connection ID.
- Run
database check --policy <absolute-policy-file> --tenant <workspace-id>as the account that will run the agent. This validates local readiness; it does not run a database scan. - Set
databasePolicyFilein the agent configuration to that absolute policy path, restart the agent, and check its database readiness in the workspace. Keep the enrollment credential private.
Submit and inspect the managed job
- Open Scan setup and select Database.
- Enter a descriptive job name and the saved connection ID. Do not paste the file path or a credential into the target field.
- Select the Windows agent that owns this local authorization and start the scan.
- Follow the job from queued to its terminal result. Queued is not evidence of completion.
- Open cryptographic inventory, search for the connection ID and open the resulting asset.
- Inspect the evidence, source, assessment and coverage gaps together. Ordinary SQLite has no network TLS session. Missing transport evidence must not be interpreted as either successful TLS or a failed network handshake.
- Remove temporary local authorizations and retire temporary agent identities when finished. Retained historical evidence is separate from a currently authorized collector.
Understand the limits
A readable ordinary SQLite file does not establish whether its underlying volume is encrypted. The collector's metadata result is not an audit of every database row or the full Windows storage stack. Partial results preserve unavailable evidence instead of assigning success to missing data.
The owned demonstration includes a marker row and a before/after file hash. Acceptance requires the file to remain unchanged and the marker to be absent from returned evidence. These are checks for this test fixture, not a substitute for least-privilege host access.
Recover from common problems
- Credential rejected by doctor: verify the credential file has its own protected ACL and is readable only by the intended identity and permitted administrators. Directory inheritance alone may not satisfy the check. Do not loosen the check or expose the token in command-line arguments.
- Policy check passes but doctor reports a database policy problem: check the agent credential first. Doctor derives the workspace identity from it, so an unreadable credential prevents matching the policy to the workspace.
- Agent is not ready: inspect the policy path, workspace ID, account permissions and runtime heartbeat. A local check does not validate a cloud credential.
- Unknown connection ID: use the ID saved by this agent's local policy, not a display name or a connection from another tenant.
- Queued job: confirm the authorized agent is running and connected; a stopped foreground process cannot claim it.
- Partial result: read the specific coverage gaps. Do not change a partial result to complete merely to remove a warning.
Narration transcript
Let's take a Windows database from local authorization to evidence in your workspace. We'll approve one SQLite file, check the policy, and run a managed scan. This follows agent enrollment, so the agent identity is already in place. Choose SQLite and enter the absolute file path. This isn't SQL Cipher, so answer No and Save. This local authorization limits the agent to the approved file. It doesn't let the workspace browse your disk. The local policy check passes. Database access still needs a real scan. In Scan Setup, choose Database, give the job a useful name, and enter the saved connection ID. Select the Windows agent that holds that authorization. Only that selected identity can claim this job. If it isn't ready, check its local policy and heartbeat before continuing. Start the scan and follow its job entry. Queued means the request is waiting for the agent. It doesn't mean the database has already been checked. The local agent claims the request, applies its policy, and returns discovery evidence. This job is partial. Ordinary SQLite has no network TLS session or server key management metadata. Those evidence limits stay visible. Missing information hasn't been turned into a successful security check. Search Inventory for the connection ID, then open its asset. Now we're reviewing the exact observation from this job. Review the evidence and its assessment together. A local SQLite file has different cryptographic questions from a network database. Don't read an absent transport handshake as a failed TLS connection, and don't assume a readable file proves the underlying disk is unencrypted. The collector reports cryptographic metadata, not application rows. Here, the owned test database also contained a marker row. The scan left the file unchanged, and that row never appeared in the returned evidence. Those checks validate this demonstration. They don't replace your own access controls. We've authorized one Windows file, run a managed scan, and traced its partial result into Inventory. Keep the authorization local and investigate evidence gaps. SQL Cipher and network databases need their own credentials and checks.