Reporting Agent for Windows security design

How the DataReel Reporting Agent for Windows protects a fleet inventory: a non-exportable machine key per computer, certificate registration and approval, signed uploads with timestamps and one-time nonces, the report server checks, the file share and SCP deliveries, the protections on the computer, and the limits.

The current copy is at https://datareel.com/windows_reporting_agent/security_design.php.

Release: 3.6, with the report server pages of the same release. Audience: security reviewers, administrators and anyone deciding whether to run the agent on their computers or trust the reports it sends. The source code is published, so everything on this page can be checked against it; the design does not depend on keeping it secret. The documentation has the setup steps, and the programs are on the downloads page.

1. What the agent protects, and from whom

The agent is a Windows service that collects an inventory of the computer (service tag, IP addresses, user profile names, installed programs, Windows updates and hotfixes, Windows Defender alerts, usage counters and, after a scan, the security updates still to install) and sends it as a text report to a report server, a Windows file share or an SSH server. The goals are:

The agent does not protect against someone who is an administrator on a computer (they can make it send any report they like), against an attacker who controls the report server, or against a site that runs the server over plain HTTP. It reports what Windows tells it; it is an inventory, not an intrusion detection system.

2. The parts and how they trust each other

Windows computer Machine key, RSA 3072Windows key store, not exportable DataReelReportAgent service ProgramData folderSYSTEM and Administrators only Report server (Apache + PHP) register.php, upload.php,hook.php: open, signed admin.php, status.php,report.php: login DATA_DIRregistrations, nonces, reports File share orSSH servernot signed DRSMreads report files,never connects to Windows HTTPS, signed CIFS or SCP Every connection starts at the computer. The service listens on no port. Dashed: DRSM reads the reports folder, or a share on the monitor host.
Figure 1. The agent, the report server and DRSM. Only the HTTPS path is signed.
PartTrustsIs trusted for
Agent service (LocalSystem)Windows (WMI, registry, event log, Windows Update), the settings file, the server's TLS certificate as Windows checks itReporting what Windows tells it about its own computer
register.php, upload.php, hook.phpNothing in a request until its signature, approval state, time and nonce are checkedKeeping only approved, signed, fresh reports
admin.php, status.php, report.phpThe web server login, or the DRSM dashboard loginApproving computers and showing the inventory to signed-in people
DRSMThe report files in its reports folderAlerts, the dashboard, trends and the Vulnerabilities page

3. The computer's identity

4. Registration and approval

Agent signs"register" | host | time | nonce |SHA-256(certificate)sends cert + token + signature register.php checkshost name, nonce, time window,CN = host, signature, nonce unused(proof the agent holds the key) Known host, same keyreply: its state (no change) Known host, other keykey_mismatch until an admin deletes it New hostpending, or approved by the token admin.php: Approveafter the fingerprint check The agent saves "approved <fingerprint> <server>" and registers again when the key or the server changes, or when the server answers not_registered, pending, revoked or key_mismatch.
Figure 2. A computer name is bound to the first key that registers it.

5. Signed uploads

1. Formathost name, nonce 2. Timewithin 300 s 3. Approvedregistered, not revoked 4. Size2 MB by default 5. Signatureregistered certificate 6. Noncenever seen before 7. Saveunder the signer's name Any failure: STATUS reply, nothing savedbad_timestamp, not_registered, pending, revoked,bad_signature, replay Signed data: "upload" | host | time | nonce | SHA-256 of the report (RSA PKCS#1 v1.5, SHA-256)
Figure 3. A report is saved only after every check passes.

6. Transport and delivery methods

7. On the Windows computer

8. On the report server

9. Cryptography and FIPS

UseAlgorithmDone by
Computer identityRSA 3072, non-exportable machine keyMicrosoft Software Key Storage Provider (CNG)
Request signaturesRSA PKCS#1 v1.5 with SHA-256CNG on the computer, PHP OpenSSL on the server
Report and certificate hashes, fingerprintSHA-256CNG, PHP
Nonces128 random bitsBCryptGenRandom, system generator
Share password at restDPAPI, machine scopeWindows
TransportTLS as negotiated by Windows and the web serverWinINet / Schannel, Apache

The agent has no FIPS mode of its own and makes no FIPS claim. Its cryptography is done by Windows CNG and, on the server, by PHP's OpenSSL extension; whether those modules run in a validated FIPS mode depends on the Windows build and policy and on the server's OpenSSL. Check them with your security office if your site needs FIPS 140-3.

10. What a report holds

A report names the computer, its service tag and asset tag, IP addresses, the user profile folders, every installed program and version, the Windows updates and hotfixes, Defender alerts (with threat names and file paths), usage counters and the security updates still missing. Together the reports are a map of the fleet and its weak spots, so treat the reports folder like any other sensitive inventory: keep the status pages behind a login, keep backups private, and give DRSM and other readers access only to what they need. The agent sends no passwords, no file contents and no browsing data.

11. Limits, stated plainly

12. Quantum computing

13. AI-assisted use

The AI-assisted guide (AGENTS.md) keeps an AI agent away from every secret on this page: it never reads the enrollment token, a share password, an SCP key, server.ini or the admin passwords, never suggests exporting the machine key or weakening a check, and never approves a computer without the fingerprint check. People run or approve every step.

14. Reporting a security issue

Report security issues privately through the contact page, not in public issue trackers. Fixes go into the next release; the change log lists every release and what changed.