# CSVDE.exe LOLBIN for Active Directory Reconnaissance — FIN7 + APT10/menuPass Documented Usage, Bulk LDAP Export, Kerberoasting Precursor

> CSVDE.exe (csvde.exe) is a legitimate Windows Server utility for importing/exporting Active Directory data via LDAP to CSV format, weaponized as a Living-off-the-Land Binary (LOLBIN) for AD reconnaissance and directory dumping by nation-state APTs and financial cybercrime groups. Documented usage by FIN7 (financial crime) and APT10/menuPass (China-nexus espionage via Operation Cloud Hopper). Ships with Windows Server as part of AD DS/AD LDS tools.

- **Published:** 2026-02-16T11:52:02Z
- **Last reviewed:** 2026-02-16T11:52:02Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-0113
- **Card image:** https://intel.threadlinqs.com/og/threat/threat-intel-fin7-csvde-lolbin-tl-2026-0113.webp?v=54f0dde1 (Threadlinqs threat intel: FIN7 CSVDE.exe LOLBIN for AD Recon: Detection & IOCs (TL-2026-0113) — High severity, 24 IOCs, 9 detection rules.)
- **ID:** TL-2026-0113
- **Severity:** HIGH
- **Category:** APT
- **Status:** MONITORING
- **Actor:** FIN7 (China)
- **Detections:** 9 (1 shown free below) · **IOCs:** 24

## Description

CSVDE.exe is a command-line utility built into Windows Server (located in %windir%\system32) that imports and exports Active Directory Domain Services (AD DS) data using LDAP and CSV file format. It has been weaponized as a Living-off-the-Land Binary (LOLBIN) by sophisticated threat actors for Active Directory reconnaissance and bulk directory data exfiltration.

**V1 ASSESSMENT: The v1 title 'CSVDE.exe LDAP Directory Dumping Campaign' frames this as a specific campaign. There is NO single 'CSVDE campaign' — rather, csvde.exe is a TECHNIQUE used across multiple unrelated campaigns by different threat actors. The tool itself and its abuse are REAL and well-documented. This entry covers csvde.exe as an AD reconnaissance LOLBIN technique with documented APT usage.**

**DOCUMENTED APT USAGE (MITRE ATT&CK verified):**

1. **FIN7 (Carbanak Group)** — Financial cybercrime group. MITRE ATT&CK T1087.002 documents: 'FIN7 has also used csvde.exe, which is a built-in Windows command line tool, to export Active Directory information.' Used alongside net group, 3CF9.ps1 PowerShell scripts, and WsTaskLoad executable. FIN7 targets US automotive, retail, hospitality, and financial sectors. Source: BlackBerry April 2024 report on FIN7 targeting US automotive industry.

2. **menuPass / APT10 (Stone Panda, CVNX)** — China-nexus espionage group. MITRE ATT&CK T1087.002 documents: 'menuPass has used the Microsoft administration tool csvde.exe to export Active Directory data.' Used during Operation Cloud Hopper (2016-2017), a massive campaign targeting managed IT service providers (MSPs) to access their customers' networks. Source: PwC UK 'Operation Cloud Hopper Technical Annex' April 2017.

**CSVDE.exe CAPABILITIES (as LOLBIN):**
- **Bulk AD Export:** `csvde -f output.csv` exports ALL Active Directory objects to CSV
- **Targeted LDAP Queries:** `-r` flag allows LDAP filter (e.g., `csvde -r (objectClass=User) -f users.csv` exports all users)
- **Attribute Selection:** `-l` flag selects specific attributes (e.g., `csvde -l sAMAccountName,CN,distinguishedName -f admins.csv`)
- **Scope Control:** `-p` flag controls search scope (Base, OneLevel, SubTree)
- **Remote DC Targeting:** `-s` flag targets specific domain controllers
- **Alternative Credentials:** `-a` and `-b` flags allow authentication with different credentials
- **Binary Value Handling:** `-n` omits binary values for cleaner output
- **Port Selection:** `-t` flag allows targeting LDAP (389) or Global Catalog (3268)

**WHY CSVDE IS EFFECTIVE AS A LOLBIN:**
1. **Microsoft-signed:** Ships with Windows Server, signed by Microsoft. Not flagged by default AV/EDR.
2. **Legitimate use:** AD administrators use csvde for user provisioning, auditing, migrations. Hard to distinguish malicious from legitimate use.
3. **No download required:** Already present on Windows Server systems with AD DS/AD LDS role.
4. **Comprehensive output:** Single command exports entire directory — user accounts, groups, OUs, computers, service accounts.
5. **LDAP native:** Direct LDAP queries mean results include all queryable attributes including those not visible in GUI tools.
6. **CSV format:** Output is easily parseable for automated processing — attacker pipelines can immediately extract high-value targets (Domain Admins, service accounts with SPNs).

**ATTACK CHAIN CONTEXT:**
csvde.exe is typically used in the DISCOVERY phase after initial access is established:
1. **Initial Access** (phishing, VPN compromise, MSP pivot)
2. **Privilege Escalation** (credential theft, Kerberoasting)
3. **AD Reconnaissance** ← csvde.exe HERE — dump entire directory structure
4. **Lateral Movement** (use discovered accounts/groups to pivot)
5. **Objective** (data theft, ransomware deployment, persistent access)

