Self-hosted Defender for Endpoint alternative for data residency

If endpoint telemetry must stay in a specific country or on your own infrastructure, self-hosted Wazuh, Velociraptor and osquery can keep it there, but they do not replace Defender's prevention and cloud threat intelligence on their own.

On this page

Why a self-hosted Defender for Endpoint alternative for data residency is a different decision

A compliance or security lead whose residency rule requires endpoint telemetry to stay in a named country or on owned infrastructure should treat this as a data flow decision, not a licensing one. A self-hosted Wazuh deployment, with Velociraptor and osquery alongside it, can keep telemetry wherever you choose, but it is a detection and response stack that you build and operate, not a drop-in replacement for the Defender cloud service. Defender's datacenter location is fixed at setup, so a residency requirement that was not settled before rollout is hard to change later without re-platforming.

Start by mapping what actually leaves the endpoint. Defender sends alerts, device metadata, and investigation data to its cloud service, and that flow is the one your residency rule has to cover. With Wazuh, agents send events to a server you host, and the indexer stores alerts on storage you control. Confirm in writing with Microsoft which datacenter region your tenant uses and which data categories it covers, and list every other destination your agents or threat intelligence feeds contact. Under GDPR, remote access from a third country counts as a transfer, so support sessions and vendor consoles belong on the same map.

Plan for the parts of the stack that do not move with the data. Wazuh gives you file integrity monitoring, configuration assessment, and log analysis, but its malware detection relies on threat intelligence and logs from other tools rather than blocking execution, so you still need a prevention layer. Velociraptor and osquery cover live forensic collection and endpoint queries inside your boundary. Decide which team owns the server, the indexer, and the threat intelligence updates before you start, and confirm that any cloud-hosted vendor service you add would fall under the same residency terms.

What a data residency rule requires from endpoint telemetry

Endpoint telemetry often contains personal data, so every place it is stored, displayed or reachable becomes part of the residency question. The cards below set out the transfer rules, fine exposure, legal reach and provider duties that a Defender for Endpoint replacement has to answer for in your own environment.

Transfers under GDPR Article 44

Article 44 applies Chapter V to every transfer of personal data to a third country, including onward transfers. Endpoint telemetry carrying user names, IP addresses or device owners is personal data, so a cloud service outside the EEA or a support session from a third country can trigger the rule. Check where the vendor stores each telemetry category and where its support staff sit, not only the region chosen at setup.

GDPR text

Remote display counts as transfer

EDPB Guidelines 05/2021 state that remote access from a third country is a transfer, even when the data is only shown on a screen for support or administration. An administrator in another country viewing endpoint alerts or device records therefore needs the same assessment as a copy of the data. For a self-hosted deployment, confirm which operator accounts can log in from outside the EEA and how their sessions are logged.

Cloud storage outside the EEA

The same guidelines treat storage in a cloud outside the EEA as a transfer. Defender for Endpoint data stays in the datacenter region fixed at setup, so the question is whether that region, and any backup or secondary copy, matches your residency rule. Ask the vendor for a written list of storage locations, including logs and sample files, and compare it with your records of processing.

Fine ceiling under Article 83

Infringements of Articles 44 to 49 fall in the higher fine band of Article 83(5)(c), up to EUR 20 million or 4% of worldwide annual turnover, whichever is higher. This is the exposure a residency decision carries, and it is why the transfer analysis belongs with the security team and the data protection officer before rollout. Record the decision and the evidence behind it.

Schrems II and the Data Privacy Framework

The Court of Justice invalidated the Privacy Shield in Case C-311/18 (Schrems II) while keeping standard contractual clauses valid. Adequacy for US organizations now depends on the Data Privacy Framework under Decision (EU) 2023/1795, and an appeal against the General Court's September 2025 judgment is pending as Case C-703/25 P. Confirm whether the vendor is on the DPF list and plan a fallback if the framework is overturned.

DPF decision

US CLOUD Act reach

Under 18 U.S.C. 2713, US-based electronic communication and remote computing service providers must preserve or disclose data in their possession, custody or control, wherever that data is located. A telemetry store in an EU region run by a US provider can therefore still be reached by a US order. The EDPB Recommendations 01/2020 note that where access exceeds what is necessary and proportionate, no effective technical supplementary measure is foreseen, so ask counsel to assess this exposure before choosing a processor.

18 U.S.C. 2713 text

Data Act Article 32 duty on providers

Article 32 of the Data Act requires data processing service providers to take technical, organizational and legal measures against third-country governmental access to non-personal data held in the Union, where that access would conflict with Union or national law. This shifts part of the protection duty to the provider. Ask whether the vendor or hosting provider has documented these measures and whether the Data Act switching rights, applicable since 12 September 2025, cover moving telemetry to on-premises infrastructure.

