All Case Studies

Hardening contractor WorkSpaces
against data exfiltration

How I designed and implemented a policy-enforced AWS WorkSpaces environment that kept sensitive work inside a controlled virtual desktop boundary without making the engineering environment unusable.

05 · Security Architecture
  • SaaS · Security
  • 10 min read
Role
Cloud Architect
Responsibility
Security Architecture + Implementation
Platform
AWS WorkSpaces
Scope
Contractor Development Environment
Focus
Endpoint Security · Identity · Policy · Data Protection
01Context

Sensitive work was happening
on unmanaged endpoints.

The organization relied on globally distributed contractors who worked from personal machines outside the corporate endpoint boundary.

Those contractors needed access to development tooling, source code, and systems containing sensitive information.

The problem was not whether the contractors were trusted.

The problem was that the environment relied too heavily on trust.

From an unmanaged endpoint, common desktop features such as clipboard transfer, file redirection, removable media, screenshots, personal cloud services, and unauthorized applications could become paths for sensitive information to leave the work environment.

The goal was therefore to create a development environment where productivity remained possible but data movement was technically constrained.

02The Control Problem

Policy had to become
a technical boundary.

A written policy asking users not to copy sensitive data was not enough.

The environment needed controls that could be:

  • Centrally enforced
  • Difficult for users to bypass
  • Applied consistently
  • Audited
  • Verified through actual behavior
  • Repeated across contractor desktops

The design also had to preserve enough functionality for engineers to write code and use approved development tooling.

Security could not simply mean disabling the desktop.

The goal was not a locked computer.
It was a controlled working environment.

Common desktop data-exfiltration paths from an unmanaged work environmentSEVEN ORDINARY FEATURES · SEVEN EXIT PATHSPERSONAL DEVICEUNMANAGEDWORK SESSIONCODE · DATA · SYSTEMSCLIPBOARDFILESNETWORKUSBPRINTCAPTUREAPPNO CENTRAL POLICY · EVERY FEATURE ON BY DEFAULT
Multiple ordinary desktop features could become paths for data to leave an unmanaged environment.
03Architectural Direction

Move the working environment
inside the security boundary.

I designed the solution around AWS WorkSpaces so that development activity occurred inside a centrally managed virtual desktop rather than directly on contractor-owned hardware.

AWS Managed Microsoft AD provided the directory and policy foundation.

Contractor WorkSpaces were subject to centrally delivered security policies, while administrative access remained separately controlled.

The architecture focused on three layers:

Identity

Centralized directory-backed access and privilege control.

Policy

Group Policy enforced endpoint and session behavior consistently.

Network / application control

Approved applications and destinations were explicitly controlled rather than relying only on endpoint behavior.

The virtual desktop became the boundary where work could happen under enforceable controls.

AWS WorkSpaces virtual desktop acting as a centrally governed security boundaryWORKSPACECONTROLLED SESSIONCODE · TOOLSWORK DATASENSITIVE WORK STAYS INSIDEPERSONAL DEVICEUNMANAGEDSESSIONDISPLAY · INPUT ONLYMANAGED ADGPO · CENTRALPOLICYALLOWEDAPPROVEDSYSTEMS · SCOPEDCLIPBOARDFILESUSBBACK TO THE DEVICE · BLOCKED
Work moved from unmanaged personal endpoints into a centrally governed virtual desktop boundary.
04Platform Behavior

The obvious Windows policy
was controlling the wrong protocol.

One of the most consequential implementation challenges was discovering that standard Windows RDP hardening guidance did not control the WorkSpaces session behavior we needed to secure.

AWS WorkSpaces streams the session over its own protocol (DCV, formerly WSP) rather than relying on ordinary RDP redirection controls.

A policy could appear correctly applied in Windows and still leave clipboard or device redirection active in the WorkSpaces session.

The relevant controls required the Amazon WorkSpaces policy templates and the WorkSpaces-specific policy path.

This changed how the environment had to be validated.

A successful Group Policy result was no longer enough.

The actual user behavior had to be tested.

Policy application is not proof
that the control works.

