Delivered remotely for a business based in Chicago, United States. Names withheld by agreement.
Project Overview
Organizations operating in finance, healthcare, and intellectual-property-intensive sectors face recurring insider-risk challenges: misdirected client exports, unapproved cloud uploads, and removable-media data transfers. Yet heavy-handed monitoring suites often backfire—flooding disks with raw screen captures, alienating employees through intrusive keylogging, and violating regional privacy rules.
We engineered a privacy-scoped employee activity monitoring and insider-risk compliance platform built on C#, .NET, and React. The system separates benign daily work patterns from genuine policy violations, evaluating structured endpoint telemetry against configurable governance rules and delivering auditable compliance insights without turning corporate IT into unchecked surveillance.
Endpoint Telemetry & Privacy Friction
Legacy workforce monitoring software frequently fails both security auditors and privacy counsel for predictable architectural reasons:
- Over-collection of raw data: Capturing continuous screenshots and unfiltered keystrokes creates massive storage liability and exposes personal passwords or private medical browsing inside corporate logs.
- Fragile offline buffering: Remote laptops crossing unreliable networks either drop critical file-exfiltration events or wedge local CPU and disk budgets during catch-up bursts.
- Single-admin blind spots: Without separation of duties, a rogue administrator with database access could read executive activity or scrub incriminating audit entries.
- Noisy raw activity feeds: Presenting compliance officers with thousands of ungrouped window-switch events obscures genuine anomalies like off-hours mass archive creation.
Architectural Strategy
We designed the platform around edge-first privacy filtering paired with a .NET policy evaluation pipeline. Rather than shipping unfiltered telemetry to the cloud and redacting later, the C# endpoint collector applies signed policy manifests locally—ignoring excluded personal domains, hashing sensitive clipboard snippets unless an explicit DLP pattern matches, and emitting compact structured events detailing application context, file paths, and egress destinations.
Central ASP.NET Core services validate device certificates, stream incoming batches into TimescaleDB hypertables, and score behavioral sequences—such as staging encrypted archives right before copying to external storage. React surfaces prioritized risk timelines through role-scoped views, enforcing pseudonymous display modes and dual-approval unmasking workflows where regional governance mandates require it.
Core Capabilities
- Policy-Scoped Telemetry Collection: Captures structured application focus, file rename/copy events, removable media mounts, and corporate web-upload metadata while dropping excluded personal traffic at the edge.
- Real-Time DLP & Risk Correlation: Evaluates multi-step behavioral rules in .NET (e.g., mass repository archive followed by personal cloud upload) and pushes live alerts over SignalR.
- Privacy & Regional Jurisdiction Controls: Enforces organization-unit policies supporting anonymized team metrics, works-council retention ceilings, and audited two-person unmasking.
- Tamper-Evident Compliance Ledger: Hash-chains critical policy changes, agent tampers, and incident exports in PostgreSQL to satisfy legal chain-of-custody standards.
- React Governance & Policy Workbench: Enables compliance analysts to author exclusion rules, inspect entity timelines, manage device health, and export court-ready audit packages.
Technical Architecture
Managed workstations run a lightweight C#/.NET collector authenticated via mutual TLS device certificates. The agent batches sanitized activity records locally in an encrypted buffer and posts compressed gRPC/HTTPS payloads to ASP.NET Core ingestion nodes. Ingestion workers check active rules cached in Redis, write raw immutable records into TimescaleDB hypertables, and trigger risk-scoring handlers when thresholds trip. High-priority findings broadcast immediately over SignalR to the React compliance console, while continuous aggregates power fast historical reporting.
Flow: C# Endpoint Collector (Edge Privacy Filter + Local Buffer) → mTLS .NET Ingestion API → Redis Policy Cache + Behavioral Rule Engine → PostgreSQL / TimescaleDB Hypertables → SignalR + React Governance Console
Sharing strongly typed C# data contracts across endpoint collectors and backend evaluation services removes schema drift and guarantees every policy update validates cleanly before rollout.
Technology Stack
| Category | Technology detail |
|---|---|
| Backend Services | C# and .NET 8 ASP.NET Core services handling ingestion, policy engines, and RBAC |
| Endpoint Collectors | .NET worker agents capturing policy-filtered file, USB, and application-focus events |
| Governance Console | React and TypeScript dashboard providing risk timelines, policy builders, and audit views |
| Time-Series Telemetry | PostgreSQL with TimescaleDB hypertables partitioning high-volume endpoint activity streams |
| Policy & State Cache | Redis caching active DLP rules, device heartbeats, and alert deduplication windows |
| Live Event Push | SignalR streaming real-time high-severity policy alerts to active compliance reviewers |
| Evidence Integrity | Cryptographic hash-chaining verifying immutable compliance logs against tampering |
| Privacy Redaction | Configurable endpoint-side masking stripping personal domains and sensitive form fields |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Maintaining insider-risk visibility without storing sensitive employee PII | Executed domain allow/deny masking and regex redaction directly inside the C# endpoint agent before transmission; limits retroactive inspection of previously unmonitored fields while sharply reducing breach liability. |
| Preventing high-frequency filesystem events from overwhelming laptops or ingestion queues | Coalesced rapid editor temp-file churn in-memory on the endpoint before flushing meaningful user-initiated file operations; trades raw kernel-level verbosity for low CPU impact and cleaner timelines. |
| Ensuring reliable telemetry sync across intermittent VPNs and travel networks | Used a size-bounded local ring buffer with idempotent batch sequence IDs acknowledged by ASP.NET Core; requires careful disk-cap eviction policies during prolonged multi-week offline periods. |
| Protecting compliance investigations from unauthorized internal peeking | Enforced strict RBAC claims, pseudonymous analyst views, and dual-custody approval tokens for identity unmasking in React; adds friction to urgent reviews while creating verifiable accountability. |
Security & Reliability
Endpoint monitoring tools carry elevated OS privileges, making agent hardening and transport security non-negotiable. Collectors authenticate to the .NET backend with hardware-backed or MDM-provisioned client certificates and refuse unsigned policy bundles. Local configuration files and offline telemetry queues remain encrypted at rest using OS keychain APIs, preventing local users from reading cached rules or forging clean histories.
In the cloud tier, PostgreSQL and TimescaleDB separate operational telemetry from the cryptographic audit ledger, applying sequential SHA-256 hash chaining across administrative actions and alert dispositions. If a user attempts to kill the service or revoke OS accessibility permissions, a signed tamper-heartbeat alert fires immediately via Redis and SignalR so IT operations investigate gap periods promptly.
Performance & Scale
An enterprise fleet of thousands of workstations generates steady streams of telemetry bursts at shift starts and software-build spikes. The C# collector bounds CPU and memory footprints strictly, throttling background hashing and batch uploads whenever battery-saver mode or heavy foreground workloads activate. On the server side, ASP.NET Core minimal APIs stream compressed protobuf/JSON batches asynchronously into TimescaleDB using bulk COPY pipelines rather than row-by-row inserts.
TimescaleDB continuous aggregates pre-compute daily focus summaries, USB-transfer counts, and policy-hit histograms incrementally in the background. Consequently, React compliance dashboards load multi-week organizational views rapidly while preserving instant drill-down into underlying timestamped event chains.
Operational Outcomes
Moving from brittle, intrusive monitoring scripts to a policy-governed C#, .NET, and React compliance platform aligned security, legal, and IT teams around shared controls:
- Privacy-respecting risk detection: Edge-level redaction and scoped policy rules capture genuine data-exfiltration patterns while keeping personal employee activity out of corporate databases.
- Defensible audit readiness: Tamper-evident hash chains, dual-approval unmasking, and structured timeline exports satisfy regulatory examiners and internal legal reviews cleanly.
- Predictable endpoint performance: Coalesced event batching and bounded offline queues keep monitoring invisible to developers and knowledge workers during heavy daily workloads.
- Actionable compliance triage: Behavioral correlation surfaces genuine multi-step insider risks in real time instead of burying analysts under raw activity logs.