Data Act text

Where Defender for Endpoint meets the residency constraint and where it does not

The residency question for Defender for Endpoint is not whether data sits in an EU, UK or US datacenter, because it does, and that location is fixed at setup. The question is whether that region, combined with the provider's legal exposure, satisfies your rule for endpoint telemetry. Before you rely on the chosen region, confirm with Microsoft in writing which datacenter your tenant uses, whether backups or support access can move data elsewhere, and which data categories (alerts, file metadata, device timelines, sample uploads) each involve. Then map those answers against the transfer and access rules your counsel has identified for that data.

The hard case is government access. EDPB Recommendations 01/2020 state that where a cloud provider needs access to data in the clear and the destination's public authority powers go beyond what is necessary and proportionate, the EDPB cannot envision an effective technical supplementary measure, so encryption at rest in the region does not settle the question alone. EDPB Guidelines 05/2021 (Example 12) add that using an EU processor subject to third-country law with extraterritorial effect is not itself a transfer, but complying with a third-country authority request would be, so controllers should assess that exposure before engaging the processor. This is a legal assessment for the client and its counsel, not a finding about Microsoft's compliance.

Self-hosting moves that assessment onto infrastructure you control. With Wazuh, the indexer, server and dashboard run in a location you choose, and the decisions to record are where the agents' data is stored, who holds administrative credentials, which support or vendor accounts can reach those hosts, and whether any SaaS component such as a threat intelligence feed is in the data path. Self-hosting does not remove obligations. It changes the evidence you need: a data flow diagram, the list of processors and their locations, and a record of who can access the stack. Confirm each of these in your own environment before you cut over.

Which open-source options keep endpoint data where you choose

This table compares where each open-source option stores endpoint data and what it does not do on the endpoint. Read the rows for data location first, then the trade-off rows, because prevention is a separate decision from telemetry and investigation. The main takeaway is that a self-hosted stack keeps data in your infrastructure, but you still need a prevention layer and must confirm the data path for each source.

OptionHow data stays in your infrastructureTrade-offs for residency
Wazuh (GPL-2.0)All four components (indexer, server, dashboard and agents) can run in your own data center, cloud account or air-gapped network, so alerts and inventory are stored where you choose.Wazuh analyzes data and raises alerts rather than blocking execution. Malware detection combines file integrity monitoring, threat intelligence such as VirusTotal, CDB hash lists and YARA, and rootcheck, so plan a separate prevention control.
Wazuh agent coverageAgents run on Linux, Windows, macOS, Solaris, AIX and HP-UX, and agentless monitoring covers devices such as firewalls through syslog collection.Confirm that every endpoint type in scope has a supported agent. Mobile devices and some appliances may need a different route or no coverage.
Wazuh vulnerability detectionSoftware inventory from agents is matched against an offline vulnerability repository instead of the Wazuh Cyber Threat Intelligence platform, so no lookup leaves the network.Offline repositories need a documented update process. Confirm how often you refresh the repository and who approves imports.
Velociraptor (AGPL-3.0)Collection, hunting and forensic artifacts are queried with VQL and stored on servers you operate, so investigation evidence stays in your environment.Velociraptor does not prevent execution or block malware. Its AGPL-3.0 license has network-use obligations for modified versions, so have counsel review your deployment model.
osquery (Apache-2.0 or GPL-2.0-only)Endpoints answer SQL queries about the operating system locally, and results go only to the fleet manager you host, so telemetry stays on your servers.osquery exposes state but does not enforce policy or stop processes. Query volume and log retention drive storage size and must be sized in advance.
ClamAV or Defender Antivirus logs into WazuhWazuh can ingest logs from Windows Defender and ClamAV, so detections from these engines land in your own indexer.Prevention stays with the antivirus engine. Choosing this route keeps data local but does not give you a blocking EDR, so decide prevention separately.
Data location of the vendor cloud optionWazuh Cloud is a hosted option that moves data out of your infrastructure.If residency is the requirement, self-host and avoid hosted options. Confirm the data location terms in writing before any hosted pilot.

How to deploy Wazuh inside a residency boundary