**RELATED AD RECON TOOLS IN LOLBIN ECOSYSTEM:**
- **dsquery** — LDAP query tool (also built-in, used by APT41, Ke3chang)
- **dsget** — AD object attribute retrieval
- **ldifde** — LDAP Data Interchange Format export (companion to csvde)
- **net group /domain** — Group enumeration (used by 20+ APT groups)
- **nltest** — Domain trust enumeration
- **AdFind** — Third-party AD query tool (most popular, used by Ryuk, FIN6, BlackByte, Bumblebee)
- **BloodHound/SharpHound** — AD relationship mapping

csvde.exe is LESS common than AdFind or net commands but MORE dangerous because it provides BULK export capability — a single command dumps the entire directory, not just targeted queries.

## MITRE ATT&CK

- T1087.002 Domain Account
- T1069.002 Domain Groups
- T1213 Data from Information Repositories
- T1018 Remote System Discovery
- T1482 Domain Trust Discovery
- T1218 System Binary Proxy Execution
- T1074.001 Local Data Staging
- T1558.003 Kerberoasting
- T1059.003 Windows Command Shell
- T1087.001 Local Account
- T1016 System Network Configuration Discovery
- T1033 System Owner/User Discovery
- T1558.004 AS-REP Roasting
- T1110.003 Password Spraying
- T1036.003 Rename Legitimate Utilities
- T1041 Exfiltration Over C2 Channel
- T1021.002 SMB/Windows Admin Shares

## Free detection (Splunk SPL)

**AD LOLBIN Ecosystem Detection — csvde + dsquery + ldifde + nltest Reconnaissance Chain** (`TL-2026-0113-SPL-002`)

Detects execution of multiple AD reconnaissance LOLBINs within a short timeframe, indicating systematic Active Directory enumeration. Attackers rarely use just one tool — FIN7 used csvde.exe alongside PowerShell scripts and net commands; APT10 used csvde as part of a broader toolset. Multiple AD recon tools from the same host within 1 hour = active post-exploitation reconnaissance phase.

- **Language:** Splunk SPL
- **ATT&CK:** T1087.002, T1069.002, T1482, T1018
- **Data sources:** sysmon
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=windows sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 (Image="*\\csvde.exe" OR Image="*\\dsquery.exe" OR Image="*\\dsget.exe" OR Image="*\\ldifde.exe" OR Image="*\\nltest.exe" OR Image="*\\AdFind.exe" OR (Image="*\\net.exe" AND CommandLine="*domain*") OR (Image="*\\net1.exe" AND CommandLine="*domain*")) | bucket _time span=1h | stats count dc(Image) as unique_tools values(Image) as tools values(CommandLine) as commands earliest(_time) as first_event latest(_time) as last_event by host, User | where unique_tools >= 2 | eval risk=case(unique_tools >= 4, "CRITICAL — Extensive AD reconnaissance (4+ LOLBIN tools in 1 hour)", unique_tools >= 3, "HIGH — Multi-tool AD reconnaissance chain", unique_tools >= 2, "HIGH — AD tool pair detected (investigate immediately)") | sort -unique_tools
```

**Known false positives:**

- AD migration projects using multiple built-in tools sequentially
- AD health assessment scripts running multiple query tools

**Tuning notes:** The key discriminator is MULTIPLE tools within a short window. A single net group /domain might be routine; csvde + dsquery + nltest in the same hour from the same host = active reconnaissance. Whitelist specific admin workstations if they regularly run AD health checks. The 1-hour window catches deliberate enumeration while avoiding cross-day false positives.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- [indicator] Execution via Defender for Endpoint — AD LOLBIN Detection (locked: unlock with TL Creds)
- CSV File Creation After [indicator] Execution — AD Data Staging Detection (locked: unlock with TL Creds)
- First-Time [indicator] Execution per Host — LOLBIN Anomaly Detection (locked: unlock with TL Creds)
- [indicator] Execution — Active Directory LOLBIN Reconnaissance (locked: unlock with TL Creds)
- [indicator] with Export Flag and LDAP Filter — Targeted AD Data Extraction (locked: unlock with TL Creds)
- AD Reconnaissance Tool Chain — Multiple LOLBIN Execution Within Timeframe (locked: unlock with TL Creds)
- [indicator] Process Creation Detection — Active Directory LOLBIN Reconnaissance (locked: unlock with TL Creds)
- Bulk LDAP Query Detection — High-Volume Directory Queries from Non-DC Hosts (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [MITRE ATT&CK T1087.002 — Account Discovery: Domain Account](https://attack.mitre.org/techniques/T1087/002/)
- [BlackBerry — FIN7 Targets US Automotive Industry (csvde.exe documented)](https://blogs.blackberry.com/en/2024/04/fin7-targets-the-united-states-automotive-industry)
- [PwC UK — Operation Cloud Hopper Technical Annex (APT10 csvde.exe usage)](https://www.pwc.co.uk/cyber-security/pdf/pwc-uk-operation-cloud-hopper-technical-annex-april-2017.pdf)
- [Microsoft — Csvde Command Reference](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/cc732101(v=ws.11))
- [MITRE ATT&CK T1069.002 — Permission Groups Discovery: Domain Groups](https://attack.mitre.org/techniques/T1069/002/)
- [LOLBAS Project — Living Off The Land Binaries and Scripts](https://lolbas-project.github.io/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-0113
