> ## Documentation Index
> Fetch the complete documentation index at: https://os.inttegro.dev/simile/llms.txt
> Use this file to discover all available pages before exploring further.

# Risks of hosted test environments

> Understand when non-production infrastructure becomes part of the production security boundary and how to reduce that exposure.

A hosted sandbox can hold identities, secrets, integrations, and data that reach valuable systems.
Local emulation reduces this exposure for routine tests, while a focused hosted suite retains the
checks that require provider infrastructure. Three documented incidents show where the boundary can
fail.&#x20;

## Before you begin

* Inventory the sandboxes, test tenants, credentials, grants, and webhooks used by your integration.
* Read [Design trade-offs](https://os.inttegro.dev/simile/design-trade-offs.md) before moving provider-owned checks locally.

## Trace authority across environments

Security impact follows authority. A non-production environment enters the production security
boundary when it can authenticate to another system, access real data, or administer production.

| Trust path | Review question |
| - | - |
| Shared identity | What can this test identity or OAuth application reach elsewhere? |
| Stored secrets | Can every credential be inventoried, scoped, rotated, and revoked? |
| Data movement | Which production records can cross the boundary, and where are they sanitized? |
| Environment lifecycle | Who owns each tenant, application, and grant, and when will it expire? |

The word *test* describes intended use. It does not reduce the authority of a credential or the
sensitivity of a customer record. These incidents illustrate specific failures; they do not
establish an incident rate or imply that every hosted sandbox is unsafe.

## Three documented failures

> [accordion] Microsoft: a legacy test identity crossed into the corporate environment
>
> Microsoft reported that Midnight Blizzard compromised a legacy non-production tenant account
> without multifactor authentication. The actor then compromised a legacy test OAuth application
> with elevated corporate access and used malicious OAuth applications to access email accounts.
>
> Microsoft's
> [incident guidance](https://www.microsoft.com/en-us/security/blog/2024/01/25/midnight-blizzard-guidance-for-responders-on-nation-state-attack/)
> also says current policy would apply MFA and active protections to a tenant created today. The case
> therefore concerns a legacy asset and a specific cross-environment grant. It shows why test
> identities need MFA, least privilege, an owner, an expiry, and no standing production authority.

> [accordion] Homes England: production access was used to populate a test environment
>
> Homes England reported that a third-party automation team received access to production customer
> accounts to populate a secure test environment. Some account data was included by mistake and
> copied without the required authorization. The processor revoked access after notification.
>
> The [2021/22 annual report](https://assets.publishing.service.gov.uk/media/62d6da77d3bf7f285d975482/Homes_England_Annual_Report_and_Financial_Statements_2021-22.pdf)
> records the voluntary report to the Information Commissioner's Office. The incident shows that test
> data provisioning can itself become a production trust path. Prefer synthetic data; when a real
> sample is necessary, authorize, minimize, and sanitize it before transfer.

> [accordion] GeniusU: real customer data was exposed from a staging database
>
> Singapore's Personal Data Protection Commission documented the exfiltration of a GeniusU staging
> database containing personal data for approximately 1.26 million users. A compromised developer
> password exposed a GitHub environment whose codebase contained the database credentials.
>
> The regulator's
> [decision](https://www.pdpc.gov.sg/-/media/files/pdpc/pdf-files/commissions-decisions/decision---geniusu-pte-ltd--180122.pdf)
> found that GeniusU failed to protect the data by hard-coding credentials and keeping real personal
> data in a non-production testing environment. It imposed a S\$35,000 penalty. The confidentiality
> obligation follows customer data into every environment that stores it.

## What local emulation removes

Routine Simile tests can terminate requests locally, use generated credentials and synthetic data,
and give every CI job an isolated service instance. Documented workflows can run without a provider
account or internet access.

AWS describes the same category in its
[AWS Emulator overview](https://docs.aws.amazon.com/emulator/latest/userguide/what-is-service.html):
tests run locally or in CI, require no AWS account, and create no AWS resources. This provides
provider-side evidence that local emulation can carry a substantial part of an integration suite.

The shift reduces two recurring exposures: long-lived sandbox credentials in developer and CI
environments, and production data copied into lower environments for ordinary test cases. Isolated
local state also prevents one team's test run from changing another team's results.

Local execution still needs a secure machine, private listener, trusted dependencies, and careful
handling of captured evidence. Simile's proxy-learning workspace may retain business values even
after recognized credentials are redacted.

Fidelity also limits what can move. AWS says its emulator varies by service and does not evaluate
IAM and resource policies like AWS. Its
[security guidance](https://docs.aws.amazon.com/emulator/latest/userguide/security.html) directs
teams to keep emulator ports private and test security settings and the complete application on
real AWS. Simile follows this boundary: local behavior tests reduce sandbox use; provider-owned
permissions, networks, and configuration still require provider-owned evidence.

Keep real-provider checks for authentication and authorization policy, account configuration,
regional or network behavior, provider-managed integrations, and every capability with an
unresolved fidelity gap. Local emulation should make this external suite smaller and more
deliberate, while preserving the evidence required before release.

## Control what remains

For local tests, start with an empty environment and add only required values. Use synthetic data,
generated credentials, a dedicated `SIMILE_HOME`, and a loopback listener. Review learning
workspaces and reproduction bundles before sharing them.

For the smaller hosted suite, separate identities, data stores, encryption keys, and webhook
endpoints from production. Require MFA for people and short-lived, least-privilege credentials for
automation. Give every tenant, OAuth application, token, and service account an owner and expiry,
and practise revocation before an incident.

Use a broad local suite for modeled behavior, a narrow hosted suite for real provider controls, and
small reversible production smoke tests. Each layer then carries only the authority needed for the
evidence it supplies.

## Related resources

* [Design trade-offs](https://os.inttegro.dev/simile/design-trade-offs.md) - Decide where each test belongs
* [Test infrastructure costs](https://os.inttegro.dev/simile/test-infrastructure-costs.md) - Account for infrastructure and security work
* [CI testing](https://os.inttegro.dev/simile/ci-testing.md) - Isolate Simile state and credentials in CI
* [Evidence and limits](https://os.inttegro.dev/simile/proxy-evidence-and-limits.md) - Review what proxy learning stores


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.