This sequence sets the data boundary first, then builds the Wazuh stack, agents, access controls and update path so that endpoint telemetry stays where your residency rules require.

  1. Classify telemetry against the residency boundary

    The compliance lead and the data protection officer list each telemetry category Wazuh will collect, such as file integrity events, process and command activity, software inventory, alerts and agent logs, and mark which categories contain personal data. Usernames, IP addresses and device-linked activity usually count as personal data, so they need the strictest location rules. The output is a signed data map that names every category, its classification and the country or facility where it may be stored and viewed. Remote administrators who can view data from a third country also count as a transfer under the EDPB guidance, so their locations go on the map too.

  2. Choose hosting location and operator

    Platform and security leads select the data center, cloud region or on-premises site and name the team that operates the stack. Confirm whether any operator, support provider or hosting company is subject to third-country law with extraterritorial reach, and document the assessment before engagement. The output is a written hosting decision that states the location, the operator, the administrator countries and the network path agents use to reach the server. Ask the hosting provider in writing where backups, logs and support sessions are processed.

  3. Deploy the indexer, server and dashboard

    The platform team installs the Wazuh indexer, which stores alerts, the Wazuh server, which runs decoders and rules, and the Wazuh dashboard, using one of the documented methods: step-by-step installation, the prebuilt OVA, Docker, Kubernetes or the offline installation guide. Choose the offline guide if the boundary has no internet path. Confirm that every component reports healthy, that the dashboard loads from inside the boundary and that no component attempts an outbound connection to a service outside the approved list. The output is a tested single-node stack with a recorded configuration baseline.

  4. Build a cluster if scale requires it

    If the agent count or alert volume exceeds what one server handles comfortably, the platform team adds server nodes in a cluster and scales the indexer to match. Load test with representative agent traffic before cutover, and record the ingest rate and search latency on the target hardware. The output is a cluster health check and a capacity note that the team can use to justify future hardware requests. Expect to revisit this step when the endpoint count changes.

  5. Roll out agents through configuration management

    The endpoint engineering team deploys Wazuh agents through the existing configuration tool, such as Ansible or Puppet, which are both documented deployment routes, or through the organization's software distribution system. Each agent is pointed only at the in-boundary server address, and the agent configuration is pinned in version control. The output is an inventory report showing every enrolled agent, its operating system and its reporting server, with any unexpected device flagged for removal.

  6. Configure SSO, access roles and audit logging

    The identity team connects the dashboard to the corporate identity provider using Wazuh's documented single sign-on support, then maps groups to read-only analyst, administrator and auditor roles. Enable access logging for the dashboard, API and indexer, and set retention periods that match the data map from step one. Test one account per role and confirm that a removed user loses access. The output is a signed access matrix and a log sample proving that logins and configuration changes are recorded.

  7. Block vendor cloud components unless approved

    The security architect checks the server and dashboard configuration for any link to a vendor-hosted service, including Wazuh Cloud or threat intelligence feeds, and disables each one that the data map does not approve. Where vulnerability detection is needed, decide between the Wazuh Cyber Threat Intelligence platform and an offline vulnerability repository, and document which one is in use. Capture the egress firewall rules and a test showing that blocked destinations stay unreachable. The output is a signed exception list, which may be empty, and a firewall report that the auditor can review.

  8. Confirm the update path inside the boundary

    The platform team builds a process that brings Wazuh patch releases into the boundary, because the 4.14 line received patch releases on 17 March, 23 April, 1 July, 29 July, 23 September and 14 October 2026. Mirror packages through an approved internal repository or transfer them through an offline process, test each patch in a staging copy, and record the change in the configuration baseline. Confirm with the vendor which release notes and security advisories are sent to your team and by which channel. The output is a written update runbook and one completed patch cycle, so the team knows the process works before the next release arrives.

How endpoint telemetry flows inside the residency boundary

The flow starts at Wazuh agents on Windows, Linux and macOS endpoints, which send events to the Wazuh server inside the approved region. The server applies decoders and rules, and the Wazuh indexer stores the resulting alerts, which analysts then review in the Wazuh dashboard. The dashboard can sign in through single sign-on from your own identity provider, so the whole path stays within your boundary. Velociraptor and osquery run as on-premises tools on the same endpoints. Threat intelligence and vulnerability data enter through an offline repository, which you should confirm is the only external input in your design.

Telemetry and alerts stay inside the boundary; only offline imports cross it.

Evidence to show a regulator or auditor

A residency claim holds only if the records behind it show where each component runs, who can reach it and how data moves. The cards below list the artifacts to assemble before a regulator, customer security team or auditor asks, and each one ties back to a control or a transfer rule.

Data flow diagrams

Draw every path telemetry takes, from agent to Wazuh server, from server to indexer, from dashboard to analyst, and from any export or backup to storage. Mark which hops cross a national border and which hops leave your network at all. Include Defender for Endpoint as a source only while it still runs, so the diagram shows the state at the time of review. Check the diagram against live configuration rather than against the original design.

Record of processing