Comparison between standard RDP policy and the effective AWS WorkSpaces WSP policy pathPOLICY APPLIED ≠ CONTROL EFFECTIVEPOLICYGPO · MANAGED ADRDPSTANDARD PATHAPPLIEDNOT EFFECTIVEWSPWORKSPACES PATHEFFECTIVEWORKSPACESESSIONDCV · STREAMEDCLIPBOARDDRIVESUSBREDIRECTION OFFADMIN CHECK · CONFIGURATION OK · NOT PROOFUSER TEST · CONTROL OK · PROOF
The effective control path was WorkSpaces-specific, not the standard RDP policy path.
05Control Layers

Exfiltration paths were
blocked independently.

The environment did not rely on a single control.

Different exfiltration channels were addressed through independent policy layers so that the failure of one mechanism did not automatically reopen every path.

Session redirection

Clipboard, local drive, removable media, printing, and similar redirection features were constrained through WorkSpaces policy.

Endpoint privilege

Contractor accounts operated without persistent administrative rights.

Application control

Application allow-listing restricted execution to approved development tooling.

Network control

Outbound communication was restricted to approved patterns.

Browser / workplace controls

Browser and desktop policies reduced access to unapproved data-transfer paths.

Screen capture

Supported capture-protection mechanisms reduced local screenshot and recording exposure.

Security came from overlapping boundaries,
not one perfect setting.

Layered endpoint, application, network, and policy controls protecting a contractor WorkSpaceNETWORKAPPROVED PATHS ONLYAPPLICATIONALLOW-LISTED TOOLINGIDENTITYSTANDARD USER · NO ADMINSESSIONREDIRECTION · CAPTUREWORKSPACECONTRACTOR DESKTOPPOLICYGPO · MANAGED ADCLIPBOARDADMINAPPNETWORKONE GAP CLOSES ONE PATH · NOT THE WHOLE SURFACE
Independent controls reduced the chance that one configuration gap reopened the entire exfiltration surface.
06Policy Foundation

Central policy made
the controls repeatable.

The environment required full Group Policy support because security settings had to remain consistent across contractor WorkSpaces and survive rebuilds or session changes.

AWS Managed Microsoft AD provided the policy and directory capabilities required for the control model without introducing self-managed domain controller operations.

The policy framework separated concerns into purpose-specific areas such as:

  • WorkSpaces session controls
  • Standard-user enforcement
  • Application allow-listing
  • Firewall rules
  • Browser restrictions
  • Screen-capture and printing controls

New contractor WorkSpaces could inherit the same baseline rather than being hardened manually one machine at a time.

Hardening became a platform baseline,
not a desktop setup checklist.

07Verification

Test the behavior,
not just the configuration.

One of the strongest lessons from the implementation was that configuration evidence and security behavior are not always the same thing.

A policy can:

  • Exist
  • Apply successfully
  • Appear in management tooling
  • Still fail to produce the expected session behavior

Controls were therefore verified through real outcomes.

Examples included confirming that:

  • Clipboard transfer was blocked
  • Local drives were unavailable
  • Removable media was inaccessible
  • Screen capture protection behaved as expected
  • User privilege remained constrained
  • Policy remained applied after reconnect and refresh

Security controls were verified from the user’s perspective, not only from the administrator’s console.

A control is not finished
until its failure mode has been tested.

08Results

The environment became
both controlled and repeatable.

  1. Result 01

    20 contractor WorkSpaces

    A consistent hardened desktop environment was established for the contractor workforce.

  2. Result 02

    Common exfiltration paths closed

    Clipboard, drive and device redirection, unauthorized application execution, and supported capture paths were constrained through centrally enforced controls.

  3. Result 03

    Repeatable security baseline

    Directory-backed policy allowed new contractor desktops to inherit the same security posture rather than relying on manual hardening.

  4. Result 04

    One-week initial delivery

    The first verified hardened WorkSpace was delivered within approximately one week from initial architecture through implementation.

09What I Learned

Three lessons from
hardening the actual platform.

  1. Lesson 01

    The protocol determines the control.

    Standard security guidance can be misleading when the platform uses a different session protocol or policy surface.

  2. Lesson 02

    Configuration is not verification.

    Security controls should be tested through the behavior they are supposed to prevent, not only through configuration output.

  3. Lesson 03

    Security baselines need to be repeatable.

    A control that depends on manual desktop configuration will drift. Central policy turns endpoint hardening into an operational capability.