Skip to main content

Spreadsheet security check

Detect Formula Injection in CSV Files

Scan untrusted CSV values for spreadsheet formulas before opening the file in Excel or sharing it with colleagues.

Use the matching tool

CSV Formula Scanner

Open CSV Formula Scanner

What the error actually means

A CSV cell beginning with =, +, -, or @ may be interpreted as a formula by spreadsheet software. In an untrusted export, that can turn ordinary-looking text into an active spreadsheet expression when someone opens the file.

Likely causes

  • User-supplied text was exported without neutralizing formula prefixes.
  • A data pipeline trusted values because CSV is a text format.
  • A legitimate formula was mixed into a file intended to contain values only.
  • A leading tab or whitespace concealed a formula marker from a simple check.

Potentially active value

Problem

=HYPERLINK("https://example.invalid","Open")

Correct pattern

A reviewed, neutralized text value appropriate for the destination

A safe repair workflow

  1. 1Do not open an untrusted file in a desktop spreadsheet first.
  2. 2Scan it and review every flagged cell with its row and column context.
  3. 3Determine whether each formula is expected, malicious, or simply a false positive such as a negative number.
  4. 4Neutralize unsafe values according to the receiving application’s import rules, then scan the output again.

How to verify the result

A file that downloads successfully is not automatically a correct file. Check the result at both the structural and business-data levels:

  • All flagged values have an explicit disposition.
  • Expected negative numbers and identifiers were not corrupted.
  • The destination displays risky-looking strings as text.
  • A second scan finds no unexplained formula cells.

Read the deeper guides