Record the endpoint data categories you collect, such as user names, IP addresses, process paths and file hashes, with the purpose, legal basis and retention period for each. Under GDPR Article 30, this record is the document a supervisory authority asks for first. Confirm that the record names the self-hosted system and its hosting location, and that it no longer lists the Microsoft service as the processing location.

Transfer impact assessment

Document whether any operator, support engineer, cloud account or vendor support session can view endpoint data from a third country. Remote access that only displays data counts as a transfer under EDPB Guidelines 05/2021, so include support tooling in the assessment. For each provider, record the legal exposure to foreign authority requests and the mitigations you chose, and keep the assessment current when the vendor changes.

Transfer rule
Article 44
EDPB Guidelines 05/2021

Component location and operator register

List each component (agents, Wazuh server, Wazuh indexer, dashboard, backups and log archives) with its datacenter, country, hosting model and the named roles that can administer it. Include contractors and managed service staff, and their location. Auditors use this register to check that the residency statement matches reality, so review it after every infrastructure change or staffing change.

Access, audit and SSO records

Export the dashboard and API user list, role assignments, and the audit trail of administrator logins and configuration changes. Show that single sign-on is enforced for human accounts and that local break-glass accounts are logged and reviewed. Confirm that these records are stored inside the residency boundary and retained for the period set by your policy. The Wazuh single sign-on documentation explains which identity settings to capture.

Wazuh SSO docs

Retention settings and update records

Capture the index retention, archive and deletion settings for alerts and agent data, and show the job logs that prove deletion ran. Keep a dated record of every Wazuh patch applied to the server, indexer, dashboard and agents, including who approved it. Auditors check the update record against CIS Safeguard 10.2 expectations for current signatures and vulnerability data, so the record should show when each feed was last refreshed.

Current release line
4.14

Vendor contracts and Data Act switching terms

Collect the contracts for any managed service, hosting provider or Wazuh support arrangement, including data processing terms, sub-processor lists and the location commitments they state. Confirm that switching rights under the EU Data Act apply to the service you buy, including the right to move to on-premises infrastructure. Ask each provider to confirm in writing which switching charges, notice periods and transition steps apply.

Switching charges banned
12 Jan 2027
Data Act text

Questions buyers ask before hiring help

What drives the cost of a self-hosted Defender for Endpoint alternative?

Cost follows the infrastructure you host, the staff who run it, the size of the agent rollout and the detection rules you rebuild. Infrastructure covers the Wazuh indexer, server and dashboard, sized for your endpoint count and retention, plus storage and backups for the alert data, which is usually the largest recurring item. Staff cost is the ongoing part: someone must operate the indexer, tune decoders and rules, patch the stack and answer alerts. One-time costs include the agent rollout, rebuilding detections that Defender provided, and integration with your identity and ticketing systems. Ask any quote to split these components and to state which are one-time and which recur. The Wazuh deployment options page lists the install methods that shape the infrastructure work.

How long does a data residency migration from Defender take?

Duration depends on how many endpoints and operating systems you cover, how many detections and dashboards you must rebuild, and how fast your residency and change approvals move. Teams usually run the new stack in parallel with Defender before turning anything off, which adds time but gives evidence for auditors. Legal sign-off on where the data lives often sets the pace more than the technical build. No duration is fixed in this page, so ask for a timeline tied to a written scope with named phases, rollout waves and acceptance tests.

What must our team provide before an engagement starts?

You must supply an asset inventory covering endpoints, servers and their operating systems, because agent coverage is only as good as that list. You also need a written residency rule from legal or your data protection officer that names the countries, facilities and administrators allowed to touch endpoint telemetry. Operations needs on-call staff who can respond to alerts from the new platform, and change management must approve agent rollout windows. Identify which Microsoft licensing and integrations depend on Defender before work starts, so the scope reflects them.

Can our own team run this without outside help?

Yes, if you have engineers comfortable with Linux, Elasticsearch-style indexers, rule tuning and endpoint management tooling. Wazuh is open source and documented, so an internal team can build it. The harder questions are whether you can staff on-call coverage, keep components patched on a steady release cadence, and rebuild detections with the same depth Defender provides. Many teams use outside help for the design, rollout and first tuning cycle, then operate in-house. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted platforms in your own infrastructure, and can support that split.

Can we keep Defender for prevention while we move detection?

Yes. Many teams keep Defender Antivirus for prevention and move detection, alerting and investigation to Wazuh and Velociraptor. Wazuh does not act as an antivirus that blocks execution; its malware detection combines file integrity monitoring, threat intelligence and logs from tools such as Windows Defender. Confirm with your control owners that prevention remains in place for the controls you are evidencing, including the anti-malware safeguard in CIS Controls v8.1 (Safeguard 10.1), and check whether any Defender sensor offboarding changes that evidence.

What should we ask for in a fixed-scope quote?

Ask for a written scope that lists the endpoint count and operating systems, the residency rule and the facilities where data will sit, the components to deploy, the detections and dashboards to rebuild, and the integrations included. Require deliverables for each phase, acceptance criteria, the parallel-run period and the offboarding steps for Defender sensors. Request a split of one-time and recurring costs, what your staff must provide, and what is excluded, such as licensing for any commercial add-ons. DeployOpen does not publish prices; a quote follows from the written scope.

Does a self-hosted stack meet our residency requirement by default?

Hosting in your own infrastructure keeps telemetry under your control, but residency is a legal and architectural outcome, not a product setting. Under GDPR, remote access from a third country, even only displaying data, can count as a transfer, so administrator access, vendor support and backups must follow the same rule. Ask your legal team to confirm the residency rule in writing, and ask the implementer to document where every component, log and backup sits. Compliance preparation is a DeployOpen service; audit reports and certifications come from independent auditors.

Keeping Defender for prevention during a residency migration

Keep Defender Antivirus as the blocking layer while you move detection, alerting and investigation to Wazuh and Velociraptor. Wazuh's malware detection combines file integrity monitoring, threat intelligence lookups, YARA rules and rootcheck, and it can ingest logs from Windows Defender, but it does not block execution as an antivirus does. Before you change anything, confirm with Microsoft which Defender Antivirus features and cloud-delivered protection settings send data outside your tenant region, and whether Defender Antivirus keeps working with the Defender for Endpoint sensor offboarded. Record the answer, the data flows and the owner of each setting in your data processing register, because the residency case depends on them.

Run the two stacks side by side for a defined pilot period. Deploy Wazuh agents to a test group, forward Defender Antivirus events into the Wazuh indexer, and check that a known test detection produces an alert in the dashboard and an investigation path in Velociraptor. Compare alert coverage against the Defender for Endpoint console for the same devices. Offboard the Defender for Endpoint sensor one device group at a time, and keep the offboarding record with the evidence of coverage. Ask Microsoft what Defender for Endpoint data you must export, and in what format, before the sensor is removed, since retention in the old console will not carry over.

Check whether the Data Act applies to your contract before you rely on it. Regulation (EU) 2023/2854, applicable since 12 September 2025, gives customers of data processing services the right to switch to another provider or to on-premises ICT infrastructure, with notice of up to two months, a 30-day transition and a ban on switching charges from 12 January 2027 (Articles 25, 29 and 50). The rights attach to data processing services as the Act defines them, so counsel should confirm whether a Defender for Endpoint subscription falls within that definition and whether your current terms reflect those rights. Build the notice period and transition window into the cutover plan either way, and confirm the exact dates and terms with counsel and the vendor.

How DeployOpen deploys Wazuh under a residency constraint

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including cloud accounts, data centers and air-gapped networks. For a residency constraint, that means agreeing in writing where every Wazuh component and agent log lands before any deployment begins.

How we scope

  • Map which endpoint telemetry, alerts and indexed data must stay in a named country or on your own infrastructure.
  • Confirm which Wazuh components run where, including the indexer, server, dashboard and any agentless sources.
  • Agree the written scope, deliverables and timelines before work starts, since most engagements are fixed-scope.
  • Record which Defender features are being replaced and which remain in place, such as built-in antivirus prevention.

How we build

  • Deploy Wazuh with the installation method your environment supports, such as the offline installation guide for networks without internet access.
  • Configure agent enrollment, configuration management and access control, with single sign-on where your identity provider supports it.
  • Set up vulnerability detection with either the Wazuh Cyber Threat Intelligence platform or an offline repository, as your data rules require.
  • Test detection rules, alert routing and audit logging against the scoped use cases before the platform goes live.

How we hand over

  • Document the data flows, storage locations and access paths so your compliance and security teams can review them.
  • Provide runbooks for agent rollout, upgrades, backups and offboarding of existing Defender sensors.
  • Deliver evidence that supports residency and transfer reviews, such as configuration records and data handling controls, for your assessors to evaluate.
  • Walk your operations team through the handover so day-to-day administration stays with your staff.

How we support

  • Provide ongoing support, upgrades and continuous testing through a retainer, covering patch releases as they ship.
  • Retest the environment after upgrades or configuration changes to confirm residency controls still hold.
  • Keep the documentation current with each change to agents, rules, integrations or hosting locations.
  • Confirm with your legal counsel and assessors which residency obligations apply to your organization before go-live.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.